Function at 0x1400065e0
Capabilities:
Check if file exists
Delete file
Get common file path
Move file

Disassembly:
mov rax, rsp
push rbp
lea rbp, [rax - 0x408]
sub rsp, 0x500
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x14003b7a0]
xor rax, rsp
mov qword [rbp + 0x3f0], rax
mov rdi, rcx
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1400069eb
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x1400069eb
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x1e0]
call fcn.140011c00
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp - 0x30]
call fcn.140011c00
mov qword [rsp + 0x60], 7
xor esi, esi
mov qword [rsp + 0x58], rsi
mov word [rsp + 0x48], si
xor r8d, r8d
lea rdx, [0x140026700]
lea rcx, [rsp + 0x48]
call fcn.140005c10
nop
lea rdx, [rbp - 0x30]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
lea rdx, [rbp + 0x1e0]
mov rcx, rdi
call fcn.140006c30
mov rdx, rdi
lea rcx, [rbp - 0x78]
call fcn.140007150
nop
lea rdx, [rbp - 0x30]
lea rcx, [rsp + 0x68]
call fcn.140007150
nop
lea rcx, [rbp - 0x78]
call fcn.1400082c0
lea rcx, [rsp + 0x68]
call fcn.1400082c0
lea r8, [rbp - 0x78]
cmp qword [rbp - 0x60], 8
cmovae r8, qword [rbp - 0x78]
lea rcx, [rsp + 0x68]
cmp qword [rbp - 0x80], 8
cmovae rcx, qword [rsp + 0x68]
mov r9, qword [rbp - 0x68]
mov rdx, qword [rsp + 0x78]
call fcn.140005720
test eax, eax
jne 0x14000673b
cmp word [rbp - 0x30], ax
jne 0x140006711
mov r8d, esi
jmp 0x14000672b
lea rax, [rbp - 0x30]
or r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp word [rax + r8*2], 0
jne 0x140006720
lea rdx, [rbp - 0x30]
lea rcx, [rsp + 0x48]
call fcn.140005c10
jmp 0x1400067b0
mov rdx, rdi
lea rcx, [rsp + 0x28]
call fcn.140006d10
mov rbx, rax
lea rax, [rsp + 0x48]
cmp rax, rbx
je 0x140006793
mov r8, qword [rsp + 0x60]
cmp r8, 8
jb 0x140006772
inc r8
mov rdx, qword [rsp + 0x48]
lea rcx, [rsp + 0x48]
call fcn.140005d60
mov qword [rsp + 0x60], 7
mov qword [rsp + 0x58], rsi
mov word [rsp + 0x48], si
mov rdx, rbx
lea rcx, [rsp + 0x48]
call fcn.140005560
nop
mov r8, qword [rsp + 0x40]
cmp r8, 8
jb 0x1400067b0
inc r8
mov rdx, qword [rsp + 0x28]
lea rcx, [rsp + 0x28]
call fcn.140005d60
mov ebx, esi
mov qword [rsp + 0x40], 7
mov qword [rsp + 0x38], rsi
mov word [rsp + 0x28], si
xor r8d, r8d
lea rdx, [0x140026700]
lea rcx, [rsp + 0x28]
call fcn.140005c10
nop
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x28]
call fcn.140005ad0
cmp word [rbp + 0x1e0], 0
jne 0x1400067ff
mov r8, rsi
jmp 0x14000681b
lea rax, [rbp + 0x1e0]
or r8, 0xffffffffffffffff
nop word [rax + rax]
inc r8
cmp word [rax + r8*2], 0
jne 0x140006810
lea rdx, [rbp + 0x1e0]
lea rcx, [rsp + 0x28]
call fcn.140005960
mov r8d, 4
lea rdx, str..del
lea rcx, [rsp + 0x28]
call fcn.140005960
test ebx, ebx
jle 0x140006883
movsxd rdx, ebx
lea rcx, [rbp - 0x58]
call fcn.140007c50
nop
or r9, 0xffffffffffffffff
xor r8d, r8d
mov rdx, rax
lea rcx, [rsp + 0x28]
call fcn.140005830
nop
mov r8, qword [rbp - 0x40]
cmp r8, 8
jb 0x140006883
inc r8
mov rdx, qword [rbp - 0x58]
lea rcx, [rbp - 0x58]
call fcn.140005d60
lea rcx, [rsp + 0x28]
cmp qword [rsp + 0x40], 8
cmovae rcx, qword [rsp + 0x28]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1400068ea
lea rcx, [rsp + 0x28]
cmp qword [rsp + 0x40], 8
cmovae rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x1400068ea
cmp ebx, 0xa
jge 0x140006958
inc ebx
mov r8, qword [rsp + 0x40]
cmp r8, 8
jb 0x1400067b2
inc r8
mov rdx, qword [rsp + 0x28]
lea rcx, [rsp + 0x28]
call fcn.140005d60
jmp 0x1400067b2
lea rdx, [rsp + 0x28]
cmp qword [rsp + 0x40], 8
cmovae rdx, qword [rsp + 0x28]
mov rcx, rdi
call fcn.1400155d8
lea rcx, [rsp + 0x28]
cmp qword [rsp + 0x40], 8
cmovae rcx, qword [rsp + 0x28]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x14000693b
lea rcx, [rsp + 0x28]
cmp qword [rsp + 0x40], 8
cmovae rcx, qword [rsp + 0x28]
xor edx, edx
lea r8d, [rdx + 5]
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
mov rcx, rdi
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x140006958
xor edx, edx
lea r8d, [rdx + 5]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
nop
mov r8, qword [rsp + 0x40]
cmp r8, 8
jb 0x140006976
inc r8
mov rdx, qword [rsp + 0x28]
lea rcx, [rsp + 0x28]
call fcn.140005d60
nop
mov r8, qword [rbp - 0x80]
cmp r8, 8
jb 0x140006992
inc r8
mov rdx, qword [rsp + 0x68]
lea rcx, [rsp + 0x68]
call fcn.140005d60
mov qword [rbp - 0x80], 7
mov qword [rsp + 0x78], rsi
mov word [rsp + 0x68], si
mov r8, qword [rbp - 0x60]
cmp r8, 8
jb 0x1400069be
inc r8
mov rdx, qword [rbp - 0x78]
lea rcx, [rbp - 0x78]
call fcn.140005d60
mov qword [rbp - 0x60], 7
mov qword [rbp - 0x68], rsi
mov word [rbp - 0x78], si
mov r8, qword [rsp + 0x60]
cmp r8, 8
jb 0x1400069eb
inc r8
mov rdx, qword [rsp + 0x48]
lea rcx, [rsp + 0x48]
call fcn.140005d60
mov rcx, qword [rbp + 0x3f0]
xor rcx, rsp
call fcn.14000e8a0
lea r11, [rsp + 0x500]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret