Function at 0x10011dd0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x804c
call fcn.10037d10
mov eax, dword [0x100505e4]
xor eax, esp
mov dword [esp + 0x8048], eax
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CreateFileW]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
push 0
push 0x80
push 3
push 0
push 3
push 0x80000000
push edi
call ebx
mov dword [esp + 0x14], eax
cmp eax, 0xffffffff
jne 0x10011e47
push edi
push str.Compress_error_file_open_failed:__s_n
mov ecx, 3
call fcn.10011b20
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x8048]
xor ecx, esp
call fcn.10024280
mov esp, ebp
pop ebp
ret 0xc
push 0
push 0x80
push 2
push 0
push 3
push 0x40000000
push esi
call ebx
mov edi, eax
cmp edi, 0xffffffff
jne 0x10011e9a
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
push str.Compress_error_failed_create_destination_file:__s_n
mov ecx, 3
call fcn.10011b20
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x8048]
xor ecx, esp
call fcn.10024280
mov esp, ebp
pop ebp
ret 0xc
push 0x38
lea ecx, [esp + 0x1c]
push 0
push ecx
call fcn.1002a240
mov edx, dword [ebp + 0x10]
add esp, 0xc
push edx
mov eax, str.1.2.3
lea ecx, [esp + 0x1c]
call fcn.1001edb0
add esp, 4
test eax, eax
je 0x10011ef0
push eax
push str.Compress_error_failed_deflateInit:__d_n
mov ecx, 3
call fcn.1000d790
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x8048]
xor ecx, esp
call fcn.10024280
mov esp, ebp
pop ebp
ret 0xc
push 0x3fff
lea eax, [esp + 0x55]
push 0
push eax
mov dword [esp + 0x1c], 0
mov byte [esp + 0x5c], 0
call fcn.1002a240
add esp, 0xc
push 0x3fff
lea ecx, [esp + 0x4055]
push 0
push ecx
mov byte [esp + 0x405c], 0
call fcn.1002a240
mov ebx, dword [esp + 0x20]
add esp, 0xc
push 0
lea edx, [esp + 0x14]
push edx
push 0x4000
lea eax, [esp + 0x5c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10012009
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
lea ebx, [ebx]
mov eax, dword [esp + 0x10]
test eax, eax
je 0x10012009
lea ecx, [esp + 0x50]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], ecx
jmp 0x10011f80
lea edx, [esp + 0x4050]
push 2
lea eax, [esp + 0x1c]
mov dword [esp + 0x2c], 0x4000
mov dword [esp + 0x28], edx
call fcn.1001f120
add esp, 4
cmp eax, 0xfffffffe
jne 0x10011fb8
push str.ret___Z_STREAM_ERROR
push str.Assertion_error__s_n
call fcn.10011c50
add esp, 8
push 0
lea eax, [esp + 0x14]
push eax
mov ecx, 0x4000
sub ecx, dword [esp + 0x30]
lea edx, [esp + 0x4058]
push ecx
push edx
push edi
call esi
mov eax, dword [esp + 0x28]
mov ecx, 0x4000
sub ecx, eax
cmp dword [esp + 0x10], ecx
jne 0x1001203a
test eax, eax
je 0x10011f80
push 0
lea edx, [esp + 0x14]
push edx
push 0x4000
lea eax, [esp + 0x5c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x10011f60
lea esi, [esp + 0x18]
call fcn.1001f900
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call esi
push ebx
call esi
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x8048]
xor ecx, esp
call fcn.10024280
mov esp, ebp
pop ebp
ret 0xc
lea esi, [esp + 0x18]
call fcn.1001f900
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call esi
push ebx
call esi
mov ecx, dword [esp + 0x8054]
pop edi
pop esi
pop ebx
xor ecx, esp
xor eax, eax
call fcn.10024280
mov esp, ebp
pop ebp
ret 0xc