The failure of the mortgagor to make any payment due under or provided to be paid by the terms of a mortgage insured under this section shall be considered a default under such mortgage, and if such default continues for a period of thirty days, the mortgagee shall be entitled to receive the benefits of the insurance as hereinafter provided, upon assignment, transfer, and delivery to the Secretary, within a period and in accordance with rules and regulations to be prescribed by the Secretary of (1) all rights and interests arising under the mortgage so in default; (2) all claims of the mortgagee against the mortgagors or others, arising out of the mortgage transaction; (3) all policies of title or other insurance or surety bonds or other guaranties and any and all claims thereunder; (4) any balance of the mortgage loan not advanced to the mortgagor; (5) any cash or property held by the mortgagee, or to which it is entitled, as deposits made for the account of the mortgagor and which have not been applied in reduction of the principal of the mortgage indebtedness; and (6) all records, documents, books, papers, and accounts relating to the mortgage transaction. Upon such assignment, transfer, and delivery the obligation of the mortgagee to pay the premium charges for mortgage insurance shall cease, and the Secretary shall, subject to the cash adjustment provided for in section
1739
(c) of this title, issue to the mortgagee debentures having a total face value equal to the value of the mortgage, and a certificate of claim as hereinafter provided. For the purposes of this subsection, the value of the mortgage shall be determined in accordance with rules and regulations prescribed by the Secretary, by adding to the amount of the original principal obligation of the mortgage which was unpaid on the date of default, the amount the mortgagee may have paid for (A) taxes, special assessments, and water rates, which are liens prior to the mortgage; (B) insurance on the property; and (C) reasonable expenses for the completion and preservation of the property and any mortgage insurance premiums paid after default; less the sum of (i) an amount equivalent to 1 per centum of the unpaid amount of such principal obligation on the date of default; (ii) any amount received on account of the mortgage after such date; and (iii) any net income received by the mortgagee from the property after such date: Provided, That the mortgagee in the event of a default under the mortgage may, at its option and in accordance with regulations of, and in a period to be determined by the Secretary, proceed to foreclose on and obtain possession of or otherwise acquire such property from the mortgagor after default, and receive the benefits of the insurance as herein provided, upon (1) the prompt conveyance to the Secretary of title to the property which meets the requirements of the rules and regulations of the Secretary in force at the time the mortgage was insured, and which is evidenced in the manner prescribed by such rules and regulations; and (2) the assignment to him of all claims of the mortgagee against the mortgagor or others, arising out of the mortgage transaction or foreclosure proceedings, except such claims that may have been released with the consent of the Secretary. Upon such conveyance and assignment, the obligation of the mortgagee to pay the premium charges for insurance shall cease and the mortgagee shall be entitled to receive the benefits of the insurance as provided in this subsection, except that in such event the 1 per centum deduction, set out in (i) hereof, shall not apply.