Function at 0x4097c0
Capabilities:
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x454c16
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc4
push ebx
push ebp
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_2
push ecx
mov dword [esp + 0xe0], 0
mov ecx, esp
mov dword [esp + 0x18], esp
push 0x465964
call fcn.004149aa
lea eax, [esp + 0x18]
mov ecx, esi
push eax
call fcn.0040a330
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0xe0], 1
call fcn.004149b6
lea ecx, [esp + 0x14]
mov byte [esp + 0xdc], 0
call sub.MFC42.DLL_CString::CString
mov ecx, dword [sym.imp.MSVCIRT.dll_int_const_filebuf::openprot]
mov eax, dword [esp + 0x10]
mov edi, dword [sym.imp.MSVCIRT.dll_public:_void___thiscall_ofstream::constructor_char_const___int__int_]
push 1
mov edx, dword [ecx]
lea ecx, [esp + 0x80]
push edx
push 8
push eax
call edi
mov ecx, dword [esp + 0x7c]
mov ebp, dword [sym.imp.MSVCIRT.dll_public:_class_ostream____thiscall_ostream::operator___char_const__]
mov bl, 2
mov edx, dword [ecx + 4]
mov byte [esp + 0xdc], bl
test byte [esp + edx + 0x84], 6
jne 0x40988f
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x7c]
push eax
call ebp
mov ecx, dword [esp + 0x10]
push ecx
lea ecx, [esp + 0x80]
call ebp
lea ecx, [esp + 0x7c]
call dword [sym.imp.MSVCIRT.dll_public:_void___thiscall_ofstream::close_void_]
push ecx
mov ecx, esp
mov dword [esp + 0x18], esp
push 0x465a74
call fcn.004149aa
lea edx, [esp + 0x18]
mov ecx, esi
push edx
call fcn.0040a330
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0xe0], 3
call fcn.004149b6
lea ecx, [esp + 0x14]
mov byte [esp + 0xdc], bl
call sub.MFC42.DLL_CString::CString
mov eax, dword [sym.imp.MSVCIRT.dll_int_const_filebuf::openprot]
mov edx, dword [esp + 0x10]
push 1
mov ecx, dword [eax]
push ecx
push 8
push edx
lea ecx, [esp + 0x34]
call edi
mov eax, dword [esp + 0x24]
mov byte [esp + 0xdc], 4
mov ecx, dword [eax + 4]
test byte [esp + ecx + 0x2c], 6
jne 0x40991b
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x24]
push edx
call ebp
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x24]
push eax
call ebp
lea ecx, [esp + 0x24]
call dword [sym.imp.MSVCIRT.dll_public:_void___thiscall_ofstream::close_void_]
lea ecx, [esp + 0x20]
lea edx, [esp + 0x18]
push ecx
push edx
push 0
push 0xf003f
push 0
push 0
push 0
push str.SOFTWAREMicrosoftFolderPro
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x409977
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x1c]
push 4
push eax
push 4
push 0
push str.Expired
push ecx
mov dword [esp + 0x34], 1
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x4099c8
mov esi, dword [sym.imp.MSVCIRT.dll_public_virtual:_void___thiscall_ofstream::destructor_void_]
lea ecx, [esp + 0x2c]
mov byte [esp + 0xdc], bl
call esi
mov edi, dword [sym.imp.MSVCIRT.dll_public_virtual:_void___thiscall_ios::destructor_void_]
lea ecx, [esp + 0x2c]
call edi
lea ecx, [esp + 0x84]
mov byte [esp + 0xdc], 0
call esi
lea ecx, [esp + 0x84]
call edi
lea ecx, [esp + 0x10]
mov dword [esp + 0xdc], 0xffffffff
call sub.MFC42.DLL_CString::CString
xor eax, eax
jmp 0x409a25
mov edx, dword [esp + 0x18]
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 + 0x2c]
mov byte [esp + 0xdc], bl
call esi
mov edi, dword [sym.imp.MSVCIRT.dll_public_virtual:_void___thiscall_ios::destructor_void_]
lea ecx, [esp + 0x2c]
call edi
lea ecx, [esp + 0x84]
mov byte [esp + 0xdc], 0
call esi
lea ecx, [esp + 0x84]
call edi
lea ecx, [esp + 0x10]
mov dword [esp + 0xdc], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, 1
mov ecx, dword [esp + 0xd4]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0xd0
ret