Function at 0x403ef0
Capabilities:
Connect to http server

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x40c19c
push eax
mov dword fs:[0], esp
sub esp, 0x13c
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 0x94], ebx
je 0x40411b
cmp dword [esi + 0x98], ebx
jne 0x40411b
lea ecx, [esp + 0x14]
call sub.MFC42u.DLL_CString::CString_3
lea ecx, [esp + 0x10]
mov dword [esp + 0x14c], ebx
call sub.MFC42u.DLL_CString::CString_3
lea ecx, [esp + 8]
mov byte [esp + 0x14c], 1
call sub.MFC42u.DLL_CString::CString_3
lea ecx, [esp + 0xc]
mov byte [esp + 0x14c], 2
call sub.MFC42u.DLL_CString::CString_3
mov eax, dword [esi + 0xcc]
lea ecx, [esp + 0x10]
push 0x20000000
lea edx, [esp + 0x18]
push ecx
push edx
lea ecx, [esp + 0x24]
lea edx, [esp + 0x18]
push ecx
push edx
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x40]
push ecx
push edx
push eax
mov byte [esp + 0x16c], 3
call sub.MFC42u.DLL_AfxParseURLEx
test eax, eax
je 0x4040d5
cmp dword [esp + 0x2c], 3
jne 0x4040d5
lea eax, [esp + 0xc]
lea ecx, [esi + 0x5c]
push eax
call sub.MFC42u.DLL_CString::operator_2
lea ecx, [esp + 8]
push ecx
lea ecx, [esi + 0x60]
call sub.MFC42u.DLL_CString::operator_2
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
push esi
push ebx
mov eax, dword [ecx - 8]
push 3
neg eax
sbb eax, eax
and eax, ecx
mov ecx, dword [edx - 8]
neg ecx
sbb ecx, ecx
push eax
mov eax, dword [esp + 0x18]
and ecx, edx
mov edx, dword [esp + 0x28]
push ecx
mov ecx, dword [esi + 0x94]
push edx
push eax
push ecx
call dword [sym.imp.WININET.dll_InternetConnectW]
cmp eax, ebx
mov dword [esi + 0x98], eax
jne 0x4040b4
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x404021
push eax
push ebx
call sub.MFC42u.DLL_AfxThrowInternetException
lea edx, [esp + 0x24]
push 1
push edx
mov ecx, esi
call fcn.00406130
test eax, eax
je 0x404095
lea ecx, [esp + 0xc]
mov byte [esp + 0x14c], 2
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 8]
mov byte [esp + 0x14c], 1
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x10]
mov byte [esp + 0x14c], bl
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x14]
mov dword [esp + 0x14c], 0xffffffff
call sub.MFC42u.DLL_CString::CString
pop esi
mov eax, 6
pop ebx
mov ecx, dword [esp + 0x13c]
mov dword fs:[0], ecx
add esp, 0x148
ret
mov eax, dword [esp + 0x24]
mov ecx, dword [esi + 0x130]
cmp eax, ecx
jne 0x4040c9
mov eax, dword [esi + 0x128]
cmp eax, ebx
je 0x4040b4
push eax
push ebx
call sub.MFC42u.DLL_AfxThrowInternetException
mov ecx, dword [esi + 0x130]
push ecx
call dword [sym.imp.KERNEL32.dll_ResetEvent]
cmp dword [esi + 0x98], ebx
jne 0x404137
push 0x415c84
mov ecx, esi
call fcn.004024f0
lea ecx, [esp + 0xc]
mov byte [esp + 0x14c], 2
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 8]
mov byte [esp + 0x14c], 1
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x10]
mov byte [esp + 0x14c], bl
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x14]
mov dword [esp + 0x14c], 0xffffffff
call sub.MFC42u.DLL_CString::CString
pop esi
mov eax, 3
pop ebx
mov ecx, dword [esp + 0x13c]
mov dword fs:[0], ecx
add esp, 0x148
ret
lea edx, [esp + 0x30]
push edi
push edx
mov dword [esp + 0x38], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov eax, dword [esp + 0x44]
cmp eax, 1
je 0x404158
cmp eax, ebx
jne 0x4041b1
mov ecx, dword [esi + 0x98]
mov edi, dword [sym.imp.WININET.dll_InternetSetOptionW]
mov eax, 0x7530
push 4
mov dword [esp + 0x30], eax
mov dword [esp + 0x28], eax
lea eax, [esp + 0x24]
mov dword [esp + 0x24], 0xea60
push eax
push 6
push ecx
call edi
test eax, eax
je 0x4041b1
mov eax, dword [esi + 0x98]
lea edx, [esp + 0x24]
push 4
push edx
push 5
push eax
call edi
test eax, eax
je 0x4041b1
mov edx, dword [esi + 0x98]
lea ecx, [esp + 0x2c]
push 4
push ecx
push 2
push edx
call edi
lea ecx, [esp + 0x10]
mov byte [esp + 0x150], 2
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0xc]
mov byte [esp + 0x150], 1
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x14]
mov byte [esp + 0x150], bl
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x18]
mov dword [esp + 0x150], 0xffffffff
call sub.MFC42u.DLL_CString::CString
mov ecx, dword [esp + 0x148]
pop edi
pop esi
mov eax, 2
pop ebx
mov dword fs:[0], ecx
add esp, 0x148
ret