Function at 0x140001490
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, 0xa8
pxor xmm0, xmm0
lea r14, [rsp + 0x40]
mov r15, rcx
mov rsi, rdx
movups xmmword [rsp + 0x70], xmm0
mov qword [rsp + 0x100], r8
lea rdx, section..rdata
mov r8d, 0x58
mov rcx, r14
mov qword [rsp + 0x108], r9
mov qword [rsp + 0x80], 0
mov dword [rsp + 0x48], 0
mov qword [rsp + 0x40], 0
call fcn.140009990
mov ebx, eax
test eax, eax
jne 0x1400017b5
mov ecx, 0x2000
call sub.msvcrt.dll_malloc
mov r12, rax
test rax, rax
je 0x140001814
mov ecx, 0x2000
call sub.msvcrt.dll_malloc
mov r13, rax
test rax, rax
je 0x1400017f5
mov rax, r14
mov edi, dword [rsi + 8]
mov r14, r13
mov r13, r12
mov r12, r15
mov r15, rax
mov ebx, 0x2000
mov r9, qword [r12]
mov edx, 1
mov rcx, r13
cmp rdi, rbx
cmovbe rbx, rdi
mov r8, rbx
call sub.msvcrt.dll_fread
cmp rax, rbx
jne 0x140001790
mov rcx, qword [r12]
call sub.msvcrt.dll_ferror
test eax, eax
jne 0x140001790
mov qword [rsp + 0x40], r13
mov qword [rsp + 0x20], rdi
mov dword [rsp + 0x34], eax
mov dword [rsp + 0x48], ebx
mov qword [rsp + 0x28], rbx
mov rbx, r14
mov r14, rsi
xor edx, edx
mov rcx, r15
mov qword [rsp + 0x50], rbx
mov dword [rsp + 0x58], 0x2000
call fcn.140009a40
mov ebp, eax
cmp eax, 0xffffffff
jge 0x1400015d0
cmp eax, 0xfffffffc
jl 0x140001630
mov r12, r13
mov rsi, r14
mov r13, rbx
mov r10d, eax
mov r14, r15
jmp 0x1400015e7
cmp eax, 2
jne 0x140001630
mov r12, r13
mov rsi, r14
mov r13, rbx
mov r14, r15
mov r10d, 0xfffffffd
lea rdx, [rsi + 0x12]
mov r8d, r10d
lea rcx, str.Failed_to_extract__s:_decompression_resulted_in_return_code__d__n
call fcn.140002a70
mov ebx, 0xffffffff
mov rcx, r14
call fcn.14000b7f0
mov rcx, r12
call sub.msvcrt.dll_free
mov rcx, r13
call sub.msvcrt.dll_free
mov eax, ebx
add rsp, 0xa8
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov edx, dword [rsp + 0x58]
mov r8d, 0x2000
sub r8, rdx
mov rax, rdx
cmp qword [rsp + 0x100], 0
je 0x1400016e0
mov r9, qword [rsp + 0x100]
mov edx, 1
mov rcx, rbx
mov qword [rsp + 0x38], r8
call sub.msvcrt.dll_fwrite
mov r8, qword [rsp + 0x38]
cmp rax, r8
jne 0x14000179e
mov rcx, qword [rsp + 0x100]
call sub.msvcrt.dll_ferror
test eax, eax
jne 0x14000179e
mov eax, dword [rsp + 0x58]
test eax, eax
je 0x140001598
mov rdi, qword [rsp + 0x20]
mov rsi, r14
mov r14, rbx
mov rbx, qword [rsp + 0x28]
mov eax, dword [rsp + 0x34]
sub rdi, rbx
cmp ebp, 1
je 0x14000182d
test rdi, rdi
jne 0x140001541
mov r12, r13
mov r10d, ebp
mov r13, r14
mov ebx, eax
mov r14, r15
cmp ebp, 1
je 0x1400015ff
jmp 0x1400015e7
cmp qword [rsp + 0x108], 0
je 0x140001690
cmp r8, 8
jae 0x140001740
test r8b, 4
jne 0x1400017d2
test r8, r8
je 0x140001730
movzx edx, byte [rbx]
mov rdi, qword [rsp + 0x108]
mov byte [rdi], dl
test r8b, 2
je 0x140001730
movzx edx, word [rbx + r8 - 2]
mov rdi, qword [rsp + 0x108]
mov word [rdi + r8 - 2], dx
nop word [rax + rax]
add qword [rsp + 0x108], r8
jmp 0x140001690
mov rdx, qword [rbx]
mov rdi, qword [rsp + 0x108]
mov rsi, rbx
mov qword [rdi], rdx
mov rdi, qword [rsp + 0x108]
mov rdx, qword [rbx + r8 - 8]
mov qword [rdi + r8 - 8], rdx
mov rdi, qword [rsp + 0x108]
mov rcx, qword [rsp + 0x108]
add rdi, 8
and rdi, 0xfffffffffffffff8
sub rcx, rdi
sub rsi, rcx
add rcx, r8
shr rcx, 3
rep movsq qword [rdi], qword [rsi]
jmp 0x140001730
mov r12, r13
mov r13, r14
mov r14, r15
jmp 0x1400015fa
mov r12, r13
mov rsi, r14
mov r13, rbx
mov r14, r15
mov r10d, 0xffffffff
jmp 0x1400015e7
lea rdx, [rsi + 0x12]
mov r8d, eax
mov ebx, 0xffffffff
lea rcx, str.Failed_to_extract__s:_inflateInit___failed_with_return_code__d__n
call fcn.140002a70
jmp 0x140001617
mov edx, dword [rbx]
mov rdi, qword [rsp + 0x108]
mov dword [rdi], edx
mov edx, dword [rbx + r8 - 4]
mov rdi, qword [rsp + 0x108]
mov dword [rdi + r8 - 4], edx
jmp 0x140001730
lea r8, [rsi + 0x12]
lea rdx, str.Failed_to_extract__s:_failed_to_allocate_temporary_output_buffer__n
lea rcx, str.malloc
call fcn.140002bf0
xor r13d, r13d
jmp 0x1400015ff
lea r8, [rsi + 0x12]
lea rdx, str.Failed_to_extract__s:_failed_to_allocate_temporary_input_buffer__n
lea rcx, str.malloc
call fcn.140002bf0
jmp 0x14000180c
mov r12, r13
mov ebx, eax
mov r13, r14
mov r14, r15
jmp 0x1400015ff