Function at 0x409540
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x4b1767
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x570
push ebx
push esi
push str.Main_Directory
lea ecx, [esp + 0x24]
mov dword [esp + 0x28], 0
call sub.MFC42.DLL_CString::CString_4
mov ebx, 1
lea ecx, [esp + 8]
mov dword [esp + 0x580], ebx
call sub.MFC42.DLL_CString::CString_3
lea ecx, [esp + 0x1c]
mov byte [esp + 0x580], 2
call sub.MFC42.DLL_CString::CString_3
mov eax, dword [0x58f5a4]
lea ecx, [esp + 0x1c]
push eax
push str.SoftwareVan_Dyke_Technologies_sInstall
push ecx
mov byte [esp + 0x58c], 3
call sub.MFC42.DLL_CString::Format_1
add esp, 0xc
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::CString_3
mov edx, dword [0x58f5a4]
lea eax, [esp + 0x18]
push edx
push str.SoftwareVanDyke_sInstall
push eax
mov byte [esp + 0x58c], 4
call sub.MFC42.DLL_CString::Format_1
mov edx, dword [esp + 0x24]
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
add esp, 0xc
lea ecx, [esp + 0x14]
mov dword [esp + 0x14], 0
push ecx
push ebx
push 0
push edx
push reloc.WS2_32.dll_bind
call esi
test eax, eax
je 0x40966d
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x14]
push eax
push ebx
push 0
push ecx
push getpeername
call esi
test eax, eax
je 0x40966d
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x14]
push edx
push ebx
push 0
push eax
push reloc.WS2_32.dll_bind
call esi
test eax, eax
je 0x40966d
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0x14]
push ecx
push ebx
push 0
push edx
push getpeername
call esi
test eax, eax
je 0x40966d
mov esi, dword [esp + 0x588]
lea eax, [esp + 8]
push eax
mov ecx, esi
call fcn.004afb58
mov dword [esp + 0x24], ebx
jmp 0x4097f8
lea ecx, [esp + 0x34]
lea edx, [esp + 0x178]
push ecx
mov ecx, dword [esp + 0x24]
lea eax, [esp + 0x34]
push edx
mov edx, dword [esp + 0x1c]
push eax
push 0
push ecx
push edx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], 0x400
mov byte [esp + 0x190], 0
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, byte [esp + 0x178]
test al, al
jne 0x4096d7
mov esi, dword [esp + 0x588]
lea ecx, [esp + 8]
push ecx
mov ecx, esi
call fcn.004afb58
mov dword [esp + 0x24], ebx
jmp 0x4097f8
call sub.MFC42.DLL_AfxGetEmptyString
mov edx, dword [eax]
lea eax, [esp + 0x178]
push eax
lea ecx, [esp + 0x10]
mov dword [esp + 0x10], edx
call sub.MFC42.DLL_CString::operator
push ebx
push 0x5c
lea ecx, [esp + 0x34]
mov byte [esp + 0x588], 5
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esp + 0x28]
push ebx
push ecx
lea ecx, [esp + 0x14]
mov byte [esp + 0x588], 6
call sub.MFC42.DLL_CString::Right
mov edx, dword [esp + 0x2c]
mov eax, dword [eax]
push edx
push eax
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
lea ecx, [esp + 0x28]
test eax, eax
setne byte [esp + 0x13]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x2c]
mov byte [esp + 0x580], 5
call sub.MFC42.DLL_CString::CString
mov al, byte [esp + 0x13]
test al, al
je 0x409766
push str.__POIUYTREWQ_
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::operator_2
push str..exe
lea eax, [esp + 0x2c]
push 0x58f5a4
push eax
call sub.MFC42.DLL_operator_3
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x584], 7
call fcn.004afa0e
lea ecx, [esp + 0x28]
mov byte [esp + 0x580], 5
call sub.MFC42.DLL_CString::CString
mov edx, dword [esp + 0xc]
lea ecx, [esp + 0x38]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x4097c9
test byte [esp + 0x38], 0x10
jne 0x4097c9
lea eax, [esp + 0xc]
lea ecx, [esp + 8]
push eax
call sub.MFC42.DLL_CString::operator_1
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov esi, dword [esp + 0x588]
lea ecx, [esp + 8]
push ecx
mov ecx, esi
call fcn.004afb58
lea ecx, [esp + 0xc]
mov dword [esp + 0x24], ebx
mov byte [esp + 0x580], 4
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
mov byte [esp + 0x580], 3
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x1c]
mov byte [esp + 0x580], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 8]
mov byte [esp + 0x580], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x20]
mov byte [esp + 0x580], 0
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x578]
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x57c
ret 4