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

Disassembly:
mov eax, 0x40fb78
call sub.MSVCRT.dll__EH_prolog
sub esp, 0x150
mov al, byte [0x4168a0]
push ebx
push esi
push edi
push 1
mov dword [ebp - 0x50], ecx
pop esi
mov byte [ebp - 0x15c], al
push 0x40
xor eax, eax
pop ecx
lea edi, [ebp - 0x15b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
xor ebx, ebx
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x58], esi
mov dword [ebp - 0x54], 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
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 1
call sub.MFC42.DLL_CString::CString_1
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x20]
push ecx
mov byte [ebp - 4], 2
mov eax, dword [eax]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
cmp eax, ebx
jne 0x40b42a
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x15c]
push eax
lea eax, [ebp - 0x58]
push eax
push ebx
push str.Location
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, ebx
jne 0x40b42a
lea eax, [ebp - 0x15c]
lea ecx, [ebp - 0x14]
push eax
call fcn.0040e3ba
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x14]
cmp dword [eax - 8], ebx
jne 0x40b442
xor esi, esi
jmp 0x40b746
lea eax, [ebp - 0x24]
push esi
push eax
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::Right
mov eax, dword [eax]
mov esi, 0x415a2c
push esi
push eax
call dword [sym.imp.MSVCRT.dll__mbscmp]
pop ecx
pop ecx
test eax, eax
lea ecx, [ebp - 0x24]
setne byte [ebp + 0xb]
call fcn.0040e3ae
cmp byte [ebp + 0xb], bl
je 0x40b49a
lea eax, [ebp - 0x14]
push esi
push eax
lea eax, [ebp + 8]
push eax
call sub.MFC42.DLL_operator
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 3
call fcn.0040e3b4
lea ecx, [ebp + 8]
mov byte [ebp - 4], 2
call fcn.0040e3ae
lea eax, [ebp - 0x14]
lea ecx, [ebp - 0x18]
push eax
call fcn.0040e3b4
push str.Sys15_acad.rx
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::operator
push str.Sys16_acad.rx
lea ecx, [ebp - 0x18]
call sub.MFC42.DLL_CString::operator
lea eax, [ebp - 0x14]
lea ecx, [ebp - 0x1c]
push eax
call fcn.0040e3b4
push str..bak
lea ecx, [ebp - 0x1c]
call sub.MFC42.DLL_CString::operator
mov edi, dword [sym.imp.KERNEL32.dll_CopyFileA]
push ebx
push dword [ebp - 0x1c]
push dword [ebp - 0x14]
call edi
lea ecx, [ebp - 0x4c]
call sub.MFC42.DLL_CStdioFile::CStdioFile
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 4
call sub.MFC42.DLL_CString::CString_1
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 5
call sub.MFC42.DLL_CStringArray::CStringArray
mov esi, 0x3000
push ebx
push esi
lea ecx, [ebp - 0x4c]
push dword [ebp - 0x14]
mov byte [ebp - 4], 6
call sub.MFC42.DLL_CStdioFile::Open
test eax, eax
je 0x40b5fb
lea eax, [ebp - 0x10]
lea ecx, [ebp - 0x4c]
push eax
call sub.MFC42.DLL_CStdioFile::ReadString
test eax, eax
je 0x40b563
push str.a15loader.arx
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::Find_1
cmp eax, 0xffffffff
jne 0x40b526
push 0xa
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::operator_2
lea eax, [ebp - 0x10]
lea ecx, [ebp - 0x38]
push eax
push dword [ebp - 0x30]
call sub.MFC42.DLL_CStringArray::SetAtGrow
jmp 0x40b526
mov eax, dword [ebp - 0x50]
lea ecx, [ebp - 0x10]
add eax, 0x1e0
push eax
call fcn.0040e3b4
push str.a15loader.arx
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::operator
push 0xa
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::operator_2
lea eax, [ebp - 0x10]
lea ecx, [ebp - 0x38]
push eax
push dword [ebp - 0x30]
call sub.MFC42.DLL_CStringArray::SetAtGrow
lea ecx, [ebp - 0x4c]
call sub.MFC42.DLL_CStdioFile::Close
push ebx
push 0x1001
push dword [ebp - 0x14]
lea ecx, [ebp - 0x4c]
call sub.MFC42.DLL_CStdioFile::Open
test eax, eax
je 0x40b5fb
cmp dword [ebp - 0x30], ebx
mov dword [ebp + 8], ebx
jle 0x40b5f3
push dword [ebp + 8]
lea eax, [ebp - 0x24]
lea ecx, [ebp - 0x38]
push eax
call fcn.00402a7d
push dword [eax]
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 7
call sub.MFC42.DLL_CStdioFile::WriteString
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 6
call fcn.0040e3ae
inc dword [ebp + 8]
mov eax, dword [ebp + 8]
cmp eax, dword [ebp - 0x30]
jl 0x40b5bf
lea ecx, [ebp - 0x4c]
call sub.MFC42.DLL_CStdioFile::Close
lea eax, [ebp - 0x18]
lea ecx, [ebp - 0x1c]
push eax
call fcn.0040e3b4
push str..bak
lea ecx, [ebp - 0x1c]
call sub.MFC42.DLL_CString::operator
push ebx
push dword [ebp - 0x1c]
push dword [ebp - 0x18]
call edi
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::Empty
push 0xffffffffffffffff
push ebx
lea ecx, [ebp - 0x38]
call sub.MFC42.DLL_CStringArray::SetSize
push ebx
push esi
push dword [ebp - 0x18]
lea ecx, [ebp - 0x4c]
call sub.MFC42.DLL_CStdioFile::Open
test eax, eax
je 0x40b720
lea eax, [ebp - 0x10]
lea ecx, [ebp - 0x4c]
push eax
call sub.MFC42.DLL_CStdioFile::ReadString
mov esi, str.a16loader.arx
test eax, eax
je 0x40b68f
push esi
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::Find_1
cmp eax, 0xffffffff
jne 0x40b681
push 0xa
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::operator_2
lea eax, [ebp - 0x10]
lea ecx, [ebp - 0x38]
push eax
push dword [ebp - 0x30]
call sub.MFC42.DLL_CStringArray::SetAtGrow
lea eax, [ebp - 0x10]
lea ecx, [ebp - 0x4c]
push eax
call sub.MFC42.DLL_CStdioFile::ReadString
jmp 0x40b656
mov eax, dword [ebp - 0x50]
lea ecx, [ebp - 0x10]
add eax, 0x1e4
push eax
call fcn.0040e3b4
push esi
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::operator
push 0xa
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::operator_2
lea eax, [ebp - 0x10]
lea ecx, [ebp - 0x38]
push eax
push dword [ebp - 0x30]
call sub.MFC42.DLL_CStringArray::SetAtGrow
lea ecx, [ebp - 0x4c]
call sub.MFC42.DLL_CStdioFile::Close
push ebx
push 0x1001
push dword [ebp - 0x18]
lea ecx, [ebp - 0x4c]
call sub.MFC42.DLL_CStdioFile::Open
test eax, eax
je 0x40b720
xor esi, esi
cmp dword [ebp - 0x30], ebx
jle 0x40b713
lea eax, [ebp + 8]
push esi
push eax
lea ecx, [ebp - 0x38]
call fcn.00402a7d
push dword [eax]
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 8
call sub.MFC42.DLL_CStdioFile::WriteString
lea ecx, [ebp + 8]
mov byte [ebp - 4], 6
call fcn.0040e3ae
inc esi
cmp esi, dword [ebp - 0x30]
jl 0x40b6e6
lea ecx, [ebp - 0x4c]
call sub.MFC42.DLL_CStdioFile::Close
push 1
pop esi
jmp 0x40b722
xor esi, esi
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 5
call fcn.0040e372
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 4
call fcn.0040e3ae
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 2
call fcn.0040e5a0
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 1
call fcn.0040e3ae
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], bl
call fcn.0040e3ae
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.0040e3ae
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4