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

Disassembly:
push rbx
push rdi
push r13
push r15
sub rsp, 0x2b8
mov rax, qword [0x14002e008]
xor rax, rsp
mov qword [rsp + 0x290], rax
mov rdi, r8
mov r15, rdx
xor ebx, ebx
call fcn.14000df30
mov r13, rax
test rax, rax
jne 0x14000e259
lea rcx, str.ERROR:_Invalid_archive_n
call fcn.1400023a0
lea eax, [rbx - 1]
jmp 0x14000e6f0
mov rcx, qword [rax]
mov rdx, r15
mov qword [rsp + 0x2f8], rbp
mov qword [rsp + 0x2b0], rsi
mov qword [rsp + 0x2a8], r12
mov qword [rsp + 0x2a0], r14
mov dword [0x14002ee38], ebx
test rcx, rcx
je 0x14000e439
xor r8d, r8d
call qword [sym.imp.zip.dll_zip_name_locate]
mov rsi, rax
test eax, eax
jns 0x14000e2b7
mov rdx, r15
lea rcx, str.ERROR:_zip_name_locate:__s_n
call fcn.1400023a0
mov eax, 0xffffffff
jmp 0x14000e6d0
lea rcx, [rsp + 0x30]
call qword [sym.imp.zip.dll_zip_stat_init]
mov rcx, qword [r13]
lea r9, [rsp + 0x30]
movsxd rsi, esi
xor r8d, r8d
mov rdx, rsi
call qword [sym.imp.zip.dll_zip_stat_index]
test eax, eax
je 0x14000e2f7
mov rdx, r15
lea rcx, str.ERROR:_zip_stat_index:__s_n
call fcn.1400023a0
mov eax, 0xffffffff
jmp 0x14000e6d0
mov ecx, 0x100000
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov r14, rax
test rax, rax
jne 0x14000e31f
lea rcx, str.ERROR:_Unable_to_allocate_memory_n
call fcn.1400023a0
lea eax, [r14 - 1]
jmp 0x14000e6d0
mov rcx, qword [r13]
xor r8d, r8d
mov rdx, rsi
call qword [sym.imp.zip.dll_zip_fopen_index]
mov r12, rax
test rax, rax
jne 0x14000e350
mov rdx, r15
lea rcx, str.ERROR:_zip_fopen_index:__s_n
call fcn.1400023a0
lea eax, [r12 - 1]
jmp 0x14000e6d0
lea rdx, [0x14001df94]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
mov qword [rsp + 0x28], rax
test rax, rax
jne 0x14000e38c
mov rdx, rdi
lea rcx, str.ERROR:_Unable_to_open_output_file:__s_n
call fcn.1400023a0
mov rcx, r12
call qword [sym.imp.zip.dll_zip_fclose]
mov eax, 0xffffffff
jmp 0x14000e6d0
mov rsi, qword [rsp + 0x48]
mov ecx, 0x100000
test rsi, rsi
je 0x14000e417
nop dword [rax + rax]
cmp dword [0x14002ee38], ebx
jne 0x14000e417
mov eax, esi
cmp rsi, 0x100000
mov rdx, r14
cmovae eax, ecx
movsxd rcx, eax
mov dword [rsp + 0x20], ecx
mov r8, rcx
mov rcx, r12
call qword [sym.imp.zip.dll_zip_fread]
test eax, eax
js 0x14000e403
mov r9, qword [rsp + 0x28]
mov edx, 1
movsxd rbp, eax
mov rcx, r14
mov r8, rbp
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rax, rbp
jne 0x14000e3f7
mov ecx, dword [rsp + 0x20]
sub rsi, rbp
jne 0x14000e3a0
jmp 0x14000e417
mov rdx, rdi
lea rcx, str.ERROR:_frite:__s_n
jmp 0x14000e40d
mov rdx, r15
lea rcx, str.ERROR:_zip_fread:__s_n
call fcn.1400023a0
mov ebx, 0xffffffff
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rcx, r12
call qword [sym.imp.zip.dll_zip_fclose]
jmp 0x14000e693
mov rcx, qword [rax + 8]
call fcn.14000de70
xor r9d, r9d
lea r8, [rsp + 0x180]
mov edx, 0x105
mov rcx, rax
mov r15, rax
call qword [sym.imp.KERNEL32.dll_GetFullPathNameA]
xor r9d, r9d
mov byte [rsp + 0x70], bl
lea r8, [rsp + 0x70]
mov edx, 0x105
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFullPathNameA]
lea rcx, [rsp + 0x180]
lea r8, [rsp + 0x70]
sub r8, rcx
nop dword [rax + rax]
movzx edx, byte [rcx]
movzx eax, byte [rcx + r8]
sub edx, eax
jne 0x14000e4a3
inc rcx
test eax, eax
jne 0x14000e490
test edx, edx
je 0x14000e68a
cmp byte [rsp + 0x70], bl
jne 0x14000e4ce
lea rcx, [rsp + 0x70]
sub rcx, rdi
nop dword [rax]
movzx eax, byte [rdi]
mov byte [rcx + rdi], al
lea rdi, [rdi + 1]
test al, al
jne 0x14000e4c0
lea rdx, [0x14001dbf4]
lea rcx, [rsp + 0x180]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
mov rdi, rax
test rax, rax
jne 0x14000e51a
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov ecx, dword [rax]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_strerror]
lea rdx, [rsp + 0x180]
mov r8, rax
lea rcx, str.ERROR:_fopen:__s:__s_n
call fcn.1400023a0
mov ebx, 0xffffffff
jmp 0x14000e68a
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__fileno]
mov ecx, eax
lea rdx, [rsp + 0x30]
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__fstat64i32]
test eax, eax
je 0x14000e56c
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov ecx, dword [rax]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_strerror]
mov r8, rax
lea rdx, [rsp + 0x180]
lea rcx, str.ERROR:_fstat:__s:__s_n
call fcn.1400023a0
mov ebx, 0xffffffff
jmp 0x14000e68a
lea rdx, [0x14001df94]
lea rcx, [rsp + 0x70]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
mov r14, rax
test rax, rax
jne 0x14000e5a7
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov ecx, dword [rax]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_strerror]
lea rdx, [rsp + 0x70]
jmp 0x14000e501
mov ecx, 0x100000
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rbp, rax
mov rcx, rdi
test rax, rax
jne 0x14000e5e0
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
lea rcx, str.ERROR:_Unable_to_allocate_memory_n
call fcn.1400023a0
lea ebx, [rbp - 1]
jmp 0x14000e68a
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_feof]
test eax, eax
jne 0x14000e66f
nop
cmp dword [0x14002ee38], ebx
jne 0x14000e66f
mov r9, rdi
mov edx, 1
mov r8d, 0x100000
mov rcx, rbp
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov rsi, rax
test rax, rax
js 0x14000e64d
mov r9, r14
mov r8, rax
mov edx, 1
mov rcx, rbp
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rax, rsi
jne 0x14000e63f
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_feof]
test eax, eax
je 0x14000e5f0
jmp 0x14000e66f
lea rcx, str.ERROR:_fwrite_failed_n
call fcn.1400023a0
jmp 0x14000e66a
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov ecx, dword [rax]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_strerror]
mov rdx, rax
lea rcx, str.ERROR:_fread_failed:__s_n
call fcn.1400023a0
mov ebx, 0xffffffff
mov rcx, rbp
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rcx, r15
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, qword [r13 + 8]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, qword [r13]
test rcx, rcx
je 0x14000e6b6
call qword [sym.imp.zip.dll_zip_unchange_all]
mov rcx, qword [r13]
call qword [sym.imp.zip.dll_zip_close]
mov rcx, r13
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
cmp dword [0x14002ee38], 0
mov eax, 0xfffffffe
cmovne ebx, eax
mov eax, ebx
mov r12, qword [rsp + 0x2a8]
mov rsi, qword [rsp + 0x2b0]
mov rbp, qword [rsp + 0x2f8]
mov r14, qword [rsp + 0x2a0]
mov rcx, qword [rsp + 0x290]
xor rcx, rsp
call fcn.14001bfa0
add rsp, 0x2b8
pop r15
pop r13
pop rdi
pop rbx
ret