Function at 0x140005630
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 [0x14003a200]
xor rax, rsp
mov qword [rbp + 0x3f0], rax
mov rdi, rcx
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x140005a3b
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x140005a3b
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x1e0]
call fcn.140010590
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp - 0x30]
call fcn.140010590
mov qword [rsp + 0x60], 7
xor esi, esi
mov qword [rsp + 0x58], rsi
mov word [rsp + 0x48], si
xor r8d, r8d
lea rdx, [0x140025688]
lea rcx, [rsp + 0x48]
call fcn.1400051d0
nop
lea rdx, [rbp - 0x30]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
lea rdx, [rbp + 0x1e0]
mov rcx, rdi
call fcn.140005c80
mov rdx, rdi
lea rcx, [rbp - 0x78]
call fcn.1400061a0
nop
lea rdx, [rbp - 0x30]
lea rcx, [rsp + 0x68]
call fcn.1400061a0
nop
lea rcx, [rbp - 0x78]
call fcn.140007060
lea rcx, [rsp + 0x68]
call fcn.140007060
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.140004ce0
test eax, eax
jne 0x14000578b
cmp word [rbp - 0x30], ax
jne 0x140005761
mov r8d, esi
jmp 0x14000577b
lea rax, [rbp - 0x30]
or r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp word [rax + r8*2], 0
jne 0x140005770
lea rdx, [rbp - 0x30]
lea rcx, [rsp + 0x48]
call fcn.1400051d0
jmp 0x140005800
mov rdx, rdi
lea rcx, [rsp + 0x28]
call fcn.140005d60
mov rbx, rax
lea rax, [rsp + 0x48]
cmp rax, rbx
je 0x1400057e3
mov r8, qword [rsp + 0x60]
cmp r8, 8
jb 0x1400057c2
inc r8
mov rdx, qword [rsp + 0x48]
lea rcx, [rsp + 0x48]
call fcn.140005320
mov qword [rsp + 0x60], 7
mov qword [rsp + 0x58], rsi
mov word [rsp + 0x48], si
mov rdx, rbx
lea rcx, [rsp + 0x48]
call fcn.140004b30
nop
mov r8, qword [rsp + 0x40]
cmp r8, 8
jb 0x140005800
inc r8
mov rdx, qword [rsp + 0x28]
lea rcx, [rsp + 0x28]
call fcn.140005320
mov ebx, esi
mov qword [rsp + 0x40], 7
mov qword [rsp + 0x38], rsi
mov word [rsp + 0x28], si
xor r8d, r8d
lea rdx, [0x140025688]
lea rcx, [rsp + 0x28]
call fcn.1400051d0
nop
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x28]
call fcn.140005090
cmp word [rbp + 0x1e0], 0
jne 0x14000584f
mov r8, rsi
jmp 0x14000586b
lea rax, [rbp + 0x1e0]
or r8, 0xffffffffffffffff
nop word [rax + rax]
inc r8
cmp word [rax + r8*2], 0
jne 0x140005860
lea rdx, [rbp + 0x1e0]
lea rcx, [rsp + 0x28]
call fcn.140004f20
mov r8d, 4
lea rdx, str..del
lea rcx, [rsp + 0x28]
call fcn.140004f20
test ebx, ebx
jle 0x1400058d3
movsxd rdx, ebx
lea rcx, [rbp - 0x58]
call fcn.1400069f0
nop
or r9, 0xffffffffffffffff
xor r8d, r8d
mov rdx, rax
lea rcx, [rsp + 0x28]
call fcn.140004df0
nop
mov r8, qword [rbp - 0x40]
cmp r8, 8
jb 0x1400058d3
inc r8
mov rdx, qword [rbp - 0x58]
lea rcx, [rbp - 0x58]
call fcn.140005320
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 0x14000593a
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 0x14000593a
cmp ebx, 0xa
jge 0x1400059a8
inc ebx
mov r8, qword [rsp + 0x40]
cmp r8, 8
jb 0x140005802
inc r8
mov rdx, qword [rsp + 0x28]
lea rcx, [rsp + 0x28]
call fcn.140005320
jmp 0x140005802
lea rdx, [rsp + 0x28]
cmp qword [rsp + 0x40], 8
cmovae rdx, qword [rsp + 0x28]
mov rcx, rdi
call fcn.140013f68
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 0x14000598b
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 0x1400059a8
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 0x1400059c6
inc r8
mov rdx, qword [rsp + 0x28]
lea rcx, [rsp + 0x28]
call fcn.140005320
nop
mov r8, qword [rbp - 0x80]
cmp r8, 8
jb 0x1400059e2
inc r8
mov rdx, qword [rsp + 0x68]
lea rcx, [rsp + 0x68]
call fcn.140005320
mov qword [rbp - 0x80], 7
mov qword [rsp + 0x78], rsi
mov word [rsp + 0x68], si
mov r8, qword [rbp - 0x60]
cmp r8, 8
jb 0x140005a0e
inc r8
mov rdx, qword [rbp - 0x78]
lea rcx, [rbp - 0x78]
call fcn.140005320
mov qword [rbp - 0x60], 7
mov qword [rbp - 0x68], rsi
mov word [rbp - 0x78], si
mov r8, qword [rsp + 0x60]
cmp r8, 8
jb 0x140005a3b
inc r8
mov rdx, qword [rsp + 0x48]
lea rcx, [rsp + 0x48]
call fcn.140005320
mov rcx, qword [rbp + 0x3f0]
xor rcx, rsp
call fcn.14000d1c0
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