Function at 0x40a52f
Capabilities:
Copy file
Query or enumerate registry value

Disassembly:
mov eax, 0x40fa0c
call sub.MSVCRT.dll__EH_prolog
sub esp, 0x148
mov al, byte [0x4168a0]
push ebx
push esi
push edi
push 1
mov dword [ebp - 0x28], ecx
pop esi
mov byte [ebp - 0x154], al
push 0x40
xor eax, eax
pop ecx
lea edi, [ebp - 0x153]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
xor ebx, ebx
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x20], 0x104
stosb byte es:[edi], al
call sub.MFC42.DLL_CString::CString_1
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], ebx
call sub.MFC42.DLL_CString::CString_1
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x1c]
push ecx
mov byte [ebp - 4], 1
mov eax, dword [eax]
push eax
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
cmp eax, ebx
jne 0x40a5d3
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x154]
push eax
lea eax, [ebp - 0x24]
push eax
push ebx
push str.Help
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, ebx
jne 0x40a5d3
lea eax, [ebp - 0x154]
lea ecx, [ebp - 0x10]
push eax
call fcn.0040e3ba
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x10]
cmp dword [eax - 8], ebx
je 0x40a81b
lea eax, [ebp + 8]
push esi
push eax
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::Right
mov eax, dword [eax]
mov esi, 0x415a2c
push esi
push eax
call dword [sym.imp.MSVCRT.dll__mbscmp]
mov ebx, eax
pop ecx
neg ebx
pop ecx
sbb bl, bl
lea ecx, [ebp + 8]
inc bl
call fcn.0040e3ae
test bl, bl
je 0x40a647
mov eax, dword [ebp - 0x10]
lea ecx, [ebp - 0x10]
mov eax, dword [eax - 8]
dec eax
push eax
lea eax, [ebp + 8]
push eax
call sub.MFC42.DLL_CString::Left
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 2
call fcn.0040e3b4
lea ecx, [ebp + 8]
mov byte [ebp - 4], 1
call fcn.0040e3ae
push 0x5c
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::ReverseFind
cmp eax, 0xffffffff
jne 0x40a65d
xor ebx, ebx
jmp 0x40a81b
inc eax
lea ecx, [ebp - 0x10]
push eax
lea eax, [ebp + 8]
push eax
call sub.MFC42.DLL_CString::Left
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 3
call fcn.0040e3b4
lea ecx, [ebp + 8]
mov byte [ebp - 4], 1
call fcn.0040e3ae
push str.icad.lsp
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::operator
lea eax, [ebp - 0x10]
lea ecx, [ebp - 0x18]
push eax
call fcn.0040e3b4
push str..bak
lea ecx, [ebp - 0x18]
call sub.MFC42.DLL_CString::operator
xor ebx, ebx
push ebx
push dword [ebp - 0x18]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CopyFileA]
lea ecx, [ebp - 0x50]
call sub.MFC42.DLL_CStdioFile::CStdioFile
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 4
call sub.MFC42.DLL_CString::CString_1
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 5
call sub.MFC42.DLL_CStringArray::CStringArray
push ebx
push 0x3000
push dword [ebp - 0x10]
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 6
call sub.MFC42.DLL_CStdioFile::Open
test eax, eax
je 0x40a7f7
lea eax, [ebp - 0x14]
lea ecx, [ebp - 0x50]
push eax
call sub.MFC42.DLL_CStdioFile::ReadString
mov edi, str.i2kstdloader.dll
test eax, eax
je 0x40a740
push edi
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::Find_1
cmp eax, 0xffffffff
jne 0x40a732
push 0xa
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::operator_2
lea eax, [ebp - 0x14]
lea ecx, [ebp - 0x3c]
push eax
push dword [ebp - 0x34]
call sub.MFC42.DLL_CStringArray::SetAtGrow
lea eax, [ebp - 0x14]
lea ecx, [ebp - 0x50]
push eax
call sub.MFC42.DLL_CStdioFile::ReadString
jmp 0x40a707
push str._xload__
lea ecx, [ebp - 0x14]
call fcn.0040e3ba
mov eax, dword [ebp - 0x28]
lea ecx, [ebp - 0x14]
add eax, 0x1e0
push eax
call sub.MFC42.DLL_CString::operator_1
push edi
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::operator
push 0x416788
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::operator
push 0xa
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::operator_2
push 0x416784
push esi
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::Replace
lea eax, [ebp - 0x14]
lea ecx, [ebp - 0x3c]
push eax
push dword [ebp - 0x34]
call sub.MFC42.DLL_CStringArray::SetAtGrow
lea ecx, [ebp - 0x50]
call sub.MFC42.DLL_CStdioFile::Close
push ebx
push 0x1001
push dword [ebp - 0x10]
lea ecx, [ebp - 0x50]
call sub.MFC42.DLL_CStdioFile::Open
test eax, eax
je 0x40a7f7
xor esi, esi
cmp dword [ebp - 0x34], ebx
jle 0x40a7ec
lea eax, [ebp + 8]
push esi
push eax
lea ecx, [ebp - 0x3c]
call fcn.00402a7d
push dword [eax]
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 7
call sub.MFC42.DLL_CStdioFile::WriteString
lea ecx, [ebp + 8]
mov byte [ebp - 4], 6
call fcn.0040e3ae
inc esi
cmp esi, dword [ebp - 0x34]
jl 0x40a7bf
lea ecx, [ebp - 0x50]
call sub.MFC42.DLL_CStdioFile::Close
push 1
pop ebx
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 5
call fcn.0040e372
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 4
call fcn.0040e3ae
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 1
call fcn.0040e5a0
and byte [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.0040e3ae
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.0040e3ae
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, ebx
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4