Add support for save and restore reg.exe subcommands (#1565)