Function at 0x140013de0
Capabilities:
Check if file exists
Delete file
Move file

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x60
mov rax, qword [0x140300b88]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov rsi, rcx
mov qword [rsp + 0x30], rcx
mov rdx, rcx
lea rcx, [rsp + 0x38]
call fcn.14000d580
nop
mov rcx, qword [rsp + 0x48]
mov rdx, qword [rsp + 0x50]
mov rax, rdx
sub rax, rcx
xor ebp, ebp
cmp rax, 6
jb 0x140013e63
lea rdi, [rcx + 6]
mov qword [rsp + 0x48], rdi
lea rbx, [rsp + 0x38]
cmp rdx, 8
cmovae rbx, qword [rsp + 0x38]
lea rcx, [rbx + rcx*2]
lea r8d, [rbp + 0xc]
lea rdx, str..saved
call fcn.14020d920
mov word [rbx + rdi*2], bp
jmp 0x140013e85
lfence
mov qword [rsp + 0x20], 6
lea r9, str..saved
mov edx, 6
lea rcx, [rsp + 0x38]
call fcn.140015840
mov rdx, rsi
cmp qword [rsi + 0x18], 8
jb 0x140013e92
mov rdx, qword [rsi]
lea rcx, str.Attempting_to_rename_file:__s
call fcn.14004e280
lea rdx, [rsp + 0x38]
cmp qword [rsp + 0x50], 8
cmovae rdx, qword [rsp + 0x38]
mov rcx, rsi
cmp qword [rsi + 0x18], 8
jb 0x140013ebc
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
jne 0x140013fe0
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x140013fe0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Failed_with__d
call fcn.14004e280
mov rdx, rsi
cmp qword [rsi + 0x18], 8
jb 0x140013efa
mov rdx, qword [rsi]
lea rcx, str.Attempting_to_delete_file:__s
call fcn.14004e280
mov rcx, rsi
cmp qword [rsi + 0x18], 8
jb 0x140013f13
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x140013fe0
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x140013fe0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Failed_with__d
call fcn.14004e280
nop
mov rdx, qword [rsp + 0x50]
cmp rdx, 8
jb 0x140013f87
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140013f82
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400140a4
call fcn.1402090c4
mov qword [rsp + 0x48], rbp
mov qword [rsp + 0x50], 7
mov word [rsp + 0x38], bp
mov rdx, qword [rsi + 0x18]
cmp rdx, 8
jb 0x140013fd9
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsi]
cmp rdx, 0x1000
jb 0x140013fd4
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x1400140aa
mov rcx, r8
call fcn.1402090c4
xor al, al
jmp 0x140014072
mov rdx, qword [rsp + 0x50]
cmp rdx, 8
jb 0x140014022
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001401d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400140a4
call fcn.1402090c4
mov qword [rsp + 0x48], rbp
mov qword [rsp + 0x50], 7
mov word [rsp + 0x38], bp
mov rdx, qword [rsi + 0x18]
cmp rdx, 8
jb 0x140014070
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsi]
cmp rdx, 0x1000
jb 0x14001406b
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x1400140aa
mov rcx, r8
call fcn.1402090c4
mov al, 1
mov qword [rsi + 0x10], rbp
mov qword [rsi + 0x18], 7
mov word [rsi], bp
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140208e10
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
call fcn.140212258
nop
call fcn.140212258
int3