Function at 0x409f3c
Capabilities:
Connect to http server
Create http request
Read data from internet
Receive data
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbc4
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x43c], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x28], ebx
mov esi, ecx
mov dword [ebp - 4], edx
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.004043b0
xor eax, eax
push ebp
push 0x40a1a4
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 5], 0
push 0
push 0
push 0
push 0
push 0x40a1b4
call sub.wininet.dll_InternetOpenA
mov dword [ebp - 0xc], eax
xor edx, edx
push ebp
push 0x40a16f
push dword fs:[edx]
mov dword fs:[edx], esp
cmp dword [ebp - 0xc], 0
je 0x40a158
lea ecx, [ebp - 0x24]
lea edx, [ebp - 0x20]
mov eax, ebx
call fcn.00409e30
mov edx, dword [ebp - 0x20]
mov eax, 0x40a1c4
call fcn.00404504
mov ebx, eax
test ebx, ebx
je 0x40a009
lea eax, [ebp - 0x28]
push eax
mov eax, dword [ebp - 0x20]
call fcn.004041c0
mov ecx, eax
sub ecx, ebx
lea edx, [ebx + 1]
mov eax, dword [ebp - 0x20]
call fcn.00404420
lea eax, [ebp - 0x20]
push eax
mov ecx, ebx
dec ecx
mov edx, 1
mov eax, dword [ebp - 0x20]
call fcn.00404420
mov edx, 0x50
mov eax, dword [ebp - 0x28]
call fcn.00409e14
mov ebx, eax
jmp 0x40a00e
mov ebx, 0x50
push 0
push 0
push 3
push 0
push 0
push ebx
mov eax, dword [ebp - 0x20]
call fcn.004043c0
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.wininet.dll_InternetConnectA
mov dword [ebp - 0x10], eax
mov eax, 0x40a1c8
mov dword [ebp - 0x2c], eax
push 0
push 0x80000000
lea eax, [ebp - 0x2c]
push eax
push 0
push 0x40a1d4
mov eax, dword [ebp - 0x24]
call fcn.004043c0
push eax
push 0x40a1e0
mov eax, dword [ebp - 0x10]
push eax
call sub.wininet.dll_HttpOpenRequestA
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 4]
call fcn.004041c0
push eax
mov eax, dword [ebp - 4]
call fcn.004043c0
push eax
push 0x2f
push 0x40a1e8
mov eax, dword [ebp - 0x14]
push eax
call sub.wininet.dll_HttpSendRequestA
xor eax, eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], 0x400
mov eax, dword [ebp - 0x30]
call fcn.00402550
mov ebx, eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x30]
push eax
push ebx
push 5
mov eax, dword [ebp - 0x14]
push eax
call sub.wininet.dll_HttpQueryInfoA
cmp eax, 1
sbb eax, eax
inc eax
cmp al, 1
jne 0x40a158
xor eax, eax
push ebp
push 0x40a151
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 0x400
lea eax, [ebp - 0x18]
push eax
push 0x400
lea eax, [ebp - 0x436]
push eax
mov eax, dword [ebp - 0x14]
push eax
call sub.wininet.dll_InternetReadFile
cmp dword [ebp - 0x18], 0
je 0x40a121
mov eax, dword [ebp - 0x18]
mov byte [ebp + eax - 0x436], 0
lea eax, [ebp - 0x43c]
lea edx, [ebp - 0x436]
mov ecx, 0x402
call fcn.00404194
mov edx, dword [ebp - 0x43c]
lea eax, [ebp - 0x1c]
call fcn.004041c8
jmp 0x40a0ca
mov edx, dword [ebp - 0x1c]
mov eax, esi
call fcn.00404504
test eax, eax
setg byte [ebp - 5]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40a158
mov eax, dword [ebp - 0x14]
push eax
call sub.wininet.dll_InternetCloseHandle
mov eax, dword [ebp - 0x10]
push eax
call sub.wininet.dll_InternetCloseHandle
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40a176
mov eax, dword [ebp - 0xc]
push eax
call sub.wininet.dll_InternetCloseHandle
ret