Function at 0x14000cd00
Capabilities:
Check if file exists
Copy file
Move file

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x100b8
call fcn.140023f70
sub rsp, rax
mov rax, qword [0x14002dda0]
xor rax, rsp
mov qword [rsp + 0x100a0], rax
mov r13, rcx
lea rcx, [rsp + 0x50]
mov r14d, r9d
mov ebp, r8d
mov rdi, rdx
call qword [sym.imp.KERNEL32.DLL_GetSystemTime]
xor r15d, r15d
xor r9d, r9d
xor edx, edx
mov qword [rsp + 0x30], r15
lea r8d, [r15 + 7]
mov rcx, rdi
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.DLL_CreateFileW]
mov r12, rax
lea ebx, [r15 + 1]
test rax, rax
je 0x14000ce4d
lea rdx, [rsp + 0x60]
mov rcx, rax
call qword [sym.imp.KERNEL32.DLL_GetFileInformationByHandle]
test eax, eax
jne 0x14000cdaa
lea rdx, [rsp + 0x74]
lea rcx, [rsp + 0x50]
mov ebx, r15d
mov esi, r15d
mov ebp, r15d
call qword [sym.imp.KERNEL32.DLL_SystemTimeToFileTime]
jmp 0x14000cdb8
mov ebx, dword [rsp + 0x10128]
mov esi, dword [rsp + 0x10120]
mov rcx, r12
call qword [sym.imp.KERNEL32.DLL_CloseHandle]
test ebp, ebp
je 0x14000ce25
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.DLL_SystemTimeToFileTime]
mov eax, dword [rsp + 0x44]
mov r11d, dword [rsp + 0x40]
mov dword [rsp + 0x4c], eax
mov dword [rsp + 0x48], r11d
mov ecx, ebp
mov rax, qword [rsp + 0x48]
lea rdx, [rsp + 0x40]
imul rcx, rcx, 0xffffffffff676980
add rax, rcx
mov qword [rsp + 0x48], rax
shr rax, 0x20
mov ecx, dword [rsp + 0x48]
mov dword [rsp + 0x44], eax
mov dword [rsp + 0x40], ecx
lea rcx, [rsp + 0x74]
call qword [sym.imp.KERNEL32.DLL_CompareFileTime]
test eax, eax
jg 0x14000cfcb
test esi, esi
jne 0x14000ce2d
test ebx, ebx
je 0x14000cea1
mov eax, dword [rsp + 0x80]
cmp eax, ebx
jb 0x14000cfcb
jne 0x14000cea1
cmp dword [rsp + 0x84], esi
jb 0x14000cfcb
jmp 0x14000cea1
call qword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 2
je 0x14000cfcb
mov ecx, eax
call fcn.140006fd0
mov qword [rsp + 0x38], r15
mov r9, rdi
mov qword [rsp + 0x30], rax
lea rax, str.CreateFile__
mov r8, r13
mov edx, 0xc0000427
movzx ecx, bx
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rax
call fcn.140007190
lea rdx, [rsp + 0x74]
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.DLL_SystemTimeToFileTime]
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x74]
call qword [sym.imp.KERNEL32.DLL_FileTimeToSystemTime]
lea r9, [rsp + 0x50]
lea rdx, [rsp + 0xa0]
mov r8d, 0x7fff
mov rcx, rdi
call fcn.14000cbe0
mov esi, 4
lea rdx, [rsp + 0xa0]
mov rcx, rdi
cmp byte [rsp + 0x10130], r15b
je 0x14000cf4d
mov ebp, 1
lea rbx, str.CopyFile__
mov r8d, ebp
call qword [sym.imp.KERNEL32.DLL_CopyFileW]
test eax, eax
je 0x14000cf8a
lea edx, [rsi - 1]
mov r9d, esi
xor r8d, r8d
mov rcx, rdi
mov dword [rsp + 0x20], 0x80
call fcn.14000cb30
mov ecx, r14d
mov rbx, rax
call qword [sym.imp.KERNEL32.DLL_Sleep]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.DLL_SetFilePointer]
mov rcx, rbx
call qword [sym.imp.KERNEL32.DLL_SetEndOfFile]
mov rcx, rbx
call qword [sym.imp.KERNEL32.DLL_CloseHandle]
jmp 0x14000cf5e
lea rbx, str.MoveFile__
call qword [sym.imp.KERNEL32.DLL_MoveFileW]
test eax, eax
je 0x14000cf85
lea rax, [rsp + 0xa0]
mov r9, rdi
mov r8, r13
mov edx, 0x40000435
movzx ecx, si
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], rax
call fcn.140007190
jmp 0x14000cfcb
mov ebp, 1
call qword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 2
je 0x14000cfcb
mov ecx, eax
call fcn.140006fd0
mov qword [rsp + 0x38], r15
mov r9, rdi
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0xa0]
mov r8, r13
mov qword [rsp + 0x28], rax
mov edx, 0xc0000427
movzx ecx, bp
mov qword [rsp + 0x20], rbx
call fcn.140007190
mov rcx, qword [rsp + 0x100a0]
xor rcx, rsp
call fcn.14001a490
add rsp, 0x100b8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret