Function at 0x140191270
Capabilities:
Delete directory

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
mov rbp, rsp
sub rsp, 0x60
movzx edi, dl
mov rbx, rcx
lea rdx, [rbp - 0x40]
call fcn.1401897e0
nop
mov rax, qword [rbp - 0x40]
cmp dword [rax + 4], 0
jne 0x1401912f0
mov qword [rbp - 0x28], 2
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x20], xmm0
lea rax, [0x140265bd0]
mov qword [rbp - 0x10], rax
lea rdx, str.Empty_filename_passed_to_function
lea rcx, [rbp - 0x28]
call fcn.1400afb60
call fcn.14023ffb8
mov dword [rax], 0x16
mov rax, qword [rbp - 0x40]
mov ecx, dword [rax]
test ecx, ecx
je 0x140191647
cmp ecx, 0xffffffff
je 0x14019165b
mov ebx, 0xffffffff
jmp 0x14019163a
xor esi, esi
mov r9d, 1
xor r8d, r8d
movzx edx, si
lea rcx, [rbp - 0x40]
call fcn.1400ba9a0
cmp eax, 0xffffffff
je 0x140191363
mov qword [rbp - 0x28], 2
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x20], xmm0
lea rax, [0x140265bd0]
mov qword [rbp - 0x10], rax
lea rdx, str.Broken_filename_passed_to_function
lea rcx, [rbp - 0x28]
call fcn.1400afb60
call fcn.14023ffb8
mov dword [rax], 0x16
mov rax, qword [rbp - 0x40]
mov ecx, dword [rax]
test ecx, ecx
je 0x140191647
cmp ecx, 0xffffffff
je 0x14019165b
mov ebx, 0xffffffff
jmp 0x14019163a
test dil, dil
je 0x14019166d
lea rdx, [rbp - 0x40]
lea rcx, [rbp - 0x38]
call fcn.14012b3b0
nop
mov rdx, rax
lea rcx, [rbp + 0x38]
call fcn.14012ccc0
mov rdx, qword [rbp - 0x40]
mov rcx, qword [rax]
mov qword [rbp - 0x40], rcx
mov qword [rax], rdx
mov rax, qword [rbp + 0x38]
mov ecx, dword [rax]
mov ebx, 0xffffffff
test ecx, ecx
je 0x1401913b6
cmp ecx, ebx
je 0x1401913cb
mov rax, qword [rbp + 0x38]
mov ecx, ebx
lock xadd dword [rax], ecx
cmp ecx, 1
jne 0x1401913cb
mov edx, 2
mov r8d, 8
mov rcx, qword [rbp + 0x38]
call fcn.1400affb0
nop
mov rax, qword [rbp - 0x38]
mov ecx, dword [rax]
test ecx, ecx
je 0x1401913e9
cmp ecx, 0xffffffff
je 0x1401913fd
mov rax, qword [rbp - 0x38]
mov ecx, ebx
lock xadd dword [rax], ecx
cmp ecx, 1
jne 0x1401913fd
mov edx, 2
mov r8d, 8
mov rcx, qword [rbp - 0x38]
call fcn.1400affb0
mov rax, qword [rbp - 0x40]
mov edi, dword [rax + 4]
test edi, edi
jle 0x14019155d
nop dword [rax]
mov r8d, edi
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x40]
call fcn.1400bb2a0
cmp dword [rbp - 0x1c], 2
jne 0x140191480
mov r8, qword [rbp - 0x28]
mov rdx, qword [r8]
movsxd r9, dword [rbp - 0x20]
mov rax, qword [rdx + 0x10]
lea rcx, [rax + r9*2]
movzx ecx, word [rcx + rdx]
lea eax, [rcx - 0x41]
cmp eax, 0x39
ja 0x14019144d
lea eax, [rcx - 0x5b]
cmp eax, 5
ja 0x140191463
cmp ecx, 0x7f
jbe 0x140191480
call fcn.1400baf10
test al, al
je 0x140191480
mov r9d, dword [rbp - 0x20]
mov r8, qword [rbp - 0x28]
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 0x140191559
lea rdx, [rbp - 0x38]
lea rcx, [rbp - 0x28]
call fcn.1400bf2b0
nop
xor edx, edx
lea rcx, [rbp - 0x38]
call fcn.1401901b0
test al, al
je 0x1401915f8
lea rdx, [rbp - 0x38]
lea rcx, [rbp - 0x30]
call fcn.140195280
nop
mov rcx, rax
call fcn.1400c02d0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov edi, eax
mov rcx, qword [rbp - 0x30]
mov edx, dword [rcx]
test edx, edx
je 0x1401914e0
cmp edx, 0xffffffff
je 0x1401914f4
mov rcx, qword [rbp - 0x30]
mov edx, ebx
lock xadd dword [rcx], edx
cmp edx, 1
jne 0x1401914f4
mov edx, 2
mov r8d, 8
mov rcx, qword [rbp - 0x30]
call fcn.1400affb0
test edi, edi
je 0x14019159b
lea rcx, [rbp + 0x30]
call fcn.14012ca50
lea r8d, [rsi - 1]
mov r9d, 1
movzx edx, word [rax]
lea rcx, [rbp - 0x40]
call fcn.1400bb000
mov edi, eax
mov rax, qword [rbp - 0x38]
mov ecx, dword [rax]
test ecx, ecx
je 0x14019153b
cmp ecx, 0xffffffff
je 0x14019154f
mov rax, qword [rbp - 0x38]
mov ecx, ebx
lock xadd dword [rax], ecx
cmp ecx, 1
jne 0x14019154f
mov edx, 2
mov r8d, 8
mov rcx, qword [rbp - 0x38]
call fcn.1400affb0
mov esi, edi
test edi, edi
jg 0x140191410
mov rax, qword [rbp - 0x40]
mov ecx, dword [rax]
test ecx, ecx
je 0x140191575
cmp ecx, 0xffffffff
je 0x140191589
mov rax, qword [rbp - 0x40]
lock xadd dword [rax], ebx
cmp ebx, 1
jne 0x140191589
mov edx, 2
mov r8d, 8
mov rcx, qword [rbp - 0x40]
call fcn.1400affb0
mov al, 1
mov rbx, qword [rsp + 0x80]
add rsp, 0x60
pop rdi
pop rsi
pop rbp
ret
test esi, esi
setne dil
mov rax, qword [rbp - 0x38]
mov ecx, dword [rax]
test ecx, ecx
je 0x1401915bf
cmp ecx, 0xffffffff
je 0x1401915d4
mov rax, qword [rbp - 0x38]
mov ecx, ebx
lock xadd dword [rax], ecx
cmp ecx, 1
jne 0x1401915d4
mov edx, 2
mov r8d, 8
mov rcx, qword [rbp - 0x38]
call fcn.1400affb0
nop
mov rax, qword [rbp - 0x40]
mov ecx, dword [rax]
test ecx, ecx
je 0x1401916d8
cmp ecx, 0xffffffff
je 0x1401916ec
mov rcx, qword [rbp - 0x40]
lock xadd dword [rcx], ebx
jmp 0x1401916d3
mov rax, qword [rbp - 0x38]
mov ecx, dword [rax]
test ecx, ecx
je 0x140191616
cmp ecx, 0xffffffff
je 0x14019162b
mov rax, qword [rbp - 0x38]
mov ecx, ebx
lock xadd dword [rax], ecx
cmp ecx, 1
jne 0x14019162b
mov edx, 2
mov r8d, 8
mov rcx, qword [rbp - 0x38]
call fcn.1400affb0
nop
mov rax, qword [rbp - 0x40]
mov ecx, dword [rax]
test ecx, ecx
je 0x140191647
cmp ecx, 0xffffffff
je 0x14019165b
mov rax, qword [rbp - 0x40]
lock xadd dword [rax], ebx
cmp ebx, 1
jne 0x14019165b
mov r8d, 8
mov edx, 2
mov rcx, qword [rbp - 0x40]
call fcn.1400affb0
xor al, al
mov rbx, qword [rsp + 0x80]
add rsp, 0x60
pop rdi
pop rsi
pop rbp
ret
lea rdx, [rbp + 0x38]
mov rcx, rbx
call fcn.1401897e0
nop
mov rcx, rax
call fcn.140191d80
movzx edi, al
mov rcx, qword [rbp + 0x38]
mov edx, dword [rcx]
mov ebx, 0xffffffff
test edx, edx
je 0x1401916a7
cmp edx, ebx
je 0x1401916bc
mov rcx, qword [rbp + 0x38]
mov edx, ebx
lock xadd dword [rcx], edx
cmp edx, 1
jne 0x1401916bc
mov edx, 2
mov r8d, 8
mov rcx, qword [rbp + 0x38]
call fcn.1400affb0
nop
mov rax, qword [rbp - 0x40]
mov ecx, dword [rax]
test ecx, ecx
je 0x1401916d8
cmp ecx, 0xffffffff
je 0x1401916ec
mov rax, qword [rbp - 0x40]
lock xadd dword [rax], ebx
cmp ebx, 1
jne 0x1401916ec
mov r8d, 8
mov edx, 2
mov rcx, qword [rbp - 0x40]
call fcn.1400affb0
movzx eax, dil
mov rbx, qword [rsp + 0x80]
add rsp, 0x60
pop rdi
pop rsi
pop rbp
ret