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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5674a0
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
mov ebx, ecx
push 0
push eax
mov dword [ebp - 0x18], ebx
mov byte [ebp - 0x11], 1
mov dword [ebp - 4], 0
call dword [sym.imp.WININET.dll_InternetOpenA]
test eax, eax
mov dword [ebx + 4], eax
je 0x402b5e
cmp eax, 0xffffffff
je 0x402b5e
mov ecx, dword [ebp + 0x18]
sub ecx, 0
je 0x40294d
dec ecx
je 0x402939
dec ecx
jne 0x40297b
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jne 0x402931
mov ecx, 0x1bb
push 0
push 0
push 3
jmp 0x402962
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jne 0x402945
mov ecx, 0x50
push 0
push 0
push 3
jmp 0x402962
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jne 0x402959
mov ecx, 0x15
push 0
push 0x8000000
push 1
mov edx, dword [ebp + 0x14]
mov esi, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0x10]
push edx
push ecx
push esi
push eax
call dword [sym.imp.WININET.dll_InternetConnectA]
mov dword [ebx + 8], eax
jmp 0x40297e
mov esi, dword [ebp + 8]
mov eax, dword [ebx + 8]
test eax, eax
je 0x402b49
cmp eax, 0xffffffff
je 0x402b49
push 0
call dword [sym.imp.WININET.dll_InternetAttemptConnect]
test eax, eax
je 0x4029b3
lea eax, [ebp - 0x1c]
push 0x5a5fd8
push eax
mov dword [ebp - 0x1c], str.connect_failed...
call sub.MSVCRT.dll__CxxThrowException
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebx + 0x10]
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 1
mov edi, ecx
mov ecx, edx
push edi
mov dword [ebp + 8], edi
call dword [sym.imp.MSVCP60.dll_private:_bool___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Grow_unsigned_int__bool_]
test al, al
je 0x4029f8
mov eax, dword [ebx + 0x14]
mov ecx, edi
mov edx, ecx
mov edi, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov eax, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebx + 0x14]
mov dword [ebx + 0x18], eax
add ecx, eax
mov byte [ecx], 0
mov eax, dword [ebp + 0xc]
test eax, eax
jne 0x402a28
mov eax, dword [ebp + 0x18]
sub eax, 0
je 0x402a1f
dec eax
je 0x402a16
dec eax
jne 0x402a2b
mov dword [ebx + 0x50], 0x1bb
jmp 0x402a2b
mov dword [ebx + 0x50], 0x50
jmp 0x402a2b
mov dword [ebx + 0x50], 0x15
jmp 0x402a2b
mov dword [ebx + 0x50], eax
mov edi, dword [ebp + 0x10]
mov eax, dword [ebp + 0x18]
test edi, edi
mov dword [ebx + 0x54], eax
je 0x402a7e
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea esi, [ebx + 0x20]
mov edi, ecx
push 1
push edi
mov ecx, esi
mov dword [ebp + 8], edi
call dword [sym.imp.MSVCP60.dll_private:_bool___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Grow_unsigned_int__bool_]
test al, al
je 0x402a7e
mov eax, dword [esi + 4]
mov esi, dword [ebp + 0x10]
mov ecx, edi
mov edi, eax
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebx + 0x24]
mov ecx, edx
add eax, ecx
mov dword [ebx + 0x28], ecx
mov byte [eax], 0
mov edi, dword [ebp + 0x14]
test edi, edi
je 0x402acb
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea esi, [ebx + 0x30]
mov edi, ecx
push 1
push edi
mov ecx, esi
mov dword [ebp + 0x10], edi
call dword [sym.imp.MSVCP60.dll_private:_bool___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Grow_unsigned_int__bool_]
test al, al
je 0x402acb
mov eax, dword [esi + 4]
mov esi, dword [ebp + 0x14]
mov ecx, edi
mov edi, eax
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, eax
mov eax, dword [ebx + 0x34]
add eax, ecx
mov dword [ebx + 0x38], ecx
mov byte [eax], 0
mov eax, dword [ebx + 0x6c]
test eax, eax
jbe 0x402aff
mov eax, dword [ebx + 0x68]
mov esi, dword [eax]
cmp esi, dword [ebx + 0x68]
je 0x402af7
mov edi, dword [esi + 8]
test edi, edi
je 0x402af3
mov ecx, edi
call fcn.00403120
push edi
call sub.MFC42.DLL_operatordelete
add esp, 4
mov esi, dword [esi]
jmp 0x402ad7
lea ecx, [ebx + 0x64]
call fcn.00405410
mov eax, dword [ebx + 0x60]
test eax, eax
jbe 0x402b33
mov eax, dword [ebx + 0x5c]
mov esi, dword [eax]
cmp esi, dword [ebx + 0x5c]
je 0x402b2b
mov edi, dword [esi + 8]
test edi, edi
je 0x402b27
mov ecx, edi
call fcn.00403120
push edi
call sub.MFC42.DLL_operatordelete
add esp, 4
mov esi, dword [esi]
jmp 0x402b0b
lea ecx, [ebx + 0x58]
call fcn.00405410
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
lea ecx, [ebp - 0x20]
push 0x5a5fd8
push ecx
mov dword [ebp - 0x20], str.connect_failed...
call sub.MSVCRT.dll__CxxThrowException
lea edx, [ebp - 0x24]
push 0x5a5fd8
push edx
mov dword [ebp - 0x24], str.open_internet_failed...
call sub.MSVCRT.dll__CxxThrowException
mov esi, dword [ebp - 0x18]
mov byte [ebp - 0x11], 0
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov esi, dword [esi + 8]
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, 0x402b33
ret