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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x552000
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 0x402b4e
cmp eax, 0xffffffff
je 0x402b4e
mov ecx, dword [ebp + 0x18]
sub ecx, 0
je 0x40293d
dec ecx
je 0x402929
dec ecx
jne 0x40296b
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jne 0x402921
mov ecx, 0x1bb
push 0
push 0
push 3
jmp 0x402952
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jne 0x402935
mov ecx, 0x50
push 0
push 0
push 3
jmp 0x402952
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jne 0x402949
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 0x40296e
mov esi, dword [ebp + 8]
mov eax, dword [ebx + 8]
test eax, eax
je 0x402b39
cmp eax, 0xffffffff
je 0x402b39
push 0
call dword [sym.imp.WININET.dll_InternetAttemptConnect]
test eax, eax
je 0x4029a3
lea eax, [ebp - 0x1c]
push 0x58d710
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 0x4029e8
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 0x402a18
mov eax, dword [ebp + 0x18]
sub eax, 0
je 0x402a0f
dec eax
je 0x402a06
dec eax
jne 0x402a1b
mov dword [ebx + 0x50], 0x1bb
jmp 0x402a1b
mov dword [ebx + 0x50], 0x50
jmp 0x402a1b
mov dword [ebx + 0x50], 0x15
jmp 0x402a1b
mov dword [ebx + 0x50], eax
mov edi, dword [ebp + 0x10]
mov eax, dword [ebp + 0x18]
test edi, edi
mov dword [ebx + 0x54], eax
je 0x402a6e
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 0x402a6e
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 0x402abb
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 0x402abb
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 0x402aef
mov eax, dword [ebx + 0x68]
mov esi, dword [eax]
cmp esi, dword [ebx + 0x68]
je 0x402ae7
mov edi, dword [esi + 8]
test edi, edi
je 0x402ae3
mov ecx, edi
call fcn.004030a0
push edi
call sub.MFC42.DLL_operatordelete
add esp, 4
mov esi, dword [esi]
jmp 0x402ac7
lea ecx, [ebx + 0x64]
call fcn.00405400
mov eax, dword [ebx + 0x60]
test eax, eax
jbe 0x402b23
mov eax, dword [ebx + 0x5c]
mov esi, dword [eax]
cmp esi, dword [ebx + 0x5c]
je 0x402b1b
mov edi, dword [esi + 8]
test edi, edi
je 0x402b17
mov ecx, edi
call fcn.004030a0
push edi
call sub.MFC42.DLL_operatordelete
add esp, 4
mov esi, dword [esi]
jmp 0x402afb
lea ecx, [ebx + 0x58]
call fcn.00405400
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 0x58d710
push ecx
mov dword [ebp - 0x20], str.connect_failed...
call sub.MSVCRT.dll__CxxThrowException
lea edx, [ebp - 0x24]
push 0x58d710
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, 0x402b23
ret