Function at 0x404fc0
Capabilities:
Check internet connectivity via wininet
Connect to http server
Create http request

Disassembly:
push 0xffffffffffffffff
push 0x409114
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push ebx
push ebp
push esi
push edi
xor ebp, ebp
mov esi, ecx
push 0x40a7ae
lea ecx, [esp + 0x14]
mov dword [esp + 0x20], ebp
mov dword [esp + 0x24], ebp
mov dword [esp + 0x1c], ebp
call dword [fcn.0040a3a0]
lea ecx, [esp + 0x24]
mov dword [esp + 0x34], ebp
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_3]
lea eax, [esp + 0x14]
push eax
lea ecx, [esi + 0x10]
push ecx
mov ecx, dword [esp + 0x44]
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x24]
push eax
mov ebx, 1
push ecx
mov byte [esp + 0x48], bl
mov dword [esp + 0x28], ebp
call sub.MFC71.DLL_AfxParseURL
test eax, eax
je 0x40515e
push ebp
lea edx, [esp + 0x24]
push edx
call dword [sym.imp.WININET.dll_InternetGetConnectedState]
cmp eax, ebp
je 0x40515e
cmp dword [esp + 0x18], 3
jne 0x40515e
push ebp
push ebp
push ebp
push ebp
push 0x40a974
call dword [sym.imp.WININET.dll_InternetOpenA]
cmp eax, ebp
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 8], eax
jne 0x4050b7
push 0x94
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x5c], esp
push 0x40a954
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x64], esp
push 0x40a940
mov byte [esp + 0x74], 2
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
mov byte [esp + 0x70], bl
call edi
push eax
call fcn.00404b40
add esp, 0x40
cmp dword [esi + 8], ebp
je 0x40515e
movzx eax, word [esp + 0x14]
mov ecx, dword [esp + 0x10]
push eax
push ecx
push 0x40a908
call fcn.00404a10
mov edx, dword [esp + 0x20]
add esp, 0xc
push ebp
push ebp
push 3
push 0x40a7ae
push 0x40a7ae
push edx
lea ecx, [esp + 0x28]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
mov eax, dword [esi + 8]
push eax
call dword [sym.imp.WININET.dll_InternetConnectA]
cmp eax, ebp
mov dword [esi + 0xc], eax
jne 0x405148
push 0x98
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x5c], esp
push 0x40a954
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x64], esp
push 0x40a940
mov byte [esp + 0x74], 3
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
mov byte [esp + 0x70], bl
call edi
push eax
call fcn.00404b40
add esp, 0x40
cmp dword [esi + 0xc], ebp
je 0x40515e
push 0x40a8d8
call fcn.00404a10
add esp, 4
mov dword [esp + 0x1c], ebx
lea ecx, [esp + 0x24]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [esp + 0x10]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x28
ret 8