Function at 0x140008480
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.140024ca0
sub rsp, rax
mov rax, qword [0x140030f90]
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]
cmp rax, 0xffffffffffffffff
je 0x1400085ce
lea rdx, [rsp + 0x60]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
test eax, eax
jne 0x14000852b
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 0x140008539
mov ebx, dword [rsp + 0x10128]
mov esi, dword [rsp + 0x10120]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test ebp, ebp
je 0x1400085a6
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 0x14000874c
test esi, esi
jne 0x1400085ae
test ebx, ebx
je 0x140008622
mov eax, dword [rsp + 0x80]
cmp eax, ebx
jb 0x14000874c
jne 0x140008622
cmp dword [rsp + 0x84], esi
jb 0x14000874c
jmp 0x140008622
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x14000874c
mov ecx, eax
call fcn.140002430
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.1400025f0
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.140008360
mov esi, 4
lea rdx, [rsp + 0xa0]
mov rcx, rdi
cmp byte [rsp + 0x10130], r15b
je 0x1400086ce
mov ebp, 1
lea rbx, str.CopyFile__
mov r8d, ebp
call qword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x14000870b
lea edx, [rsi - 1]
mov r9d, esi
xor r8d, r8d
mov rcx, rdi
mov dword [rsp + 0x20], 0x80
call fcn.1400082b0
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 0x1400086df
lea rbx, str.MoveFile__
call qword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x140008706
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.1400025f0
jmp 0x14000874c
mov ebp, 1
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x14000874c
mov ecx, eax
call fcn.140002430
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.1400025f0
mov rcx, qword [rsp + 0x100a0]
xor rcx, rsp
call fcn.140018800
add rsp, 0x100b8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret