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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a9243
mov eax, dword fs:[0]
push eax
push ecx
sub esp, 0x30
push ebx
push esi
push edi
mov eax, dword [0x4c0c00]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x2c], ecx
mov byte [ebp - 0x11], 1
mov dword [ebp - 4], 0
push 0x10000000
push 0
push 0
push 0
mov eax, dword [ebp + 0x20]
push eax
call dword [sym.imp.WININET.dll_InternetOpenA]
mov ecx, dword [ebp - 0x2c]
mov dword [ecx + 4], eax
mov edx, dword [ebp - 0x2c]
cmp dword [edx + 4], 0
je 0x481757
mov eax, dword [ebp - 0x2c]
cmp dword [eax + 4], 0xffffffff
jne 0x48176c
mov dword [ebp - 0x20], str.open_internet_failed...
push 0x4b7ebc
lea ecx, [ebp - 0x20]
push ecx
call fcn.0048e57b
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.WININET.dll_InternetSetStatusCallback]
mov dword [ebp - 0x18], eax
mov edx, dword [ebp + 0x1c]
mov dword [ebp - 0x30], edx
cmp dword [ebp - 0x30], 0
je 0x4817a1
cmp dword [ebp - 0x30], 1
je 0x4817ea
cmp dword [ebp - 0x30], 2
je 0x48182d
jmp 0x48186e
cmp dword [ebp + 0xc], 0
je 0x4817af
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x34], eax
jmp 0x4817b6
mov dword [ebp - 0x34], 0x15
mov ecx, dword [ebp - 0x2c]
push ecx
push 0x8000000
push 1
mov edx, dword [ebp + 0x18]
push edx
mov eax, dword [ebp + 0x14]
push eax
movzx ecx, word [ebp - 0x34]
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.WININET.dll_InternetConnectA]
mov edx, dword [ebp - 0x2c]
mov dword [edx + 8], eax
jmp 0x48186e
cmp dword [ebp + 0xc], 0
je 0x4817f8
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x38], eax
jmp 0x4817ff
mov dword [ebp - 0x38], 0x50
mov ecx, dword [ebp - 0x2c]
push ecx
push 0
push 3
mov edx, dword [ebp + 0x18]
push edx
mov eax, dword [ebp + 0x14]
push eax
movzx ecx, word [ebp - 0x38]
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.WININET.dll_InternetConnectA]
mov edx, dword [ebp - 0x2c]
mov dword [edx + 8], eax
jmp 0x48186e
cmp dword [ebp + 0xc], 0
je 0x48183b
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x3c], eax
jmp 0x481842
mov dword [ebp - 0x3c], 0x1bb
mov ecx, dword [ebp - 0x2c]
push ecx
push 0
push 3
mov edx, dword [ebp + 0x18]
push edx
mov eax, dword [ebp + 0x14]
push eax
movzx ecx, word [ebp - 0x3c]
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.WININET.dll_InternetConnectA]
mov edx, dword [ebp - 0x2c]
mov dword [edx + 8], eax
mov eax, dword [ebp - 0x2c]
cmp dword [eax + 8], 0
je 0x481880
mov ecx, dword [ebp - 0x2c]
cmp dword [ecx + 8], 0xffffffff
jne 0x481895
mov dword [ebp - 0x24], 0x4b16fc
push 0x4b7ebc
lea edx, [ebp - 0x24]
push edx
call fcn.0048e57b
push 0
call dword [sym.imp.WININET.dll_InternetAttemptConnect]
test eax, eax
je 0x4818b6
mov dword [ebp - 0x28], str.connect_failed...
push 0x4b7ebc
lea eax, [ebp - 0x28]
push eax
call fcn.0048e57b
mov ecx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp - 0x2c]
add ecx, 0x10
call fcn.00402b10
cmp dword [ebp + 0xc], 0
jne 0x481912
mov edx, dword [ebp + 0x1c]
mov dword [ebp - 0x40], edx
cmp dword [ebp - 0x40], 0
je 0x4818e5
cmp dword [ebp - 0x40], 1
je 0x4818f4
cmp dword [ebp - 0x40], 2
je 0x481903
jmp 0x481910
mov eax, dword [ebp - 0x2c]
mov dword [eax + 0x80], 0x15
jmp 0x481910
mov ecx, dword [ebp - 0x2c]
mov dword [ecx + 0x80], 0x50
jmp 0x481910
mov edx, dword [ebp - 0x2c]
mov dword [edx + 0x80], 0x1bb
jmp 0x48191e
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp + 0xc]
mov dword [eax + 0x80], ecx
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp + 0x1c]
mov dword [edx + 0x84], eax
cmp dword [ebp + 0x14], 0
je 0x48193f
mov ecx, dword [ebp + 0x14]
push ecx
mov ecx, dword [ebp - 0x2c]
add ecx, 0x2c
call fcn.00402b10
cmp dword [ebp + 0x18], 0
je 0x481954
mov edx, dword [ebp + 0x18]
push edx
mov ecx, dword [ebp - 0x2c]
add ecx, 0x48
call fcn.00402b10
mov ecx, dword [ebp - 0x2c]
call fcn.0047f280
mov ecx, dword [ebp - 0x2c]
call fcn.0047ee10
jmp 0x481a38
mov dword [ebp - 4], 0xffffffff
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 0x1c