Function at 0x14002ef60
Capabilities:
Copy file
Delete file

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x180]
sub rsp, 0x280
mov rax, qword [0x14009b940]
xor rax, rsp
mov qword [rbp + 0x170], rax
mov r15, r8
mov r12, rdx
mov rsi, rcx
mov rcx, qword [0x14009b028]
lea rax, [0x14009b028]
cmp rcx, rax
je 0x14002efc8
test byte [rcx + 0x1c], 4
je 0x14002efc8
cmp byte [rcx + 0x19], 5
jb 0x14002efc8
mov rcx, qword [rcx + 0x10]
lea r8, [0x140088e00]
mov edx, 0x2f
call fcn.140001024
xor ebx, ebx
lea rcx, [rsp + 0x60]
xor edx, edx
mov r8d, 0x208
mov edi, ebx
call sub.msvcrt.dll_memset
cmp dword [rsi + 0x24], 2
movzx r10d, bx
mov word [rsp + 0x50], bx
jne 0x14002f002
mov rdi, qword [rsi + 0x248]
test rdi, rdi
je 0x14002f002
mov rax, qword [rdi + 0xb8]
jmp 0x14002f005
mov rax, rbx
test rdi, rdi
je 0x14002f010
mov r14, qword [rdi + 0x48]
jmp 0x14002f014
mov r14, qword [rsi + 0x48]
test rax, rax
jne 0x14002f174
mov rax, qword [0x14009f428]
lea rcx, [rsp + 0x60]
test r12, r12
mov qword [rsp + 0x20], rcx
lea r9, [0x140088068]
cmovne r9, r12
xor r8d, r8d
mov rdx, qword [rax + 0x60]
call fcn.140068cdc
test rax, rax
jne 0x14002f0a8
mov rax, qword [0x14009b028]
lea r14, [0x14009b028]
cmp rax, r14
je 0x14002f3ce
test byte [rax + 0x1c], 4
je 0x14002f3ce
cmp byte [rax + 0x19], 2
jb 0x14002f3ce
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov edx, 0x30
mov rcx, qword [0x14009b028]
lea r8, [0x140088e00]
mov r9d, eax
mov rcx, qword [rcx + 0x10]
call fcn.140001050
jmp 0x14002f3ce
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CopyFileW]
nop dword [rax + rax]
test eax, eax
jne 0x14002f123
mov rax, qword [0x14009b028]
lea r14, [0x14009b028]
cmp rax, r14
je 0x14002f10d
test byte [rax + 0x1c], 4
je 0x14002f10d
cmp byte [rax + 0x19], 2
jb 0x14002f10d
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov rcx, qword [0x14009b028]
lea r8, [0x140088e00]
mov r9d, eax
mov edx, 0x31
mov rcx, qword [rcx + 0x10]
call fcn.140001050
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
nop dword [rax + rax]
jmp 0x14002f3ce
lea r8, [rsp + 0x60]
mov edx, 0x104
mov rcx, r15
call fcn.140002b44
mov edi, eax
test eax, eax
jns 0x14002f3ef
mov rcx, qword [0x14009b028]
lea r14, [0x14009b028]
cmp rcx, r14
je 0x14002f3ae
test byte [rcx + 0x1c], 4
je 0x14002f3ae
cmp byte [rcx + 0x19], 2
jb 0x14002f3ae
mov edx, 0x32
jmp 0x14002f39b
mov rcx, qword [rdi + 0x48]
test rcx, rcx
je 0x14002f1d2
lea rdx, [rsp + 0x50]
call fcn.14002edf0
test eax, eax
jne 0x14002f1cc
mov rax, qword [0x14009b028]
lea r14, [0x14009b028]
cmp rax, r14
je 0x14002f3ce
test byte [rax + 0x1c], 4
je 0x14002f3ce
cmp byte [rax + 0x19], 2
jb 0x14002f3ce
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov edx, 0x33
jmp 0x14002f089
movzx r10d, word [rsp + 0x50]
lea rdx, [rdi + 0xf0]
movzx ecx, r10w
lea rax, [rsp + 0x60]
mov qword [rsp + 0x38], rax
lea r9, [rsi + 0x1c0]
mov rax, qword [rdi + 0x1b8]
lea r8, [rdi + 0xb0]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], rdx
mov edx, dword [rsi + 0x40]
call fcn.14002e498
test eax, eax
jne 0x14002f26a
mov rcx, qword [0x14009b028]
lea r14, [0x14009b028]
cmp rcx, r14
je 0x14002f3ce
test byte [rcx + 0x1c], 4
je 0x14002f3ce
cmp byte [rcx + 0x19], 2
jb 0x14002f3ce
mov r9d, dword [rsi + 0x20]
lea edx, [rax + 0x34]
mov rax, qword [rdi + 0xb8]
lea r8, [0x140088e00]
mov rcx, qword [rcx + 0x10]
mov qword [rsp + 0x20], rax
call fcn.140001094
jmp 0x14002f3ce
mov rdx, qword [rdi + 0x48]
test rdx, rdx
je 0x14002f35f
lea rcx, [rsp + 0x60]
call qword [sym.imp.FXSTIFF.dll_MergeTiffFiles]
nop dword [rax + rax]
test eax, eax
jne 0x14002f35f
mov rax, qword [0x14009b028]
lea r14, [0x14009b028]
cmp rax, r14
je 0x14002f2e6
test byte [rax + 0x1c], 4
je 0x14002f2e6
cmp byte [rax + 0x19], 2
jb 0x14002f2e6
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov rcx, qword [0x14009b028]
mov r9d, dword [rsi + 0x20]
mov dword [rsp + 0x30], eax
mov rax, qword [rdi + 0x48]
mov rcx, qword [rcx + 0x10]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
call fcn.14002d5f8
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
nop dword [rax + rax]
test eax, eax
jne 0x14002f3ce
mov rax, qword [0x14009b028]
cmp rax, r14
je 0x14002f3ce
test byte [rax + 0x1c], 4
je 0x14002f3ce
cmp byte [rax + 0x19], 2
jb 0x14002f3ce
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov rcx, qword [0x14009b028]
lea r8, [0x140088e00]
mov r9d, dword [rsi + 0x20]
mov edx, 0x36
mov dword [rsp + 0x28], eax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov rcx, qword [rcx + 0x10]
call fcn.14002d6ec
jmp 0x14002f3ce
lea r8, [rsp + 0x60]
mov edx, 0x104
mov rcx, r15
call fcn.140002b44
mov edi, eax
test eax, eax
jns 0x14002f3ef
mov rcx, qword [0x14009b028]
lea r14, [0x14009b028]
cmp rcx, r14
je 0x14002f3ae
test byte [rcx + 0x1c], 4
je 0x14002f3ae
cmp byte [rcx + 0x19], 2
jb 0x14002f3ae
mov edx, 0x37
mov rcx, qword [rcx + 0x10]
lea r8, [0x140088e00]
mov r9d, edi
call fcn.140001050
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
nop dword [rax + rax]
movzx ecx, di
call qword [sym.imp.KERNEL32.dll_SetLastError]
nop dword [rax + rax]
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
test eax, eax
jne 0x14002f3f4
lea ecx, [rax + 0x1f]
call qword [sym.imp.KERNEL32.dll_SetLastError]
nop dword [rax + rax]
jmp 0x14002f3f4
mov ebx, 1
mov eax, ebx
mov rcx, qword [rbp + 0x170]
xor rcx, rsp
call fcn.14007e560
add rsp, 0x280
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret