Function at 0x5576c0
Capabilities:
Query remote server for available data
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56e11d
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x5b3480]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edx, ecx
mov dword [ebp - 0x10], edx
mov eax, dword [ebp + 0xc]
mov dword [eax], 0
mov eax, dword [edx + 4]
test eax, eax
je 0x5579a0
mov edx, dword [eax]
test edx, edx
je 0x5579a0
cmp edx, 0xffffffff
je 0x5579a0
push 0
push 0
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x18], 0
push ecx
push dword [eax]
call dword [sym.imp.WININET.dll_InternetQueryDataAvailable]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x55775d
call edi
test eax, eax
js 0x5579a5
je 0x55775d
movzx eax, ax
or eax, 0x83ff0000
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov eax, dword [ebp - 0x18]
mov ecx, 0x1000
cmp eax, ecx
cmovb eax, ecx
mov dword [ebp - 0x18], eax
test eax, eax
je 0x55777e
push eax
call fcn.0040bd50
add esp, 4
mov esi, eax
jmp 0x557780
xor esi, esi
mov dword [ebp - 0x2c], esi
mov dword [ebp - 4], 0
test esi, esi
jne 0x5577a9
mov edi, 0x822103e8
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
xor ecx, ecx
xor ebx, ebx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x20], ecx
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x24], ebx
mov eax, dword [ecx + 4]
test eax, eax
je 0x557816
mov ecx, dword [eax]
test ecx, ecx
je 0x5577f1
cmp ecx, 0xffffffff
je 0x5577f1
push ebx
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x28], 8
push ecx
lea ecx, [ebp - 0x24]
push ecx
push 0x8000005
push dword [eax]
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
jne 0x5577f6
call edi
mov dword [ebp - 0x14], ebx
mov ecx, dword [ebp - 0x10]
jmp 0x557816
mov eax, dword [ebp - 0x20]
mov ebx, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x14], eax
jmp 0x557816
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, dword [ecx + 4]
mov dword [ebp - 0x1c], 0
test eax, eax
je 0x557828
mov eax, dword [eax]
jmp 0x55782a
xor eax, eax
push 0
push 0
lea ecx, [ebp - 0x1c]
push ecx
push eax
call dword [sym.imp.WININET.dll_InternetQueryDataAvailable]
test eax, eax
jne 0x55784f
call edi
mov edi, eax
test edi, edi
js 0x557981
jne 0x557954
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x18]
test ecx, ecx
je 0x55785d
cmp ecx, eax
jbe 0x557863
lea ecx, [eax - 1]
mov dword [ebp - 0x1c], ecx
mov eax, ebx
or eax, dword [ebp - 0x14]
je 0x557892
mov eax, dword [ebp + 0xc]
mov edx, ebx
mov dword [ebp - 0x20], 0
mov edi, dword [eax]
sub edx, edi
mov eax, dword [ebp - 0x14]
sbb eax, 0
cmp dword [ebp - 0x20], eax
jl 0x557892
jg 0x55788b
cmp ecx, edx
jbe 0x557892
mov ecx, ebx
sub ecx, edi
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebp - 0x10]
mov dword [ebp - 0x20], 0
mov eax, dword [edx + 4]
test eax, eax
je 0x55797c
mov edx, dword [eax]
test edx, edx
je 0x55797c
cmp edx, 0xffffffff
je 0x55797c
lea edx, [ebp - 0x20]
xor edi, edi
push edx
push ecx
push esi
push dword [eax]
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x5578ed
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test edi, edi
js 0x557981
jne 0x5578e4
xor edi, edi
jmp 0x5578ed
movzx edi, di
or edi, 0x83ff0000
test edi, edi
js 0x557981
mov ecx, dword [ebp - 0x20]
test ecx, ecx
je 0x557981
mov edx, dword [ebp + 8]
lea edi, [ebp - 0x28]
push edi
push ecx
push esi
mov eax, dword [edx]
mov ecx, edx
mov dword [ebp - 0x28], 0
call dword [eax + 0x1c]
mov edx, dword [ebp + 0xc]
mov edi, eax
mov eax, dword [ebp - 0x28]
add eax, dword [edx]
mov dword [edx], eax
test edi, edi
js 0x557981
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x55793d
push dword [ebp + 0x14]
push eax
call ecx
mov edi, eax
test edi, edi
js 0x557981
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x10]
mov eax, ebx
or eax, dword [ebp - 0x14]
je 0x557810
cmp dword [edx], ebx
jae 0x557981
jmp 0x557810
movzx edi, di
push esi
or edi, 0x83ff0000
call fcn.0040bd60
add esp, 4
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov edi, 0x82211003
push esi
call fcn.0040bd60
add esp, 4
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov eax, 0x82211003
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10