By a contract of insurance of property or of any insurable interest in the property, the insurer may in connection with a special provision or endorsement made a part of the policy insure the cost of repair or replacement of the property, if damaged or destroyed by a hazard insured against, and without deduction of depreciation, subject to reasonable regulations that may be adopted by the director.