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

Disassembly:
mov rax, rsp
push rbp
push rdi
push r12
push r13
push r14
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 8], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov rsi, rdx
mov r13, rcx
lea rcx, section..data
mov rax, qword [section..data]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rbp + 0x48], rax
lea rdx, [0x140363bd0]
lea rcx, [rbp - 0x18]
call fcn.14000cb18
nop
lea rdx, [rbp - 0x18]
lea rcx, [rbp + 0x48]
call fcn.140222e48
mov r12d, eax
mov rdx, qword [rbp - 0x18]
add rdx, 0xffffffffffffffe8
or r14, 0xffffffffffffffff
mov ecx, r14d
lock xadd dword [rdx + 0x10], ecx
add ecx, r14d
test ecx, ecx
jg 0x1402235af
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
mov rbx, qword [rbp + 0x48]
test r12d, r12d
jne 0x14022374b
cmp dword [rbx - 0x10], r12d
jne 0x1402235cd
mov r12d, 2
jmp 0x14022374b
mov qword [rbp + 0x40], r14
mov dword [rsp + 0x20], 2
mov r9d, 1
mov r8d, 0x40000000
mov rdx, rbx
lea rcx, [rbp + 0x40]
call fcn.140021fb8
test eax, eax
jne 0x140223603
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r12d, eax
jmp 0x14022373b
lea rcx, section..data
mov rax, qword [section..data]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rbp - 0x20], rax
mov rdi, qword [rsi]
jmp 0x14022364c
mov r8, qword [rdi]
lea rdx, str._s_r_n
lea rcx, [rbp - 0x20]
call fcn.14000d9c8
mov r8b, 1
lea rdx, [rbp - 0x20]
lea rcx, [rbp + 0x40]
call fcn.14001fbc0
test eax, eax
je 0x140223654
add rdi, 8
cmp rdi, qword [rsi + 8]
jne 0x140223621
jmp 0x14022365d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r12d, eax
mov rcx, qword [rbp + 0x40]
cmp rcx, r14
je 0x140223670
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbp + 0x40], r14
test r12d, r12d
jne 0x1402236d6
mov qword [rbp - 0x10], r14
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov r8d, 0xc0000000
mov rdx, qword [r13]
lea rcx, [rbp - 0x10]
call fcn.140021fb8
test eax, eax
sete dil
mov rcx, qword [rbp - 0x10]
cmp rcx, r14
je 0x1402236ac
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test dil, dil
je 0x1402236b9
mov r12d, 5
jmp 0x1402236d6
xor r8d, r8d
mov rdx, qword [r13]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x1402236d6
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r12d, eax
xor edx, edx
mov rcx, rbx
call fcn.140223418
test eax, eax
jne 0x14022370d
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 0x140223717
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
nop
mov rdx, qword [rbp - 0x20]
add rdx, 0xffffffffffffffe8
mov eax, r14d
lock xadd dword [rdx + 0x10], eax
add eax, r14d
test eax, eax
jg 0x140223737
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rbx, qword [rbp + 0x48]
mov rcx, qword [rbp + 0x40]
cmp rcx, r14
je 0x14022374b
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
lea rdx, [rbx - 0x18]
mov eax, r14d
lock xadd dword [rdx + 0x10], eax
add eax, r14d
test eax, eax
jg 0x140223767
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov eax, r12d
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop r13
pop r12
pop rdi
pop rbp
ret