The comptroller may examine the books, accounts and vouchers of every bank, trust company or other depository in the state in anywise relating to moneys or securities so paid into court or directed to be paid into court by statute. Where such moneys or securities have not been paid to the commissioner of finance of the city of New York or to any county treasurer of the state, the comptroller upon application duly made shall be entitled to an order directing the payment and transfer of all such moneys or securities from any such public official, bank, trust company or depository to the commissioner of finance of such city or to the treasurer of the proper county.
N.Y. State Fin. Law § 180