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

Disassembly:
push 0xffffffffffffffff
push 0x4be1ba
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x7e8
push ebx
push ebp
push esi
push edi
mov eax, dword [esp + 0x808]
mov ebp, dword [sym.imp.MSVCRT.dll__mbscmp]
xor esi, esi
push 0x4e58d8
push eax
mov dword [esp + 0x808], esi
call ebp
add esp, 8
test eax, eax
jne 0x4a16a7
lea ecx, [esp + 0x10]
push ecx
call fcn.00476230
add esp, 4
test eax, eax
je 0x4a16a7
mov eax, dword [esp + 0x10]
push str.Sites
mov dword [eax + 0x1c], esi
mov dword [eax + 0x20], esi
mov dword [eax + 0x24], esi
mov dword [eax + 0x2c], esi
mov ecx, dword [esp + 0x14]
call fcn.004072b0
test al, al
je 0x4a16a2
mov ecx, dword [esp + 0x10]
call fcn.004073b0
mov edx, dword [esp + 0x10]
push edx
call fcn.004a1a20
add esp, 4
mov esi, eax
call fcn.00476270
lea ecx, [esp + 0x808]
mov dword [esp + 0x800], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, esi
jmp 0x4a19ff
call fcn.00476270
lea eax, [esp + 0x808]
lea ecx, [esp + 0x10]
push eax
push str.Software8uftpSite_Manager_
push ecx
mov edi, reloc.WS2_32.dll_accept
call sub.MFC42.DLL_operator
mov eax, dword [eax]
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
lea edx, [esp + 0x18]
push edx
push eax
push edi
call esi
test eax, eax
lea ecx, [esp + 0x10]
setne bl
call sub.MFC42.DLL_CString::CString
test bl, bl
je 0x4a1727
lea eax, [esp + 0x808]
lea ecx, [esp + 0x10]
push eax
push str.Software8uftpSite_Manager_
push ecx
call sub.MFC42.DLL_operator
mov eax, dword [eax]
lea edx, [esp + 0x18]
push edx
push eax
push reloc.WS2_32.dll_bind
call esi
test eax, eax
lea ecx, [esp + 0x10]
setne bl
call sub.MFC42.DLL_CString::CString
test bl, bl
jne 0x4a19e6
mov edi, reloc.WS2_32.dll_bind
mov esi, 0x3e8
xor ebx, ebx
mov dword [esp + 0x14], esi
call sub.MFC42.DLL_AfxGetEmptyString
mov eax, dword [eax]
lea ecx, [esp + 0x28]
push ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0x20], eax
call sub.MFC42.DLL_CString::operator
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x14]
lea eax, [esp + 0x28]
push edx
push eax
push ebx
push ebx
push 0x4e58d8
push ecx
mov byte [esp + 0x818], 1
mov byte [esp + 0x40], bl
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea edx, [esp + 0x28]
push str.Folder
push edx
call ebp
add esp, 8
test eax, eax
je 0x4a18e2
mov eax, dword [esp + 0x808]
push 0x4e58d8
push eax
call ebp
add esp, 8
test eax, eax
je 0x4a18e2
push ecx
lea edx, [esp + 0x80c]
mov ecx, esp
mov dword [esp + 0x24], esp
push edx
call sub.MFC42.DLL_CString::CString_1
push edi
call fcn.0049b140
mov esi, eax
add esp, 8
test esi, esi
je 0x4a18d5
push ecx
mov ecx, esp
mov dword [esp + 0x14], esp
push str.Default_Site
call fcn.004abd48
push ecx
lea eax, [esp + 0x810]
mov ecx, esp
mov dword [esp + 0x2c], esp
push eax
mov byte [esp + 0x80c], 3
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esp + 0x28]
push edi
push ecx
mov byte [esp + 0x810], 1
call fcn.0049a280
mov eax, dword [eax]
push 0x4e2a98
push eax
call ebp
add esp, 0x18
lea ecx, [esp + 0x20]
test eax, eax
sete bl
call sub.MFC42.DLL_CString::CString
test bl, bl
je 0x4a1859
lea ecx, [esp + 0x1c]
mov byte [esp + 0x800], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x808]
mov dword [esp + 0x800], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, esi
jmp 0x4a19ff
mov dword [esp + 0x24], esi
lea ecx, [esi + 0x3c]
mov byte [esp + 0x800], 9
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x28]
mov byte [esp + 0x800], 8
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x14]
mov byte [esp + 0x800], 7
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x10]
mov byte [esp + 0x800], 6
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0xc]
mov byte [esp + 0x800], 5
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 8]
mov byte [esp + 0x800], 4
call sub.MFC42.DLL_CString::CString
mov ecx, esi
mov byte [esp + 0x800], 1
call sub.MFC42.DLL_CString::CString
push esi
call sub.MFC42.DLL_operatordelete
add esp, 4
mov dword [esp + 0x14], 0x3e8
jmp 0x4a19ca
mov ecx, dword [esp + 0x18]
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
push 0
push 0
push 0
lea edx, [esp + 0x20]
push 0
lea eax, [esp + 0x420]
push edx
push eax
push 0
push ecx
mov dword [esp + 0x34], esi
call edi
test eax, eax
jne 0x4a19ca
mov edx, dword [esp + 0x808]
push 0x4e58d8
push edx
call ebp
add esp, 8
test eax, eax
jne 0x4a1948
push ecx
lea eax, [esp + 0x414]
mov ecx, esp
mov dword [esp + 0x28], esp
push eax
call fcn.004abd48
call fcn.004a15f0
add esp, 4
mov esi, eax
jmp 0x4a1998
lea ecx, [esp + 0x808]
push 0x4df1dc
lea edx, [esp + 0x24]
push ecx
push edx
call sub.MFC42.DLL_operator_3
push ecx
lea edx, [esp + 0x414]
mov ecx, esp
mov dword [esp + 0x28], esp
push edx
push eax
push ecx
mov byte [esp + 0x810], 2
call sub.MFC42.DLL_operator_3
call fcn.004a15f0
add esp, 4
lea ecx, [esp + 0x20]
mov esi, eax
mov byte [esp + 0x800], 1
call sub.MFC42.DLL_CString::CString
test esi, esi
jne 0x4a182a
mov edx, dword [esp + 0x18]
push esi
push esi
push esi
lea eax, [esp + 0x20]
push esi
lea ecx, [esp + 0x420]
inc ebx
push eax
push ecx
push ebx
push edx
mov dword [esp + 0x34], 0x3e8
call edi
test eax, eax
je 0x4a1912
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x1c]
mov byte [esp + 0x800], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x808]
mov dword [esp + 0x800], 0xffffffff
call sub.MFC42.DLL_CString::CString
xor eax, eax
mov ecx, dword [esp + 0x7f8]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x7f4
ret