Function at 0x10009de6c
Capabilities:
Delete directory

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
sub rsp, 0x40
mov rbx, r8
mov rsi, rdx
mov rbp, rcx
mov rcx, qword [0x1001653b8]
lea rax, [0x1001653b8]
cmp rcx, rax
je 0x10009deb9
test byte [rcx + 0x1c], 1
je 0x10009deb9
cmp byte [rcx + 0x19], 5
jb 0x10009deb9
mov rcx, qword [rcx + 0x10]
lea r8, [0x100003aa8]
mov edx, 0xa
call fcn.10001c854
test rbp, rbp
jne 0x10009ded6
lea r8, [0x100009d78]
lea rcx, [0x10000a010]
mov edx, 0xea
call fcn.10009a050
and qword [rsp + 0x78], 0
xor edi, edi
xor r13b, r13b
mov dword [rsp + 0x70], edi
test rsi, rsi
je 0x10009def0
mov edi, dword [rsi]
mov dword [rsp + 0x70], edi
test rbx, rbx
je 0x10009def8
mov byte [rbx], 0
lea rdx, [rsp + 0x78]
mov rcx, rbp
call fcn.10009fff0
mov r12, qword [rsp + 0x78]
mov ebp, eax
test eax, eax
js 0x10009e129
test rsi, rsi
je 0x10009df1e
test byte [rsi], 7
je 0x10009df89
lea rdx, [rsp + 0x70]
mov rcx, r12
call fcn.10009e364
mov ebp, eax
test eax, eax
jns 0x10009df82
test rbx, rbx
je 0x10009df39
mov byte [rbx], 1
mov rcx, qword [0x1001653b8]
lea rbx, [0x1001653b8]
cmp rcx, rbx
je 0x10009df79
test byte [rcx + 0x1c], 1
je 0x10009df79
cmp byte [rcx + 0x19], 2
jb 0x10009df79
mov rcx, qword [rcx + 0x10]
lea r8, [0x100003aa8]
mov edx, 0xb
mov r9d, eax
call fcn.10001c878
mov edi, dword [rsp + 0x70]
jmp 0x10009e0a4
mov edi, dword [rsp + 0x70]
jmp 0x10009e0ab
mov edi, dword [rsp + 0x70]
mov r13b, 1
test dil, 0x10
je 0x10009e00e
bt edi, 0xa
jb 0x10009e00e
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x10009e09d
test rbx, rbx
je 0x10009dfae
mov byte [rbx], 1
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebp, ax
or ebp, 0x80070000
test eax, eax
cmovle ebp, eax
mov rcx, qword [0x1001653b8]
lea rbx, [0x1001653b8]
cmp rcx, rbx
je 0x10009e0ab
test byte [rcx + 0x1c], 1
je 0x10009e0ab
cmp byte [rcx + 0x19], 2
jb 0x10009e0ab
mov rcx, qword [rcx + 0x10]
lea r8, [0x100003aa8]
mov edx, 0xc
mov r9, r12
mov dword [rsp + 0x20], ebp
call fcn.10001ddb0
jmp 0x10009e0a4
and qword [rsp + 0x30], 0
xor r9d, r9d
mov edx, 0x10000
lea r8d, [r9 + 7]
mov rcx, r12
mov dword [rsp + 0x28], 0x6200000
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
cmp rax, 0xffffffffffffffff
jne 0x10009e094
test rbx, rbx
je 0x10009e047
mov byte [rbx], 1
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebp, ax
or ebp, 0x80070000
test eax, eax
cmovle ebp, eax
mov rcx, qword [0x1001653b8]
lea rbx, [0x1001653b8]
cmp rcx, rbx
je 0x10009e0ab
test byte [rcx + 0x1c], 1
je 0x10009e0ab
cmp byte [rcx + 0x19], 2
jb 0x10009e0ab
mov rcx, qword [rcx + 0x10]
lea r8, [0x100003aa8]
mov edx, 0xd
mov r9d, ebp
call fcn.10001c878
jmp 0x10009e0a4
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rbx, [0x1001653b8]
mov rcx, qword [0x1001653b8]
test ebp, ebp
jns 0x10009e137
test r13b, r13b
je 0x10009e137
cmp rcx, rbx
je 0x10009e0e5
test byte [rcx + 0x1c], 1
je 0x10009e0e5
cmp byte [rcx + 0x19], 4
jb 0x10009e0e5
mov rcx, qword [rcx + 0x10]
lea r8, [0x100003aa8]
mov edx, 0xe
mov r9, r12
mov dword [rsp + 0x20], edi
call fcn.10001ddb0
mov edx, edi
mov rcx, r12
call fcn.10009e190
test eax, eax
jns 0x10009e130
mov rcx, qword [0x1001653b8]
cmp rcx, rbx
je 0x10009e137
test byte [rcx + 0x1c], 1
je 0x10009e137
cmp byte [rcx + 0x19], 2
jb 0x10009e137
mov rcx, qword [rcx + 0x10]
lea r8, [0x100003aa8]
mov edx, 0xf
mov r9, r12
mov dword [rsp + 0x20], eax
call fcn.10001ddb0
jmp 0x10009e130
lea rbx, [0x1001653b8]
mov rcx, qword [0x1001653b8]
test r12, r12
je 0x10009e14c
mov rcx, r12
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rcx, qword [0x1001653b8]
cmp rcx, rbx
je 0x10009e172
test byte [rcx + 0x1c], 1
je 0x10009e172
cmp byte [rcx + 0x19], 5
jb 0x10009e172
mov rcx, qword [rcx + 0x10]
lea r8, [0x100003aa8]
mov edx, 0x10
call fcn.10001c854
mov eax, ebp
mov rbx, qword [rsp + 0x80]
add rsp, 0x40
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret