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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43b000
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x44a874]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov dword [ebp - 0x18], esi
mov eax, dword [ebp + 0x1c]
push 0
push 0
push 0
push 0
push eax
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 0x409b86
cmp eax, 0xffffffff
je 0x409b86
mov ecx, dword [ebp + 0x18]
sub ecx, 0
je 0x409a6d
sub ecx, 1
je 0x409a42
sub ecx, 1
jne 0x409a9b
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jne 0x409a23
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 0x409aa1
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jne 0x409a4e
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 0x409aa1
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jne 0x409a79
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 0x409aa1
mov ebx, dword [ebp + 0x14]
mov edi, dword [ebp + 0x10]
mov eax, dword [esi + 8]
test eax, eax
je 0x409b71
cmp eax, 0xffffffff
je 0x409b71
push 0
call dword [sym.imp.WININET.dll_InternetAttemptConnect]
test eax, eax
je 0x409ad6
push 0x4462cc
lea edx, [ebp - 0x1c]
push edx
mov dword [ebp - 0x1c], str.connect_failed...
call fcn.00422a93
mov edx, dword [ebp + 8]
lea eax, [esi + 0x10]
push eax
call fcn.004081c0
mov eax, dword [ebp + 0xc]
test eax, eax
jne 0x409b1f
mov eax, dword [ebp + 0x18]
sub eax, 0
je 0x409b13
sub eax, 1
je 0x409b07
sub eax, 1
jne 0x409b25
mov dword [esi + 0x80], 0x1bb
jmp 0x409b25
mov dword [esi + 0x80], 0x50
jmp 0x409b25
mov dword [esi + 0x80], 0x15
jmp 0x409b25
mov dword [esi + 0x80], eax
test edi, edi
mov ecx, dword [ebp + 0x18]
mov dword [esi + 0x84], ecx
je 0x409b3d
lea edx, [esi + 0x2c]
push edx
mov edx, edi
call fcn.004081c0
test ebx, ebx
je 0x409b4c
lea eax, [esi + 0x48]
push eax
mov edx, ebx
call fcn.004081c0
mov eax, esi
call fcn.0040a080
mov eax, esi
call fcn.00409fa0
mov al, byte [ebp - 0x11]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
push 0x4462cc
lea ecx, [ebp - 0x20]
push ecx
mov dword [ebp - 0x20], str.connect_failed...
call fcn.00422a93
push 0x4462cc
lea edx, [ebp - 0x24]
push edx
mov dword [ebp - 0x24], str.open_internet_failed...
call fcn.00422a93
mov esi, dword [ebp - 0x18]
mov eax, dword [esi + 4]
push eax
mov byte [ebp - 0x11], 0
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov ecx, dword [esi + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0x409bbc
ret