Function at 0x408fc0
Capabilities:
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x454bd6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc8
push ebx
push ebp
mov ebp, ecx
push esi
push edi
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_2
push ecx
xor ebx, ebx
mov ecx, esp
mov dword [esp + 0x1c], esp
push 0x465964
mov dword [esp + 0xe8], ebx
call fcn.004149aa
lea eax, [esp + 0x1c]
mov ecx, ebp
push eax
call fcn.0040a330
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0xe4], 1
call fcn.004149b6
lea ecx, [esp + 0x18]
mov byte [esp + 0xe0], bl
call sub.MFC42.DLL_CString::CString
mov ecx, dword [sym.imp.MSVCIRT.dll_int_const_filebuf::openprot]
mov eax, dword [esp + 0x10]
push 1
mov edx, dword [ecx]
lea ecx, [esp + 0x28]
push edx
push 0x40
push eax
call dword [sym.imp.MSVCIRT.dll_public:_void___thiscall_ofstream::constructor_char_const___int__int_]
mov ecx, dword [esp + 0x24]
mov esi, dword [sym.imp.MSVCIRT.dll_public:_class_ostream____thiscall_ostream::operator___char_const__]
mov edi, dword [sym.imp.MSVCIRT.dll_public:_class_ostream____thiscall_ostream::operator___unsigned_long_int_]
mov byte [esp + 0xe0], 2
mov edx, dword [ecx + 4]
test byte [esp + edx + 0x2c], 6
jne 0x40912e
mov eax, dword [esp + 0xe8]
push 0x465648
xor eax, 0x3ff
lea ecx, [esp + 0x28]
push eax
call edi
mov ecx, eax
call esi
mov ecx, dword [esp + 0xec]
push 0x465648
xor ecx, 7
push ecx
lea ecx, [esp + 0x2c]
call edi
mov ecx, eax
call esi
mov edx, dword [esp + 0xf0]
push 0x465648
xor edx, 0x1f
lea ecx, [esp + 0x28]
push edx
call edi
mov ecx, eax
call esi
mov eax, dword [esp + 0xf4]
push 0x465648
xor eax, 0xf
lea ecx, [esp + 0x28]
push eax
call edi
mov ecx, eax
call esi
mov ecx, dword [esp + 0xf8]
push 0x465648
xor ecx, 0x3f
push ecx
lea ecx, [esp + 0x2c]
call edi
mov ecx, eax
call esi
mov edx, dword [esp + 0xfc]
push 0x465648
xor edx, 0x3f
lea ecx, [esp + 0x28]
push edx
call edi
mov ecx, eax
call esi
mov eax, dword [0x469264]
push 0x465648
xor eax, 0x1f
lea ecx, [esp + 0x28]
push eax
call dword [sym.imp.MSVCIRT.dll_public:_class_ostream____thiscall_ostream::operator___int_]
mov ecx, eax
call esi
lea ecx, [esp + 0x24]
call dword [sym.imp.MSVCIRT.dll_public:_void___thiscall_ofstream::close_void_]
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
push 0x465a74
call fcn.004149aa
lea ecx, [esp + 0x1c]
push ecx
mov ecx, ebp
call fcn.0040a330
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0xe4], 3
call fcn.004149b6
lea ecx, [esp + 0x18]
mov byte [esp + 0xe0], 2
call sub.MFC42.DLL_CString::CString
mov edx, dword [sym.imp.MSVCIRT.dll_int_const_filebuf::openprot]
mov ecx, dword [esp + 0x10]
push 1
mov eax, dword [edx]
push eax
push 0x40
push ecx
lea ecx, [esp + 0x8c]
call dword [sym.imp.MSVCIRT.dll_public:_void___thiscall_ofstream::constructor_char_const___int__int_]
mov edx, dword [esp + 0x7c]
mov byte [esp + 0xe0], 4
mov eax, dword [edx + 4]
test byte [esp + eax + 0x84], 6
jne 0x409285
mov ecx, dword [esp + 0xe8]
push 0x465648
xor ecx, 0x3ff
push ecx
lea ecx, [esp + 0x84]
call edi
mov ecx, eax
call esi
mov edx, dword [esp + 0xec]
push 0x465648
xor edx, 7
lea ecx, [esp + 0x80]
push edx
call edi
mov ecx, eax
call esi
mov eax, dword [esp + 0xf0]
push 0x465648
xor eax, 0x1f
lea ecx, [esp + 0x80]
push eax
call edi
mov ecx, eax
call esi
mov ecx, dword [esp + 0xf4]
push 0x465648
xor ecx, 0xf
push ecx
lea ecx, [esp + 0x84]
call edi
mov ecx, eax
call esi
mov edx, dword [esp + 0xf8]
push 0x465648
xor edx, 0x3f
lea ecx, [esp + 0x80]
push edx
call edi
mov ecx, eax
call esi
mov eax, dword [esp + 0xfc]
push 0x465648
xor eax, 0x3f
lea ecx, [esp + 0x80]
push eax
call edi
mov ecx, eax
call esi
mov ecx, dword [0x469264]
push 0x465648
xor ecx, 0x1f
push ecx
lea ecx, [esp + 0x84]
call dword [sym.imp.MSVCIRT.dll_public:_class_ostream____thiscall_ostream::operator___int_]
mov ecx, eax
call esi
lea ecx, [esp + 0x7c]
call dword [sym.imp.MSVCIRT.dll_public:_void___thiscall_ofstream::close_void_]
lea edx, [esp + 0xd4]
lea eax, [esp + 0x14]
push edx
push eax
push ebx
push 0xf003f
push ebx
push ebx
push ebx
push str.SOFTWAREMicrosoftFolderPro
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
cmp eax, ebx
je 0x40930d
mov esi, dword [sym.imp.MSVCIRT.dll_public_virtual:_void___thiscall_ofstream::destructor_void_]
lea ecx, [esp + 0x84]
mov byte [esp + 0xe0], 2
call esi
mov edi, dword [sym.imp.MSVCIRT.dll_public_virtual:_void___thiscall_ios::destructor_void_]
lea ecx, [esp + 0x84]
call edi
lea ecx, [esp + 0x2c]
mov byte [esp + 0xe0], bl
call esi
lea ecx, [esp + 0x2c]
call edi
lea ecx, [esp + 0x10]
mov dword [esp + 0xe0], 0xffffffff
call sub.MFC42.DLL_CString::CString
xor eax, eax
jmp 0x4096fb
mov edx, dword [esp + 0x14]
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea ecx, [esp + 0xe8]
push 4
push ecx
push 4
push ebx
push str.Year
push edx
call esi
cmp eax, ebx
je 0x409384
mov esi, dword [sym.imp.MSVCIRT.dll_public_virtual:_void___thiscall_ofstream::destructor_void_]
lea ecx, [esp + 0x84]
mov byte [esp + 0xe0], 2
call esi
mov edi, dword [sym.imp.MSVCIRT.dll_public_virtual:_void___thiscall_ios::destructor_void_]
lea ecx, [esp + 0x84]
call edi
lea ecx, [esp + 0x2c]
mov byte [esp + 0xe0], bl
call esi
lea ecx, [esp + 0x2c]
call edi
lea ecx, [esp + 0x10]
mov dword [esp + 0xe0], 0xffffffff
call sub.MFC42.DLL_CString::CString
xor eax, eax
jmp 0x4096fb
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0xec]
push 4
push eax
push 4
push ebx
push str.Month
push ecx
call esi
cmp eax, ebx
je 0x4093f5
mov esi, dword [sym.imp.MSVCIRT.dll_public_virtual:_void___thiscall_ofstream::destructor_void_]
lea ecx, [esp + 0x84]
mov byte [esp + 0xe0], 2
call esi
mov edi, dword [sym.imp.MSVCIRT.dll_public_virtual:_void___thiscall_ios::destructor_void_]
lea ecx, [esp + 0x84]
call edi
lea ecx, [esp + 0x2c]
mov byte [esp + 0xe0], bl
call esi
lea ecx, [esp + 0x2c]
call edi
lea ecx, [esp + 0x10]
mov dword [esp + 0xe0], 0xffffffff
call sub.MFC42.DLL_CString::CString
xor eax, eax
jmp 0x4096fb
mov eax, dword [esp + 0x14]
lea edx, [esp + 0xf0]
push 4
push edx
push 4
push ebx
push 0x465a60
push eax
call esi
cmp eax, ebx
je 0x409466
mov esi, dword [sym.imp.MSVCIRT.dll_public_virtual:_void___thiscall_ofstream::destructor_void_]
lea ecx, [esp + 0x84]
mov byte [esp + 0xe0], 2
call esi
mov edi, dword [sym.imp.MSVCIRT.dll_public_virtual:_void___thiscall_ios::destructor_void_]
lea ecx, [esp + 0x84]
call edi
lea ecx, [esp + 0x2c]
mov byte [esp + 0xe0], bl
call esi
lea ecx, [esp + 0x2c]
call edi
lea ecx, [esp + 0x10]
mov dword [esp + 0xe0], 0xffffffff
call sub.MFC42.DLL_CString::CString
xor eax, eax
jmp 0x4096fb
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0xf4]
push 4
push ecx
push 4
push ebx
push str.Hour
push edx
call esi
cmp eax, ebx
je 0x4094d7
mov esi, dword [sym.imp.MSVCIRT.dll_public_virtual:_void___thiscall_ofstream::destructor_void_]
lea ecx, [esp + 0x84]
mov byte [esp + 0xe0], 2
call esi
mov edi, dword [sym.imp.MSVCIRT.dll_public_virtual:_void___thiscall_ios::destructor_void_]
lea ecx, [esp + 0x84]
call edi
lea ecx, [esp + 0x2c]
mov byte [esp + 0xe0], bl
call esi
lea ecx, [esp + 0x2c]
call edi
lea ecx, [esp + 0x10]
mov dword [esp + 0xe0], 0xffffffff
call sub.MFC42.DLL_CString::CString
xor eax, eax
jmp 0x4096fb
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0xf8]
push 4
push eax
push 4
push ebx
push str.Minute
push ecx
call esi
cmp eax, ebx
je 0x409548
mov esi, dword [sym.imp.MSVCIRT.dll_public_virtual:_void___thiscall_ofstream::destructor_void_]
lea ecx, [esp + 0x84]
mov byte [esp + 0xe0], 2
call esi
mov edi, dword [sym.imp.MSVCIRT.dll_public_virtual:_void___thiscall_ios::destructor_void_]
lea ecx, [esp + 0x84]
call edi
lea ecx, [esp + 0x2c]
mov byte [esp + 0xe0], bl
call esi
lea ecx, [esp + 0x2c]
call edi
lea ecx, [esp + 0x10]
mov dword [esp + 0xe0], 0xffffffff
call sub.MFC42.DLL_CString::CString
xor eax, eax
jmp 0x4096fb
mov eax, dword [esp + 0x14]
lea edx, [esp + 0xfc]
push 4
push edx
push 4
push ebx
push str.Second
push eax
call esi
cmp eax, ebx
je 0x4095b9
mov esi, dword [sym.imp.MSVCIRT.dll_public_virtual:_void___thiscall_ofstream::destructor_void_]
lea ecx, [esp + 0x84]
mov byte [esp + 0xe0], 2
call esi
mov edi, dword [sym.imp.MSVCIRT.dll_public_virtual:_void___thiscall_ios::destructor_void_]
lea ecx, [esp + 0x84]
call edi
lea ecx, [esp + 0x2c]
mov byte [esp + 0xe0], bl
call esi
lea ecx, [esp + 0x2c]
call edi
lea ecx, [esp + 0x10]
mov dword [esp + 0xe0], 0xffffffff
call sub.MFC42.DLL_CString::CString
xor eax, eax
jmp 0x4096fb
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x1c]
push 4
push ecx
push 4
push ebx
push str.sysag
push edx
mov dword [esp + 0x34], 1
call esi
cmp eax, ebx
je 0x40962f
mov esi, dword [sym.imp.MSVCIRT.dll_public_virtual:_void___thiscall_ofstream::destructor_void_]
lea ecx, [esp + 0x84]
mov byte [esp + 0xe0], 2
call esi
mov edi, dword [sym.imp.MSVCIRT.dll_public_virtual:_void___thiscall_ios::destructor_void_]
lea ecx, [esp + 0x84]
call edi
lea ecx, [esp + 0x2c]
mov byte [esp + 0xe0], bl
call esi
lea ecx, [esp + 0x2c]
call edi
lea ecx, [esp + 0x10]
mov dword [esp + 0xe0], 0xffffffff
call sub.MFC42.DLL_CString::CString
xor eax, eax
jmp 0x4096fb
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x20]
push 4
push eax
push 4
push ebx
push str.Expired
push ecx
mov dword [esp + 0x38], ebx
call esi
cmp eax, ebx
je 0x40969e
mov esi, dword [sym.imp.MSVCIRT.dll_public_virtual:_void___thiscall_ofstream::destructor_void_]
lea ecx, [esp + 0x84]
mov byte [esp + 0xe0], 2
call esi
mov edi, dword [sym.imp.MSVCIRT.dll_public_virtual:_void___thiscall_ios::destructor_void_]
lea ecx, [esp + 0x84]
call edi
lea ecx, [esp + 0x2c]
mov byte [esp + 0xe0], bl
call esi
lea ecx, [esp + 0x2c]
call edi
lea ecx, [esp + 0x10]
mov dword [esp + 0xe0], 0xffffffff
call sub.MFC42.DLL_CString::CString
xor eax, eax
jmp 0x4096fb
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [sym.imp.MSVCIRT.dll_public_virtual:_void___thiscall_ofstream::destructor_void_]
lea ecx, [esp + 0x84]
mov byte [esp + 0xe0], 2
call esi
mov edi, dword [sym.imp.MSVCIRT.dll_public_virtual:_void___thiscall_ios::destructor_void_]
lea ecx, [esp + 0x84]
call edi
lea ecx, [esp + 0x2c]
mov byte [esp + 0xe0], bl
call esi
lea ecx, [esp + 0x2c]
call edi
lea ecx, [esp + 0x10]
mov dword [esp + 0xe0], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, 1
mov ecx, dword [esp + 0xd8]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0xd4
ret 0x18