Function at 0x40e8e0
Capabilities:
Get proxy
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x42a703
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
mov eax, dword [0x43bca0]
xor eax, esp
mov dword [esp + 0x54], eax
push ebx
push esi
mov eax, dword [0x43bca0]
xor eax, esp
push eax
lea eax, [esp + 0x68]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [esp + 0x1c], ebx
push 0x104
mov dword [esp + 0x24], 1
mov dword [esp + 0x1c], 0x104
call sub.MFC80U.DLL_Ordinal_265
add esp, 4
push 0x104
mov esi, eax
push ebx
push esi
call sub.MSVCR80.dll_memset
add esp, 0xc
lea eax, [esp + 0x14]
push eax
push str.SoftwareMicrosoftWindowsCurrentVersionInternet_Settings
push reloc.WS2_32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x40e97f
lea ecx, [esp + 0x18]
push ecx
push esi
lea edx, [esp + 0x28]
push edx
push eax
mov eax, dword [esp + 0x24]
push str.AutoConfigURL
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
lea edx, [eax + 1]
nop
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x40e990
sub eax, edx
je 0x40e9c9
push esi
lea ecx, [esp + 0x2c]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
mov dword [esp + 0x70], 0
mov ebx, 1
push edi
mov ecx, eax
mov dword [esp + 0x20], ebx
call fcn.0040f120
test eax, eax
mov byte [esp + 0x13], bl
je 0x40e9ce
mov byte [esp + 0x13], 0
test bl, 1
mov dword [esp + 0x70], 0xffffffff
je 0x40e9e5
lea ecx, [esp + 0x28]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
cmp byte [esp + 0x13], 0
je 0x40e9f9
mov dword [edi], 5
mov al, 1
jmp 0x40eb47
mov ebx, 4
push 0x104
mov byte [esp + 0x17], 0
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], 0
call sub.MFC80U.DLL_Ordinal_265
add esp, 4
push 0x104
mov esi, eax
push 0
push esi
call sub.MSVCR80.dll_memset
add esp, 0xc
lea edx, [esp + 0x14]
push edx
push str.SoftwareMicrosoftWindowsCurrentVersionInternet_Settings
push reloc.WS2_32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x40eb20
lea eax, [esp + 0x18]
push eax
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x28]
push edx
push 0
push str.ProxyEnable
mov dword [esp + 0x2c], ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push eax
call ebx
cmp dword [esp + 0x24], 1
jne 0x40eb20
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x18]
push ecx
push esi
lea edx, [esp + 0x28]
push edx
push 0
push str.ProxyServer
push eax
mov dword [esp + 0x30], 0x104
call ebx
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x40eaa3
sub eax, edx
je 0x40eb20
push esi
lea ecx, [esp + 0x48]
mov byte [esp + 0x17], 1
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
lea ecx, [esp + 0x44]
mov dword [esp + 0x70], 1
call fcn.0040eb70
lea esi, [edi + 0x24]
push esi
lea ebx, [edi + 8]
push ebx
lea ecx, [esp + 0x4c]
push ecx
mov dword [esp + 0x28], eax
mov dword [edi + 4], eax
call fcn.0040fc10
movzx edx, word [esi]
push edx
mov ecx, ebx
call fcn.0040fea0
test al, al
jne 0x40eb08
mov dword [edi], 0
mov dword [edi + 4], 0
jmp 0x40eb0e
mov eax, dword [esp + 0x1c]
mov dword [edi], eax
lea ecx, [esp + 0x44]
mov dword [esp + 0x70], 0xffffffff
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp byte [esp + 0x13], 0
je 0x40e9f2
cmp dword [edi], 0
jg 0x40e9f2
mov dword [edi], 0
xor al, al
mov ecx, dword [esp + 0x68]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [esp + 0x54]
xor ecx, esp
call fcn.00426052
mov esp, ebp
pop ebp
ret