Function at 0x6c115970
Capabilities:
Write file on windows

Disassembly:
push ebp
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x24c
mov eax, dword [eax + 0xac]
test eax, eax
je 0x6c115998
mov dword [esp], eax
call fcn.6c12e670
mov dword [ebx + 0xac], 0
mov eax, dword [ebx + 0xa8]
test eax, eax
je 0x6c1159b8
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 0x6c115b50
test al, 0x10
je 0x6c115a37
test byte [0x6c145188], 1
jne 0x6c115cd0
mov eax, ebx
call fcn.6c111500
mov esi, eax
test eax, eax
je 0x6c115c64
mov ecx, dword [ebx + 0xd8]
mov eax, dword [ebx + 0xdc]
and eax, ecx
cmp eax, 0xffffffff
je 0x6c115cc0
lea edi, [esp + 0x36]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], edi
mov dword [esp + 8], 0
mov dword [esp + 4], ecx
mov dword [esp], esi
call sym.wininet.dll_CreateUrlCacheEntryW
sub esp, 0x14
test eax, eax
jne 0x6c115a48
test byte [0x6c145188], 4
jne 0x6c115cf9
add esp, 0x24c
pop ebx
pop esi
pop edi
pop ebp
ret
lea eax, [ebx + 0xac]
mov dword [esp], edi
mov dword [esp + 4], eax
call fcn.6c12e5b0
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]
sub esp, 0x1c
mov dword [ebx + 0xa8], eax
cmp eax, 0xffffffff
je 0x6c115d47
mov edx, dword [ebx + 0xe8]
test edx, edx
je 0x6c115a37
lea ecx, [esp + 0x30]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], ecx
mov dword [esp + 8], edx
mov edx, dword [ebx + 0xe4]
mov dword [esp], eax
lea edx, [ebx + edx + 0xec]
mov dword [esp + 4], edx
call dword [sym.imp.kernel32.dll_WriteFile]
sub esp, 0x14
test eax, eax
jne 0x6c115b2b
test byte [0x6c145188], 1
je 0x6c115b2b
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 + 4], 0x6c145188
mov dword [esp], 0
mov dword [esp + 0x10], eax
call fcn.6c112820
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 0x6c115a37
mov eax, ebx
call fcn.6c1147b0
jmp 0x6c115a37
lea eax, [ebx + 0x80]
mov dword [esp + 0x2c], 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 fcn.6c113cf0
cmp eax, 0xffffffff
je 0x6c115c43
mov edx, dword [ebx + 0x98]
lea eax, [eax + eax*2]
mov esi, dword [sym.imp.ucrtbase.dll__wcsnicmp]
lea eax, [edx + eax*4]
mov ebp, dword [eax + 4]
movzx eax, word [ebp]
test ax, ax
je 0x6c115c43
lea esi, [esi]
lea esi, [esi]
cmp ax, 0x20
jne 0x6c115bcd
lea esi, [esi]
lea esi, [esi]
movzx eax, word [ebp + 2]
add ebp, 2
cmp ax, 0x20
je 0x6c115bc0
cmp ax, 9
je 0x6c115bc0
mov dword [esp + 4], 0x2c
mov dword [esp], ebp
call dword [sym.imp.ucrtbase.dll_wcschr]
mov edi, eax
test eax, eax
je 0x6c115ca0
mov dword [esp + 8], 8
mov dword [esp + 4], str.no_cache
mov dword [esp], ebp
call esi
test eax, eax
je 0x6c115d2f
mov dword [esp + 8], 8
mov dword [esp + 4], str.no_store
mov dword [esp], ebp
call esi
test eax, eax
je 0x6c115d2f
movzx eax, word [edi]
mov ebp, edi
cmp ax, 0x2c
jne 0x6c115c3a
movzx eax, word [edi + 2]
add ebp, 2
test ax, ax
jne 0x6c115bb0
mov eax, dword [esp + 0x2c]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_LeaveCriticalSection]
mov eax, ebx
sub esp, 4
call fcn.6c111500
mov esi, eax
test eax, eax
jne 0x6c1159e8
test byte [0x6c145188], 4
je 0x6c115a37
mov dword [esp + 0xc], str.Could_not_get_URL_n
mov dword [esp + 8], str.create_cache_entry
mov dword [esp + 4], 0x6c145188
mov dword [esp], 2
call fcn.6c112820
jmp 0x6c115a37
cmp word [ebp], 0
mov edi, ebp
je 0x6c115bee
lea esi, [esi]
add edi, 2
cmp word [edi], 0
jne 0x6c115cb0
jmp 0x6c115bee
xor ecx, ecx
jmp 0x6c1159ff
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], 0x6c145188
mov dword [esp], 0
call fcn.6c112820
jmp 0x6c1159d7
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 + 4], 0x6c145188
mov dword [esp], 2
mov dword [esp + 0x10], eax
call fcn.6c112820
jmp 0x6c115a37
mov eax, dword [esp + 0x2c]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_LeaveCriticalSection]
mov eax, dword [ebx + 0x10]
sub esp, 4
jmp 0x6c1159c6
test byte [0x6c145188], 4
jne 0x6c115d5f
mov dword [ebx + 0xa8], 0
jmp 0x6c115a37
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 + 4], 0x6c145188
mov dword [esp], 2
mov dword [esp + 0x10], eax
call fcn.6c112820
jmp 0x6c115d50