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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x40], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0x10], ecx
mov ebx, edx
mov esi, eax
xor eax, eax
push ebp
push 0x578ee8
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x20], 4
xor eax, eax
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x1c]
push eax
push 0x20000013
mov edi, ebx
push edi
call sub.wininet.dll_HttpQueryInfoW
test eax, eax
je 0x578d88
cmp dword [ebp - 0x1c], 0x12c
jb 0x578d88
cmp dword [ebp - 0x1c], 0x1f4
je 0x578d88
xor eax, eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x14], 0x1000
lea eax, [ebp - 4]
mov edx, dword [ebp - 0x14]
call fcn.00407da4
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 4]
call fcn.00407310
push eax
push 0x14
push edi
call sub.wininet.dll_HttpQueryInfoW
test eax, eax
je 0x578d88
mov edx, dword [ebp - 0x14]
shr edx, 1
lea eax, [ebp - 4]
call fcn.00407da4
mov eax, dword [ebp - 4]
mov dword [ebp - 0x3c], eax
mov byte [ebp - 0x38], 0x11
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x34], eax
mov byte [ebp - 0x30], 0
mov eax, dword [esi + 0xc]
mov dword [ebp - 0x2c], eax
mov byte [ebp - 0x28], 0x11
lea eax, [ebp - 0x3c]
push eax
push 2
mov ecx, 0x578f04
mov dl, 1
mov eax, dword [0x419ec0]
call fcn.0042529c
call fcn.00406448
mov dword [ebp - 0x14], pe_nt_image_headers32
lea eax, [ebp - 8]
mov edx, pe_nt_image_headers32
call fcn.00407da4
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 8]
call fcn.00407310
push eax
push 1
push edi
call sub.wininet.dll_HttpQueryInfoW
mov edx, dword [ebp - 0x14]
shr edx, 1
lea eax, [ebp - 8]
call fcn.00407da4
xor eax, eax
mov dword [ebp - 0x20], eax
push 0
push 0
lea eax, [ebp - 0x14]
push eax
mov edi, ebx
push edi
call sub.wininet.dll_InternetQueryDataAvailable
mov edx, eax
cmp edx, 1
sbb edx, edx
neg edx
xor ecx, ecx
mov eax, esi
call fcn.00578204
cmp dword [ebp - 0x14], 0
jbe 0x578e3b
mov eax, dword [ebp - 0x14]
push eax
lea eax, [ebp - 0xc]
mov ecx, 1
mov edx, dword [0x4199c4]
call fcn.00409124
add esp, 4
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 0xc]
push eax
push edi
call sub.wininet.dll_InternetReadFile
mov edx, eax
cmp edx, 1
sbb edx, edx
neg edx
xor ecx, ecx
mov eax, esi
call fcn.00578204
mov edx, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x10]
mov edi, dword [eax]
call dword [edi + 0x10]
cmp dword [ebp - 0x14], 0
jne 0x578dc7
lea edx, [ebp - 0x40]
mov eax, 0x577c3c
call fcn.0040af74
mov edx, dword [ebp - 0x40]
mov eax, dword [ebp - 8]
call fcn.0041eef4
test al, al
jne 0x578e79
lea edx, [ebp - 0x44]
mov eax, 0x577c44
call fcn.0040af74
mov edx, dword [ebp - 0x44]
mov eax, dword [ebp - 8]
call fcn.0041eef4
test al, al
je 0x578eaa
mov eax, dword [ebp - 8]
mov dword [ebp - 0x4c], eax
mov byte [ebp - 0x48], 0x11
lea eax, [ebp - 0x4c]
push eax
push 0
lea edx, [ebp - 0x50]
mov eax, 0x577c4c
call fcn.0040af74
mov ecx, dword [ebp - 0x50]
mov dl, 1
mov eax, dword [0x419ec0]
call fcn.0042529c
call fcn.00406448
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x578eef
lea eax, [ebp - 0x50]
call fcn.00406d50
lea eax, [ebp - 0x44]
mov edx, 2
call fcn.00406db0
lea eax, [ebp - 0xc]
mov edx, dword [0x4199c4]
call fcn.00409248
lea eax, [ebp - 8]
mov edx, 2
call fcn.00406db0
ret