When such judgment shall be rendered against a corporation, the court has power to restrain the corporation, to appoint a receiver of its property, and to take an account and make distribution thereof among its creditors; and the state's attorney must, immediately after the rendition of such judgment, institute proceedings for that purpose.
SDCL 21-28-17