Function at 0x1400f1b04
Capabilities:
Delete directory

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x40
mov rbx, r8
mov r14, rdx
mov rdi, rcx
mov rcx, qword [0x14017b048]
lea rax, [0x14017b048]
cmp rcx, rax
je 0x1400f1b51
test byte [rcx + 0x1c], 1
je 0x1400f1b51
cmp byte [rcx + 0x19], 5
jb 0x1400f1b51
mov rcx, qword [rcx + 0x10]
lea r8, [0x140161be8]
mov edx, 0xf
call fcn.140004c10
test rdi, rdi
jne 0x1400f1b6e
lea r8, str.wszPath
mov edx, 0x186
lea rcx, str.base_stor_blbdsmdsmutilsdlldeletebase.cpp
call fcn.140087b08
and qword [rsp + 0x78], 0
xor esi, esi
xor r15b, r15b
mov dword [rsp + 0x70], esi
test r14, r14
je 0x1400f1b89
mov esi, dword [r14]
mov dword [rsp + 0x70], esi
test rbx, rbx
je 0x1400f1b91
mov byte [rbx], r15b
lea rdx, [rsp + 0x78]
mov rcx, rdi
call fcn.1400ef9d8
mov rbp, qword [rsp + 0x78]
mov edi, eax
test eax, eax
js 0x1400f1de5
test r14, r14
je 0x1400f1bb8
test byte [r14], 7
je 0x1400f1c23
lea rdx, [rsp + 0x70]
mov rcx, rbp
call fcn.1400f18dc
mov edi, eax
test eax, eax
jns 0x1400f1c1c
test rbx, rbx
je 0x1400f1bd3
mov byte [rbx], 1
mov rcx, qword [0x14017b048]
lea rbx, [0x14017b048]
cmp rcx, rbx
je 0x1400f1c13
test byte [rcx + 0x1c], 1
je 0x1400f1c13
cmp byte [rcx + 0x19], 2
jb 0x1400f1c13
mov rcx, qword [rcx + 0x10]
lea r8, [0x140161be8]
mov edx, 0x10
mov r9d, eax
call fcn.140004c3c
mov esi, dword [rsp + 0x70]
jmp 0x1400f1d5d
mov esi, dword [rsp + 0x70]
jmp 0x1400f1d64
mov esi, dword [rsp + 0x70]
mov r15b, 1
mov eax, esi
mov rcx, rbp
and eax, 0x410
cmp eax, 0x10
jne 0x1400f1cb8
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
nop dword [rax + rax]
test eax, eax
jne 0x1400f1d56
test rbx, rbx
je 0x1400f1c52
mov byte [rbx], 1
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
mov rcx, qword [0x14017b048]
lea rbx, [0x14017b048]
cmp rcx, rbx
je 0x1400f1d64
test byte [rcx + 0x1c], 1
je 0x1400f1d64
cmp byte [rcx + 0x19], 2
jb 0x1400f1d64
mov rcx, qword [rcx + 0x10]
lea r8, [0x140161be8]
mov edx, 0x11
mov dword [rsp + 0x20], edi
mov r9, rbp
call fcn.140005d40
jmp 0x1400f1d5d
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 0x1400f1d47
test rbx, rbx
je 0x1400f1cf4
mov byte [rbx], 1
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
mov rcx, qword [0x14017b048]
lea rbx, [0x14017b048]
cmp rcx, rbx
je 0x1400f1d64
test byte [rcx + 0x1c], 1
je 0x1400f1d64
cmp byte [rcx + 0x19], 2
jb 0x1400f1d64
mov rcx, qword [rcx + 0x10]
lea r8, [0x140161be8]
mov edx, 0x12
mov r9d, edi
call fcn.140004c3c
jmp 0x1400f1d5d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
lea rbx, [0x14017b048]
mov rcx, qword [0x14017b048]
test edi, edi
jns 0x1400f1dec
test r15b, r15b
je 0x1400f1dec
cmp rcx, rbx
je 0x1400f1d9e
test byte [rcx + 0x1c], 1
je 0x1400f1d9e
cmp byte [rcx + 0x19], 4
jb 0x1400f1d9e
mov rcx, qword [rcx + 0x10]
lea r8, [0x140161be8]
mov edx, 0x13
mov dword [rsp + 0x20], esi
mov r9, rbp
call fcn.140005d40
xor r8d, r8d
mov edx, esi
mov rcx, rbp
call fcn.1400eeb78
test eax, eax
jns 0x1400f1dec
mov rcx, qword [0x14017b048]
cmp rcx, rbx
je 0x1400f1dec
test byte [rcx + 0x1c], 1
je 0x1400f1dec
cmp byte [rcx + 0x19], 2
jb 0x1400f1dec
mov rcx, qword [rcx + 0x10]
lea r8, [0x140161be8]
mov edx, 0x14
mov dword [rsp + 0x20], eax
mov r9, rbp
call fcn.140005d40
jmp 0x1400f1dec
lea rbx, [0x14017b048]
mov rcx, rbp
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete___void____ptr64_]
nop dword [rax + rax]
mov rcx, qword [0x14017b048]
cmp rcx, rbx
je 0x1400f1e28
test byte [rcx + 0x1c], 1
je 0x1400f1e28
cmp byte [rcx + 0x19], 5
jb 0x1400f1e28
mov rcx, qword [rcx + 0x10]
lea r8, [0x140161be8]
mov edx, 0x15
call fcn.140004c10
mov rbx, qword [rsp + 0x80]
mov eax, edi
add rsp, 0x40
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret