Function at 0x140086dfc
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 [0x14016f048]
lea rax, [0x14016f048]
cmp rcx, rax
je 0x140086e49
test byte [rcx + 0x1c], 1
je 0x140086e49
cmp byte [rcx + 0x19], 5
jb 0x140086e49
mov rcx, qword [rcx + 0x10]
lea r8, [0x14014c008]
mov edx, 0xa
call fcn.1400049d8
test rdi, rdi
jne 0x140086e66
lea r8, str.wszPath
mov edx, 0xed
lea rcx, str.base_stor_blbutil_fileutils.cpp
call fcn.140082070
and qword [rsp + 0x78], 0
xor esi, esi
xor r15b, r15b
mov dword [rsp + 0x70], esi
test r14, r14
je 0x140086e81
mov esi, dword [r14]
mov dword [rsp + 0x70], esi
test rbx, rbx
je 0x140086e89
mov byte [rbx], 0
lea rdx, [rsp + 0x78]
mov rcx, rdi
call fcn.140088dd0
mov rbp, qword [rsp + 0x78]
mov edi, eax
test eax, eax
js 0x1400870b8
test r14, r14
je 0x140086eb0
test byte [r14], 7
je 0x140086f1b
lea rdx, [rsp + 0x70]
mov rcx, rbp
call fcn.1400872e4
mov edi, eax
test eax, eax
jns 0x140086f14
test rbx, rbx
je 0x140086ecb
mov byte [rbx], 1
mov rcx, qword [0x14016f048]
lea rbx, [0x14016f048]
cmp rcx, rbx
je 0x140086f0b
test byte [rcx + 0x1c], 1
je 0x140086f0b
cmp byte [rcx + 0x19], 2
jb 0x140086f0b
mov rcx, qword [rcx + 0x10]
lea r8, [0x14014c008]
mov edx, 0xb
mov r9d, eax
call fcn.1400049f8
mov esi, dword [rsp + 0x70]
jmp 0x140087033
mov esi, dword [rsp + 0x70]
jmp 0x14008703a
mov esi, dword [rsp + 0x70]
mov r15b, 1
mov eax, esi
mov rcx, rbp
and eax, 0x410
cmp eax, 0x10
jne 0x140086fa0
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x14008702c
test rbx, rbx
je 0x140086f40
mov byte [rbx], 1
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
mov rcx, qword [0x14016f048]
lea rbx, [0x14016f048]
cmp rcx, rbx
je 0x14008703a
test byte [rcx + 0x1c], 1
je 0x14008703a
cmp byte [rcx + 0x19], 2
jb 0x14008703a
mov rcx, qword [rcx + 0x10]
lea r8, [0x14014c008]
mov edx, 0xc
mov dword [rsp + 0x20], edi
mov r9, rbp
call fcn.140005938
jmp 0x140087033
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]
cmp rax, 0xffffffffffffffff
jne 0x140087023
test rbx, rbx
je 0x140086fd6
mov byte [rbx], 1
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
mov rcx, qword [0x14016f048]
lea rbx, [0x14016f048]
cmp rcx, rbx
je 0x14008703a
test byte [rcx + 0x1c], 1
je 0x14008703a
cmp byte [rcx + 0x19], 2
jb 0x14008703a
mov rcx, qword [rcx + 0x10]
lea r8, [0x14014c008]
mov edx, 0xd
mov r9d, edi
call fcn.1400049f8
jmp 0x140087033
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rbx, [0x14016f048]
mov rcx, qword [0x14016f048]
test edi, edi
jns 0x1400870c6
test r15b, r15b
je 0x1400870c6
cmp rcx, rbx
je 0x140087074
test byte [rcx + 0x1c], 1
je 0x140087074
cmp byte [rcx + 0x19], 4
jb 0x140087074
mov rcx, qword [rcx + 0x10]
lea r8, [0x14014c008]
mov edx, 0xe
mov dword [rsp + 0x20], esi
mov r9, rbp
call fcn.140005938
mov edx, esi
mov rcx, rbp
call fcn.140087118
test eax, eax
jns 0x1400870bf
mov rcx, qword [0x14016f048]
cmp rcx, rbx
je 0x1400870c6
test byte [rcx + 0x1c], 1
je 0x1400870c6
cmp byte [rcx + 0x19], 2
jb 0x1400870c6
mov rcx, qword [rcx + 0x10]
lea r8, [0x14014c008]
mov edx, 0xf
mov dword [rsp + 0x20], eax
mov r9, rbp
call fcn.140005938
jmp 0x1400870bf
lea rbx, [0x14016f048]
mov rcx, qword [0x14016f048]
test rbp, rbp
je 0x1400870db
mov rcx, rbp
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rcx, qword [0x14016f048]
cmp rcx, rbx
je 0x140087101
test byte [rcx + 0x1c], 1
je 0x140087101
cmp byte [rcx + 0x19], 5
jb 0x140087101
mov rcx, qword [rcx + 0x10]
lea r8, [0x14014c008]
mov edx, 0x10
call fcn.1400049d8
mov eax, edi
mov rbx, qword [rsp + 0x80]
add rsp, 0x40
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret