Function at 0x6c133290
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 0x6c1332ba
mov dword [esp], eax
call sym._req_file_release
mov dword [ebx + 0xac], 0
mov eax, dword [ebx + 0xa8]
test eax, eax
je 0x6c1332da
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 0x6c133370
test al, 0x10
je 0x6c133361
test byte [0x6c147194], 1
jne 0x6c133627
mov eax, ebx
call sym._compose_request_url
mov esi, eax
test eax, eax
je 0x6c133486
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 0x6c1334c0
test byte [0x6c147194], 4
jne 0x6c1335ee
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 0x6c133463
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 0x6c133463
lea esi, [esi]
cmp ax, 9
je 0x6c1333d8
cmp ax, 0x20
jne 0x6c1333eb
lea esi, [esi]
movzx eax, word [edi + 2]
add edi, 2
cmp ax, 0x20
je 0x6c1333d8
cmp ax, 9
je 0x6c1333d8
mov dword [esp + 4], 0x2c
mov dword [esp], edi
call dword [sym.imp.ucrtbase.dll_wcschr]
mov esi, eax
test eax, eax
je 0x6c1335d0
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 0x6c133650
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 0x6c133650
movzx eax, word [esi]
mov edi, esi
cmp ax, 0x2c
jne 0x6c13345a
movzx eax, word [esi + 2]
add edi, 2
test ax, ax
jne 0x6c1333c8
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 0x6c13330a
test byte [0x6c147194], 4
je 0x6c133361
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 0x6c133361
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 0x6c13366a
mov edx, dword [ebx + 0xe8]
test edx, edx
je 0x6c133361
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 0x6c1335a5
test byte [0x6c147194], 1
je 0x6c1335a5
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 0x6c133361
mov eax, ebx
call sym._commit_cache_entry
jmp 0x6c133361
cmp word [edi], 0
mov esi, edi
je 0x6c133406
lea esi, [esi]
add esi, 2
cmp word [esi], 0
jne 0x6c1335e0
jmp 0x6c133406
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 0x6c1332f9
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 0x6c1332e8
test byte [0x6c147194], 4
jne 0x6c133682
mov dword [ebx + 0xa8], 0
jmp 0x6c133361
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 0x6c133673