Function at 0x1400947d0
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 [0x140183048]
lea rax, [0x140183048]
cmp rcx, rax
je 0x14009481d
test byte [rcx + 0x1c], 1
je 0x14009481d
cmp byte [rcx + 0x19], 5
jb 0x14009481d
mov rcx, qword [rcx + 0x10]
lea r8, [0x140161978]
mov edx, 0xa
call fcn.140004e50
test rdi, rdi
jne 0x14009483a
lea r8, str.wszPath
mov edx, 0xed
lea rcx, str.base_stor_blbutil_fileutils.cpp
call fcn.14008f4c8
and qword [rsp + 0x78], 0
xor esi, esi
xor r15b, r15b
mov dword [rsp + 0x70], esi
test r14, r14
je 0x140094855
mov esi, dword [r14]
mov dword [rsp + 0x70], esi
test rbx, rbx
je 0x14009485d
mov byte [rbx], r15b
lea rdx, [rsp + 0x78]
mov rcx, rdi
call fcn.140096968
mov rbp, qword [rsp + 0x78]
mov edi, eax
test eax, eax
js 0x140094aae
test r14, r14
je 0x140094884
test byte [r14], 7
je 0x1400948ef
lea rdx, [rsp + 0x70]
mov rcx, rbp
call fcn.140094d1c
mov edi, eax
test eax, eax
jns 0x1400948e8
test rbx, rbx
je 0x14009489f
mov byte [rbx], 1
mov rcx, qword [0x140183048]
lea rbx, [0x140183048]
cmp rcx, rbx
je 0x1400948df
test byte [rcx + 0x1c], 1
je 0x1400948df
cmp byte [rcx + 0x19], 2
jb 0x1400948df
mov rcx, qword [rcx + 0x10]
lea r8, [0x140161978]
mov edx, 0xb
mov r9d, eax
call fcn.140004e7c
mov esi, dword [rsp + 0x70]
jmp 0x140094a29
mov esi, dword [rsp + 0x70]
jmp 0x140094a30
mov esi, dword [rsp + 0x70]
mov r15b, 1
mov eax, esi
mov rcx, rbp
and eax, 0x410
cmp eax, 0x10
jne 0x140094984
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
nop dword [rax + rax]
test eax, eax
jne 0x140094a22
test rbx, rbx
je 0x14009491e
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 [0x140183048]
lea rbx, [0x140183048]
cmp rcx, rbx
je 0x140094a30
test byte [rcx + 0x1c], 1
je 0x140094a30
cmp byte [rcx + 0x19], 2
jb 0x140094a30
mov rcx, qword [rcx + 0x10]
lea r8, [0x140161978]
mov edx, 0xc
mov dword [rsp + 0x20], edi
mov r9, rbp
call fcn.140005f80
jmp 0x140094a29
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 0x140094a13
test rbx, rbx
je 0x1400949c0
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 [0x140183048]
lea rbx, [0x140183048]
cmp rcx, rbx
je 0x140094a30
test byte [rcx + 0x1c], 1
je 0x140094a30
cmp byte [rcx + 0x19], 2
jb 0x140094a30
mov rcx, qword [rcx + 0x10]
lea r8, [0x140161978]
mov edx, 0xd
mov r9d, edi
call fcn.140004e7c
jmp 0x140094a29
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
lea rbx, [0x140183048]
mov rcx, qword [0x140183048]
test edi, edi
jns 0x140094abc
test r15b, r15b
je 0x140094abc
cmp rcx, rbx
je 0x140094a6a
test byte [rcx + 0x1c], 1
je 0x140094a6a
cmp byte [rcx + 0x19], 4
jb 0x140094a6a
mov rcx, qword [rcx + 0x10]
lea r8, [0x140161978]
mov edx, 0xe
mov dword [rsp + 0x20], esi
mov r9, rbp
call fcn.140005f80
mov edx, esi
mov rcx, rbp
call fcn.140094b1c
test eax, eax
jns 0x140094ab5
mov rcx, qword [0x140183048]
cmp rcx, rbx
je 0x140094abc
test byte [rcx + 0x1c], 1
je 0x140094abc
cmp byte [rcx + 0x19], 2
jb 0x140094abc
mov rcx, qword [rcx + 0x10]
lea r8, [0x140161978]
mov edx, 0xf
mov dword [rsp + 0x20], eax
mov r9, rbp
call fcn.140005f80
jmp 0x140094ab5
lea rbx, [0x140183048]
mov rcx, qword [0x140183048]
test rbp, rbp
je 0x140094ad7
mov rcx, rbp
call qword [sym.imp.ole32.dll_CoTaskMemFree]
nop dword [rax + rax]
mov rcx, qword [0x140183048]
cmp rcx, rbx
je 0x140094afd
test byte [rcx + 0x1c], 1
je 0x140094afd
cmp byte [rcx + 0x19], 5
jb 0x140094afd
mov rcx, qword [rcx + 0x10]
lea r8, [0x140161978]
mov edx, 0x10
call fcn.140004e50
mov rbx, qword [rsp + 0x80]
mov eax, edi
add rsp, 0x40
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret