Function at 0x14000f050
Capabilities:
Delete directory
Delete file

Disassembly:
mov rax, rsp
push rbp
mov rbp, rsp
sub rsp, 0x70
mov qword [rbp - 0x50], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rdi
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp - 8], rax
xor edi, edi
mov qword [rbp - 0x38], rdi
mov qword [rbp - 0x30], rdi
mov qword [rbp - 0x30], 7
mov qword [rbp - 0x38], rdi
mov word [rbp - 0x48], di
or r9, 0xffffffffffffffff
xor r8d, r8d
mov rdx, rcx
lea rcx, [rbp - 0x48]
call fcn.140007bc0
nop
lea rcx, [rbp - 0x48]
cmp qword [rbp - 0x30], 8
cmovae rcx, qword [rbp - 0x48]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x14000f117
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test eax, 0xfffffffd
je 0x14000f117
lea edx, [rdi + 0x5c]
lea rcx, str.C:_btvsts3621private_softgrid_sharedinclude_shared_file_utils.hpp
call qword [sym.imp.MSVCR120.dll_strrchr]
test rax, rax
je 0x14000f0e8
inc rax
jmp 0x14000f0ef
lea rax, str.C:_btvsts3621private_softgrid_sharedinclude_shared_file_utils.hpp
mov rdx, rax
lea rcx, [0x140209428]
call fcn.140005ff0
shl rax, 0x34
or rbx, rax
movabs rax, 0x112500000000
or rbx, rax
jmp 0x14000f230
lea rdx, [rbp - 0x48]
lea rcx, [rbp - 0x28]
call fcn.14000ee90
mov rbx, rax
lea rax, [rbp - 0x48]
cmp rax, rbx
je 0x14000f15e
cmp qword [rbp - 0x30], 8
jb 0x14000f141
mov rcx, qword [rbp - 0x48]
call qword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void____ptr64_]
mov qword [rbp - 0x30], 7
mov qword [rbp - 0x38], rdi
mov word [rbp - 0x48], di
mov rdx, rbx
lea rcx, [rbp - 0x48]
call fcn.140007b30
nop
cmp qword [rbp - 0x10], 8
jb 0x14000f16f
mov rcx, qword [rbp - 0x28]
call qword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void____ptr64_]
mov qword [rbp - 0x10], 7
mov qword [rbp - 0x18], rdi
mov word [rbp - 0x28], di
cmp qword [rbp - 0x38], 0
je 0x14000f226
nop word [rax + rax]
lea rcx, [rbp - 0x48]
cmp qword [rbp - 0x30], 8
cmovae rcx, qword [rbp - 0x48]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x14000f1b3
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 3
jne 0x14000f226
lea rdx, [rbp - 0x48]
lea rcx, [rbp - 0x28]
call fcn.14000ee90
mov rbx, rax
lea rax, [rbp - 0x48]
cmp rax, rbx
je 0x14000f1fa
cmp qword [rbp - 0x30], 8
jb 0x14000f1dd
mov rcx, qword [rbp - 0x48]
call qword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void____ptr64_]
mov qword [rbp - 0x30], 7
mov qword [rbp - 0x38], rdi
mov word [rbp - 0x48], di
mov rdx, rbx
lea rcx, [rbp - 0x48]
call fcn.140007b30
nop
cmp qword [rbp - 0x10], 8
jb 0x14000f20b
mov rcx, qword [rbp - 0x28]
call qword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void____ptr64_]
mov qword [rbp - 0x10], 7
mov qword [rbp - 0x18], rdi
mov word [rbp - 0x28], di
cmp qword [rbp - 0x38], 0
jne 0x14000f190
movabs rbx, 0x8000000000
cmp qword [rbp - 0x30], 8
jb 0x14000f241
mov rcx, qword [rbp - 0x48]
call qword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void____ptr64_]
mov qword [rbp - 0x30], 7
mov qword [rbp - 0x38], rdi
mov word [rbp - 0x48], di
mov rax, rbx
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.140107280
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret