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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5e0bc0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
mov eax, dword [ebp + 0x1c]
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
push 0
push 0
push 0
push 0
mov esi, ecx
push eax
mov dword [ebp - 0x18], esi
mov byte [ebp - 0x11], 1
mov dword [ebp - 4], 0
call dword [sym.imp.wininet.dll_InternetOpenA]
test eax, eax
mov dword [esi + 4], eax
je 0x579682
cmp eax, 0xffffffff
je 0x579682
mov ecx, dword [ebp + 0x18]
sub ecx, 0
je 0x57956f
dec ecx
je 0x579544
dec ecx
jne 0x57959d
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jne 0x579525
mov ecx, 0x1bb
mov ebx, dword [ebp + 0x14]
mov edi, dword [ebp + 0x10]
push 0
push 0
push 3
push ebx
push edi
push ecx
mov ecx, dword [ebp + 8]
push ecx
push eax
call dword [sym.imp.wininet.dll_InternetConnectA]
mov dword [esi + 8], eax
jmp 0x5795a3
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jne 0x579550
mov ecx, 0x50
mov ebx, dword [ebp + 0x14]
mov edi, dword [ebp + 0x10]
mov edx, dword [ebp + 8]
push 0
push 0
push 3
push ebx
push edi
push ecx
push edx
push eax
call dword [sym.imp.wininet.dll_InternetConnectA]
mov dword [esi + 8], eax
jmp 0x5795a3
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jne 0x57957b
mov ecx, 0x15
mov ebx, dword [ebp + 0x14]
mov edi, dword [ebp + 0x10]
push 0
push 0x8000000
push 1
push ebx
push edi
push ecx
mov ecx, dword [ebp + 8]
push ecx
push eax
call dword [sym.imp.wininet.dll_InternetConnectA]
mov dword [esi + 8], eax
jmp 0x5795a3
mov ebx, dword [ebp + 0x14]
mov edi, dword [ebp + 0x10]
mov eax, dword [esi + 8]
test eax, eax
je 0x57966d
cmp eax, 0xffffffff
je 0x57966d
push 0
call dword [sym.imp.wininet.dll_InternetAttemptConnect]
test eax, eax
je 0x5795d8
push 0x63837c
lea edx, [ebp - 0x1c]
push edx
mov dword [ebp - 0x1c], 0x618aac
call sub.msvcr71.dll__CxxThrowException
mov eax, dword [ebp + 8]
push eax
lea ecx, [esi + 0x10]
call dword [sym.imp.msvcp71.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::operator_char_const__]
mov eax, dword [ebp + 0xc]
test eax, eax
jne 0x57961e
mov eax, dword [ebp + 0x18]
sub eax, 0
je 0x579612
dec eax
je 0x579606
dec eax
jne 0x579624
mov dword [esi + 0x80], 0x1bb
jmp 0x579624
mov dword [esi + 0x80], 0x50
jmp 0x579624
mov dword [esi + 0x80], 0x15
jmp 0x579624
mov dword [esi + 0x80], eax
test edi, edi
mov ecx, dword [ebp + 0x18]
mov dword [esi + 0x84], ecx
je 0x57963b
push edi
lea ecx, [esi + 0x2c]
call dword [sym.imp.msvcp71.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::operator_char_const__]
test ebx, ebx
je 0x579649
push ebx
lea ecx, [esi + 0x48]
call dword [sym.imp.msvcp71.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::operator_char_const__]
mov ecx, esi
call fcn.00578aa0
mov ecx, esi
call fcn.00578a10
mov ecx, dword [ebp - 0xc]
mov al, byte [ebp - 0x11]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0x18
push 0x63837c
lea edx, [ebp - 0x20]
push edx
mov dword [ebp - 0x20], 0x618aac
call sub.msvcr71.dll__CxxThrowException
push 0x63837c
lea eax, [ebp - 0x24]
push eax
mov dword [ebp - 0x24], 0x618a94
call sub.msvcr71.dll__CxxThrowException
mov esi, dword [ebp - 0x18]
mov ecx, dword [esi + 4]
push ecx
mov byte [ebp - 0x11], 0
call dword [sym.imp.wininet.dll_InternetCloseHandle]
mov edx, dword [esi + 8]
push edx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, 0x579657
ret