Function at 0x6c133230
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x24c
mov eax, dword [eax + 0xac]
test eax, eax
je 0x6c13325a
mov dword [esp], eax
call sym._req_file_release
mov dword [ebx + 0xac], 0
mov eax, dword [ebx + 0xa8]
test eax, eax
je 0x6c13327a
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 0x6c133310
test al, 0x10
je 0x6c133301
test byte [0x6c147194], 1
jne 0x6c1335c7
mov eax, ebx
call sym._compose_request_url
mov esi, eax
test eax, eax
je 0x6c133426
mov eax, dword [ebx + 0xd8]
mov edx, dword [ebx + 0xdc]
lea edi, [ebp - 0x222]
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 0x6c133460
test byte [0x6c147194], 4
jne 0x6c13358e
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
lea eax, [ebx + 0x80]
mov dword [ebp - 0x22c], 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 0x6c133403
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 0x6c133403
lea esi, [esi]
cmp ax, 9
je 0x6c133378
cmp ax, 0x20
jne 0x6c13338b
lea esi, [esi]
movzx eax, word [edi + 2]
add edi, 2
cmp ax, 0x20
je 0x6c133378
cmp ax, 9
je 0x6c133378
mov dword [esp + 4], 0x2c
mov dword [esp], edi
call dword [sym.imp.ucrtbase.dll_wcschr]
mov esi, eax
test eax, eax
je 0x6c133570
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 0x6c1335f0
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 0x6c1335f0
movzx eax, word [esi]
mov edi, esi
cmp ax, 0x2c
jne 0x6c1333fa
movzx eax, word [esi + 2]
add edi, 2
test ax, ax
jne 0x6c133368
mov eax, dword [ebp - 0x22c]
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 0x6c1332aa
test byte [0x6c147194], 4
je 0x6c133301
mov dword [esp + 0xc], str.Could_not_get_URL_n
mov dword [esp + 8], str.create_cache_entry
mov dword [esp + 4], 0x6c147194
mov dword [esp], 2
call sym._wine_dbg_log.constprop.0_4
jmp 0x6c133301
lea eax, [ebx + 0xac]
mov dword [esp], edi
mov dword [esp + 4], eax
call sym._create_req_file
mov eax, dword [ebx + 0xac]
mov dword [eax + 0xc], esi
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 0x6c13360a
mov edx, dword [ebx + 0xe8]
test edx, edx
je 0x6c133301
mov dword [esp + 8], edx
mov edx, dword [ebx + 0xe4]
lea ecx, [ebp - 0x228]
mov dword [esp + 0x10], 0
lea edx, [ebx + edx + 0xec]
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 0x6c133545
test byte [0x6c147194], 1
je 0x6c133545
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], 0x6c147194
mov dword [esp], 0
call sym._wine_dbg_log.constprop.0_4
mov eax, dword [ebx + 0x20ec]
mov edx, dword [eax]
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [edx]
test eax, eax
je 0x6c133301
mov eax, ebx
call sym._commit_cache_entry
jmp 0x6c133301
cmp word [edi], 0
mov esi, edi
je 0x6c1333a6
lea esi, [esi]
add esi, 2
cmp word [esi], 0
jne 0x6c133580
jmp 0x6c1333a6
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], 0x6c147194
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], 0x6c147194
mov dword [esp], 0
call sym._wine_dbg_log.constprop.0_4
jmp 0x6c133299
mov eax, dword [ebp - 0x22c]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_LeaveCriticalSection]
mov eax, dword [ebx + 0x10]
sub esp, 4
jmp 0x6c133288
test byte [0x6c147194], 4
jne 0x6c133622
mov dword [ebx + 0xa8], 0
jmp 0x6c133301
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], 0x6c147194
mov dword [esp], 2
call sym._wine_dbg_log.constprop.0_4
jmp 0x6c133613