Function at 0x402440
Capabilities:
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x405f08
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x414
mov eax, dword [0x40a0b8]
xor eax, esp
push ebp
push esi
mov dword [esp + 0x418], eax
push edi
mov esi, ecx
xor edi, edi
mov dword [esp + 0x428], edi
mov dword [esp + 0x10], edi
lea ecx, [esp + 0x18]
mov dword [esp + 0x14], 0x400
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_3]
lea eax, [esp + 0x430]
push eax
lea ebp, [esi + 0x78]
lea ecx, [esp + 0x10]
push ebp
push ecx
mov byte [esp + 0x434], 2
call fcn.00401b70
add esp, 0xc
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x42c], 3
call dword [sym.imp.MFC71.DLL_ATL::CStringT::operator]
lea ecx, [esp + 0xc]
mov byte [esp + 0x428], 2
call dword [0x40706c]
mov eax, dword [esp + 0x434]
test eax, eax
lea ecx, [esp + 0x430]
je 0x402548
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
lea edx, [esp + 0x14]
push edx
lea ecx, [esp + 0x10]
push ecx
push edi
push 0x2001f
push edi
push edi
push edi
push eax
push 0x80000000
mov dword [esp + 0x30], edi
call dword [0x407014]
test eax, eax
jne 0x4026c0
mov edi, dword [esp + 0xc]
lea ecx, [esp + 0x18]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::GetLength]
mov esi, eax
lea ecx, [esp + 0x18]
inc esi
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push esi
push eax
push 1
push 0
push 0x407824
push edi
call dword [0x407008]
jmp 0x4026b3
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
lea edx, [esp + 0xc]
push edx
push 0x2001f
push 0
push eax
push 0x80000000
mov dword [esp + 0x20], 0
call dword [0x407010]
test eax, eax
jne 0x4026c0
mov edi, dword [esp + 0xc]
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x20]
push ecx
push 0x407824
lea ecx, [esp + 0x1c]
mov dword [esp + 0x1c], edi
call fcn.004019f0
test eax, eax
jne 0x4026b3
lea ecx, [esp + 0xc]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_3]
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x10]
push 0x407834
push eax
mov byte [esp + 0x434], 4
call dword [sym.imp.MFC71.DLL_ATL::CStringT::Format]
add esp, 0xc
push 0
mov ecx, ebp
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
lea ecx, [esp + 0x14]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::Find]
cmp eax, 0xffffffff
jle 0x4026a9
push str.FileAssocBak.cfg
add esi, 0xe4
lea ecx, [esp + 0x18]
push esi
push ecx
call fcn.00401c10
add esp, 0xc
mov ecx, eax
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
push 0x400
lea edx, [esp + 0x24]
push edx
push str.null
lea ecx, [esp + 0x440]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
push str.root
call dword [0x407060]
lea ecx, [esp + 0x14]
call dword [0x40706c]
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x10]
push 0x407834
push ecx
call dword [sym.imp.MFC71.DLL_ATL::CStringT::Format]
add esp, 0xc
push str.null
lea ecx, [esp + 0x10]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::Compare]
test eax, eax
jne 0x40270a
lea ecx, [esp + 0x10]
call fcn.00401980
push 0x2001f
push 0x407824
push 0x80000000
lea ecx, [esp + 0x1c]
call fcn.004019a0
test eax, eax
jne 0x4026a5
lea ecx, [esp + 0x430]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
lea ecx, [esp + 0x14]
call fcn.00401e80
mov edi, dword [esp + 0x10]
lea ecx, [esp + 0xc]
call dword [0x40706c]
test edi, edi
je 0x4026c0
push edi
call dword [0x407018]
xor edi, edi
lea ecx, [esp + 0x18]
call dword [0x40706c]
test edi, edi
je 0x4026d5
push edi
call dword [0x407018]
lea ecx, [esp + 0x430]
call dword [0x40706c]
mov ecx, dword [esp + 0x420]
pop edi
pop esi
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x414]
pop ebp
xor ecx, esp
call fcn.00405751
add esp, 0x420
ret 8
push 0
mov ecx, ebp
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
lea ecx, [esp + 0x14]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::Find]
cmp eax, 0xffffffff
jle 0x4027ad
lea ecx, [esp + 0x10]
call fcn.00401980
push 0x2001f
push 0x407824
push 0x80000000
lea ecx, [esp + 0x1c]
call fcn.004019a0
test eax, eax
jne 0x402764
lea ecx, [esp + 0x430]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
lea ecx, [esp + 0x14]
call fcn.00401e80
push str.FileAssocBak.cfg
lea edx, [esp + 0x18]
push esi
push edx
call fcn.00401c10
add esp, 0xc
mov ecx, eax
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
push str.null
lea ecx, [esp + 0x438]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
push str.root
call dword [0x407058]
lea ecx, [esp + 0x14]
call dword [0x40706c]
jmp 0x4026a5
lea ecx, [esp + 0xc]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::GetLength]
inc eax
push eax
lea ecx, [esp + 0x10]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
push 1
push 0x407824
lea ecx, [esp + 0x20]
call fcn.00401a60
jmp 0x4026a9