Function at 0x14013e3d0
Capabilities:
Delete directory

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0xf0
movzx edi, dl
mov rbx, rcx
xor r15d, r15d
lea rdx, [rsp + 0x20]
call fcn.140134f10
nop
lea r14d, [r15 - 1]
cmp qword [rsp + 0x30], r15
jne 0x14013e416
lea rdx, str.Empty_filename_passed_to_function
jmp 0x14013e43a
mov r9d, 1
xor r8d, r8d
movzx edx, r15w
lea rcx, [rsp + 0x20]
call fcn.14008e920
cmp rax, 0xffffffffffffffff
je 0x14013e472
lea rdx, str.Broken_filename_passed_to_function
xorps xmm0, xmm0
lea rax, str.default
mov qword [rsp + 0x38], 2
movdqu xmmword [rbp - 0x79], xmm0
mov qword [rbp - 0x69], rax
lea rcx, [rsp + 0x38]
call fcn.14010f2c0
call fcn.1402273f8
mov dword [rax], 0x16
xor bl, bl
jmp 0x14013e6af
test dil, dil
je 0x14013e641
lea rdx, [rsp + 0x20]
lea rcx, [rbp - 0x31]
call fcn.1400a7660
nop
mov rdx, rax
lea rcx, [rbp - 0x49]
call fcn.1400ab280
mov rdx, qword [rsp + 0x20]
mov rcx, qword [rax]
mov qword [rsp + 0x20], rcx
mov qword [rax], rdx
mov rdx, qword [rsp + 0x28]
mov rcx, qword [rax + 8]
mov qword [rsp + 0x28], rcx
mov qword [rax + 8], rdx
mov rdx, qword [rsp + 0x30]
mov rcx, qword [rax + 0x10]
mov qword [rsp + 0x30], rcx
mov qword [rax + 0x10], rdx
mov rcx, qword [rbp - 0x49]
test rcx, rcx
je 0x14013e4e9
mov eax, r14d
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x14013e4e9
mov rcx, qword [rbp - 0x49]
call fcn.14021b810
nop
mov rcx, qword [rbp - 0x31]
test rcx, rcx
je 0x14013e507
mov eax, r14d
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x14013e507
mov rcx, qword [rbp - 0x31]
call fcn.14021b810
mov rbx, qword [rsp + 0x30]
mov edi, ebx
test ebx, ebx
jle 0x14013e63d
mov r12d, 0x5c
nop dword [rax]
mov rsi, qword [rsp + 0x28]
movsxd rax, edi
cmp rax, rbx
cmovb rbx, rax
cmp rbx, 2
jne 0x14013e561
movzx ecx, word [rsi]
lea eax, [rcx - 0x41]
cmp eax, 0x39
ja 0x14013e548
lea eax, [rcx - 0x5b]
cmp eax, 5
ja 0x14013e556
cmp ecx, 0x7f
jbe 0x14013e561
call fcn.14008ece0
test al, al
je 0x14013e561
cmp word [rsi + 2], 0x3a
je 0x14013e63d
mov r8, rbx
mov rdx, rsi
lea rcx, [rbp - 0x61]
call fcn.140086f70
nop
xor edx, edx
lea rcx, [rbp - 0x61]
call fcn.14013cb90
test al, al
je 0x14013e61c
lea rdx, [rbp - 0x61]
lea rcx, [rbp - 0x19]
call fcn.140149a90
nop
mov rcx, rax
call fcn.140094f50
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov ebx, eax
mov rdx, qword [rbp - 0x19]
test rdx, rdx
je 0x14013e5c3
mov ecx, r14d
lock xadd dword [rdx], ecx
cmp ecx, 1
jne 0x14013e5c3
mov rcx, qword [rbp - 0x19]
call fcn.14021b810
test ebx, ebx
je 0x14013e614
lea eax, [r15 - 1]
movsxd r8, eax
mov r9d, 1
movzx edx, r12w
lea rcx, [rsp + 0x20]
call fcn.14008f060
mov rdi, rax
mov rax, qword [rbp - 0x61]
test rax, rax
je 0x14013e603
mov ecx, r14d
lock xadd dword [rax], ecx
cmp ecx, 1
jne 0x14013e603
mov rcx, qword [rbp - 0x61]
call fcn.14021b810
mov r15d, edi
test edi, edi
jle 0x14013e63d
mov rbx, qword [rsp + 0x30]
jmp 0x14013e520
test r15d, r15d
setne bl
jmp 0x14013e61e
xor bl, bl
mov rcx, qword [rbp - 0x61]
test rcx, rcx
je 0x14013e6af
mov eax, r14d
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x14013e6af
mov rcx, qword [rbp - 0x61]
jmp 0x14013e6a9
mov bl, 1
jmp 0x14013e6af
lea rdx, [rbp + 0x17]
mov rcx, rbx
call fcn.140134f10
nop
mov rdx, rax
lea rcx, [rbp - 1]
call fcn.140149a90
nop
mov rcx, rax
call fcn.140094f50
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
setne bl
mov rcx, qword [rbp - 1]
test rcx, rcx
je 0x14013e690
mov eax, r14d
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x14013e690
mov rcx, qword [rbp - 1]
call fcn.14021b810
nop
mov rcx, qword [rbp + 0x17]
test rcx, rcx
je 0x14013e6af
mov eax, r14d
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x14013e6af
mov rcx, qword [rbp + 0x17]
call fcn.14021b810
nop
mov rax, qword [rsp + 0x20]
test rax, rax
je 0x14013e6ce
lock xadd dword [rax], r14d
cmp r14d, 1
jne 0x14013e6ce
mov rcx, qword [rsp + 0x20]
call fcn.14021b810
movzx eax, bl
lea r11, [rsp + 0xf0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret