Function at 0x14005cf60
Capabilities:
Check if file exists
Delete directory
Delete file

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r14
mov rbp, rsp
sub rsp, 0x70
mov rax, qword [0x140165040]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov rdx, rcx
lea rcx, [rbp - 0x50]
call fcn.14000a190
lea rcx, [rbp - 0x50]
mov esi, 7
cmp qword [rbp - 0x38], rsi
cmova rcx, qword [rbp - 0x50]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
xor edi, edi
mov r14d, 0x1000
test eax, eax
jne 0x14005d00e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, edi
cmp eax, 2
cmovne ebx, eax
test ebx, ebx
je 0x14005d00e
lea edx, [rsi + 0x55]
lea rcx, str.src_appvisv_shared_system_file_utils.cpp
call qword [sym.imp.VCRUNTIME140.dll_strrchr]
test rax, rax
je 0x14005cfdf
inc rax
jmp 0x14005cfe6
lea rax, str.src_appvisv_shared_system_file_utils.cpp
mov rdx, rax
lea rcx, [0x1401712f0]
call fcn.140005a68
shl rax, 0x34
or rbx, rax
movabs rax, 0xf2500000000
or rbx, rax
jmp 0x14005d140
lea rdx, [rbp - 0x50]
lea rcx, [rbp - 0x30]
call fcn.14005cd50
mov rbx, rax
lea rax, [rbp - 0x50]
cmp rax, rbx
je 0x14005d084
mov rcx, qword [rbp - 0x38]
cmp rcx, rsi
jbe 0x14005d05e
lea rcx, [rcx*2 + 2]
mov rdx, qword [rbp - 0x50]
mov rax, rdx
cmp rcx, r14
jb 0x14005d055
mov rdx, qword [rdx - 8]
sub rax, rdx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14005d0ba
mov rcx, rdx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbp - 0x40], rdi
mov qword [rbp - 0x38], rsi
mov word [rbp - 0x50], di
movups xmm0, xmmword [rbx]
movups xmmword [rbp - 0x50], xmm0
movups xmm1, xmmword [rbx + 0x10]
movups xmmword [rbp - 0x40], xmm1
mov qword [rbx + 0x10], rdi
mov qword [rbx + 0x18], rsi
mov word [rbx], di
mov rax, qword [rbp - 0x18]
cmp rax, rsi
jbe 0x14005d130
lea rax, [rax*2 + 2]
mov rcx, qword [rbp - 0x30]
mov rdx, rcx
cmp rax, r14
jb 0x14005d12a
mov rcx, qword [rcx - 8]
sub rdx, rcx
lea rax, [rdx - 8]
cmp rax, 0x1f
jbe 0x14005d12a
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
lea rcx, [rbp - 0x50]
cmp qword [rbp - 0x38], rsi
cmova rcx, qword [rbp - 0x50]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x14005d0e3
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 3
jne 0x14005d136
lea rdx, [rbp - 0x50]
lea rcx, [rbp - 0x30]
call fcn.14005cd50
mov rdx, rax
lea rcx, [rbp - 0x50]
call fcn.14000a100
mov rax, qword [rbp - 0x18]
cmp rax, rsi
jbe 0x14005d130
lea rax, [rax*2 + 2]
mov rcx, qword [rbp - 0x30]
mov rdx, rcx
cmp rax, r14
jb 0x14005d12a
mov rcx, qword [rcx - 8]
sub rdx, rcx
lea rax, [rdx - 8]
cmp rax, 0x1f
ja 0x14005d175
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
cmp qword [rbp - 0x40], rdi
jne 0x14005d0c1
movabs rbx, 0x8000000000
mov rax, qword [rbp - 0x38]
cmp rax, rsi
jbe 0x14005d182
lea rax, [rax*2 + 2]
mov rcx, qword [rbp - 0x50]
mov rdx, rcx
cmp rax, r14
jb 0x14005d17c
mov rcx, qword [rcx - 8]
sub rdx, rcx
lea rax, [rdx - 8]
cmp rax, 0x1f
jbe 0x14005d17c
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rax, rbx
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.1400e4b70
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret