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

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
cmp byte [rdx + 0x11], 0x6e
mov rbx, rcx
mov r13, rdx
mov rsi, r8
je 0x140001da8
lea rdx, [0x1400112a4]
mov rcx, r8
call fcn.140003ef0
mov r12, rax
test rax, rax
je 0x140001eb1
lea rdx, [0x140011179]
mov rcx, rbx
call fcn.140003ef0
mov rbp, rax
test rax, rax
je 0x140001e38
mov edx, dword [r13 + 4]
xor r8d, r8d
add edx, dword [rbx + 0x1000]
mov rcx, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fseek
test eax, eax
js 0x140001e88
cmp byte [r13 + 0x10], 1
je 0x140001de0
mov ecx, 0x2000
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
mov rdi, rax
test rax, rax
je 0x140001eda
mov esi, dword [r13 + 0xc]
test rsi, rsi
jne 0x140001d4e
jmp 0x140001e50
mov r9, r12
mov r8d, 1
mov rdx, rbx
mov rcx, rdi
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
test rax, rax
je 0x140001e60
sub rsi, rbx
je 0x140001e50
mov ebx, 0x2000
mov r9, rbp
mov r8d, 1
mov rcx, rdi
cmp rsi, rbx
cmovbe rbx, rsi
mov rdx, rbx
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fread
test rax, rax
jne 0x140001d28
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
lea r9, [r13 + 0x12]
lea r8, str.Failed_to_extract__s:_failed_to_read_data_chunk__n
mov edx, dword [rax]
lea rcx, str.fread
call fcn.1400025c0
mov ebx, 0xffffffff
mov rcx, rdi
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
jmp 0x140001df3
call fcn.140001af0
mov rdi, rax
test rax, rax
je 0x140001e12
mov rcx, rax
mov rdx, rsi
call fcn.140003f90
mov rcx, rdi
mov ebx, eax
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
test ebx, ebx
js 0x140001e20
mov eax, ebx
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
xor r9d, r9d
mov r8, r12
mov rdx, r13
mov rcx, rbp
call fcn.1400016f0
mov ebx, eax
mov rcx, rbp
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fclose
mov rcx, r12
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fclose
mov eax, ebx
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
mov ebx, 0xffffffff
nop word [rax + rax]
lea rdx, [r13 + 0x12]
lea rcx, str.Failed_to_create_symbolic_link__s__n
call fcn.140002520
jmp 0x140001dce
lea rdx, [r13 + 0x12]
lea rcx, str.Failed_to_extract__s:_failed_to_open_archive_file__n
mov ebx, 0xffffffff
call fcn.140002520
jmp 0x140001dfb
xor ebx, ebx
jmp 0x140001d97
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
lea r9, [r13 + 0x12]
lea r8, str.Failed_to_extract__s:_failed_to_write_data_chunk__n
mov edx, dword [rax]
lea rcx, str.fwrite
call fcn.1400025c0
jmp 0x140001d92
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
lea r9, [r13 + 0x12]
lea r8, str.Failed_to_extract__s:_failed_to_seek_to_the_entrys_data__n
mov edx, dword [rax]
lea rcx, str.fseek
call fcn.1400025c0
mov ebx, 0xffffffff
jmp 0x140001df3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
lea r9, [r13 + 0x12]
mov ebx, 0xffffffff
lea r8, str.Failed_to_extract__s:_failed_to_open_target_file__n
mov edx, dword [rax]
lea rcx, str.fopen
call fcn.1400025c0
jmp 0x140001dce
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
lea r9, [r13 + 0x12]
lea r8, str.Failed_to_extract__s:_failed_to_allocate_temporary_buffer__n
mov edx, dword [rax]
lea rcx, str.malloc
call fcn.1400025c0
jmp 0x140001ea7