Function at 0x407bc0
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 0x56eef6
mov eax, dword fs:[0]
push eax
mov eax, 0x7550
call fcn.00550ea0
mov eax, dword [0x5d1e6c]
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.00553570
add esp, 0xc
lea ecx, [ebp - 0x7544]
push 0x5ae2e0
call fcn.00403860
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.00403a00
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 0x407ce9
push 0x5ae2e0
mov ecx, edi
call fcn.00403860
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 0x407ca3
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 0x407cc1
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 0x407eb6
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
jmp 0x407eb6
push 0
push 0
push 3
push 0x5ae2e0
push 0x5ae2e0
push 0x50
push dword [ebp + 0xc]
push eax
call dword [sym.imp.WININET.dll_InternetConnectA]
mov dword [ebp - 0x7554], eax
test eax, eax
jne 0x407d23
push 0x5ae2e0
mov ecx, edi
call fcn.00403860
or esi, 0xffffffff
jmp 0x407e58
push 0
push 0x4000100
push 0
push 0
push 0
push dword [ebp + 0x10]
push 0x5ae808
push eax
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov esi, eax
test esi, esi
jne 0x407d59
push 0x5ae2e0
mov ecx, edi
call fcn.00403860
or esi, 0xffffffff
jmp 0x407e58
push 0
push 0
push 0
push 0
push esi
call dword [sym.imp.WININET.dll_HttpSendRequestA]
push 0x5ae2e0
test eax, eax
jne 0x407d80
mov ecx, edi
call fcn.00403860
or esi, 0xffffffff
jmp 0x407e58
lea ecx, [ebp - 0x7548]
call fcn.00403860
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 0x407e0d
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 0x407e0d
mov eax, dword [ebp - 0x754c]
cmp eax, 0x7530
jae 0x407ed6
lea ecx, [ebp - 0x7540]
mov byte [ebp + eax - 0x7540], 0
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x407de8
sub ecx, edx
lea eax, [ebp - 0x7540]
push ecx
push eax
lea ecx, [ebp - 0x7548]
call fcn.00403270
cmp dword [ebp - 0x754c], 0
jne 0x407d95
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.00403f30
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 0x407e58
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 0x407e79
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 0x407e97
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 0x407eb6
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.0055026c
mov esp, ebp
pop ebp
ret 0xc
call fcn.00550659
int3