Function at 0x14003d684
Capabilities:
Copy file
Delete file

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x280
mov rax, qword [0x14009e140]
xor rax, rsp
mov qword [rsp + 0x270], rax
mov r13, r8
mov r14, rdx
mov rsi, rcx
mov rcx, qword [str.P5_n_]
lea r12, str.P5_n_
cmp rcx, r12
je 0x14003d6e5
test byte [rcx + 0x1c], 4
je 0x14003d6e5
cmp byte [rcx + 0x19], 5
jb 0x14003d6e5
mov rcx, qword [rcx + 0x10]
lea r8, [0x140009808]
mov edx, 0x2f
call fcn.14000ffa8
xor ebx, ebx
lea rcx, [rsp + 0x62]
xor edx, edx
mov r8d, 0x206
mov rdi, rbx
mov word [rsp + 0x60], bx
call sub.msvcrt.dll_memset
cmp dword [rsi + 0x24], 2
movzx r10d, bx
mov word [rsp + 0x50], bx
jne 0x14003d725
mov rdi, qword [rsi + 0x248]
cmp rdi, rbx
je 0x14003d725
mov rax, qword [rdi + 0xb8]
jmp 0x14003d728
mov rax, rbx
cmp rdi, rbx
je 0x14003d733
mov rbp, qword [rdi + 0x48]
jmp 0x14003d737
mov rbp, qword [rsi + 0x48]
cmp rax, rbx
jne 0x14003d88a
mov rax, qword [0x1400a40c8]
lea rcx, [rsp + 0x60]
lea r9, [0x140009df8]
mov rdx, qword [rax + 0x60]
mov r12d, 0x104
cmp r14, rbx
cmovne r9, r14
mov dword [rsp + 0x28], r12d
mov qword [rsp + 0x20], rcx
xor r8d, r8d
xor ecx, ecx
call fcn.140078d40
cmp rax, rbx
jne 0x14003d7d2
mov rax, qword [str.P5_n_]
lea rbp, str.P5_n_
cmp rax, rbp
je 0x14003dac9
test byte [rax + 0x1c], 4
je 0x14003dac9
cmp byte [rax + 0x19], 2
jb 0x14003dac9
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, 0x30
mov rcx, qword [str.P5_n_]
lea r8, [0x140009808]
mov r9d, eax
mov rcx, qword [rcx + 0x10]
call fcn.1400100e0
jmp 0x14003dac9
lea rdx, [rsp + 0x60]
xor r8d, r8d
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CopyFileW]
cmp eax, ebx
jne 0x14003d83b
mov rax, qword [str.P5_n_]
lea rbp, str.P5_n_
cmp rax, rbp
je 0x14003d82b
test byte [rax + 0x1c], 4
je 0x14003d82b
cmp byte [rax + 0x19], 2
jb 0x14003d82b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [str.P5_n_]
lea r8, [0x140009808]
mov rcx, qword [rcx + 0x10]
mov r9d, eax
mov edx, 0x31
call fcn.1400100e0
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x14003dac9
lea r8, [rsp + 0x60]
mov rdx, r12
mov rcx, r13
call fcn.14001191c
cmp eax, ebx
mov edi, eax
jge 0x14003dae0
mov rcx, qword [str.P5_n_]
lea rbp, str.P5_n_
cmp rcx, rbp
je 0x14003dab5
test byte [rcx + 0x1c], 4
je 0x14003dab5
cmp byte [rcx + 0x19], 2
jb 0x14003dab5
mov edx, 0x32
jmp 0x14003daa2
mov rcx, qword [rdi + 0x48]
cmp rcx, rbx
je 0x14003d8db
lea rdx, [rsp + 0x50]
call fcn.14003d534
cmp eax, ebx
jne 0x14003d8d5
mov rax, qword [str.P5_n_]
cmp rax, r12
je 0x14003dac9
test byte [rax + 0x1c], 4
je 0x14003dac9
cmp byte [rax + 0x19], 2
jb 0x14003dac9
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, 0x33
jmp 0x14003d7b3
mov r10w, word [rsp + 0x50]
lea rdx, [rdi + 0xf0]
lea rax, [rsp + 0x60]
mov r12d, 0x104
mov dword [rsp + 0x40], r12d
mov qword [rsp + 0x38], rax
mov rax, qword [rdi + 0x1b8]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], rdx
mov edx, dword [rsi + 0x40]
lea r9, [rsi + 0x1c0]
lea r8, [rdi + 0xb0]
movzx ecx, r10w
call fcn.14003cb28
cmp eax, ebx
jne 0x14003d980
mov rcx, qword [str.P5_n_]
lea rbp, str.P5_n_
cmp rcx, rbp
je 0x14003dac9
test byte [rcx + 0x1c], 4
je 0x14003dac9
cmp byte [rcx + 0x19], 2
jb 0x14003dac9
mov rax, qword [rdi + 0xb8]
mov r9d, dword [rsi + 0x20]
mov rcx, qword [rcx + 0x10]
lea r8, [0x140009808]
mov edx, 0x34
mov qword [rsp + 0x20], rax
call fcn.140058098
jmp 0x14003dac9
mov rdx, qword [rdi + 0x48]
cmp rdx, rbx
je 0x14003da68
lea rcx, [rsp + 0x60]
call sub.FXSTIFF.dll_MergeTiffFiles
cmp eax, ebx
jne 0x14003da68
mov rax, qword [str.P5_n_]
lea rbp, str.P5_n_
cmp rax, rbp
je 0x14003d9fb
test byte [rax + 0x1c], 4
je 0x14003d9fb
cmp byte [rax + 0x19], 2
jb 0x14003d9fb
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [str.P5_n_]
mov r9d, dword [rsi + 0x20]
mov rcx, qword [rcx + 0x10]
mov dword [rsp + 0x30], eax
mov rax, qword [rdi + 0x48]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x60]
lea r8, [0x140009808]
mov edx, 0x35
mov qword [rsp + 0x20], rax
call fcn.14003bae4
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp eax, ebx
jne 0x14003dac9
mov rax, qword [str.P5_n_]
cmp rax, rbp
je 0x14003dac9
test byte [rax + 0x1c], 4
je 0x14003dac9
cmp byte [rax + 0x19], 2
jb 0x14003dac9
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [str.P5_n_]
mov r9d, dword [rsi + 0x20]
mov rcx, qword [rcx + 0x10]
mov dword [rsp + 0x28], eax
lea rax, [rsp + 0x60]
lea r8, [0x140009808]
mov edx, 0x36
mov qword [rsp + 0x20], rax
call fcn.14003b8f4
jmp 0x14003dac9
lea r8, [rsp + 0x60]
mov rdx, r12
mov rcx, r13
call fcn.14001191c
cmp eax, ebx
mov edi, eax
jge 0x14003dae0
mov rcx, qword [str.P5_n_]
lea rbp, str.P5_n_
cmp rcx, rbp
je 0x14003dab5
test byte [rcx + 0x1c], 4
je 0x14003dab5
cmp byte [rcx + 0x19], 2
jb 0x14003dab5
mov edx, 0x37
mov rcx, qword [rcx + 0x10]
lea r8, [0x140009808]
mov r9d, eax
call fcn.1400100e0
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
movzx ecx, di
call qword [sym.imp.KERNEL32.dll_SetLastError]
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jne 0x14003dae5
mov ecx, 0x1f
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x14003dae5
mov ebx, 1
mov eax, ebx
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.14008c5b0
add rsp, 0x280
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret