Function at 0x40a180
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x429373
mov eax, dword fs:[0]
push eax
sub esp, 0x64
push ebx
push esi
mov eax, dword [0x43bca0]
xor eax, esp
push eax
lea eax, [esp + 0x70]
mov dword fs:[0], eax
mov eax, dword [edi + 0x18]
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
push eax
xor esi, esi
push esi
push 0x42ee38
push str.Proxy
call ebx
mov dword [edi + 0xc], eax
mov eax, dword [edi + 0x18]
push eax
push esi
push str.UseProxy
push str.Proxy
call ebx
lea ecx, [esp + 0x50]
mov dword [edi + 0x10], eax
call dword [sym.imp.MFC80U.DLL_Ordinal_293]
lea ecx, [esp + 0x54]
call dword [sym.imp.MFC80U.DLL_Ordinal_293]
lea ecx, [esp + 0x60]
call dword [sym.imp.MFC80U.DLL_Ordinal_293]
lea ecx, [esp + 0x64]
call dword [sym.imp.MFC80U.DLL_Ordinal_293]
mov dword [esp + 0x58], esi
mov dword [esp + 0x5c], esi
mov dword [esp + 0x68], esi
push 0x42e39c
lea ecx, [esp + 0x54]
mov dword [esp + 0x7c], esi
call dword [sym.imp.MFC80U.DLL_Ordinal_776]
push 0x42e39c
lea ecx, [esp + 0x58]
call dword [sym.imp.MFC80U.DLL_Ordinal_776]
push 0x42e39c
lea ecx, [esp + 0x64]
mov dword [esp + 0x5c], esi
mov dword [esp + 0x60], esi
mov dword [esp + 0x6c], 1
call dword [sym.imp.MFC80U.DLL_Ordinal_776]
lea eax, [esp + 0x50]
lea esi, [edi + 0x1c]
push eax
call fcn.0040a9f0
mov eax, dword [edi + 0x18]
push eax
push 0
push str.count
push str.Proxy
call ebx
mov esi, eax
mov eax, dword [edi + 0x18]
push eax
push 0xffffffffffffffff
push str.default
push str.Proxy
mov dword [esp + 0x28], esi
call ebx
lea ecx, [esp + 0x20]
mov dword [edi + 0x14], eax
call sub.MFC80U.DLL_Ordinal_557
lea ecx, [esp + 0xc]
call dword [sym.imp.MFC80U.DLL_Ordinal_293]
lea ecx, [esp + 0x10]
call dword [sym.imp.MFC80U.DLL_Ordinal_293]
xor ebx, ebx
test esi, esi
mov byte [esp + 0x78], 3
jbe 0x40a49c
push ebx
lea ecx, [esp + 0x14]
push str.Proxy_d
push ecx
call dword [sym.imp.MFC80U.DLL_Ordinal_2311]
mov eax, dword [edi + 0x18]
mov esi, dword [esp + 0x1c]
add esp, 0xc
push eax
push 0x400
push 0x400
lea ecx, [esp + 0x18]
call dword [sym.imp.MFC80U.DLL_Ordinal_2460]
push eax
push 0x42e39c
push esi
push str.Proxy
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push 0xffffffffffffffff
lea ecx, [esp + 0x10]
call dword [sym.imp.MFC80U.DLL_Ordinal_5398]
push 0x42ee9c
lea ecx, [esp + 0x18]
call dword [sym.imp.MFC80U.DLL_Ordinal_283]
lea edx, [esp + 0x14]
push edx
push ecx
lea eax, [esp + 0x14]
mov ecx, esp
mov dword [esp + 0x24], esp
push eax
mov byte [esp + 0x84], 4
lea esi, [esp + 0x2c]
call dword [sym.imp.MFC80U.DLL_Ordinal_280]
mov ecx, esi
call fcn.0040b380
add esp, 8
lea ecx, [esp + 0x14]
mov esi, eax
mov byte [esp + 0x78], 3
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
lea ecx, [esi - 1]
cmp ecx, 6
ja 0x40a48f
lea ecx, [esp + 0x34]
call dword [sym.imp.MFC80U.DLL_Ordinal_293]
lea ecx, [esp + 0x38]
call dword [sym.imp.MFC80U.DLL_Ordinal_293]
lea ecx, [esp + 0x44]
call dword [sym.imp.MFC80U.DLL_Ordinal_293]
lea ecx, [esp + 0x48]
call dword [sym.imp.MFC80U.DLL_Ordinal_293]
xor eax, eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x4c], eax
mov byte [esp + 0x78], 5
cmp dword [esp + 0x28], eax
jle 0x40a4f8
mov edx, dword [esp + 0x24]
push edx
lea ecx, [esp + 0x38]
call dword [sym.imp.MFC80U.DLL_Ordinal_774]
cmp dword [esp + 0x28], 1
jle 0x40a4f8
mov eax, dword [esp + 0x24]
add eax, 4
push eax
lea ecx, [esp + 0x3c]
call dword [sym.imp.MFC80U.DLL_Ordinal_774]
cmp dword [esp + 0x28], 2
jle 0x40a4f8
mov eax, dword [esp + 0x24]
mov eax, dword [eax + 8]
push eax
call dword [sym.imp.MSVCR80.dll__wtoi]
add esp, 4
cmp dword [esp + 0x28], 3
mov dword [esp + 0x3c], eax
jle 0x40a4f8
mov ecx, dword [esp + 0x24]
mov eax, dword [ecx + 0xc]
push eax
call dword [sym.imp.MSVCR80.dll__wtoi]
add esp, 4
cmp dword [esp + 0x28], 5
mov dword [esp + 0x40], eax
mov dword [esp + 0x4c], 0
jle 0x40a4f8
mov eax, dword [esp + 0x24]
add eax, 0x14
push eax
lea ecx, [esp + 0x48]
call dword [sym.imp.MFC80U.DLL_Ordinal_774]
cmp esi, 6
jle 0x40a455
cmp dword [esp + 0x28], 6
jle 0x40a4f8
mov eax, dword [esp + 0x24]
add eax, 0x18
push eax
lea ecx, [esp + 0x4c]
call dword [sym.imp.MFC80U.DLL_Ordinal_774]
lea edx, [esp + 0x34]
push edx
lea esi, [edi + 0x1c]
call fcn.0040a9f0
lea ecx, [esp + 0x48]
mov byte [esp + 0x78], 3
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
lea ecx, [esp + 0x44]
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
lea ecx, [esp + 0x38]
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
lea ecx, [esp + 0x34]
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
add ebx, 1
cmp ebx, dword [esp + 0x18]
jb 0x40a2b6
lea ecx, [esp + 0x10]
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
lea ecx, [esp + 0xc]
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
lea ecx, [esp + 0x20]
mov byte [esp + 0x78], 0
call sub.MFC80U.DLL_Ordinal_745
lea ecx, [esp + 0x64]
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
lea ecx, [esp + 0x60]
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
lea ecx, [esp + 0x54]
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
lea ecx, [esp + 0x50]
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
jmp 0x425ad4
jmp dword [sym.imp.MFC80U.DLL_Ordinal_1176]