Function at 0x405f54
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.00403cc0
xor eax, eax
push ebp
push 0x4061bc
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 5], 0
push 0
push 0
push 0
push 0
push 0x4061cc
call sub.wininet.dll_InternetOpenA
mov dword [ebp - 0xc], eax
xor edx, edx
push ebp
push 0x406187
push dword fs:[edx]
mov dword fs:[edx], esp
cmp dword [ebp - 0xc], 0
je 0x406170
lea ecx, [ebp - 0x24]
lea edx, [ebp - 0x20]
mov eax, ebx
call fcn.00405e48
mov edx, dword [ebp - 0x20]
mov eax, 0x4061dc
call fcn.00403db8
mov ebx, eax
test ebx, ebx
je 0x406021
lea eax, [ebp - 0x28]
push eax
mov eax, dword [ebp - 0x20]
call fcn.00403ad0
mov ecx, eax
sub ecx, ebx
lea edx, [ebx + 1]
mov eax, dword [ebp - 0x20]
call fcn.00403d30
lea eax, [ebp - 0x20]
push eax
mov ecx, ebx
dec ecx
mov edx, 1
mov eax, dword [ebp - 0x20]
call fcn.00403d30
mov edx, 0x50
mov eax, dword [ebp - 0x28]
call fcn.00405e2c
mov ebx, eax
jmp 0x406026
mov ebx, 0x50
push 0
push 0
push 3
push 0
push 0
push ebx
mov eax, dword [ebp - 0x20]
call fcn.00403cd0
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.wininet.dll_InternetConnectA
mov dword [ebp - 0x10], eax
mov eax, 0x4061e0
mov dword [ebp - 0x2c], eax
push 0
push 0x80000000
lea eax, [ebp - 0x2c]
push eax
push 0
push 0x4061ec
mov eax, dword [ebp - 0x24]
call fcn.00403cd0
push eax
push 0x4061f8
mov eax, dword [ebp - 0x10]
push eax
call sub.wininet.dll_HttpOpenRequestA
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 4]
call fcn.00403ad0
push eax
mov eax, dword [ebp - 4]
call fcn.00403cd0
push eax
push 0x2f
push 0x406200
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.00402518
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 0x406170
xor eax, eax
push ebp
push 0x406169
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 0x406139
mov eax, dword [ebp - 0x18]
mov byte [ebp + eax - 0x436], 0
lea eax, [ebp - 0x43c]
lea edx, [ebp - 0x436]
mov ecx, 0x402
call fcn.00403ab8
mov edx, dword [ebp - 0x43c]
lea eax, [ebp - 0x1c]
call fcn.00403ad8
jmp 0x4060e2
mov edx, dword [ebp - 0x1c]
mov eax, esi
call fcn.00403db8
test eax, eax
setg byte [ebp - 5]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406170
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 0x40618e
mov eax, dword [ebp - 0xc]
push eax
call sub.wininet.dll_InternetCloseHandle
ret