Function at 0x1402dd068
Capabilities:
Check if file exists
Copy file
Delete file
Get file attributes

Disassembly:
mov rax, rsp
push rdi
push r12
push r14
sub rsp, 0x130
mov qword [rsp + 0x58], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rsi
mov rax, qword [0x14045cbf0]
xor rax, rsp
mov qword [rsp + 0x120], rax
mov r14, rdx
mov rsi, rcx
cmp byte [rcx + 0x38], 0
je 0x1402dd0b1
mov r12d, 0xd
jmp 0x1402dd30d
lea rcx, section..data
mov rax, qword [section..data]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x30], rax
lea rdx, [0x140363bd0]
lea rcx, [rsp + 0x48]
call fcn.14000cb18
nop
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x30]
call fcn.140222e48
mov r12d, eax
mov rdx, qword [rsp + 0x48]
add rdx, 0xffffffffffffffe8
or ecx, 0xffffffff
lock xadd dword [rdx + 0x10], ecx
dec ecx
test ecx, ecx
jg 0x1402dd10f
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rbx, qword [rsp + 0x30]
test r12d, r12d
jne 0x1402dd2f2
cmp dword [rbx - 0x10], r12d
jne 0x1402dd12e
mov r12d, 2
jmp 0x1402dd2f2
lea rax, [rsp + 0x98]
mov qword [rsp + 0x90], rax
mov r8d, 3
mov rdx, rbx
lea rcx, [rsp + 0x90]
call fcn.140008c4c
nop
mov qword [rsp + 0x78], 0xf
and qword [rsp + 0x70], 0
mov byte [rsp + 0x60], 0
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdx, qword [rsp + 0x90]
mov rdi, rdx
repne scasb al, byte [rdi]
not rcx
lea r8, [rcx - 1]
lea rcx, [rsp + 0x60]
call fcn.1400031c0
nop
lea rax, [rsp + 0x98]
mov rcx, qword [rsp + 0x90]
cmp rcx, rax
je 0x1402dd1a8
call fcn.1400be914
call fcn.1400b8eb8
mov qword [rsp + 0x40], rax
call fcn.1400b8c68
mov rdi, rax
xor edx, edx
lea rcx, [rsp + 0x3c]
call fcn.1400b8b44
mov rcx, qword [rdi + 8]
cmp rcx, 0xffffffffffffffff
jae 0x1402dd1d7
inc rcx
mov qword [rdi + 8], rcx
lea rcx, [rsp + 0x3c]
call fcn.1400b8b74
nop
lea rdx, [rsi + 8]
lea r8, [rsp + 0x40]
lea rcx, [rsp + 0x60]
call fcn.140084590
nop
lea rcx, [rsp + 0x40]
call fcn.140009e40
mov rdi, qword [r14]
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_SetErrorMode]
mov esi, eax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor edi, edi
cmp eax, 0xffffffff
setne dil
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_SetErrorMode]
test edi, edi
je 0x1402dd276
or qword [rsp + 0x50], 0xffffffffffffffff
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov r8d, 0xc0000000
mov rdx, qword [r14]
lea rcx, [rsp + 0x50]
call fcn.140021fb8
test eax, eax
sete dil
mov rcx, qword [rsp + 0x50]
cmp rcx, 0xffffffffffffffff
je 0x1402dd269
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test dil, dil
je 0x1402dd276
mov r12d, 5
jmp 0x1402dd292
xor r8d, r8d
mov rdx, qword [r14]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x1402dd292
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r12d, eax
xor edx, edx
mov rcx, rbx
call fcn.140223418
test eax, eax
jne 0x1402dd2c9
lea ecx, [rax + 1]
call qword [sym.imp.KERNEL32.dll_SetErrorMode]
mov esi, eax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor edi, edi
cmp eax, 0xffffffff
setne dil
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_SetErrorMode]
test edi, edi
je 0x1402dd2d3
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
nop
cmp qword [rsp + 0x78], 0x10
jb 0x1402dd2e6
mov rcx, qword [rsp + 0x60]
call fcn.1400be0f4
nop
jmp 0x1402dd2f2
lea rdx, [rbx - 0x18]
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x1402dd30d
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov eax, r12d
mov rcx, qword [rsp + 0x120]
xor rcx, rsp
call fcn.1400be110
lea r11, [rsp + 0x130]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop r12
pop rdi
ret