Upon taking possession of the property and business of any bank, the director shall collect all money due to such bank and do such other acts as are necessary to conserve its assets and business and, on declaration of insolvency, he or she shall proceed to liquidate the affairs of the bank under the Nebraska Banking Act. He or she shall collect all debts due to and belonging to the bank. If he or she desires to sell or compromise any or all bad or doubtful debts or any or all of the real and personal property of such bank, he or she shall apply to the district court of the county in which the main office of the bank is located for an order permitting such sale or compromise on such terms and in such manner as the court may direct. All money so collected by the director may be, from time to time, deposited in one or more state banks or national banks. No deposits of such money shall be made unless a pledge of assets, a guaranty bond, or both are given as security for such deposit. All depository banks are authorized to give such security. The director may invest a portion or all of such money in short-time interest-bearing securities of the federal government.