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

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x98
pxor xmm0, xmm0
lea r15, [rsp + 0x30]
mov qword [rsp + 0xe8], rdx
mov rbx, rcx
lea rdx, section..rdata
mov qword [rsp + 0xf0], r8
mov rcx, r15
mov r8d, 0x58
mov qword [rsp + 0xf8], r9
mov qword [rsp + 0x70], 0
mov dword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
movaps xmmword [rsp + 0x60], xmm0
call fcn.14000d4b0
mov r12d, eax
test eax, eax
jne 0x1400018ab
mov ecx, 0x2000
call sub.msvcrt.dll_malloc
mov r13, rax
test rax, rax
je 0x140001928
mov ecx, 0x2000
call sub.msvcrt.dll_malloc
mov r14, rax
mov rax, qword [rsp + 0xe8]
test r14, r14
je 0x14000190c
mov eax, dword [rax + 8]
mov qword [rsp + 0x28], rax
mov ebp, 0x2000
mov r9, rbx
mov edx, 1
mov rcx, r13
cmp rax, 0x2000
cmovbe rbp, rax
mov r8, rbp
call main
cmp rax, rbp
jne 0x1400018a0
mov rcx, rbx
call sub.msvcrt.dll_ferror
mov r12d, eax
test eax, eax
jne 0x1400018a0
cmp qword [rsp + 0xf0], 0
mov dword [rsp + 0x38], ebp
mov qword [rsp + 0x30], r13
je 0x1400017d7
xor edx, edx
mov rcx, r15
mov qword [rsp + 0x40], r14
mov dword [rsp + 0x48], 0x2000
call fcn.14000d690
mov esi, eax
cmp eax, 0xffffffff
jl 0x140001728
cmp eax, 2
jne 0x140001731
mov r10d, 0xfffffffd
mov r8d, r10d
mov rax, qword [rsp + 0xe8]
lea rcx, str.Failed_to_extract__s:_decompression_resulted_in_return_code__d__n
mov r12d, 0xffffffff
lea rdx, [rax + 0x12]
call fcn.140002500
mov rcx, r15
call fcn.14000f6e0
mov rcx, r13
call sub.msvcrt.dll_free
mov rcx, r14
call sub.msvcrt.dll_free
mov eax, r12d
add rsp, 0x98
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
cmp eax, 0xfffffffc
jge 0x140001808
mov eax, dword [rsp + 0x48]
mov edi, 0x2000
mov edx, 1
mov rcx, r14
mov r9, qword [rsp + 0xf0]
sub rdi, rax
mov r8, rdi
call sub.msvcrt.dll_fwrite
cmp rax, rdi
jne 0x140001895
mov rcx, qword [rsp + 0xf0]
call sub.msvcrt.dll_ferror
test eax, eax
jne 0x140001895
mov eax, dword [rsp + 0x48]
test eax, eax
je 0x1400016a8
mov r10d, esi
sub qword [rsp + 0x28], rbp
mov rax, qword [rsp + 0x28]
cmp r10d, 1
je 0x1400016f2
test rax, rax
jne 0x140001652
cmp r10d, 1
je 0x1400016f2
jmp 0x1400016d1
cmp eax, 0xfffffffc
jge 0x1400016d1
mov ecx, dword [rsp + 0x48]
mov edx, 0x2000
sub rdx, rcx
mov rax, rcx
cmp qword [rsp + 0xf8], 0
jne 0x140001810
test eax, eax
jne 0x140001782
xor edx, edx
mov rcx, r15
mov qword [rsp + 0x40], r14
mov dword [rsp + 0x48], 0x2000
call fcn.14000d690
mov r10d, eax
cmp eax, 0xffffffff
jl 0x1400017b0
cmp eax, 2
je 0x1400016cb
jmp 0x1400017b9
mov r10d, eax
jmp 0x1400016d1
cmp rdx, 8
jae 0x140001848
test dl, 4
jne 0x1400018d1
test rdx, rdx
je 0x14000183b
movzx ecx, byte [r14]
mov rdi, qword [rsp + 0xf8]
mov byte [rdi], cl
test dl, 2
jne 0x1400018f4
add qword [rsp + 0xf8], rdx
jmp 0x1400017d3
mov rcx, qword [r14]
mov rdi, qword [rsp + 0xf8]
mov rsi, r14
mov qword [rdi], rcx
mov rcx, qword [r14 + rdx - 8]
mov rdi, qword [rsp + 0xf8]
mov qword [rdi + rdx - 8], rcx
mov rdi, qword [rsp + 0xf8]
mov rcx, qword [rsp + 0xf8]
add rdi, 8
and rdi, 0xfffffffffffffff8
sub rcx, rdi
sub rsi, rcx
add rcx, rdx
shr rcx, 3
rep movsq qword [rdi], qword [rsi]
jmp 0x14000183b
mov r10d, 0xffffffff
jmp 0x1400016d1
mov r12d, 0xffffffff
jmp 0x1400016f2
mov rax, qword [rsp + 0xe8]
mov r8d, r12d
lea rcx, str.Failed_to_extract__s:_inflateInit___failed_with_return_code__d__n
mov r12d, 0xffffffff
lea rdx, [rax + 0x12]
call fcn.140002500
jmp 0x14000170a
mov ecx, dword [r14]
mov rdi, qword [rsp + 0xf8]
mov dword [rdi], ecx
mov ecx, dword [r14 + rdx - 4]
mov rdi, qword [rsp + 0xf8]
mov dword [rdi + rdx - 4], ecx
jmp 0x14000183b
movzx ecx, word [r14 + rdx - 2]
mov rdi, qword [rsp + 0xf8]
mov word [rdi + rdx - 2], cx
jmp 0x14000183b
lea r8, [rax + 0x12]
lea rdx, str.Failed_to_extract__s:_failed_to_allocate_temporary_output_buffer__n
lea rcx, str.malloc
call fcn.140002560
jmp 0x1400016f2
mov rax, qword [rsp + 0xe8]
lea rdx, str.Failed_to_extract__s:_failed_to_allocate_temporary_input_buffer__n
lea rcx, str.malloc
xor r14d, r14d
lea r8, [rax + 0x12]
call fcn.140002560
jmp 0x1400016f2