Function at 0x140012fa0
Capabilities:
Copy file
Delete file
Get file size
Read file on windows

Disassembly:
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x1a0
mov qword [rsp + 0x78], 0xfffffffffffffffe
mov rax, qword [0x1401620c0]
xor rax, rsp
mov qword [rsp + 0x190], rax
mov rsi, r9
mov qword [rsp + 0x70], r8
mov dword [rsp + 0x50], edx
mov rbx, rcx
mov qword [rsp + 0x60], rcx
mov dword [rsp + 0x48], edx
mov qword [rsp + 0x58], r9
xor edi, edi
mov dword [rsp + 0x40], edi
mov byte [rsp + 0x80], dil
xor edx, edx
mov r8d, 0x103
lea rcx, [rsp + 0x81]
call fcn.1400c2840
nop
mov rcx, rbx
call fcn.140012e70
test eax, eax
je 0x1400132b2
test rsi, rsi
je 0x140013295
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0x80000000
lea r8d, [r9 + 1]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov r12, rax
mov qword [rsp + 0x68], rax
cmp rax, 0xffffffffffffffff
jne 0x14001314b
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x20
jne 0x140013295
mov rdx, rsi
lea r8, [rsp + 0x80]
nop
nop
movzx ecx, byte [rdx]
mov byte [r8], cl
add rdx, 1
add r8, 1
test cl, cl
jne 0x140013080
mov edx, 0x2e
lea rcx, [rsp + 0x80]
call fcn.1400c2dd0
mov r13, rax
test rax, rax
je 0x140013141
mov ebx, edi
mov dword [rsp + 0x4c], ebx
nop
nop
nop
lea rcx, [r13 + 1]
mov r8d, ebx
lea rdx, str._03d
call fcn.1400c2cf0
lea rcx, [rsp + 0x80]
call fcn.1400b6a90
test eax, eax
je 0x1400130f4
mov eax, ebx
add ebx, 1
mov dword [rsp + 0x4c], ebx
cmp eax, 0x3e7
jb 0x1400130c0
mov r8d, 1
lea rdx, [rsp + 0x80]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
je 0x140013141
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor r8d, r8d
mov edx, 0x80000000
lea rcx, [rsp + 0x80]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov r12, rax
mov qword [rsp + 0x68], rax
cmp r12, 0xffffffffffffffff
je 0x140013295
mov dword [rsp + 0x44], edi
xor edx, edx
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov r14d, eax
mov ecx, eax
call fcn.14008c4a0
mov r13, rax
mov qword [rsp + 0x20], rdi
lea r9, [rsp + 0x44]
mov r8d, r14d
mov rdx, rax
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [rsp + 0x44], r14d
jne 0x14001324c
lea ebx, [r14 + 0x20]
lea ecx, [rbx + 0x5c]
call fcn.14008c4a0
mov rsi, rax
mov dword [rax], 0x100
lea eax, [rbx + 0x5c]
mov dword [rsi + 8], eax
xor ecx, ecx
call fcn.1400c2a40
mov dword [rsi + 0xc], eax
mov dword [rsi + 0x44], 4
mov dword [rsi + 0x50], ebx
and dword [rsi + 0x48], 0xffffff00
mov ecx, dword [rsi + 0x48]
or ecx, 1
mov dword [rsi + 0x48], ecx
movzx eax, cl
cmp eax, 1
jne 0x1400131d8
lea rdi, [rsi + 0x54]
jmp 0x1400131f7
cmp eax, 2
jne 0x1400131e3
mov rdi, qword [rsi + 0x54]
jmp 0x1400131f7
cmp eax, 4
jne 0x1400131ee
mov rdi, qword [rsi + 0x54]
jmp 0x1400131f7
cmp eax, 3
jne 0x1400131f7
mov rdi, qword [rsi + 0x54]
lea eax, [rbx + 0x5c]
mov dword [rdi + 4], eax
mov dword [rdi], 4
mov eax, dword [rsp + 0x50]
mov dword [rdi + 8], eax
mov rax, qword [rsp + 0x70]
mov rax, qword [rax]
mov qword [rdi + 0x10], rax
mov dword [rdi + 0x18], r14d
lea rcx, [rdi + 0x1c]
mov r8, r14
mov rdx, r13
call fcn.1400c1a10
mov rdx, rsi
mov rcx, qword [rsp + 0x60]
mov rcx, qword [rcx + 8]
call fcn.140016300
mov rcx, rsi
call fcn.14008c4f0
mov dword [rsp + 0x40], 1
jmp 0x140013283
mov rcx, qword [0x140161b98]
mov rax, qword [rcx]
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x28], rdi
lea rdx, str.Error_reading_from_file_to_archive
mov qword [rsp + 0x20], rdx
mov r9d, 1
lea r8, str.ArchiveFile
lea rdx, [0x1400e8950]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rcx, r13
call fcn.14008c4f0
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
cmp byte [rsp + 0x80], 0
je 0x1400132ae
lea rcx, [rsp + 0x80]
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
nop
mov eax, dword [rsp + 0x40]
mov rcx, qword [rsp + 0x190]
xor rcx, rsp
call fcn.1400c2a20
add rsp, 0x1a0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret