Upon receiving such deed, assignment, transfer, or other instrument the person elected such agent shall hold, control, and dispose of the assets and property of the association which he may receive under the terms hereof for the benefit of the shareholders of the association, and he may in his own name, or in the name of the association, sue and be sued and do all other lawful acts and things necessary to finally settle and distribute the assets and property in his hands, and may sell, compromise, or compound the debts due to the association, with the consent and approval of the district court of the United States for the district where the business of the association was carried on, and shall at the conclusion of his trust render to such district court a full account of all his proceedings, receipts, and expenditures as such agent, which court shall, upon due notice, settle and adjust such accounts and discharge such agent and sureties upon such bond. In case any such agent so elected shall die, resign, or be removed, any shareholder may call a meeting of the shareholders of the association in the town, city, or village where the business of the association was carried on, by giving notice thereof for thirty days in a newspaper published in such town, city, or village, or if no newspaper is there published, in the newspaper published nearest thereto, at which meeting the shareholders shall elect an agent, voting by ballot, in person or by proxy, each share of stock entitling the holder to one vote, and when such agent shall have received votes representing at least a majority of the stock in number of shares, and shall have executed a bond to the shareholders conditioned for the payment and discharge in full or, to the extent possible from the remaining assets of the association, of each and every claim that may thereafter be proved and allowed by and before a competent court and for the faithful performance of his duties, in the penalty fixed by the shareholders at such meeting, with a surety or sureties, to be approved by such court, and file such bond in the office of the clerk of that court, he shall have all the rights, powers, and duties of the agent first elected as hereinbefore provided. At any meeting held as hereinbefore provided administrators or executors of deceased shareholders may act and sign as the decedent might have done if living, and guardians of minors and trustees of other persons may so act and sign for their ward or wards or cestui que trust. The proceeds of the assets or property of any such association which may be undistributed at the time of such meeting or may be subsequently received shall be distributed as follows:
First. To pay the expenses of the execution of the trust to the date of such payment.
Second. To repay any amount or amounts which have been paid in by any shareholder or shareholders of the association upon and by reason of any and all assessments made upon the stock of the association by order of the Comptroller of the Currency in accordance with the provisions of the statutes of the United States.
Third. To pay the balance ratably among such stockholders, in proportion to the number of shares held and owned by each. Such distribution shall be made from time to time as the proceeds shall be received and as shall be deemed advisable by the Comptroller of the Currency, or the Federal Deposit Insurance Corporation if continued as receiver of the bank under subsection (a) of this section, or such agent, as the case may be.