Function at 0x14003d9c0
Capabilities:
Copy file
Delete directory
Delete file

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x168]
sub rsp, 0x268
mov qword [rbp - 0x58], 0xfffffffffffffffe
mov rax, qword [0x1401730f8]
xor rax, rsp
mov qword [rbp + 0x150], rax
mov rdi, r9
movzx esi, r8b
mov r15, rdx
mov r14, rcx
mov qword [rbp - 0x48], r9
xor ebx, ebx
mov dword [rsp + 0x44], ebx
lea r12, [0x140102478]
lea r13, [0x1401025f8]
cmp qword [r9 + 0x18], rbx
jne 0x14003db0c
call fcn.1400afc34
test al, al
je 0x14003da3e
lea rcx, [rbp + 0x60]
call fcn.1400a55bc
nop
mov ebx, 1
jmp 0x14003dab2
lea rax, [rsp + 0x58]
mov qword [rsp + 0x48], rax
lea rax, [rbp - 0x40]
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], r12
mov qword [rbp - 0x68], r13
xor r9d, r9d
lea r8, [rsp + 0x40]
lea rdx, [0x1400fc414]
lea rcx, [rsp + 0x58]
call fcn.140003cb0
nop
mov qword [rbp - 0x40], r12
mov qword [rbp], r13
xor r9d, r9d
lea r8, [rsp + 0x40]
lea rdx, [0x1400fc414]
lea rcx, [rbp - 0x40]
call fcn.140003cb0
nop
lea r9, [rsp + 0x58]
lea r8, [rbp - 0x40]
xor edx, edx
lea rcx, [rbp + 0xb0]
call fcn.1400a5bdc
nop
mov ebx, 2
mov dword [rsp + 0x44], ebx
lea rdx, [rax + 8]
test rax, rax
mov eax, 0
cmove rdx, rax
lea rcx, [rdi + 8]
cmp rcx, rdx
je 0x14003dadc
or r9, 0xffffffffffffffff
xor r8d, r8d
call fcn.140004680
nop
test bl, 2
je 0x14003daf5
and ebx, 0xfffffffd
mov dword [rsp + 0x44], ebx
lea rcx, [rbp + 0xb0]
call fcn.1400048d0
nop
test bl, 1
je 0x14003db0a
and ebx, 0xfffffffe
mov dword [rsp + 0x44], ebx
lea rcx, [rbp + 0x60]
call fcn.1400048d0
xor ebx, ebx
lea rax, [rbp - 0x40]
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0x58]
mov qword [rsp + 0x48], rax
mov qword [rbp - 0x40], r12
mov qword [rbp], r13
xor r8d, r8d
mov rdx, rdi
lea rcx, [rbp - 0x40]
call fcn.140006eb0
nop
mov qword [rsp + 0x58], r12
mov qword [rbp - 0x68], r13
xor r9d, r9d
lea r8, [rsp + 0x40]
lea rdx, [0x140109f58]
lea rcx, [rsp + 0x58]
call fcn.140003cb0
nop
lea r9, [rbp - 0x40]
lea r8, [rsp + 0x58]
mov dl, 1
lea rcx, [rbp + 0x10]
call fcn.1400a5bdc
nop
lea rdx, [rbp + 0x18]
cmp qword [rbp + 0x30], 8
cmovae rdx, qword [rbp + 0x18]
lea rcx, [r14 + 8]
cmp qword [rcx + 0x18], 8
jb 0x14003db8b
mov rcx, qword [rcx]
mov r8d, 1
call qword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x14003dbbc
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
lea rcx, [rbp + 0x10]
call fcn.1400048d0
nop
mov rcx, rdi
call fcn.1400048d0
mov eax, ebx
jmp 0x14003dde0
xor r9d, r9d
xor r8d, r8d
lea rdx, [rbp - 0x40]
lea rcx, [rbp + 0x10]
call fcn.14002edc0
nop
lea r8, [0x140102568]
mov rdx, rax
lea rcx, [rbp + 0x60]
call fcn.14000cde0
nop
mov r8, r15
mov rdx, rax
lea rcx, [rbp + 0x100]
call fcn.14000cf90
nop
lea rcx, [rbp + 0x60]
call fcn.1400048d0
nop
lea rcx, [rbp - 0x40]
call fcn.1400048d0
test sil, sil
setne bl
mov qword [rbp + 0xb0], r12
mov qword [rbp + 0xf0], r13
xor r9d, r9d
lea r8, [rsp + 0x40]
lea rdx, str.open
lea rcx, [rbp + 0xb0]
call fcn.140003cb0
nop
lea rax, [rbp - 0x40]
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0x58]
mov qword [rsp + 0x48], rax
lea rax, [rbp + 0x60]
mov qword [rbp - 0x50], rax
mov qword [rbp - 0x40], r12
mov qword [rbp], r13
xor r9d, r9d
lea r8, [rsp + 0x40]
lea rdx, [0x1400fc414]
lea rcx, [rbp - 0x40]
call fcn.140003cb0
nop
mov qword [rsp + 0x58], r12
mov qword [rbp - 0x68], r13
xor r8d, r8d
lea rdx, [rbp + 0x100]
lea rcx, [rsp + 0x58]
call fcn.140006eb0
nop
mov qword [rbp + 0x60], r12
mov qword [rbp + 0xa0], r13
xor r9d, r9d
lea r8, [rsp + 0x40]
lea rdx, [0x1400fc414]
lea rcx, [rbp + 0x60]
call fcn.140003cb0
nop
lea rax, [rbp + 0xb0]
mov qword [rsp + 0x38], rax
xor eax, eax
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x28], 1
mov dword [rsp + 0x20], 0xffffffff
mov r9d, ebx
lea r8, [rbp - 0x40]
lea rdx, [rsp + 0x58]
lea rcx, [rbp + 0x60]
call fcn.1400a6110
test eax, eax
setne bl
lea rcx, [rbp + 0xb0]
call fcn.1400048d0
test bl, bl
je 0x14003dd2d
lea rcx, [rbp + 0x100]
call fcn.1400048d0
nop
lea rcx, [rbp + 0x10]
call fcn.1400048d0
nop
mov rcx, rdi
call fcn.1400048d0
mov eax, 0x8004070c
jmp 0x14003dde0
test sil, sil
je 0x14003ddbf
mov ebx, dword [0x14017a644]
mov rcx, qword [0x14017a650]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [0x14017a648]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, [rbp + 0xb0]
lea rcx, [rbp + 0x10]
call fcn.14002ecf0
nop
lea rcx, [rbp + 0xb0]
call fcn.1400048d0
lea rcx, [rbp + 0x18]
cmp qword [rbp + 0x30], 8
cmovae rcx, qword [rbp + 0x18]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
lea rcx, [rdi + 8]
cmp qword [rcx + 0x18], 8
jb 0x14003dd95
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
nop
lea rcx, [rbp + 0x100]
call fcn.1400048d0
nop
lea rcx, [rbp + 0x10]
call fcn.1400048d0
nop
mov rcx, rdi
call fcn.1400048d0
mov eax, ebx
jmp 0x14003dde0
lea rcx, [rbp + 0x100]
call fcn.1400048d0
nop
lea rcx, [rbp + 0x10]
call fcn.1400048d0
nop
mov rcx, rdi
call fcn.1400048d0
xor eax, eax
mov rcx, qword [rbp + 0x150]
xor rcx, rsp
call fcn.1400b31f0
add rsp, 0x268
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret