Function at 0x14005eb60
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.140058850
nop
test bl, bl
je 0x14005ed67
lea rdx, [rbp + 0x38]
lea rcx, [rbp - 0x28]
call fcn.140021a60
nop
mov rdx, rax
lea rcx, [rbp - 0x30]
call fcn.140023720
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 0x14005ebd0
cmp eax, 0xffffffff
je 0x14005ebdf
lock dec dword [rcx]
jne 0x14005ebdf
mov rcx, qword [rbp - 0x30]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.140011b40
nop
mov rcx, qword [rbp - 0x28]
mov eax, dword [rcx]
test eax, eax
je 0x14005ebf7
cmp eax, 0xffffffff
je 0x14005ec05
lock dec dword [rcx]
jne 0x14005ec05
mov rcx, qword [rbp - 0x28]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.140011b40
xor esi, esi
mov rax, qword [rbp + 0x38]
mov ebx, dword [rax + 4]
test ebx, ebx
jle 0x14005ed63
mov r8d, ebx
lea rdx, [rbp + 0x30]
lea rcx, [rbp + 0x38]
call fcn.140015db0
nop
mov rcx, qword [rbp + 0x30]
cmp dword [rcx + 4], 2
jne 0x14005ec6d
mov rax, qword [rcx + 0x10]
movzx edx, word [rcx + rax]
lea eax, [rdx - 0x41]
cmp eax, 0x39
ja 0x14005ec49
lea eax, [rdx - 0x5b]
cmp eax, 5
ja 0x14005ec5d
cmp edx, 0x7f
jbe 0x14005ec6d
mov ecx, edx
call fcn.140015cf0
test al, al
je 0x14005ec6d
mov rcx, qword [rbp + 0x30]
mov rax, qword [rcx + 0x10]
cmp word [rax + rcx + 2], 0x3a
je 0x14005ed1c
xor edx, edx
lea rcx, [rbp + 0x30]
call fcn.14005dc90
test al, al
je 0x14005ed47
lea rdx, [rbp + 0x30]
lea rcx, [rbp - 0x20]
call fcn.14006a650
nop
mov rcx, rax
call fcn.14001afc0
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 0x14005ecbc
cmp eax, 0xffffffff
je 0x14005ecca
lock dec dword [rcx]
jne 0x14005ecca
mov rcx, qword [rbp - 0x20]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.140011b40
test bl, bl
je 0x14005ed40
lea rcx, [rbp + 0x28]
call fcn.1400231f0
lea r8d, [rsi - 1]
mov r9d, 1
movzx edx, word [rax]
lea rcx, [rbp + 0x38]
call fcn.140015d80
mov ebx, eax
mov rcx, qword [rbp + 0x30]
mov eax, dword [rcx]
test eax, eax
je 0x14005ed07
cmp eax, 0xffffffff
je 0x14005ed15
lock dec dword [rcx]
jne 0x14005ed15
mov rcx, qword [rbp + 0x30]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.140011b40
mov esi, ebx
jmp 0x14005ec0e
mov eax, dword [rcx]
test eax, eax
je 0x14005ed30
cmp eax, 0xffffffff
je 0x14005ed63
lock dec dword [rcx]
jne 0x14005ed63
mov rcx, qword [rbp + 0x30]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.140011b40
jmp 0x14005ed63
test esi, esi
setne bl
jmp 0x14005ed49
xor bl, bl
mov rcx, qword [rbp + 0x30]
mov eax, dword [rcx]
test eax, eax
je 0x14005ed97
cmp eax, 0xffffffff
je 0x14005eda7
lock dec dword [rcx]
jne 0x14005eda7
mov rcx, qword [rbp + 0x30]
jmp 0x14005ed97
mov bl, 1
jmp 0x14005eda7
lea rdx, [rbp - 0x18]
mov rcx, rsi
call fcn.140058850
nop
mov rcx, rax
call fcn.14005f380
movzx ebx, al
mov rcx, qword [rbp - 0x18]
mov eax, dword [rcx]
test eax, eax
je 0x14005ed97
cmp eax, 0xffffffff
je 0x14005eda7
lock dec dword [rcx]
jne 0x14005eda7
mov rcx, qword [rbp - 0x18]
mov r8d, 8
lea edx, [r8 - 6]
call fcn.140011b40
nop
mov rax, qword [rbp + 0x38]
mov ecx, dword [rax]
test ecx, ecx
je 0x14005edbb
cmp ecx, 0xffffffff
je 0x14005edcd
lock dec dword [rax]
jne 0x14005edcd
mov edx, 2
lea r8d, [rdx + 6]
mov rcx, qword [rbp + 0x38]
call fcn.140011b40
movzx eax, bl
mov rbx, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
pop rsi
pop rbp
ret