The comptroller shall:
The comptroller may at his discretion petition the surrogate of any county having jurisdiction praying for a judicial settlement of the accounts of any such administrator or county treasurer, and that such administrator or county treasurer, may be cited to show cause why he should not render and settle an account in the manner prescribed in the surrogate's court procedure act.
The comptroller shall not designate as a depositary of funds or moneys paid into court any trust company, bank, banking association or banker, nor authorize any deposit in any such depositary of funds or moneys paid into court, until the comptroller shall have required such depositary to execute to the people of the state an undertaking, in an amount approved by the county judge of the county where such trust company, bank, banking association or banker is located, or by a justice of the supreme court in the county where such depositary is located if the location of same be in the city of New York, providing for the payment of a rate of interest to be agreed upon by the depositary and the comptroller. Such undertaking shall be filed in the office of the comptroller and shall be secured by a deposit of bonds as provided by section one hundred five of this chapter. Or, in lieu of such undertaking and deposit of securities, the comptroller may require such depositary to execute to the people of the state of New York an undertaking, with a surety company authorized to transact business in the state of New York as surety, in such form as the attorney-general shall prescribe, and in an amount approved by the county judge of the county where such trust company, bank, banking association or banker is located, or by a justice of the supreme court in the county where such depositary is located if the location of same be in the city of New York, and by the comptroller, except that the comptroller may designate savings banks as depositaries of funds or moneys paid into court and authorize the public officer making such deposits to comply with the practice relating to the deposit of moneys in savings banks.
Such refund shall be paid from moneys appropriated for such purpose or from revenues in the custody of said department or agency, derived from fees collected by said department or agency.
N.Y. State Fin. Law § 8