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

Disassembly:
push 0xffffffffffffffff
push 0x4bec00
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x7ec
push ebx
push ebp
push esi
push edi
xor esi, esi
push 0x4e01dc
lea ecx, [esp + 0x810]
mov dword [esp + 0x808], esi
call sub.MFC42.DLL_CString::TrimLeft
push 0x4e01dc
lea ecx, [esp + 0x810]
call sub.MFC42.DLL_CString::TrimRight
lea eax, [esp + 0x80c]
lea ecx, [esp + 0x14]
push eax
push str.Software8uftpSite_Manager_
push ecx
mov ebp, reloc.WS2_32.dll_accept
call sub.MFC42.DLL_operator
mov eax, dword [eax]
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
lea edx, [esp + 0x1c]
push edx
push eax
push ebp
call edi
test eax, eax
lea ecx, [esp + 0x14]
setne bl
call sub.MFC42.DLL_CString::CString
test bl, bl
je 0x4a07ca
lea eax, [esp + 0x80c]
lea ecx, [esp + 0x14]
push eax
push str.Software8uftpSite_Manager_
push ecx
call sub.MFC42.DLL_operator
mov eax, dword [eax]
lea edx, [esp + 0x1c]
push edx
push eax
push reloc.WS2_32.dll_bind
call edi
test eax, eax
lea ecx, [esp + 0x14]
setne bl
call sub.MFC42.DLL_CString::CString
test bl, bl
jne 0x4a0b96
mov ebp, reloc.WS2_32.dll_bind
mov edi, 0x3e8
mov dword [esp + 0x18], edi
call sub.MFC42.DLL_AfxGetEmptyString
mov eax, dword [eax]
lea ecx, [esp + 0x2c]
push ecx
lea ecx, [esp + 0x28]
mov dword [esp + 0x28], eax
call sub.MFC42.DLL_CString::operator
mov ecx, dword [esp + 0x1c]
lea edx, [esp + 0x18]
lea eax, [esp + 0x2c]
push edx
push eax
push 0
push 0
push 0x4e6998
push ecx
mov byte [esp + 0x81c], 1
mov byte [esp + 0x44], 0
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ebx, dword [sym.imp.MSVCRT.dll__mbscmp]
lea edx, [esp + 0x2c]
push str.Folder
push edx
call ebx
add esp, 8
test eax, eax
je 0x4a09bc
mov eax, dword [esp + 0x80c]
push 0x4e6998
push eax
call ebx
add esp, 8
test eax, eax
je 0x4a09bc
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_2
mov bl, 5
push 0x5c
lea ecx, [esp + 0x810]
mov byte [esp + 0x808], bl
call sub.MFC42.DLL_CString::ReverseFind
cmp eax, 0xffffffff
je 0x4a08b8
push 0x5c
lea ecx, [esp + 0x810]
call sub.MFC42.DLL_CString::ReverseFind
inc eax
lea ecx, [esp + 0x14]
push eax
push ecx
lea ecx, [esp + 0x814]
call sub.MFC42.DLL_CString::Mid
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x808], 6
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x14]
mov byte [esp + 0x804], bl
call sub.MFC42.DLL_CString::CString
jmp 0x4a08c9
lea edx, [esp + 0x80c]
lea ecx, [esp + 0x10]
push edx
call sub.MFC42.DLL_CString::operator_1
push ecx
lea eax, [esp + 0x810]
mov ecx, esp
mov dword [esp + 0x24], esp
push eax
call sub.MFC42.DLL_CString::CString_1
push ebp
call fcn.0049b4f0
mov edi, eax
add esp, 8
test edi, edi
je 0x4a09a3
lea ecx, [esp + 0x10]
push ecx
lea ecx, [edi + 0x28]
call sub.MFC42.DLL_CString::operator_1
mov esi, dword [esp + 0x81c]
mov dword [edi + 0x2c], 0
test esi, esi
je 0x4a09a3
mov edx, dword [esp + 0x818]
push edx
push 0x4e3acc
push ecx
mov ecx, esp
mov dword [esp + 0x2c], esp
push str.Default_Site
call fcn.004ac198
push ecx
lea eax, [esp + 0x81c]
mov ecx, esp
mov dword [esp + 0x38], esp
push eax
mov byte [esp + 0x818], 7
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esp + 0x24]
push ebp
push ecx
mov byte [esp + 0x81c], bl
call fcn.0049a630
add esp, 0x10
push eax
mov byte [esp + 0x810], 8
call fcn.004a0be0
mov edx, dword [esp + 0x814]
push eax
push edi
lea ecx, [esp + 0x1c]
mov eax, dword [edx]
push eax
call fcn.004a0bd0
mov ecx, dword [esp + 0x824]
push eax
push ecx
call esi
add esp, 0x18
lea ecx, [esp + 0x14]
mov byte [esp + 0x804], bl
call sub.MFC42.DLL_CString::CString
mov dword [esp + 0x18], 0x3e8
mov byte [esp + 0x804], 1
lea ecx, [esp + 0x10]
jmp 0x4a0b75
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_2
push 0x5c
lea ecx, [esp + 0x810]
mov byte [esp + 0x808], 2
call sub.MFC42.DLL_CString::ReverseFind
cmp eax, 0xffffffff
je 0x4a0a26
push 0x5c
lea ecx, [esp + 0x810]
call sub.MFC42.DLL_CString::ReverseFind
inc eax
lea edx, [esp + 0x20]
push eax
push edx
lea ecx, [esp + 0x814]
call sub.MFC42.DLL_CString::Mid
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x808], 3
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x20]
mov byte [esp + 0x804], 2
call sub.MFC42.DLL_CString::CString
jmp 0x4a0a37
lea eax, [esp + 0x80c]
lea ecx, [esp + 0x10]
push eax
call sub.MFC42.DLL_CString::operator_1
mov ecx, dword [esp + 0x810]
mov eax, dword [esp + 0x80c]
push 0x4e6998
push eax
mov edx, dword [ecx]
mov dword [esp + 0x1c], edx
call ebx
mov ebx, dword [esp + 0x828]
add esp, 8
test eax, eax
je 0x4a0a7c
test ebx, ebx
je 0x4a0a7c
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x814]
lea ecx, [esp + 0x14]
push ecx
push edx
push eax
call ebx
add esp, 0xc
mov eax, dword [esp + 0x1c]
push 0
push 0
push 0
lea ecx, [esp + 0x24]
push 0
lea edx, [esp + 0x424]
push ecx
push edx
mov dword [esp + 0x30], edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
push 0
push eax
call edi
mov ebp, dword [esp + 0x824]
test eax, eax
jne 0x4a0b4e
mov ecx, dword [esp + 0x81c]
mov edx, dword [esp + 0x818]
mov eax, dword [esp + 0x814]
push ebp
push ebx
push ecx
push edx
lea ecx, [esp + 0x24]
push eax
push ecx
lea edx, [esp + 0x824]
push 0x4e01dc
lea eax, [esp + 0x3c]
push edx
push eax
call sub.MFC42.DLL_operator_3
push ecx
lea edx, [esp + 0x430]
mov ecx, esp
mov dword [esp + 0x44], esp
push edx
push eax
push ecx
mov byte [esp + 0x82c], 4
call sub.MFC42.DLL_operator_3
call fcn.004a0700
add esp, 0x1c
lea ecx, [esp + 0x20]
mov byte [esp + 0x804], 2
call sub.MFC42.DLL_CString::CString
mov edx, dword [esp + 0x1c]
push 0
push 0
push 0
lea eax, [esp + 0x24]
push 0
lea ecx, [esp + 0x424]
inc esi
push eax
push ecx
push esi
push edx
mov dword [esp + 0x38], 0x3e8
call edi
test eax, eax
je 0x4a0ab3
test ebp, ebp
je 0x4a0b69
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x814]
push eax
push ecx
push edx
call ebp
add esp, 0xc
mov byte [esp + 0x804], 1
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x24]
mov byte [esp + 0x804], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x80c]
mov dword [esp + 0x804], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x7fc]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x7f8
ret