Function at 0x14013e3a0
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.140134ee0
nop
lea r14d, [r15 - 1]
cmp qword [rsp + 0x30], r15
jne 0x14013e3e6
lea rdx, str.Empty_filename_passed_to_function
jmp 0x14013e40a
mov r9d, 1
xor r8d, r8d
movzx edx, r15w
lea rcx, [rsp + 0x20]
call fcn.14008e8f0
cmp rax, 0xffffffffffffffff
je 0x14013e442
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.14010f290
call fcn.1402273d8
mov dword [rax], 0x16
xor bl, bl
jmp 0x14013e67f
test dil, dil
je 0x14013e611
lea rdx, [rsp + 0x20]
lea rcx, [rbp - 0x31]
call fcn.1400a7630
nop
mov rdx, rax
lea rcx, [rbp - 0x49]
call fcn.1400ab250
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 0x14013e4b9
mov eax, r14d
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x14013e4b9
mov rcx, qword [rbp - 0x49]
call fcn.14021b7f0
nop
mov rcx, qword [rbp - 0x31]
test rcx, rcx
je 0x14013e4d7
mov eax, r14d
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x14013e4d7
mov rcx, qword [rbp - 0x31]
call fcn.14021b7f0
mov rbx, qword [rsp + 0x30]
mov edi, ebx
test ebx, ebx
jle 0x14013e60d
mov r12d, 0x5c
nop dword [rax]
mov rsi, qword [rsp + 0x28]
movsxd rax, edi
cmp rax, rbx
cmovb rbx, rax
cmp rbx, 2
jne 0x14013e531
movzx ecx, word [rsi]
lea eax, [rcx - 0x41]
cmp eax, 0x39
ja 0x14013e518
lea eax, [rcx - 0x5b]
cmp eax, 5
ja 0x14013e526
cmp ecx, 0x7f
jbe 0x14013e531
call fcn.14008ecb0
test al, al
je 0x14013e531
cmp word [rsi + 2], 0x3a
je 0x14013e60d
mov r8, rbx
mov rdx, rsi
lea rcx, [rbp - 0x61]
call fcn.140086f40
nop
xor edx, edx
lea rcx, [rbp - 0x61]
call fcn.14013cb60
test al, al
je 0x14013e5ec
lea rdx, [rbp - 0x61]
lea rcx, [rbp - 0x19]
call fcn.140149a60
nop
mov rcx, rax
call fcn.140094f20
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov ebx, eax
mov rdx, qword [rbp - 0x19]
test rdx, rdx
je 0x14013e593
mov ecx, r14d
lock xadd dword [rdx], ecx
cmp ecx, 1
jne 0x14013e593
mov rcx, qword [rbp - 0x19]
call fcn.14021b7f0
test ebx, ebx
je 0x14013e5e4
lea eax, [r15 - 1]
movsxd r8, eax
mov r9d, 1
movzx edx, r12w
lea rcx, [rsp + 0x20]
call fcn.14008f030
mov rdi, rax
mov rax, qword [rbp - 0x61]
test rax, rax
je 0x14013e5d3
mov ecx, r14d
lock xadd dword [rax], ecx
cmp ecx, 1
jne 0x14013e5d3
mov rcx, qword [rbp - 0x61]
call fcn.14021b7f0
mov r15d, edi
test edi, edi
jle 0x14013e60d
mov rbx, qword [rsp + 0x30]
jmp 0x14013e4f0
test r15d, r15d
setne bl
jmp 0x14013e5ee
xor bl, bl
mov rcx, qword [rbp - 0x61]
test rcx, rcx
je 0x14013e67f
mov eax, r14d
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x14013e67f
mov rcx, qword [rbp - 0x61]
jmp 0x14013e679
mov bl, 1
jmp 0x14013e67f
lea rdx, [rbp + 0x17]
mov rcx, rbx
call fcn.140134ee0
nop
mov rdx, rax
lea rcx, [rbp - 1]
call fcn.140149a60
nop
mov rcx, rax
call fcn.140094f20
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
setne bl
mov rcx, qword [rbp - 1]
test rcx, rcx
je 0x14013e660
mov eax, r14d
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x14013e660
mov rcx, qword [rbp - 1]
call fcn.14021b7f0
nop
mov rcx, qword [rbp + 0x17]
test rcx, rcx
je 0x14013e67f
mov eax, r14d
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x14013e67f
mov rcx, qword [rbp + 0x17]
call fcn.14021b7f0
nop
mov rax, qword [rsp + 0x20]
test rax, rax
je 0x14013e69e
lock xadd dword [rax], r14d
cmp r14d, 1
jne 0x14013e69e
mov rcx, qword [rsp + 0x20]
call fcn.14021b7f0
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