Function at 0x401c60
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42d87a
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
sub esp, 0x48
push ebx
push esi
push edi
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x10], esp
push str.SOFTWAREMicrosoftWindowsCurrentVersionSetup
call sub.MFC42.DLL_CString::CString_1
mov ecx, dword [ebp - 0x18]
lea eax, [ebp - 0x24]
push eax
push 0x20019
push 0
push ecx
push 0x80000002
mov dword [ebp - 4], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x401cce
push 0xffffffffffffffff
push 0
push 0x6c
call sub.MFC42.DLL_AfxMessageBox
mov edx, dword [ebp - 0x24]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x402177
push 0
lea eax, [ebp - 0x40]
push 0
lea ecx, [ebp - 0x54]
push eax
mov eax, dword [ebp - 0x24]
lea edx, [ebp - 0x58]
push ecx
push edx
push 0
push 0
push 0
push 0
push 0
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
je 0x401d12
push 0xffffffffffffffff
push 0
push 0x6c
call sub.MFC42.DLL_AfxMessageBox
mov ecx, dword [ebp - 0x24]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x402177
mov edx, dword [ebp - 0x40]
inc edx
push edx
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov edx, dword [ebp - 0x24]
add esp, 4
lea ecx, [ebp - 0x48]
mov esi, eax
mov eax, dword [ebp - 0x40]
push ecx
push esi
push 0
push 0
inc eax
push str.BootDir
push edx
mov dword [ebp - 0x48], eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x401d86
push 0xffffffffffffffff
push 0
push 0x6c
call sub.MFC42.DLL_AfxMessageBox
mov eax, dword [ebp - 0x24]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
mov byte [ebp - 4], 1
je 0x402177
push esi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
jmp 0x402177
mov ecx, dword [ebp - 0x24]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
lea ecx, [ebp - 0x20]
call sub.MFC42.DLL_CString::CString_1
test esi, esi
mov byte [ebp - 4], 4
je 0x401daa
push esi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, dword [ebp - 0x20]
mov dword [ebp - 4], 3
mov edx, dword [eax - 8]
cmp byte [edx + eax - 1], 0x5c
je 0x401dc8
push 0x5c
lea ecx, [ebp - 0x20]
call fcn.004276e4
lea eax, [ebp - 0x20]
push str.AUTOEXEC.BAT
lea ecx, [ebp - 0x2c]
push eax
push ecx
call sub.MFC42.DLL_operator_1
push ecx
lea edx, [ebp - 0x2c]
mov ecx, esp
mov dword [ebp - 0x50], esp
push edx
mov byte [ebp - 4], 6
call sub.MFC42.DLL_CString::CString_2
mov byte [ebp - 4], 6
call fcn.004032f0
mov ecx, eax
call fcn.00402250
push 0x14
mov byte [ebp - 4], 8
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov ecx, eax
add esp, 4
mov dword [ebp - 0x50], ecx
test ecx, ecx
mov byte [ebp - 4], 9
je 0x401e2a
mov eax, dword [ebp - 0x2c]
push 0x4000
push eax
call sub.MFC42.DLL_CStdioFile::CStdioFile
mov edi, eax
jmp 0x401e2c
xor edi, edi
push 0x437fa8
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x44], edi
mov dword [ebp - 4], 6
call sub.MFC42.DLL_CString::CString_1
push 0x437fa8
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0xb
call sub.MFC42.DLL_CString::CString_1
push 0x437fa8
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 0xc
call sub.MFC42.DLL_CString::CString_1
push 0x437fa8
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0xd
call sub.MFC42.DLL_CString::CString_1
push str._PATH_
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 0xe
call sub.MFC42.DLL_CString::CString_1
lea ecx, [ebp - 0x3c]
lea edx, [ebp - 0x14]
push ecx
lea eax, [ebp - 0x1c]
push edx
push eax
push edi
mov byte [ebp - 4], 0xf
mov dword [ebp - 0x3c], 0
call fcn.004022a0
add esp, 0x10
test eax, eax
je 0x401fc9
mov bl, 0x10
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ecx - 8]
test eax, eax
je 0x401fac
mov edx, dword [ebp - 0x14]
mov eax, dword [edx - 8]
test eax, eax
je 0x401fac
lea ecx, [ebp - 0x30]
call fcn.00427672
mov eax, dword [ebp - 0x14]
mov byte [ebp - 4], bl
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x401f88
mov ecx, dword [ebp - 0x34]
push ecx
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::Find
mov esi, eax
cmp esi, 0xffffffff
je 0x401f6f
lea edx, [ebp - 0x4c]
push esi
push edx
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::Left
push eax
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 0x11
call fcn.00427684
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], bl
call sub.MFC42.DLL_CString::CString
lea eax, [ebp - 0x28]
lea ecx, [ebp - 0x30]
push eax
call sub.MFC42.DLL_CString::operator
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x34]
mov edx, dword [ecx - 8]
mov ecx, dword [eax - 8]
sub edx, ecx
lea ecx, [ebp - 0x50]
sub edx, esi
push edx
push ecx
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::Right
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0x12
call fcn.00427684
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], bl
call sub.MFC42.DLL_CString::CString
mov edx, dword [ebp - 0x14]
mov eax, dword [edx - 8]
test eax, eax
jne 0x401ee6
jmp 0x401f88
lea eax, [ebp - 0x14]
lea ecx, [ebp - 0x30]
push eax
call sub.MFC42.DLL_CString::operator
push 0x437fa8
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::operator_1
lea ecx, [ebp - 0x30]
push ecx
lea ecx, [ebp - 0x28]
call fcn.00427684
lea edx, [ebp - 0x1c]
lea ecx, [ebp - 0x38]
push edx
call fcn.00427684
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 0xf
call sub.MFC42.DLL_CString::CString
lea eax, [ebp - 0x3c]
lea ecx, [ebp - 0x14]
push eax
lea edx, [ebp - 0x1c]
push ecx
push edx
push edi
call fcn.004022a0
add esp, 0x10
test eax, eax
jne 0x401eb1
push ecx
lea eax, [ebp - 0x28]
mov ecx, esp
mov dword [ebp - 0x50], esp
push eax
call sub.MFC42.DLL_CString::CString_2
mov byte [ebp - 4], 0xf
call fcn.004032f0
mov ecx, eax
call fcn.004021b0
push ecx
lea edx, [ebp - 0x38]
mov ecx, esp
mov dword [ebp - 0x50], esp
push edx
call sub.MFC42.DLL_CString::CString_2
mov byte [ebp - 4], 0xf
call fcn.004032f0
mov ecx, eax
call fcn.00402200
mov esi, dword [edi]
mov ecx, edi
mov byte [ebp - 4], 0x15
call dword [esi + 0x54]
mov dword [ebp - 4], 0xf
mov byte [ebp - 4], 0x19
test edi, edi
je 0x402038
push 1
mov ecx, edi
call dword [esi + 4]
jmp 0x402038
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 4], 0xf
test eax, eax
mov byte [ebp - 4], 0xe
lea ecx, [ebp - 0x34]
je 0x40210f
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0xd
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 0xc
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0xb
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 6
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 3
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0xd
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 0xc
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0xb
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 6
call sub.MFC42.DLL_CString::CString
jmp 0x40215f
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 3
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
xor eax, eax
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret