Function at 0x140067220
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.140061030
nop
test bl, bl
je 0x140067427
lea rdx, [rbp + 0x38]
lea rcx, [rbp - 0x28]
call fcn.140021f00
nop
mov rdx, rax
lea rcx, [rbp - 0x30]
call fcn.140023b40
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 0x140067290
cmp eax, 0xffffffff
je 0x14006729f
lock dec dword [rcx]
jne 0x14006729f
mov rcx, qword [rbp - 0x30]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.140011e00
nop
mov rcx, qword [rbp - 0x28]
mov eax, dword [rcx]
test eax, eax
je 0x1400672b7
cmp eax, 0xffffffff
je 0x1400672c5
lock dec dword [rcx]
jne 0x1400672c5
mov rcx, qword [rbp - 0x28]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.140011e00
xor esi, esi
mov rax, qword [rbp + 0x38]
mov ebx, dword [rax + 4]
test ebx, ebx
jle 0x140067423
mov r8d, ebx
lea rdx, [rbp + 0x30]
lea rcx, [rbp + 0x38]
call fcn.140016180
nop
mov rcx, qword [rbp + 0x30]
cmp dword [rcx + 4], 2
jne 0x14006732d
mov rax, qword [rcx + 0x10]
movzx edx, word [rcx + rax]
lea eax, [rdx - 0x41]
cmp eax, 0x39
ja 0x140067309
lea eax, [rdx - 0x5b]
cmp eax, 5
ja 0x14006731d
cmp edx, 0x7f
jbe 0x14006732d
mov ecx, edx
call fcn.1400160c0
test al, al
je 0x14006732d
mov rcx, qword [rbp + 0x30]
mov rax, qword [rcx + 0x10]
cmp word [rax + rcx + 2], 0x3a
je 0x1400673dc
xor edx, edx
lea rcx, [rbp + 0x30]
call fcn.140066450
test al, al
je 0x140067407
lea rdx, [rbp + 0x30]
lea rcx, [rbp - 0x20]
call fcn.14006a6f0
nop
mov rcx, rax
call fcn.14001b320
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 0x14006737c
cmp eax, 0xffffffff
je 0x14006738a
lock dec dword [rcx]
jne 0x14006738a
mov rcx, qword [rbp - 0x20]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.140011e00
test bl, bl
je 0x140067400
lea rcx, [rbp + 0x28]
call fcn.140023610
lea r8d, [rsi - 1]
mov r9d, 1
movzx edx, word [rax]
lea rcx, [rbp + 0x38]
call fcn.140016150
mov ebx, eax
mov rcx, qword [rbp + 0x30]
mov eax, dword [rcx]
test eax, eax
je 0x1400673c7
cmp eax, 0xffffffff
je 0x1400673d5
lock dec dword [rcx]
jne 0x1400673d5
mov rcx, qword [rbp + 0x30]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.140011e00
mov esi, ebx
jmp 0x1400672ce
mov eax, dword [rcx]
test eax, eax
je 0x1400673f0
cmp eax, 0xffffffff
je 0x140067423
lock dec dword [rcx]
jne 0x140067423
mov rcx, qword [rbp + 0x30]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.140011e00
jmp 0x140067423
test esi, esi
setne bl
jmp 0x140067409
xor bl, bl
mov rcx, qword [rbp + 0x30]
mov eax, dword [rcx]
test eax, eax
je 0x140067457
cmp eax, 0xffffffff
je 0x140067467
lock dec dword [rcx]
jne 0x140067467
mov rcx, qword [rbp + 0x30]
jmp 0x140067457
mov bl, 1
jmp 0x140067467
lea rdx, [rbp - 0x18]
mov rcx, rsi
call fcn.140061030
nop
mov rcx, rax
call fcn.140067a40
movzx ebx, al
mov rcx, qword [rbp - 0x18]
mov eax, dword [rcx]
test eax, eax
je 0x140067457
cmp eax, 0xffffffff
je 0x140067467
lock dec dword [rcx]
jne 0x140067467
mov rcx, qword [rbp - 0x18]
mov r8d, 8
lea edx, [r8 - 6]
call fcn.140011e00
nop
mov rax, qword [rbp + 0x38]
mov ecx, dword [rax]
test ecx, ecx
je 0x14006747b
cmp ecx, 0xffffffff
je 0x14006748d
lock dec dword [rax]
jne 0x14006748d
mov edx, 2
lea r8d, [rdx + 6]
mov rcx, qword [rbp + 0x38]
call fcn.140011e00
movzx eax, bl
mov rbx, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
pop rsi
pop rbp
ret