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

Disassembly:
mov rax, rsp
push r12
sub rsp, 0x130
mov qword [rsp + 0x58], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x14045cbf0]
xor rax, rsp
mov qword [rsp + 0x120], rax
mov rsi, rcx
cmp byte [rcx + 0x74], 0
je 0x1402d045f
mov r12d, 0xd
jmp 0x1402d068d
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 0x1402d04bd
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rbx, qword [rsp + 0x30]
test r12d, r12d
jne 0x1402d0672
cmp dword [rbx - 0x10], r12d
jne 0x1402d04dc
mov r12d, 2
jmp 0x1402d0672
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 0x1402d0556
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 0x1402d0585
inc rcx
mov qword [rdi + 8], rcx
lea rcx, [rsp + 0x3c]
call fcn.1400b8b74
nop
lea rdx, [rsi + 0x10]
lea r8, [rsp + 0x40]
lea rcx, [rsp + 0x60]
call fcn.140084590
nop
lea rcx, [rsp + 0x40]
call fcn.140009e40
or qword [rsp + 0x50], 0xffffffffffffffff
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov r8d, 0xc0000000
mov rdx, qword [rsi]
lea rcx, [rsp + 0x50]
call fcn.140021fb8
test eax, eax
sete dil
mov rcx, qword [rsp + 0x50]
cmp rcx, 0xffffffffffffffff
je 0x1402d05e9
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test dil, dil
je 0x1402d05f6
mov r12d, 5
jmp 0x1402d0612
xor r8d, r8d
mov rdx, qword [rsi]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x1402d0612
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r12d, eax
xor edx, edx
mov rcx, rbx
call fcn.140223418
test eax, eax
jne 0x1402d0649
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 0x1402d0653
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
nop
cmp qword [rsp + 0x78], 0x10
jb 0x1402d0666
mov rcx, qword [rsp + 0x60]
call fcn.1400be0f4
nop
jmp 0x1402d0672
lea rdx, [rbx - 0x18]
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x1402d068d
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 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r12
ret