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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x552080
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
mov eax, dword [ebp + 0x20]
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
push 0x10000000
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 0x404755
cmp eax, 0xffffffff
je 0x404755
mov ecx, dword [ebp + 0x10]
push ecx
push eax
call dword [sym.imp.WININET.dll_InternetSetStatusCallback]
mov eax, dword [ebp + 0x1c]
sub eax, 0
je 0x404527
dec eax
je 0x4044f7
dec eax
jne 0x40455a
mov eax, dword [ebp + 0xc]
test eax, eax
jne 0x4044d3
mov eax, 0x1bb
mov edx, dword [ebx + 0x70]
mov ecx, dword [ebp + 0x18]
mov esi, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0x14]
push 0
push 3
push ecx
push edx
push eax
mov eax, dword [ebx + 4]
push esi
push eax
call dword [sym.imp.WININET.dll_InternetConnectA]
mov dword [ebx + 8], eax
jmp 0x40455d
mov eax, dword [ebp + 0xc]
test eax, eax
jne 0x404503
mov eax, 0x50
mov ecx, dword [ebx + 0x70]
mov edx, dword [ebp + 0x18]
mov esi, dword [ebp + 8]
push ecx
mov ecx, dword [ebp + 0x14]
push 0
push 3
push edx
mov edx, dword [ebx + 4]
push ecx
push eax
push esi
push edx
call dword [sym.imp.WININET.dll_InternetConnectA]
mov dword [ebx + 8], eax
jmp 0x40455d
mov eax, dword [ebp + 0xc]
test eax, eax
jne 0x404533
mov eax, 0x15
mov ecx, dword [ebx + 0x70]
mov edx, dword [ebp + 0x18]
mov esi, dword [ebp + 8]
push ecx
mov ecx, dword [ebp + 0x14]
push 0x8000000
push 1
push edx
mov edx, dword [ebx + 4]
push ecx
push eax
push esi
push edx
call dword [sym.imp.WININET.dll_InternetConnectA]
mov dword [ebx + 8], eax
jmp 0x40455d
mov esi, dword [ebp + 8]
mov eax, dword [ebx + 8]
test eax, eax
je 0x404740
cmp eax, 0xffffffff
je 0x404740
push 0
call dword [sym.imp.WININET.dll_InternetAttemptConnect]
test eax, eax
je 0x404592
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 0x4045d7
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 0x404607
mov eax, dword [ebp + 0x1c]
sub eax, 0
je 0x4045fe
dec eax
je 0x4045f5
dec eax
jne 0x40460a
mov dword [ebx + 0x50], 0x1bb
jmp 0x40460a
mov dword [ebx + 0x50], 0x50
jmp 0x40460a
mov dword [ebx + 0x50], 0x15
jmp 0x40460a
mov dword [ebx + 0x50], eax
mov edi, dword [ebp + 0x14]
mov eax, dword [ebp + 0x1c]
test edi, edi
mov dword [ebx + 0x54], eax
je 0x40465d
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 0x40465d
mov eax, dword [esi + 4]
mov esi, dword [ebp + 0x14]
mov ecx, edi
mov edi, eax
mov edx, ecx
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 + 0x24]
mov dword [ebx + 0x28], eax
add eax, ecx
mov byte [eax], 0
mov edi, dword [ebp + 0x18]
test edi, edi
je 0x4046aa
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 + 0x14], 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 0x4046aa
mov eax, dword [esi + 4]
mov esi, dword [ebp + 0x18]
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 0x4046f6
mov eax, dword [ebx + 0x68]
mov esi, dword [eax]
cmp esi, dword [ebx + 0x68]
je 0x4046d6
mov edi, dword [esi + 8]
test edi, edi
je 0x4046d2
mov ecx, edi
call fcn.004030a0
push edi
call sub.MFC42.DLL_operatordelete
add esp, 4
mov esi, dword [esi]
jmp 0x4046b6
mov edi, dword [ebx + 0x68]
lea ecx, [ebp + 0x14]
lea esi, [ebx + 0x64]
push ecx
mov ecx, esi
call fcn.00549630
mov edx, dword [eax]
push edi
lea eax, [ebp + 0x18]
push edx
push eax
mov ecx, esi
call fcn.00402550
mov eax, dword [ebx + 0x60]
test eax, eax
jbe 0x40472a
mov eax, dword [ebx + 0x5c]
mov esi, dword [eax]
cmp esi, dword [ebx + 0x5c]
je 0x404722
mov edi, dword [esi + 8]
test edi, edi
je 0x40471e
mov ecx, edi
call fcn.004030a0
push edi
call sub.MFC42.DLL_operatordelete
add esp, 4
mov esi, dword [esi]
jmp 0x404702
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 0x1c
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 edi, dword [sym.imp.WININET.dll_InternetCloseHandle]
mov byte [ebp - 0x11], 0
mov eax, dword [esi + 4]
push eax
call edi
mov esi, dword [esi + 8]
push esi
call edi
mov eax, 0x40472a
ret