Function at 0x1400f6acc
Capabilities:
Delete directory

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x40
mov rdi, r8
mov rsi, rdx
mov rbx, rcx
mov rcx, qword [0x14017a048]
lea rax, [0x14017a048]
cmp rcx, rax
je 0x1400f6b19
test byte [rcx + 0x1c], 1
je 0x1400f6b19
cmp byte [rcx + 0x19], 5
jb 0x1400f6b19
mov rcx, qword [rcx + 0x10]
lea r8, [0x140165cc8]
mov edx, 0xf
call fcn.140006b98
test rbx, rbx
jne 0x1400f6b36
lea r8, str.wszPath
mov edx, 0x186
lea rcx, str.base_stor_blbdsmdsmutilsdlldeletebase.cpp
call fcn.14008ac24
and qword [rsp + 0x78], 0
xor ebp, ebp
xor r15b, r15b
mov dword [rsp + 0x70], ebp
test rsi, rsi
je 0x1400f6b50
mov ebp, dword [rsi]
mov dword [rsp + 0x70], ebp
test rdi, rdi
je 0x1400f6b58
mov byte [rdi], r15b
lea rdx, [rsp + 0x78]
mov rcx, rbx
call fcn.1400f45a0
mov r14, qword [rsp + 0x78]
mov ebx, eax
test eax, eax
js 0x1400f6dae
test rsi, rsi
je 0x1400f6b7e
test byte [rsi], 7
je 0x1400f6be8
lea rdx, [rsp + 0x70]
mov rcx, r14
call fcn.1400f755c
mov ebx, eax
test eax, eax
jns 0x1400f6be1
test rdi, rdi
je 0x1400f6b99
mov byte [rdi], 1
mov rcx, qword [0x14017a048]
lea rsi, [0x14017a048]
cmp rcx, rsi
je 0x1400f6db5
test byte [rcx + 0x1c], 1
je 0x1400f6db5
cmp byte [rcx + 0x19], 2
jb 0x1400f6db5
mov rcx, qword [rcx + 0x10]
lea r8, [0x140165cc8]
mov edx, 0x10
mov r9d, eax
call fcn.140006bc4
jmp 0x1400f6db5
mov ebp, dword [rsp + 0x70]
mov r15b, 1
mov eax, ebp
mov rcx, r14
and eax, 0x410
cmp eax, 0x10
jne 0x1400f6c7e
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
nop dword [rax + rax]
test eax, eax
jne 0x1400f6d1d
test rdi, rdi
je 0x1400f6c17
mov byte [rdi], 1
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jle 0x1400f6c32
movzx ebx, ax
or ebx, 0x80070000
mov rcx, qword [0x14017a048]
lea rsi, [0x14017a048]
cmp rcx, rsi
je 0x1400f6d2b
test byte [rcx + 0x1c], 1
je 0x1400f6d2b
cmp byte [rcx + 0x19], 2
jb 0x1400f6d2b
mov rcx, qword [rcx + 0x10]
lea r8, [0x140165cc8]
mov edx, 0x11
mov dword [rsp + 0x20], ebx
mov r9, r14
call fcn.140011330
jmp 0x1400f6d24
and qword [rsp + 0x30], 0
xor r9d, r9d
mov dword [rsp + 0x28], 0x6200000
mov edx, 0x10000
mov dword [rsp + 0x20], 3
lea r8d, [r9 + 7]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
nop dword [rax + rax]
cmp rax, 0xffffffffffffffff
jne 0x1400f6d0e
test rdi, rdi
je 0x1400f6cba
mov byte [rdi], 1
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jle 0x1400f6cd5
movzx ebx, ax
or ebx, 0x80070000
mov rcx, qword [0x14017a048]
lea rsi, [0x14017a048]
cmp rcx, rsi
je 0x1400f6d2b
test byte [rcx + 0x1c], 1
je 0x1400f6d2b
cmp byte [rcx + 0x19], 2
jb 0x1400f6d2b
mov rcx, qword [rcx + 0x10]
lea r8, [0x140165cc8]
mov edx, 0x12
mov r9d, ebx
call fcn.140006bc4
jmp 0x1400f6d24
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
lea rsi, [0x14017a048]
mov rcx, qword [0x14017a048]
mov edi, ebx
test ebx, ebx
jns 0x1400f6db5
test r15b, r15b
je 0x1400f6db5
cmp rcx, rsi
je 0x1400f6d67
test byte [rcx + 0x1c], 1
je 0x1400f6d67
cmp byte [rcx + 0x19], 4
jb 0x1400f6d67
mov rcx, qword [rcx + 0x10]
lea r8, [0x140165cc8]
mov edx, 0x13
mov dword [rsp + 0x20], ebp
mov r9, r14
call fcn.140011330
xor r8d, r8d
mov edx, ebp
mov rcx, r14
call fcn.1400f22ac
test eax, eax
jns 0x1400f6db5
mov rcx, qword [0x14017a048]
cmp rcx, rsi
je 0x1400f6db5
test byte [rcx + 0x1c], 1
je 0x1400f6db5
cmp byte [rcx + 0x19], 2
jb 0x1400f6db5
mov rcx, qword [rcx + 0x10]
lea r8, [0x140165cc8]
mov edx, 0x14
mov dword [rsp + 0x20], eax
mov r9, r14
call fcn.140011330
jmp 0x1400f6db5
lea rsi, [0x14017a048]
mov rcx, r14
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete___void____ptr64_]
nop dword [rax + rax]
mov rcx, qword [0x14017a048]
cmp rcx, rsi
je 0x1400f6df1
test byte [rcx + 0x1c], 1
je 0x1400f6df1
cmp byte [rcx + 0x19], 5
jb 0x1400f6df1
mov rcx, qword [rcx + 0x10]
lea r8, [0x140165cc8]
mov edx, 0x15
call fcn.140006b98
mov eax, ebx
mov rbx, qword [rsp + 0x80]
add rsp, 0x40
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret