Function at 0x1001d220
Capabilities:
Query remote server for available data
Send data

Disassembly:
push ebp
mov edx, 1
mov ebp, esp
push esi
push ebx
sub esp, 0x14
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
test esi, esi
je 0x1001d240
xor edx, edx
cmp dword [esi + 8], 5
sete dl
mov eax, dword [ebx + 0x64]
test eax, eax
je 0x1001d2e0
mov eax, dword [ebx + 8]
test eax, eax
je 0x1001d320
mov eax, dword [ebx + 0x6c]
test al, 0x40
jne 0x1001d2b0
mov ecx, dword [ebx + 0x84]
test ecx, ecx
jne 0x1001d310
test edx, edx
jne 0x1001d2d0
test esi, esi
je 0x1001d279
cmp dword [esi + 8], 4
jbe 0x1001d2c5
mov eax, dword [ebx + 0x7c]
test eax, eax
jne 0x1001d29a
mov edx, dword [ebx + 0x80]
mov eax, dword [ebx + 0x6c]
test edx, edx
je 0x1001d358
mov dword [ebx + 0x7c], edx
or eax, 1
mov dword [ebx + 0x6c], eax
mov eax, ebx
call sym._report_data_2
lea esp, [ebp - 8]
xor eax, eax
pop ebx
pop esi
pop ebp
ret
and eax, 0xffffffbf
mov dword [ebx + 0x6c], eax
mov eax, dword [ebx]
mov edx, dword [esi + 8]
mov dword [esp], ebx
mov dword [esp + 4], edx
call dword [eax + 0x10]
lea esp, [ebp - 8]
xor eax, eax
pop ebx
pop esi
pop ebp
ret
mov eax, ebx
call sym._start_downloading
test eax, eax
jns 0x1001d26f
jmp 0x1001d2c5
test byte [0x100563a0], 4
je 0x1001d2c5
mov dword [esp + 0xc], str.Expected_request_to_be_non_NULL_n
mov dword [esp + 8], str.protocol_continue
mov dword [esp + 4], 0x100563a0
mov dword [esp], 2
call sym._wine_dbg_log.constprop.0_13
jmp 0x1001d2c5
lea esp, [ebp - 8]
mov eax, ebx
pop ebx
pop esi
pop ebp
jmp sym._write_post_stream
test byte [0x100563a0], 4
je 0x1001d2c5
mov dword [esp + 0xc], str.Expected_IInternetProtocolSink_pointer_to_be_non_NULL_n
mov dword [esp + 8], str.protocol_continue
mov dword [esp + 4], 0x100563a0
mov dword [esp], 2
call sym._wine_dbg_log.constprop.0_13
jmp 0x1001d2c5
and eax, 0xfffffffe
mov dword [ebx + 0x6c], eax
lea eax, [ebx + 0x80]
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 0x1001d3b8
mov eax, dword [ebx + 0x80]
test byte [0x100563a0], 8
jne 0x1001d423
test eax, eax
je 0x1001d456
mov dword [ebx + 0x7c], eax
mov eax, dword [ebx + 0x6c]
or eax, 1
jmp 0x1001d297
mov eax, dword [ebx + 0x6c]
mov edx, dword fs:[0x18]
or eax, 1
cmp dword [edx + 0x34], 0x3e5
je 0x1001d297
mov dword [ebx + 0x6c], eax
test byte [0x100563a0], 4
jne 0x1001d462
mov edx, dword [ebx + 8]
test al, 0x20
jne 0x1001d2c5
test edx, edx
je 0x1001d2c5
or eax, 0x20
mov dword [ebx + 0x6c], eax
mov eax, dword [edx]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x800c0007
mov dword [esp], edx
call dword [eax + 0x18]
sub esp, 0x10
jmp 0x1001d2c5
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.available__lu_bytes_n
mov dword [esp + 8], str.protocol_continue
mov dword [esp + 4], 0x100563a0
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_13
mov eax, dword [ebx + 0x80]
jmp 0x1001d39e
mov eax, ebx
call sym._all_data_read
jmp 0x1001d2c5
mov eax, dword [edx + 0x34]
mov dword [esp + 0xc], str.InternetQueryDataAvailable_failed:__ld_n
mov dword [esp + 8], str.protocol_continue
mov dword [esp + 0x10], eax
mov dword [esp + 4], 0x100563a0
mov dword [esp], 2
call sym._wine_dbg_log.constprop.0_13
mov eax, dword [ebx + 0x6c]
jmp 0x1001d3e2