Function at 0x14005e0c0
Capabilities:
Delete directory

Disassembly:
push rbp
push rsi
push rdi
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x10], 0xfffffffffffffffe
mov qword [rsp + 0x70], rbx
movzx ebx, dl
mov rsi, rcx
lea rdx, [rbp + 0x38]
call fcn.140057dd0
nop
test bl, bl
je 0x14005e2c7
lea rdx, [rbp + 0x38]
lea rcx, [rbp - 0x28]
call fcn.1400211e0
nop
mov rdx, rax
lea rcx, [rbp - 0x30]
call fcn.140022ea0
mov rdx, qword [rbp + 0x38]
mov rcx, qword [rax]
mov qword [rbp + 0x38], rcx
mov qword [rax], rdx
mov rcx, qword [rbp - 0x30]
mov eax, dword [rcx]
test eax, eax
je 0x14005e130
cmp eax, 0xffffffff
je 0x14005e13f
lock dec dword [rcx]
jne 0x14005e13f
mov rcx, qword [rbp - 0x30]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.1400112a0
nop
mov rcx, qword [rbp - 0x28]
mov eax, dword [rcx]
test eax, eax
je 0x14005e157
cmp eax, 0xffffffff
je 0x14005e165
lock dec dword [rcx]
jne 0x14005e165
mov rcx, qword [rbp - 0x28]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.1400112a0
xor esi, esi
mov rax, qword [rbp + 0x38]
mov ebx, dword [rax + 4]
test ebx, ebx
jle 0x14005e2c3
mov r8d, ebx
lea rdx, [rbp + 0x30]
lea rcx, [rbp + 0x38]
call fcn.140015530
nop
mov rcx, qword [rbp + 0x30]
cmp dword [rcx + 4], 2
jne 0x14005e1cd
mov rax, qword [rcx + 0x10]
movzx edx, word [rcx + rax]
lea eax, [rdx - 0x41]
cmp eax, 0x39
ja 0x14005e1a9
lea eax, [rdx - 0x5b]
cmp eax, 5
ja 0x14005e1bd
cmp edx, 0x7f
jbe 0x14005e1cd
mov ecx, edx
call fcn.140015470
test al, al
je 0x14005e1cd
mov rcx, qword [rbp + 0x30]
mov rax, qword [rcx + 0x10]
cmp word [rax + rcx + 2], 0x3a
je 0x14005e27c
xor edx, edx
lea rcx, [rbp + 0x30]
call fcn.14005d1f0
test al, al
je 0x14005e2a7
lea rdx, [rbp + 0x30]
lea rcx, [rbp - 0x20]
call fcn.140069bc0
nop
mov rcx, rax
call fcn.14001a740
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
setne bl
mov rcx, qword [rbp - 0x20]
mov eax, dword [rcx]
test eax, eax
je 0x14005e21c
cmp eax, 0xffffffff
je 0x14005e22a
lock dec dword [rcx]
jne 0x14005e22a
mov rcx, qword [rbp - 0x20]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.1400112a0
test bl, bl
je 0x14005e2a0
lea rcx, [rbp + 0x28]
call fcn.140022970
lea r8d, [rsi - 1]
mov r9d, 1
movzx edx, word [rax]
lea rcx, [rbp + 0x38]
call fcn.140015500
mov ebx, eax
mov rcx, qword [rbp + 0x30]
mov eax, dword [rcx]
test eax, eax
je 0x14005e267
cmp eax, 0xffffffff
je 0x14005e275
lock dec dword [rcx]
jne 0x14005e275
mov rcx, qword [rbp + 0x30]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.1400112a0
mov esi, ebx
jmp 0x14005e16e
mov eax, dword [rcx]
test eax, eax
je 0x14005e290
cmp eax, 0xffffffff
je 0x14005e2c3
lock dec dword [rcx]
jne 0x14005e2c3
mov rcx, qword [rbp + 0x30]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.1400112a0
jmp 0x14005e2c3
test esi, esi
setne bl
jmp 0x14005e2a9
xor bl, bl
mov rcx, qword [rbp + 0x30]
mov eax, dword [rcx]
test eax, eax
je 0x14005e2f7
cmp eax, 0xffffffff
je 0x14005e307
lock dec dword [rcx]
jne 0x14005e307
mov rcx, qword [rbp + 0x30]
jmp 0x14005e2f7
mov bl, 1
jmp 0x14005e307
lea rdx, [rbp - 0x18]
mov rcx, rsi
call fcn.140057dd0
nop
mov rcx, rax
call fcn.14005e8e0
movzx ebx, al
mov rcx, qword [rbp - 0x18]
mov eax, dword [rcx]
test eax, eax
je 0x14005e2f7
cmp eax, 0xffffffff
je 0x14005e307
lock dec dword [rcx]
jne 0x14005e307
mov rcx, qword [rbp - 0x18]
mov r8d, 8
lea edx, [r8 - 6]
call fcn.1400112a0
nop
mov rax, qword [rbp + 0x38]
mov ecx, dword [rax]
test ecx, ecx
je 0x14005e31b
cmp ecx, 0xffffffff
je 0x14005e32d
lock dec dword [rax]
jne 0x14005e32d
mov edx, 2
lea r8d, [rdx + 6]
mov rcx, qword [rbp + 0x38]
call fcn.1400112a0
movzx eax, bl
mov rbx, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
pop rsi
pop rbp
ret