Function at 0x10032a80
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x230
mov eax, dword [eax + 0xb8]
test eax, eax
je 0x10032aaa
mov dword [esp], eax
call sym._req_file_release
mov dword [ebx + 0xb8], 0
mov eax, dword [ebx + 0xa8]
test eax, eax
je 0x10032aca
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_CloseHandle]
mov dword [ebx + 0xa8], 0
sub esp, 4
mov eax, dword [ebx + 0x10]
test eax, 0x4000000
je 0x10032b60
test al, 0x10
je 0x10032b51
test byte [0x10047194], 1
jne 0x10032e17
mov eax, ebx
call sym._compose_request_url
mov esi, eax
test eax, eax
je 0x10032c76
mov eax, dword [ebx + 0xe8]
mov edx, dword [ebx + 0xec]
lea edi, [ebp - 0x216]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], edi
and edx, eax
mov dword [esp + 8], 0
cmp edx, 0xffffffff
mov edx, 0
mov dword [esp], esi
cmove eax, edx
mov dword [esp + 4], eax
call sym.wininet.dll_CreateUrlCacheEntryW
sub esp, 0x14
test eax, eax
jne 0x10032cb0
test byte [0x10047194], 4
jne 0x10032dde
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
lea eax, [ebx + 0x80]
mov dword [ebp - 0x220], eax
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
xor ecx, ecx
mov edx, str.Cache_Control
mov eax, ebx
sub esp, 4
mov dword [esp], 0
call sym._HTTP_GetCustomHeaderIndex
cmp eax, 0xffffffff
je 0x10032c53
mov edx, dword [ebx + 0x98]
lea eax, [eax + eax*2]
lea eax, [edx + eax*4]
mov edi, dword [eax + 4]
movzx eax, word [edi]
test ax, ax
je 0x10032c53
lea esi, [esi]
cmp ax, 9
je 0x10032bc8
cmp ax, 0x20
jne 0x10032bdb
lea esi, [esi]
movzx eax, word [edi + 2]
add edi, 2
cmp ax, 0x20
je 0x10032bc8
cmp ax, 9
je 0x10032bc8
mov dword [esp + 4], 0x2c
mov dword [esp], edi
call dword [sym.imp.ucrtbase.dll_wcschr]
mov esi, eax
test eax, eax
je 0x10032dc0
mov dword [esp + 8], 8
mov dword [esp + 4], str.no_cache
mov dword [esp], edi
call dword [sym.imp.ucrtbase.dll__wcsnicmp]
test eax, eax
je 0x10032e40
mov dword [esp + 8], 8
mov dword [esp + 4], str.no_store
mov dword [esp], edi
call dword [sym.imp.ucrtbase.dll__wcsnicmp]
test eax, eax
je 0x10032e40
movzx eax, word [esi]
mov edi, esi
cmp ax, 0x2c
jne 0x10032c4a
movzx eax, word [esi + 2]
add edi, 2
test ax, ax
jne 0x10032bb8
mov eax, dword [ebp - 0x220]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_LeaveCriticalSection]
mov eax, ebx
sub esp, 4
call sym._compose_request_url
mov esi, eax
test eax, eax
jne 0x10032afa
test byte [0x10047194], 4
je 0x10032b51
mov dword [esp + 0xc], str.Could_not_get_URL_n
mov dword [esp + 8], str.create_cache_entry
mov dword [esp + 4], 0x10047194
mov dword [esp], 2
call sym._wine_dbg_log.constprop.0_4
jmp 0x10032b51
lea eax, [ebx + 0xb8]
mov dword [esp], edi
mov dword [esp + 4], eax
call sym._create_req_file
mov eax, dword [ebx + 0xb8]
mov dword [eax + 0xc], esi
mov dword [ebx + 0xf0], 0
mov dword [ebx + 0xf4], 0
mov dword [ebx + 0xb0], 0
mov dword [ebx + 0xb4], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], pe_nt_image_headers32
mov dword [esp + 0x10], 2
mov dword [esp + 0xc], 0
mov dword [esp + 8], 3
mov dword [esp + 4], 0x40000000
mov dword [esp], edi
call dword [sym.imp.kernel32.dll_CreateFileW]
mov dword [ebx + 0xa8], eax
sub esp, 0x1c
cmp eax, 0xffffffff
je 0x10032e5a
mov edx, dword [ebx + 0x100]
test edx, edx
je 0x10032b51
mov dword [esp + 8], edx
mov edx, dword [ebx + 0xfc]
lea ecx, [ebp - 0x21c]
mov dword [esp + 0x10], 0
lea edx, [ebx + edx + 0x104]
mov dword [esp + 0xc], ecx
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_WriteFile]
sub esp, 0x14
test eax, eax
jne 0x10032e72
test byte [0x10047194], 1
jne 0x10032ebe
mov eax, dword [ebx + 0x2104]
mov edx, dword [eax]
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [edx]
test eax, eax
je 0x10032b51
mov eax, ebx
call sym._commit_cache_entry
jmp 0x10032b51
cmp word [edi], 0
mov esi, edi
je 0x10032bf6
lea esi, [esi]
add esi, 2
cmp word [esi], 0
jne 0x10032dd0
jmp 0x10032bf6
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x34]
mov dword [esp + 0xc], str.Could_not_create_cache_entry:__08lx_n
mov dword [esp + 8], str.create_cache_entry
mov dword [esp + 0x10], eax
mov dword [esp + 4], 0x10047194
mov dword [esp], 2
call sym._wine_dbg_log.constprop.0_4
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 0xc], str.INTERNET_FLAG_NEED_FILE_is_not_supported_correctly_n
mov dword [esp + 8], str.create_cache_entry
mov dword [esp + 4], 0x10047194
mov dword [esp], 0
call sym._wine_dbg_log.constprop.0_4
jmp 0x10032ae9
mov eax, dword [ebp - 0x220]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_LeaveCriticalSection]
mov eax, dword [ebx + 0x10]
sub esp, 4
jmp 0x10032ad8
test byte [0x10047194], 4
jne 0x10032e8b
mov dword [ebx + 0xa8], 0
jmp 0x10032b51
xor edx, edx
mov eax, dword [ebp - 0x21c]
add dword [ebx + 0xb0], eax
adc dword [ebx + 0xb4], edx
jmp 0x10032d94
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x34]
mov dword [esp + 0xc], str.Could_not_create_file:__lu_n
mov dword [esp + 8], str.create_cache_entry
mov dword [esp + 0x10], eax
mov dword [esp + 4], 0x10047194
mov dword [esp], 2
call sym._wine_dbg_log.constprop.0_4
jmp 0x10032e63
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x34]
mov dword [esp + 0xc], str.WriteFile_failed:__lu_n
mov dword [esp + 8], str.create_cache_entry
mov dword [esp + 0x10], eax
mov dword [esp + 4], 0x10047194
mov dword [esp], 0
call sym._wine_dbg_log.constprop.0_4
jmp 0x10032d94