Function at 0x14002a570
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 [0x1402ba4e0]
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.14010da60
nop
mov rcx, rbx
call fcn.14002a370
test eax, eax
je 0x14002a875
test rsi, rsi
je 0x14002a858
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 0x14002a71a
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x20
jne 0x14002a858
mov rdx, rsi
lea r8, [rsp + 0x80]
nop word [rax + rax]
movzx ecx, byte [rdx]
mov byte [r8], cl
inc rdx
inc r8
test cl, cl
jne 0x14002a650
mov edx, 0x2e
lea rcx, [rsp + 0x80]
call fcn.14010db4c
mov r13, rax
test rax, rax
je 0x14002a710
mov ebx, edi
mov dword [rsp + 0x4c], ebx
nop word [rax + rax]
lea rcx, [r13 + 1]
mov r8d, ebx
lea rdx, str._03d
call fcn.14010d754
lea rcx, [rsp + 0x80]
call fcn.1400d0090
test eax, eax
je 0x14002a6c3
mov eax, ebx
inc ebx
mov dword [rsp + 0x4c], ebx
cmp eax, 0x3e7
jb 0x14002a690
mov r8d, 1
lea rdx, [rsp + 0x80]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
je 0x14002a710
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 0x14002a858
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.14010a204
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 0x14002a80f
lea ebx, [r14 + 0x20]
lea ecx, [rbx + 0x5c]
call fcn.14010a204
mov rsi, rax
mov dword [rax], 0x100
lea eax, [rbx + 0x5c]
mov dword [rsi + 8], eax
xor ecx, ecx
call fcn.14010d57c
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 0x14002a7a7
lea rdi, [rsi + 0x54]
jmp 0x14002a7ba
cmp eax, 2
je 0x14002a7b6
cmp eax, 4
je 0x14002a7b6
cmp eax, 3
jne 0x14002a7ba
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.14010c9b0
mov rdx, rsi
mov rcx, qword [rsp + 0x60]
mov rcx, qword [rcx + 8]
call fcn.14002e230
mov rcx, rsi
call fcn.140085540
mov dword [rsp + 0x40], 1
jmp 0x14002a846
mov rcx, qword [0x1402b90d0]
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, [0x1402028e8]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rcx, r13
call fcn.14010d304
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
cmp byte [rsp + 0x80], 0
je 0x14002a871
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.14010d170
add rsp, 0x1a0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret