Function at 0x10003208
Capabilities:
Read http header

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0xc
mov ecx, dword [ebp + 0x18]
mov edx, dword [ebp + 0x14]
mov edi, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
test byte [0x1001404c], 8
mov ebx, dword [eax + 0x238]
je 0x100030aa
sub esp, 0x24
mov dword [esp + 0x20], ecx
mov dword [esp + 0x1c], edx
mov dword [esp + 0x18], edi
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], str._p___p___lx___p___lu_n
mov dword [esp + 8], str.progress_callback_http
mov dword [esp], 3
mov esi, ecx
call sym._wine_dbg_log_3
mov edx, dword [ebp + 0x14]
mov ecx, esi
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
add esp, 0x24
cmp edi, 0x200000
je 0x10003128
cmp edi, 0x80000
je 0x1000311b
cmp edi, 0x20000
mov edi, ebx
jne 0x10003285
mov ebx, eax
mov dword [ebp - 0x10], 4
lea ecx, [ebp - 0x10]
lea eax, [ebp - 0x18]
push 0
push ecx
push eax
push 0
push 0x20000013
push esi
call dword [sym.imp.winhttp.dll_WinHttpQueryHeaders]
test eax, eax
je 0x10003255
mov eax, dword [ebp - 0x18]
lea edx, [eax - 0x190]
cmp edx, 0xe
jbe 0x10003153
lea ecx, [eax - 0x1f5]
cmp ecx, 4
ja case.default.0x1000310a
jmp dword [ecx*4 + 0x1000859c]
mov ecx, 0x801901f5
jmp case.0x10003158.400
mov dword [eax + 0x23c], ecx
mov edi, ebx
jmp 0x10003285
mov eax, dword [edx + 4]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
mov edi, ebx
mov dword [ebx + 0x124], ecx
push 4
push 2
push ebx
call sym._transitionJobState
add esp, 0xc
jmp 0x10003285
mov ecx, 0x80190190
jmp dword [edx*4 + 0x10008560]
mov ecx, 0x80190191
jmp case.0x10003158.400
cmp eax, 0xc8
je 0x1000319f
test byte [0x1001404c], 1
je 0x1000319f
sub esp, 0x14
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.unhandled_response_code__lu_n
mov dword [esp + 8], str.hresult_from_http_response
mov dword [esp], 0
call sym._wine_dbg_log_3
add esp, 0x14
mov dword [edi + 0x124], 0
lea esi, [edi + 0x58]
push esi
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov dword [edi + 0x120], 0
mov eax, dword [edi + 0x128]
test eax, eax
je 0x100031d7
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [edi + 0x128], 0
push esi
call dword [sym.imp.kernel32.dll_LeaveCriticalSection]
jmp 0x10003252
mov ecx, 0x8019019e
jmp case.0x10003158.400
mov ecx, 0x80190197
jmp case.0x10003158.400
mov ecx, 0x80190194
jmp case.0x10003158.400
mov ecx, 0x801901f9
jmp case.0x10003158.400
mov ecx, 0x801901f7
jmp case.0x10003158.400
mov ecx, 0x801901f8
mov dword [edi + 0x124], ecx
lea esi, [edi + 0x58]
push esi
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov dword [edi + 0x120], 5
mov eax, dword [edi + 0x128]
test eax, eax
je 0x10003232
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [edi + 0x128], ebx
mov eax, dword [ebx]
push ebx
call dword [eax + 4]
push esi
call dword [sym.imp.kernel32.dll_LeaveCriticalSection]
push 4
push 2
push edi
call sym._transitionJobState
add esp, 0xc
mov esi, dword [ebp + 8]
mov dword [ebp - 0x10], 4
lea eax, [ebp - 0x14]
push 0
lea ecx, [ebp - 0x10]
push ecx
push eax
push 0
push 0x20000005
push esi
call dword [sym.imp.winhttp.dll_WinHttpQueryHeaders]
test eax, eax
je 0x10003285
mov eax, dword [ebp - 0x14]
mov dword [ebx + 0x10], eax
mov dword [ebx + 0x14], 0
push dword [edi + 0x12c]
call dword [sym.imp.kernel32.dll_SetEvent]
add esp, 0xc
pop esi
pop edi
pop ebx
pop ebp
ret 0x14