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

Disassembly:
mov rax, rsp
push rbp
lea rbp, [rax - 0x218]
sub rsp, 0x310
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x180332088]
xor rax, rsp
mov qword [rbp + 0x200], rax
mov rdi, rcx
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x18006451c
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x18006451c
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp - 0x10]
call fcn.180233580
mov qword [rsp + 0x60], 7
xor esi, esi
mov qword [rsp + 0x58], rsi
mov word [rsp + 0x48], si
xor r8d, r8d
lea rdx, [0x1802abc2c]
lea rcx, [rsp + 0x48]
call fcn.18005c660
nop
lea rdx, [rbp - 0x10]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
mov rdx, rdi
lea rcx, [rbp - 0x58]
call fcn.180066d40
nop
mov rdx, rdi
lea rcx, [rbp - 0x78]
call fcn.180066e80
nop
lea rdx, [rbp - 0x10]
lea rcx, [rsp + 0x68]
call fcn.180066e80
nop
lea rcx, [rbp - 0x78]
call fcn.18006d350
lea rcx, [rsp + 0x68]
call fcn.18006d350
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.18005c450
test eax, eax
jne 0x18006425e
cmp word [rbp - 0x10], ax
jne 0x18006423b
mov r8d, esi
jmp 0x18006424e
lea rax, [rbp - 0x10]
or r8, 0xffffffffffffffff
inc r8
cmp word [rax + r8*2], 0
jne 0x180064243
lea rdx, [rbp - 0x10]
lea rcx, [rsp + 0x48]
call fcn.18005c660
jmp 0x1800642d3
mov rdx, rdi
lea rcx, [rsp + 0x28]
call fcn.180066ff0
mov rbx, rax
lea rax, [rsp + 0x48]
cmp rax, rbx
je 0x1800642b6
mov r8, qword [rsp + 0x60]
cmp r8, 8
jb 0x180064295
inc r8
mov rdx, qword [rsp + 0x48]
lea rcx, [rsp + 0x48]
call fcn.18005cac0
mov qword [rsp + 0x60], 7
mov qword [rsp + 0x58], rsi
mov word [rsp + 0x48], si
mov rdx, rbx
lea rcx, [rsp + 0x48]
call fcn.18005c590
nop
mov r8, qword [rsp + 0x40]
cmp r8, 8
jb 0x1800642d3
inc r8
mov rdx, qword [rsp + 0x28]
lea rcx, [rsp + 0x28]
call fcn.18005cac0
mov ebx, esi
nop word [rax + rax]
mov qword [rsp + 0x40], 7
mov qword [rsp + 0x38], rsi
mov word [rsp + 0x28], si
xor r8d, r8d
lea rdx, [0x1802abc2c]
lea rcx, [rsp + 0x28]
call fcn.18005c660
nop
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x28]
call fcn.18005cbe0
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rdx, [rbp - 0x58]
lea rcx, [rsp + 0x28]
call fcn.18005bc80
mov r8d, 4
lea rdx, str..fcb
lea rcx, [rsp + 0x28]
call fcn.18005ffc0
test ebx, ebx
jle 0x18006438a
movsxd rdx, ebx
lea rcx, [rbp - 0x38]
call fcn.180205d1c
nop
or r9, 0xffffffffffffffff
xor r8d, r8d
mov rdx, rax
lea rcx, [rsp + 0x28]
call fcn.18005bc80
nop
mov r8, qword [rbp - 0x20]
cmp r8, 8
jb 0x18006438a
inc r8
mov rdx, qword [rbp - 0x38]
lea rcx, [rbp - 0x38]
call fcn.18005cac0
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 0x1800643f1
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 0x1800643f1
cmp ebx, 0xa
jge 0x18006445f
inc ebx
mov r8, qword [rsp + 0x40]
cmp r8, 8
jb 0x1800642e0
inc r8
mov rdx, qword [rsp + 0x28]
lea rcx, [rsp + 0x28]
call fcn.18005cac0
jmp 0x1800642e0
lea rdx, [rsp + 0x28]
cmp qword [rsp + 0x40], 8
cmovae rdx, qword [rsp + 0x28]
mov rcx, rdi
call fcn.18023b704
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 0x180064442
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 0x18006445f
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 0x18006447d
inc r8
mov rdx, qword [rsp + 0x28]
lea rcx, [rsp + 0x28]
call fcn.18005cac0
nop
mov r8, qword [rbp - 0x80]
cmp r8, 8
jb 0x180064499
inc r8
mov rdx, qword [rsp + 0x68]
lea rcx, [rsp + 0x68]
call fcn.18005cac0
mov qword [rbp - 0x80], 7
mov qword [rsp + 0x78], rsi
mov word [rsp + 0x68], si
mov r8, qword [rbp - 0x60]
cmp r8, 8
jb 0x1800644c5
inc r8
mov rdx, qword [rbp - 0x78]
lea rcx, [rbp - 0x78]
call fcn.18005cac0
mov qword [rbp - 0x60], 7
mov qword [rbp - 0x68], rsi
mov word [rbp - 0x78], si
mov r8, qword [rbp - 0x40]
cmp r8, 8
jb 0x1800644ef
inc r8
mov rdx, qword [rbp - 0x58]
lea rcx, [rbp - 0x58]
call fcn.18005cac0
mov qword [rbp - 0x40], 7
mov qword [rbp - 0x48], rsi
mov word [rbp - 0x58], si
mov r8, qword [rsp + 0x60]
cmp r8, 8
jb 0x18006451c
inc r8
mov rdx, qword [rsp + 0x48]
lea rcx, [rsp + 0x48]
call fcn.18005cac0
mov rcx, qword [rbp + 0x200]
xor rcx, rsp
call fcn.1802037a0
lea r11, [rsp + 0x310]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret