Function at 0x407f20
Capabilities:
Connect to http server
Create http request
Query remote server for available data
Read data from internet
Receive data
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5563e6
mov eax, dword fs:[0]
push eax
mov eax, 0x7550
call fcn.00538700
mov eax, dword [0x5b6e64]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
mov dword [ebp - 0x755c], 0
push 0x7530
lea eax, [ebp - 0x7540]
mov dword [ebp - 4], 1
push 0
push eax
call fcn.0053aab0
add esp, 0xc
lea ecx, [ebp - 0x7544]
push 0x5944a8
call fcn.00404ae0
mov byte [ebp - 4], 2
lea eax, [ebp - 0x7544]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push str.http:___s__s
push eax
call fcn.00404c80
add esp, 0x10
push dword [ebp - 0x7544]
call dword [sym.imp.WININET.dll_DeleteUrlCacheEntry]
push 0
push 0
push 0
push 0
push str.HTTP
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [ebp - 0x7558], eax
test eax, eax
jne 0x408049
push 0x5944a8
mov ecx, edi
call fcn.00404ae0
mov byte [ebp - 4], 1
or esi, 0xffffffff
mov edx, dword [ebp - 0x7544]
mov eax, esi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x408003
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
mov eax, esi
mov edx, dword [ebp + 0xc]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x408021
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0x10]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], esi
dec esi
test esi, esi
jg 0x408216
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
jmp 0x408216
push 0
push 0
push 3
push 0x5944a8
push 0x5944a8
push 0x50
push dword [ebp + 0xc]
push eax
call dword [sym.imp.WININET.dll_InternetConnectA]
mov dword [ebp - 0x7554], eax
test eax, eax
jne 0x408083
push 0x5944a8
mov ecx, edi
call fcn.00404ae0
or esi, 0xffffffff
jmp 0x4081b8
push 0
push 0x4000100
push 0
push 0
push 0
push dword [ebp + 0x10]
push 0x594a20
push eax
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov esi, eax
test esi, esi
jne 0x4080b9
push 0x5944a8
mov ecx, edi
call fcn.00404ae0
or esi, 0xffffffff
jmp 0x4081b8
push 0
push 0
push 0
push 0
push esi
call dword [sym.imp.WININET.dll_HttpSendRequestA]
push 0x5944a8
test eax, eax
jne 0x4080e0
mov ecx, edi
call fcn.00404ae0
or esi, 0xffffffff
jmp 0x4081b8
lea ecx, [ebp - 0x7548]
call fcn.00404ae0
mov byte [ebp - 4], 3
mov ebx, dword [sym.imp.WININET.dll_InternetQueryDataAvailable]
push 0
push 0
lea eax, [ebp - 0x7550]
push eax
push esi
call ebx
test eax, eax
je 0x40816d
lea eax, [ebp - 0x754c]
push eax
push dword [ebp - 0x7550]
lea eax, [ebp - 0x7540]
push eax
push esi
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x40816d
mov eax, dword [ebp - 0x754c]
cmp eax, 0x7530
jae 0x408236
lea ecx, [ebp - 0x7540]
mov byte [ebp + eax - 0x7540], 0
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x408148
sub ecx, edx
lea eax, [ebp - 0x7540]
push ecx
push eax
lea ecx, [ebp - 0x7548]
call fcn.004044f0
cmp dword [ebp - 0x754c], 0
jne 0x4080f5
push esi
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
push dword [ebp - 0x7554]
call esi
push dword [ebp - 0x7558]
call esi
lea eax, [ebp - 0x7548]
mov ecx, edi
push eax
call fcn.00403070
mov byte [ebp - 4], 2
or esi, 0xffffffff
mov edx, dword [ebp - 0x7548]
mov eax, esi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4081b8
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 1
mov eax, esi
mov edx, dword [ebp - 0x7544]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4081d9
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
mov eax, esi
mov edx, dword [ebp + 0xc]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4081f7
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp + 0x10]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x408216
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00537a6f
mov esp, ebp
pop ebp
ret 0xc
call fcn.00537e3f
int3