The receiver shall have all the powers and duties accorded a receiver foreclosing a mortgage on real property, and all other powers and duties deemed necessary by the court. Such powers and duties include collecting and using all rents and profits of the property, prior to and despite any assignment of rent, for any of the following purposes:
(1) Correcting the condition or conditions alleged in the petition.
(2) Materially complying with all applicable provisions of any state or local statute, code, regulation, or ordinance governing the maintenance, construction, use, or appearance of the surrounding grounds.
(3) Paying all expenses reasonably necessary for the proper operation and management of the property including insurance, mortgage payments, taxes and assessments, and fees for the services of the receiver and any agent the receiver hires.
(4) Compensating the tenants for whatever deprivation of their rental agreement rights resulted from the condition or conditions alleged in the petition.
(5) Paying the costs of the receivership proceeding.