Function at 0x1000fe878
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 0x1000fe8c5
test byte [rcx + 0x1c], 1
je 0x1000fe8c5
cmp byte [rcx + 0x19], 5
jb 0x1000fe8c5
mov rcx, qword [rcx + 0x10]
lea r8, [0x100003000]
mov edx, 0xf
call fcn.10001c7b8
test rbp, rbp
jne 0x1000fe8e2
lea r8, [0x100009df8]
lea rcx, [0x100011cc8]
mov edx, 0x183
call fcn.100099ad8
and qword [rsp + 0x78], 0
xor edi, edi
xor r13b, r13b
mov dword [rsp + 0x70], edi
test rsi, rsi
je 0x1000fe8fc
mov edi, dword [rsi]
mov dword [rsp + 0x70], edi
test rbx, rbx
je 0x1000fe904
mov byte [rbx], 0
lea rdx, [rsp + 0x78]
mov rcx, rbp
call fcn.1000fc6c0
mov r12, qword [rsp + 0x78]
mov ebp, eax
test eax, eax
js 0x1000feb38
test rsi, rsi
je 0x1000fe92a
test byte [rsi], 7
je 0x1000fe995
lea rdx, [rsp + 0x70]
mov rcx, r12
call fcn.1000fe678
mov ebp, eax
test eax, eax
jns 0x1000fe98e
test rbx, rbx
je 0x1000fe945
mov byte [rbx], 1
mov rcx, qword [0x1001653b8]
lea rbx, [0x1001653b8]
cmp rcx, rbx
je 0x1000fe985
test byte [rcx + 0x1c], 1
je 0x1000fe985
cmp byte [rcx + 0x19], 2
jb 0x1000fe985
mov rcx, qword [rcx + 0x10]
lea r8, [0x100003000]
mov edx, 0x10
mov r9d, eax
call fcn.10001c7dc
mov edi, dword [rsp + 0x70]
jmp 0x1000feab0
mov edi, dword [rsp + 0x70]
jmp 0x1000feab7
mov edi, dword [rsp + 0x70]
mov r13b, 1
test dil, 0x10
je 0x1000fea1a
bt edi, 0xa
jb 0x1000fea1a
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x1000feaa9
test rbx, rbx
je 0x1000fe9ba
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 0x1000feab7
test byte [rcx + 0x1c], 1
je 0x1000feab7
cmp byte [rcx + 0x19], 2
jb 0x1000feab7
mov rcx, qword [rcx + 0x10]
lea r8, [0x100003000]
mov edx, 0x11
mov r9, r12
mov dword [rsp + 0x20], ebp
call fcn.10001daa4
jmp 0x1000feab0
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 0x1000feaa0
test rbx, rbx
je 0x1000fea53
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 0x1000feab7
test byte [rcx + 0x1c], 1
je 0x1000feab7
cmp byte [rcx + 0x19], 2
jb 0x1000feab7
mov rcx, qword [rcx + 0x10]
lea r8, [0x100003000]
mov edx, 0x12
mov r9d, ebp
call fcn.10001c7dc
jmp 0x1000feab0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rbx, [0x1001653b8]
mov rcx, qword [0x1001653b8]
test ebp, ebp
jns 0x1000feb3f
test r13b, r13b
je 0x1000feb3f
cmp rcx, rbx
je 0x1000feaf1
test byte [rcx + 0x1c], 1
je 0x1000feaf1
cmp byte [rcx + 0x19], 4
jb 0x1000feaf1
mov rcx, qword [rcx + 0x10]
lea r8, [0x100003000]
mov edx, 0x13
mov r9, r12
mov dword [rsp + 0x20], edi
call fcn.10001daa4
xor r8d, r8d
mov edx, edi
mov rcx, r12
call fcn.1000fb7b8
test eax, eax
jns 0x1000feb3f
mov rcx, qword [0x1001653b8]
cmp rcx, rbx
je 0x1000feb3f
test byte [rcx + 0x1c], 1
je 0x1000feb3f
cmp byte [rcx + 0x19], 2
jb 0x1000feb3f
mov rcx, qword [rcx + 0x10]
lea r8, [0x100003000]
mov edx, 0x14
mov r9, r12
mov dword [rsp + 0x20], eax
call fcn.10001daa4
jmp 0x1000feb3f
lea rbx, [0x1001653b8]
mov rcx, r12
call qword [sym.imp.msvcrt.dll_free]
mov rcx, qword [0x1001653b8]
cmp rcx, rbx
je 0x1000feb75
test byte [rcx + 0x1c], 1
je 0x1000feb75
cmp byte [rcx + 0x19], 5
jb 0x1000feb75
mov rcx, qword [rcx + 0x10]
lea r8, [0x100003000]
mov edx, 0x15
call fcn.10001c7b8
mov eax, ebp
mov rbx, qword [rsp + 0x80]
add rsp, 0x40
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret