(a) Any losses sustained by a bank or trust company in excess of its undivided profits may be charged to its surplus fund.

(b) Any stock bank or trust company, after receiving approval from the commissioner, may declare a stock dividend from its surplus fund, but no dividend shall reduce the surplus fund to an amount less than 30% of the resulting total capital.

(c) Any bank or trust company may reduce its surplus account with permission of the commissioner.