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

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x1c
mov ebx, dword [ebp + 8]
mov esi, dword [ebp + 0x10]
mov eax, dword [ebx + 0x6c]
mov edi, eax
and edi, 8
jne 0x1001cd60
test al, 0x80
je 0x1001cd38
test esi, esi
jne 0x1001cc30
jmp 0x1001cec5
test eax, eax
je 0x1001ccce
cmp esi, edi
jbe 0x1001cd20
mov ecx, dword [ebx + 0x7c]
test ecx, ecx
je 0x1001cd20
lea eax, [ebp - 0x10]
mov dword [esp + 0xc], eax
mov eax, esi
sub eax, edi
cmp eax, ecx
cmova eax, ecx
mov dword [esp + 8], eax
mov eax, dword [ebp + 0xc]
add eax, edi
mov dword [esp + 4], eax
mov eax, dword [ebx + 0x64]
mov dword [esp], eax
call dword [sym.imp.wininet.dll_InternetReadFile]
sub esp, 0x10
test eax, eax
je 0x1001cda0
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x1001cd80
mov ecx, dword [ebx + 0x74]
mov edx, dword [ebx + 0x7c]
add edi, eax
add ecx, eax
sub edx, eax
mov dword [ebx + 0x74], ecx
mov eax, edx
mov dword [ebx + 0x7c], edx
test byte [0x100563a0], 8
je 0x1001cc20
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], str.current_position__ld__available_bytes__ld_n
mov dword [esp + 8], str.protocol_read
mov dword [esp + 4], 0x100563a0
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_13
mov eax, dword [ebx + 0x7c]
test eax, eax
jne 0x1001cc28
lea eax, [ebx + 0x80]
and dword [ebx + 0x6c], 0xfffffffe
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], eax
mov eax, dword [ebx + 0x64]
mov dword [esp], eax
call dword [sym.imp.wininet.dll_InternetQueryDataAvailable]
sub esp, 0x10
test eax, eax
je 0x1001ce41
mov eax, dword [ebx + 0x80]
test eax, eax
je 0x1001cd80
mov dword [ebx + 0x7c], eax
cmp esi, edi
ja 0x1001cc30
nop
lea esi, [esi]
xor eax, eax
test edi, edi
sete al
mov esi, dword [ebp + 0x14]
mov dword [esi], edi
or dword [ebx + 0x6c], 1
jmp 0x1001cd6e
test al, 1
je 0x1001cd47
mov eax, dword [ebx + 0x7c]
test eax, eax
jne 0x1001cc15
mov eax, dword [ebp + 0x14]
mov dword [eax], 0
mov eax, 0x8000000a
jmp 0x1001cd6e
mov eax, dword [ebp + 0x14]
mov dword [eax], 0
mov eax, 1
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, ebx
call sym._all_data_read
mov eax, dword [ebp + 0x14]
mov dword [eax], edi
xor eax, eax
or dword [ebx + 0x6c], 1
test edi, edi
sete al
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
test byte [0x100563a0], 4
jne 0x1001ce0b
mov eax, dword [ebx + 0x6c]
test al, 0x20
jne 0x1001cdf8
mov ecx, dword [ebx + 8]
test ecx, ecx
je 0x1001cdf8
or eax, 0x20
mov dword [ebx + 0x6c], eax
mov eax, dword [ecx]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x800c0008
mov dword [esp], ecx
call dword [eax + 0x18]
mov eax, dword [ebp + 0x14]
sub esp, 0x10
mov dword [eax], edi
mov eax, 0x800c0008
or dword [ebx + 0x6c], 1
jmp 0x1001cd6e
mov eax, dword [ebp + 0x14]
mov dword [eax], edi
mov eax, 0x800c0008
or dword [ebx + 0x6c], 1
jmp 0x1001cd6e
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x34]
mov dword [esp + 0xc], str.InternetReadFile_failed:__ld_n
mov dword [esp + 8], str.protocol_read
mov dword [esp + 0x10], eax
mov dword [esp + 4], 0x100563a0
mov dword [esp], 2
call sym._wine_dbg_log.constprop.0_13
jmp 0x1001cda9
mov eax, dword fs:[0x18]
cmp dword [eax + 0x34], 0x3e5
je 0x1001ceb6
test byte [0x100563a0], 4
jne 0x1001ced1
mov eax, dword [ebx + 0x6c]
test al, 0x20
jne 0x1001cea3
mov ecx, dword [ebx + 8]
test ecx, ecx
je 0x1001cea3
or eax, 0x20
mov dword [ebx + 0x6c], eax
mov eax, dword [ecx]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x800c0007
mov dword [esp], ecx
call dword [eax + 0x18]
mov eax, dword [ebp + 0x14]
sub esp, 0x10
mov dword [eax], edi
mov eax, 0x800c0007
or dword [ebx + 0x6c], 1
jmp 0x1001cd6e
mov eax, dword [ebp + 0x14]
mov dword [eax], edi
mov eax, 0x800c0007
or dword [ebx + 0x6c], 1
jmp 0x1001cd6e
mov eax, dword [ebp + 0x14]
mov dword [eax], edi
mov eax, 0x8000000a
jmp 0x1001cd6e
xor edi, edi
mov eax, 1
jmp 0x1001cd27
mov eax, dword [eax + 0x34]
mov dword [esp + 0xc], str.InternetQueryDataAvailable_failed:__ld_n
mov dword [esp + 8], str.protocol_read
mov dword [esp + 0x10], eax
mov dword [esp + 4], 0x100563a0
mov dword [esp], 2
call sym._wine_dbg_log.constprop.0_13
jmp 0x1001ce59