Function at 0x14000f080
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 0x14000f147
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test eax, 0xfffffffd
je 0x14000f147
lea edx, [rdi + 0x5c]
lea rcx, str.D:_agent_work2_sprivate_softgrid_sharedinclude_shared_file_utils.hpp
call qword [sym.imp.MSVCR120.dll_strrchr]
test rax, rax
je 0x14000f118
inc rax
jmp 0x14000f11f
lea rax, str.D:_agent_work2_sprivate_softgrid_sharedinclude_shared_file_utils.hpp
mov rdx, rax
lea rcx, [0x14020c428]
call fcn.140005ff0
shl rax, 0x34
or rbx, rax
movabs rax, 0x112500000000
or rbx, rax
jmp 0x14000f260
lea rdx, [rbp - 0x48]
lea rcx, [rbp - 0x28]
call fcn.14000eec0
mov rbx, rax
lea rax, [rbp - 0x48]
cmp rax, rbx
je 0x14000f18e
cmp qword [rbp - 0x30], 8
jb 0x14000f171
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 0x14000f19f
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 0x14000f256
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 0x14000f1e3
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 3
jne 0x14000f256
lea rdx, [rbp - 0x48]
lea rcx, [rbp - 0x28]
call fcn.14000eec0
mov rbx, rax
lea rax, [rbp - 0x48]
cmp rax, rbx
je 0x14000f22a
cmp qword [rbp - 0x30], 8
jb 0x14000f20d
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 0x14000f23b
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 0x14000f1c0
movabs rbx, 0x8000000000
cmp qword [rbp - 0x30], 8
jb 0x14000f271
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.140108d90
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret