Function at 0x140030828
Capabilities:
Copy file
Delete file

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x180]
sub rsp, 0x280
mov rax, qword [0x1400a3ac8]
xor rax, rsp
mov qword [rbp + 0x170], rax
mov r12, r8
mov r15, rdx
mov rsi, rcx
mov rcx, qword [str._0_n_]
lea rax, str._0_n_
cmp rcx, rax
je 0x140030895
test byte [rcx + 0x1c], 4
je 0x140030895
cmp byte [rcx + 0x19], 5
jb 0x140030895
mov rcx, qword [rcx + 0x10]
lea r8, [0x140093550]
mov edx, 0x2f
call fcn.14000459c
xor edx, edx
lea rcx, [rsp + 0x60]
mov r8d, 0x208
call sub.msvcrt.dll_memset
xor r13d, r13d
cmp dword [rsi + 0x24], 2
movzx r10d, r13w
mov word [rsp + 0x50], r13w
mov ebx, r13d
jne 0x140030b4c
mov rdi, qword [rsi + 0x248]
test rdi, rdi
je 0x140030b4c
mov r14, qword [rdi + 0x48]
cmp qword [rdi + 0xb8], r13
je 0x140030b50
mov rcx, r14
test r14, r14
je 0x14003093e
lea rdx, [rsp + 0x50]
call fcn.140033290
test eax, eax
jne 0x140030938
mov rax, qword [str._0_n_]
lea r14, str._0_n_
cmp rax, r14
je 0x140030cd0
test byte [rax + 0x1c], 4
je 0x140030cd0
cmp byte [rax + 0x19], 2
jb 0x140030cd0
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
lea edx, [r13 + 0x33]
jmp 0x140030bbf
movzx r10d, word [rsp + 0x50]
mov edx, dword [rsi + 0x40]
lea rcx, [rdi + 0xf0]
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], r15
mov qword [rsp + 0x20], rcx
movzx ecx, r10w
call fcn.14002ff1c
test eax, eax
jne 0x1400309d6
mov rcx, qword [str._0_n_]
lea r14, str._0_n_
cmp rcx, r14
je 0x140030cd0
test byte [rcx + 0x1c], 4
je 0x140030cd0
cmp byte [rcx + 0x19], 2
jb 0x140030cd0
mov r9d, dword [rsi + 0x20]
lea edx, [rax + 0x34]
mov rax, qword [rdi + 0xb8]
lea r8, [0x140093550]
mov rcx, qword [rcx + 0x10]
mov qword [rsp + 0x20], rax
call fcn.14000c964
jmp 0x140030cd0
mov rdx, qword [rdi + 0x48]
test rdx, rdx
je 0x140030ace
lea rcx, [rsp + 0x60]
call qword [sym.imp.FXSTIFF.dll_MergeTiffFiles]
nop dword [rax + rax]
test eax, eax
jne 0x140030ace
mov rax, qword [str._0_n_]
lea r14, str._0_n_
cmp rax, r14
je 0x140030a52
test byte [rax + 0x1c], 4
je 0x140030a52
cmp byte [rax + 0x19], 2
jb 0x140030a52
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov rcx, qword [str._0_n_]
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.14003786c
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
nop dword [rax + rax]
test eax, eax
jne 0x140030cd0
mov rax, qword [str._0_n_]
cmp rax, r14
je 0x140030cd0
test byte [rax + 0x1c], 4
je 0x140030cd0
cmp byte [rax + 0x19], 2
jb 0x140030cd0
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov rcx, qword [str._0_n_]
lea r8, [0x140093550]
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.14003794c
jmp 0x140030cd0
lea r8, [rsp + 0x60]
mov edx, 0x104
mov rcx, r12
call fcn.1400044ac
mov edi, eax
test eax, eax
jns 0x140030b42
mov rcx, qword [str._0_n_]
lea r14, str._0_n_
cmp rcx, r14
je 0x140030b1d
test byte [rcx + 0x1c], 4
je 0x140030b1d
cmp byte [rcx + 0x19], 2
jb 0x140030b1d
mov rcx, qword [rcx + 0x10]
lea r8, [0x140093550]
mov edx, 0x37
mov r9d, eax
call fcn.140004994
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]
jmp 0x140030cd0
mov ebx, 1
jmp 0x140030cef
mov r14, qword [rsi + 0x48]
mov rax, qword [0x1400a76e8]
lea rcx, [0x140092798]
test r15, r15
cmove r15, rcx
lea rcx, [rsp + 0x60]
mov rdx, qword [rax + 0x60]
mov r9, r15
xor r8d, r8d
mov qword [rsp + 0x20], rcx
call fcn.14006ca50
test rax, rax
jne 0x140030bde
mov rax, qword [str._0_n_]
lea r14, str._0_n_
cmp rax, r14
je 0x140030cd0
test byte [rax + 0x1c], 4
je 0x140030cd0
cmp byte [rax + 0x19], 2
jb 0x140030cd0
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov edx, 0x30
mov rcx, qword [str._0_n_]
lea r8, [0x140093550]
mov r9d, eax
mov rcx, qword [rcx + 0x10]
call fcn.140004994
jmp 0x140030cd0
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 0x140030c56
mov rax, qword [str._0_n_]
lea r14, str._0_n_
cmp rax, r14
je 0x140030c43
test byte [rax + 0x1c], 4
je 0x140030c43
cmp byte [rax + 0x19], 2
jb 0x140030c43
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov rcx, qword [str._0_n_]
lea r8, [0x140093550]
mov edx, 0x31
mov r9d, eax
mov rcx, qword [rcx + 0x10]
call fcn.140004994
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
nop dword [rax + rax]
jmp 0x140030cd0
lea r8, [rsp + 0x60]
mov edx, 0x104
mov rcx, r12
call fcn.1400044ac
mov edi, eax
test eax, eax
jns 0x140030cc7
mov rcx, qword [str._0_n_]
lea r14, str._0_n_
cmp rcx, r14
je 0x140030ca5
test byte [rcx + 0x1c], 4
je 0x140030ca5
cmp byte [rcx + 0x19], 2
jb 0x140030ca5
mov rcx, qword [rcx + 0x10]
lea r8, [0x140093550]
mov edx, 0x32
mov r9d, eax
call fcn.140004994
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]
jmp 0x140030ccc
mov ebx, 1
test ebx, ebx
jne 0x140030cef
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
test eax, eax
jne 0x140030cef
lea ecx, [rax + 0x1f]
call qword [sym.imp.KERNEL32.dll_SetLastError]
nop dword [rax + rax]
mov eax, ebx
mov rcx, qword [rbp + 0x170]
xor rcx, rsp
call fcn.140001b10
mov rbx, qword [rsp + 0x2d8]
add rsp, 0x280
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret