Function at 0x1000feca4
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 0x1000fecf1
test byte [rcx + 0x1c], 1
je 0x1000fecf1
cmp byte [rcx + 0x19], 5
jb 0x1000fecf1
mov rcx, qword [rcx + 0x10]
lea r8, [0x100002fc0]
mov edx, 0xf
call fcn.10001c854
test rbp, rbp
jne 0x1000fed0e
lea r8, [0x100009d78]
lea rcx, [0x100011ca0]
mov edx, 0x183
call fcn.10009a050
and qword [rsp + 0x78], 0
xor edi, edi
xor r13b, r13b
mov dword [rsp + 0x70], edi
test rsi, rsi
je 0x1000fed28
mov edi, dword [rsi]
mov dword [rsp + 0x70], edi
test rbx, rbx
je 0x1000fed30
mov byte [rbx], 0
lea rdx, [rsp + 0x78]
mov rcx, rbp
call fcn.1000fcb0c
mov r12, qword [rsp + 0x78]
mov ebp, eax
test eax, eax
js 0x1000fef64
test rsi, rsi
je 0x1000fed56
test byte [rsi], 7
je 0x1000fedc1
lea rdx, [rsp + 0x70]
mov rcx, r12
call fcn.1000feaa4
mov ebp, eax
test eax, eax
jns 0x1000fedba
test rbx, rbx
je 0x1000fed71
mov byte [rbx], 1
mov rcx, qword [0x1001653b8]
lea rbx, [0x1001653b8]
cmp rcx, rbx
je 0x1000fedb1
test byte [rcx + 0x1c], 1
je 0x1000fedb1
cmp byte [rcx + 0x19], 2
jb 0x1000fedb1
mov rcx, qword [rcx + 0x10]
lea r8, [0x100002fc0]
mov edx, 0x10
mov r9d, eax
call fcn.10001c878
mov edi, dword [rsp + 0x70]
jmp 0x1000feedc
mov edi, dword [rsp + 0x70]
jmp 0x1000feee3
mov edi, dword [rsp + 0x70]
mov r13b, 1
test dil, 0x10
je 0x1000fee46
bt edi, 0xa
jb 0x1000fee46
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x1000feed5
test rbx, rbx
je 0x1000fede6
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 0x1000feee3
test byte [rcx + 0x1c], 1
je 0x1000feee3
cmp byte [rcx + 0x19], 2
jb 0x1000feee3
mov rcx, qword [rcx + 0x10]
lea r8, [0x100002fc0]
mov edx, 0x11
mov r9, r12
mov dword [rsp + 0x20], ebp
call fcn.10001ddb0
jmp 0x1000feedc
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 0x1000feecc
test rbx, rbx
je 0x1000fee7f
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 0x1000feee3
test byte [rcx + 0x1c], 1
je 0x1000feee3
cmp byte [rcx + 0x19], 2
jb 0x1000feee3
mov rcx, qword [rcx + 0x10]
lea r8, [0x100002fc0]
mov edx, 0x12
mov r9d, ebp
call fcn.10001c878
jmp 0x1000feedc
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rbx, [0x1001653b8]
mov rcx, qword [0x1001653b8]
test ebp, ebp
jns 0x1000fef6b
test r13b, r13b
je 0x1000fef6b
cmp rcx, rbx
je 0x1000fef1d
test byte [rcx + 0x1c], 1
je 0x1000fef1d
cmp byte [rcx + 0x19], 4
jb 0x1000fef1d
mov rcx, qword [rcx + 0x10]
lea r8, [0x100002fc0]
mov edx, 0x13
mov r9, r12
mov dword [rsp + 0x20], edi
call fcn.10001ddb0
xor r8d, r8d
mov edx, edi
mov rcx, r12
call fcn.1000fbc04
test eax, eax
jns 0x1000fef6b
mov rcx, qword [0x1001653b8]
cmp rcx, rbx
je 0x1000fef6b
test byte [rcx + 0x1c], 1
je 0x1000fef6b
cmp byte [rcx + 0x19], 2
jb 0x1000fef6b
mov rcx, qword [rcx + 0x10]
lea r8, [0x100002fc0]
mov edx, 0x14
mov r9, r12
mov dword [rsp + 0x20], eax
call fcn.10001ddb0
jmp 0x1000fef6b
lea rbx, [0x1001653b8]
mov rcx, r12
call qword [sym.imp.msvcrt.dll_free]
mov rcx, qword [0x1001653b8]
cmp rcx, rbx
je 0x1000fefa1
test byte [rcx + 0x1c], 1
je 0x1000fefa1
cmp byte [rcx + 0x19], 5
jb 0x1000fefa1
mov rcx, qword [rcx + 0x10]
lea r8, [0x100002fc0]
mov edx, 0x15
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