If, after the determination of any civil action or proceeding, the original papers, or any part thereof pertaining thereto, which are not of record are lost, mislaid, destroyed or mutilated, if the record of such papers with such papers should be lost, mislaid, destroyed or mutilated or if the record of any judgment or decree of any judicial proceeding or quasi-judicial proceeding, or any part thereof, should be lost, mislaid, destroyed or mutilated, any party in interest may, on application in writing, stating the facts, accompanied with the substitute proposed of such lost, mislaid, destroyed or mutilated paper or record, verified by affidavit, obtain an order of substitution. If the adverse party is of full age, of sound mind and a resident of the state, notice of the application and a copy thereof, accompanied with a copy of the proposed substitute, must be served on him at least 10 days before the session of the court in which such application is made. If he is of unsound mind or an infant residing in the state, notice must be served on his guardian or, if he has no guardian, upon the person with whom he resides or in whose care or custody he may be; but, if such party, whether he is of full age and sound mind, an infant or of unsound mind, resides without the state or his residence is unknown, upon affidavit stating the facts, the register, or the clerk of the court or the probate judge, must make and enter an order of publication as to such party and cause notice to be given by publication for three successive weeks in some newspaper published in the county or, if there is no such newspaper, in a newspaper published in an adjoining county. If the adverse party is of unsound mind or an infant, the court must appoint a guardian ad litem to represent and defend for him. On the hearing, the court may receive affidavits and counter affidavits as to the correctness of the proposed substitute.