Function at 0x1400593d0
Capabilities:
Delete directory

Disassembly:
push rbp
push rbx
push rdi
mov rbp, rsp
sub rsp, 0x40
movzx ebx, dl
mov rdi, rcx
lea rdx, [rbp + 0x30]
call fcn.140055010
test bl, bl
je 0x1400595d5
lea rdx, [rbp + 0x30]
lea rcx, [rbp - 0x20]
call fcn.140035d20
mov rdx, rax
lea rcx, [rbp + 0x38]
call fcn.140037510
mov rdx, qword [rbp + 0x30]
mov rcx, qword [rax]
mov qword [rbp + 0x30], rcx
mov qword [rax], rdx
mov rcx, qword [rbp + 0x38]
mov eax, dword [rcx]
test eax, eax
je 0x140059433
cmp eax, 0xffffffff
je 0x140059441
sub eax, 1
mov dword [rcx], eax
jne 0x140059441
mov rcx, qword [rbp + 0x38]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.140014460
mov rcx, qword [rbp - 0x20]
mov eax, dword [rcx]
test eax, eax
je 0x14005945b
cmp eax, 0xffffffff
je 0x140059469
sub eax, 1
mov dword [rcx], eax
jne 0x140059469
mov rcx, qword [rbp - 0x20]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.140014460
mov rax, qword [rbp + 0x30]
xor edi, edi
mov ebx, dword [rax + 4]
test ebx, ebx
jle 0x1400595b2
nop word [rax + rax]
mov r8d, ebx
lea rdx, [rbp - 0x18]
lea rcx, [rbp + 0x30]
call fcn.14001a720
cmp dword [rbp - 0xc], 2
jne 0x1400594f0
mov r8, qword [rbp - 0x18]
movsxd r9, dword [rbp - 0x10]
mov rdx, qword [r8]
mov rax, qword [rdx + 0x10]
lea rcx, [rax + r9*2]
movzx ecx, word [rcx + rdx]
lea eax, [rcx - 0x41]
cmp eax, 0x39
ja 0x1400594bd
lea eax, [rcx - 0x5b]
cmp eax, 5
ja 0x1400594d3
cmp ecx, 0x7f
jbe 0x1400594f0
call fcn.14001a440
test al, al
je 0x1400594f0
mov r9d, dword [rbp - 0x10]
mov r8, qword [rbp - 0x18]
mov rdx, qword [r8]
lea eax, [r9 + 1]
movsxd rcx, eax
mov rax, qword [rdx + 0x10]
lea rcx, [rax + rcx*2]
cmp word [rcx + rdx], 0x3a
je 0x1400595b2
lea rdx, [rbp + 0x38]
lea rcx, [rbp - 0x18]
call fcn.14001e580
xor edx, edx
lea rcx, [rbp + 0x38]
call fcn.140058d50
test al, al
je 0x1400595bd
lea rdx, [rbp + 0x38]
lea rcx, [rbp - 0x20]
call fcn.14005b9a0
mov rcx, rax
call fcn.14001f0a0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov rcx, qword [rbp - 0x20]
test eax, eax
setne bl
mov eax, dword [rcx]
test eax, eax
je 0x14005954d
cmp eax, 0xffffffff
je 0x14005955b
sub eax, 1
mov dword [rcx], eax
jne 0x14005955b
mov rcx, qword [rbp - 0x20]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.140014460
test bl, bl
je 0x1400595b6
lea rcx, [rbp + 0x28]
call fcn.140036c90
lea r8d, [rdi - 1]
mov r9d, 1
lea rcx, [rbp + 0x30]
movzx edx, word [rax]
call fcn.14001a500
mov rcx, qword [rbp + 0x38]
mov ebx, eax
mov eax, dword [rcx]
test eax, eax
je 0x14005959a
cmp eax, 0xffffffff
je 0x1400595a8
sub eax, 1
mov dword [rcx], eax
jne 0x1400595a8
mov rcx, qword [rbp + 0x38]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.140014460
mov edi, ebx
test ebx, ebx
jg 0x140059480
mov bl, 1
jmp 0x140059615
test edi, edi
setne bl
jmp 0x1400595bf
xor bl, bl
mov rcx, qword [rbp + 0x38]
mov eax, dword [rcx]
test eax, eax
je 0x140059606
cmp eax, 0xffffffff
je 0x140059615
sub eax, 1
mov dword [rcx], eax
jmp 0x140059600
lea rdx, [rbp + 0x38]
mov rcx, rdi
call fcn.140055010
mov rcx, rax
call fcn.1400597c0
mov rcx, qword [rbp + 0x38]
movzx ebx, al
mov edx, dword [rcx]
test edx, edx
je 0x140059606
cmp edx, 0xffffffff
je 0x140059615
sub edx, 1
mov dword [rcx], edx
jne 0x140059615
mov rcx, qword [rbp + 0x38]
mov r8d, 8
lea edx, [r8 - 6]
call fcn.140014460
mov rax, qword [rbp + 0x30]
mov ecx, dword [rax]
test ecx, ecx
je 0x14005962b
cmp ecx, 0xffffffff
je 0x14005963d
sub ecx, 1
mov dword [rax], ecx
jne 0x14005963d
mov rcx, qword [rbp + 0x30]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.140014460
movzx eax, bl
add rsp, 0x40
pop rdi
pop rbx
pop rbp
ret