Function at 0x140144f20
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.14013b6f0
nop
lea r14d, [r15 - 1]
cmp qword [rsp + 0x30], r15
jne 0x140144f66
lea rdx, str.Empty_filename_passed_to_function
jmp 0x140144f8a
mov r9d, 1
xor r8d, r8d
movzx edx, r15w
lea rcx, [rsp + 0x20]
call fcn.14008ddd0
cmp rax, 0xffffffffffffffff
je 0x140144fc2
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.140110040
call fcn.1402334b8
mov dword [rax], 0x16
xor bl, bl
jmp 0x1401451ff
test dil, dil
je 0x140145191
lea rdx, [rsp + 0x20]
lea rcx, [rbp - 0x31]
call fcn.1400a7330
nop
mov rdx, rax
lea rcx, [rbp - 0x49]
call fcn.1400aa730
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 0x140145039
mov eax, r14d
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x140145039
mov rcx, qword [rbp - 0x49]
call fcn.1402275a0
nop
mov rcx, qword [rbp - 0x31]
test rcx, rcx
je 0x140145057
mov eax, r14d
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x140145057
mov rcx, qword [rbp - 0x31]
call fcn.1402275a0
mov rbx, qword [rsp + 0x30]
mov edi, ebx
test ebx, ebx
jle 0x14014518d
mov r12d, 0x5c
nop dword [rax]
mov rsi, qword [rsp + 0x28]
movsxd rax, edi
cmp rax, rbx
cmovb rbx, rax
cmp rbx, 2
jne 0x1401450b1
movzx ecx, word [rsi]
lea eax, [rcx - 0x41]
cmp eax, 0x39
ja 0x140145098
lea eax, [rcx - 0x5b]
cmp eax, 5
ja 0x1401450a6
cmp ecx, 0x7f
jbe 0x1401450b1
call fcn.14008e190
test al, al
je 0x1401450b1
cmp word [rsi + 2], 0x3a
je 0x14014518d
mov r8, rbx
mov rdx, rsi
lea rcx, [rbp - 0x61]
call fcn.1400868e0
nop
xor edx, edx
lea rcx, [rbp - 0x61]
call fcn.140143780
test al, al
je 0x14014516c
lea rdx, [rbp - 0x61]
lea rcx, [rbp - 0x19]
call fcn.14014e870
nop
mov rcx, rax
call fcn.140094620
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov ebx, eax
mov rdx, qword [rbp - 0x19]
test rdx, rdx
je 0x140145113
mov ecx, r14d
lock xadd dword [rdx], ecx
cmp ecx, 1
jne 0x140145113
mov rcx, qword [rbp - 0x19]
call fcn.1402275a0
test ebx, ebx
je 0x140145164
lea eax, [r15 - 1]
movsxd r8, eax
mov r9d, 1
movzx edx, r12w
lea rcx, [rsp + 0x20]
call fcn.14008e510
mov rdi, rax
mov rax, qword [rbp - 0x61]
test rax, rax
je 0x140145153
mov ecx, r14d
lock xadd dword [rax], ecx
cmp ecx, 1
jne 0x140145153
mov rcx, qword [rbp - 0x61]
call fcn.1402275a0
mov r15d, edi
test edi, edi
jle 0x14014518d
mov rbx, qword [rsp + 0x30]
jmp 0x140145070
test r15d, r15d
setne bl
jmp 0x14014516e
xor bl, bl
mov rcx, qword [rbp - 0x61]
test rcx, rcx
je 0x1401451ff
mov eax, r14d
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x1401451ff
mov rcx, qword [rbp - 0x61]
jmp 0x1401451f9
mov bl, 1
jmp 0x1401451ff
lea rdx, [rbp + 0x17]
mov rcx, rbx
call fcn.14013b6f0
nop
mov rdx, rax
lea rcx, [rbp - 1]
call fcn.14014e870
nop
mov rcx, rax
call fcn.140094620
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
setne bl
mov rcx, qword [rbp - 1]
test rcx, rcx
je 0x1401451e0
mov eax, r14d
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x1401451e0
mov rcx, qword [rbp - 1]
call fcn.1402275a0
nop
mov rcx, qword [rbp + 0x17]
test rcx, rcx
je 0x1401451ff
mov eax, r14d
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x1401451ff
mov rcx, qword [rbp + 0x17]
call fcn.1402275a0
nop
mov rax, qword [rsp + 0x20]
test rax, rax
je 0x14014521e
lock xadd dword [rax], r14d
cmp r14d, 1
jne 0x14014521e
mov rcx, qword [rsp + 0x20]
call fcn.1402275a0
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