Function at 0x14005e040
Capabilities:
Delete directory

Disassembly:
push rbp
push rsi
push rdi
mov rbp, rsp
sub rsp, 0x60
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x80], rbx
movzx ebx, dl
mov rdi, rcx
lea rdx, [rbp + 0x30]
call fcn.1400573f0
nop
test bl, bl
je 0x14005e314
lea rdx, [rbp + 0x30]
lea rcx, [rbp - 0x38]
call fcn.140025e20
nop
mov rdx, rax
lea rcx, [rbp - 0x40]
call fcn.140027ea0
mov rdx, qword [rbp + 0x30]
mov qword [rbp - 0x18], rdx
mov rcx, qword [rax]
mov qword [rbp + 0x30], rcx
mov qword [rax], rdx
mov rcx, qword [rbp - 0x40]
mov eax, dword [rcx]
or ebx, 0xffffffff
test eax, eax
je 0x14005e0bf
cmp eax, ebx
je 0x14005e0ce
mov eax, ebx
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x14005e0ce
mov rcx, qword [rbp - 0x40]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.14002c3b0
nop
mov rcx, qword [rbp - 0x38]
mov eax, dword [rcx]
test eax, eax
je 0x14005e0ec
cmp eax, 0xffffffff
je 0x14005e0fa
mov eax, ebx
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x14005e0fa
mov rcx, qword [rbp - 0x38]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.14002c3b0
xor esi, esi
mov rcx, qword [rbp + 0x30]
mov edi, dword [rcx + 4]
test edi, edi
jle 0x14005e2ea
nop dword [rax + rax]
mov r8d, edi
lea rdx, [rbp - 0x10]
lea rcx, [rbp + 0x30]
call fcn.14001c0d0
cmp dword [rbp - 4], 2
jne 0x14005e180
mov r8, qword [rbp - 0x10]
mov rdx, qword [r8]
movsxd r9, dword [rbp - 8]
mov rax, qword [rdx + 0x10]
lea rcx, [rax + r9*2]
movzx ecx, word [rcx + rdx]
lea eax, [rcx - 0x41]
cmp eax, 0x39
ja 0x14005e14d
lea eax, [rcx - 0x5b]
cmp eax, 5
ja 0x14005e163
cmp ecx, 0x7f
jbe 0x14005e180
call fcn.14001bdf0
test al, al
je 0x14005e180
mov r9d, dword [rbp - 8]
mov r8, qword [rbp - 0x10]
lea eax, [r9 + 1]
mov rdx, qword [r8]
movsxd rcx, eax
mov rax, qword [rdx + 0x10]
lea rcx, [rax + rcx*2]
cmp word [rcx + rdx], 0x3a
je 0x14005e24e
lea rdx, [rbp + 0x38]
lea rcx, [rbp - 0x10]
call fcn.140020d80
nop
xor edx, edx
lea rcx, [rbp + 0x38]
call fcn.14005d150
test al, al
je 0x14005e28c
lea rdx, [rbp + 0x38]
lea rcx, [rbp - 0x30]
call fcn.140078dc0
nop
mov rcx, rax
call fcn.140021a50
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
setne dil
mov rcx, qword [rbp - 0x30]
mov eax, dword [rcx]
test eax, eax
je 0x14005e1e4
cmp eax, 0xffffffff
je 0x14005e1f2
mov eax, ebx
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x14005e1f2
mov rcx, qword [rbp - 0x30]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.14002c3b0
test dil, dil
je 0x14005e257
lea rcx, [rbp + 0x28]
call fcn.1400278f0
lea r8d, [rsi - 1]
mov r9d, 1
movzx edx, word [rax]
lea rcx, [rbp + 0x30]
call fcn.14001beb0
mov edi, eax
mov rcx, qword [rbp + 0x38]
mov eax, dword [rcx]
test eax, eax
je 0x14005e236
cmp eax, 0xffffffff
je 0x14005e244
mov eax, ebx
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x14005e244
mov rcx, qword [rbp + 0x38]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.14002c3b0
mov esi, edi
test edi, edi
jg 0x14005e110
mov rcx, qword [rbp + 0x30]
jmp 0x14005e2ea
test esi, esi
setne dil
mov rcx, qword [rbp + 0x38]
mov eax, dword [rcx]
test eax, eax
je 0x14005e34c
cmp eax, 0xffffffff
je 0x14005e35c
mov eax, ebx
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x14005e35c
mov rcx, qword [rbp + 0x38]
jmp 0x14005e34c
mov rcx, qword [rbp + 0x38]
mov eax, dword [rcx]
test eax, eax
je 0x14005e2aa
cmp eax, 0xffffffff
je 0x14005e2b9
mov eax, ebx
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x14005e2b9
mov rcx, qword [rbp + 0x38]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.14002c3b0
nop
mov rcx, qword [rbp + 0x30]
mov eax, dword [rcx]
test eax, eax
je 0x14005e2d5
cmp eax, 0xffffffff
je 0x14005e2e3
lock xadd dword [rcx], ebx
cmp ebx, 1
jne 0x14005e2e3
mov rcx, qword [rbp + 0x30]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.14002c3b0
xor al, al
jmp 0x14005e38b
mov eax, dword [rcx]
test eax, eax
je 0x14005e302
cmp eax, 0xffffffff
je 0x14005e310
lock xadd dword [rcx], ebx
cmp ebx, 1
jne 0x14005e310
mov rcx, qword [rbp + 0x30]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.14002c3b0
mov al, 1
jmp 0x14005e38b
lea rdx, [rbp - 0x28]
mov rcx, rdi
call fcn.1400573f0
nop
mov rcx, rax
call fcn.14005e660
movzx edi, al
mov rcx, qword [rbp - 0x28]
mov edx, dword [rcx]
or ebx, 0xffffffff
test edx, edx
je 0x14005e34c
cmp edx, ebx
je 0x14005e35c
mov edx, ebx
lock xadd dword [rcx], edx
cmp edx, 1
jne 0x14005e35c
mov rcx, qword [rbp - 0x28]
mov r8d, 8
lea edx, [r8 - 6]
call fcn.14002c3b0
nop
mov rcx, qword [rbp + 0x30]
mov eax, dword [rcx]
test eax, eax
je 0x14005e378
cmp eax, 0xffffffff
je 0x14005e387
lock xadd dword [rcx], ebx
cmp ebx, 1
jne 0x14005e387
mov rcx, qword [rbp + 0x30]
mov r8d, 8
lea edx, [r8 - 6]
call fcn.14002c3b0
movzx eax, dil
mov rbx, qword [rsp + 0x80]
add rsp, 0x60
pop rdi
pop rsi
pop rbp
ret