Function at 0x1801dc010
Capabilities:
Delete directory

Disassembly:
mov rax, rsp
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rax - 0x278]
sub rsp, 0x350
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov rax, qword [0x1804610b0]
xor rax, rsp
mov qword [rbp + 0x240], rax
xor r12d, r12d
mov dword [rsp + 0x20], r12d
mov r15d, r12d
mov rdx, rcx
lea rcx, [rsp + 0x58]
call fcn.180037a20
nop
lea edx, [r12 + 0x10]
lea rcx, [rsp + 0x58]
call fcn.1801da860
mov qword [rbp - 0x80], r12
mov qword [rbp - 0x78], r12
mov qword [rbp - 0x70], r12
mov qword [rbp - 0x68], r12
mov qword [rbp - 0x60], r12
mov qword [rbp - 0x48], r12
mov qword [rbp - 0x40], r12
mov qword [rbp - 0x48], r12
mov qword [rbp - 0x40], 7
mov word [rbp - 0x58], r12w
lea edx, [r12 + 8]
lea rcx, [rsp + 0x78]
call fcn.18003df50
lea ecx, [r12 + 8]
call fcn.1802994e4
mov qword [rsp + 0x30], rax
mov qword [rax], 0xffffffffffffffff
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x48], r12
mov qword [rsp + 0x50], r12
mov qword [rsp + 0x48], r12
mov qword [rsp + 0x50], 7
mov word [rsp + 0x38], r12w
mov edi, 1
mov dword [rsp + 0x20], edi
mov rdx, qword [rsp + 0x68]
add rdx, 3
lea rcx, [rsp + 0x38]
call fcn.18006c6b0
lea rdx, [rsp + 0x58]
cmp qword [rsp + 0x70], 8
cmovae rdx, qword [rsp + 0x58]
mov r8, qword [rsp + 0x68]
lea rcx, [rsp + 0x38]
call fcn.180033c20
lea r8d, [r12 + 3]
lea rdx, [0x180392790]
lea rcx, [rsp + 0x38]
call fcn.180033c20
lea r8, [rbp - 0x80]
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x78]
call fcn.1801ef040
movzx ebx, al
and edi, 0xfffffffe
mov dword [rsp + 0x20], edi
lea rcx, [rsp + 0x38]
call fcn.1800338a0
test bl, bl
je 0x1801dc48f
movzx ecx, byte [rbp - 0x60]
shr cl, 4
mov rsi, qword [rbp - 0x40]
mov rbx, qword [rbp - 0x48]
mov r14, qword [rbp - 0x58]
and cl, 1
je 0x1801dc1bf
test rbx, rbx
je 0x1801dc1bf
lea rax, [rbp - 0x58]
cmp rsi, 8
cmovae rax, r14
cmp word [rax], 0x2e
jne 0x1801dc1bf
cmp rbx, 1
je 0x1801dc2e0
lea rax, [rbp - 0x58]
cmp rsi, 8
cmovae rax, r14
cmp word [rax + 2], 0x2e
jne 0x1801dc1bf
cmp rbx, 2
je 0x1801dc2e0
test cl, cl
je 0x1801dc250
mov qword [rsp + 0x48], r12
mov qword [rsp + 0x50], r12
mov qword [rsp + 0x48], r12
mov qword [rsp + 0x50], 7
mov word [rsp + 0x38], r12w
or edi, 2
mov dword [rsp + 0x20], edi
mov rdx, qword [rsp + 0x68]
add rdx, rbx
lea rcx, [rsp + 0x38]
call fcn.18006c6b0
lea rdx, [rsp + 0x58]
cmp qword [rsp + 0x70], 8
cmovae rdx, qword [rsp + 0x58]
mov r8, qword [rsp + 0x68]
lea rcx, [rsp + 0x38]
call fcn.180033c20
lea rdx, [rbp - 0x58]
cmp rsi, 8
cmovae rdx, r14
mov r8, rbx
lea rcx, [rsp + 0x38]
call fcn.180033c20
lea rcx, [rsp + 0x38]
call fcn.1801dc010
mov r15, rax
and edi, 0xfffffffd
mov dword [rsp + 0x20], edi
jmp 0x1801dc2d5
mov qword [rsp + 0x48], r12
mov qword [rsp + 0x50], r12
mov qword [rsp + 0x48], r12
mov qword [rsp + 0x50], 7
mov word [rsp + 0x38], r12w
or edi, 4
mov dword [rsp + 0x20], edi
mov rdx, qword [rsp + 0x68]
add rdx, rbx
lea rcx, [rsp + 0x38]
call fcn.18006c6b0
lea rdx, [rsp + 0x58]
cmp qword [rsp + 0x70], 8
cmovae rdx, qword [rsp + 0x58]
mov r8, qword [rsp + 0x68]
lea rcx, [rsp + 0x38]
call fcn.180033c20
lea rdx, [rbp - 0x58]
cmp rsi, 8
cmovae rdx, r14
mov r8, rbx
lea rcx, [rsp + 0x38]
call fcn.180033c20
lea rcx, [rsp + 0x38]
call fcn.1801f0610
movzx r15d, al
and edi, 0xfffffffb
mov dword [rsp + 0x20], edi
lea rcx, [rsp + 0x38]
call fcn.1800338a0
nop
mov rsi, qword [rsp + 0x78]
mov rbx, qword [rsi]
cmp rbx, 0xffffffffffffffff
je 0x1801dc494
xor edx, edx
mov r8d, 0x250
lea rcx, [rbp - 0x10]
call fcn.18029c350
lea rdx, [rbp - 0x10]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x1801dc48f
lea r8, [rbp - 0x80]
lea rdx, [rbp - 0x10]
call fcn.1801eee90
movzx ecx, byte [rbp - 0x60]
shr cl, 4
mov rsi, qword [rbp - 0x40]
mov rbx, qword [rbp - 0x48]
mov r14, qword [rbp - 0x58]
and cl, 1
je 0x1801dc377
test rbx, rbx
je 0x1801dc377
lea rax, [rbp - 0x58]
cmp rsi, 8
cmovae rax, r14
cmp word [rax], 0x2e
jne 0x1801dc377
cmp rbx, 1
je 0x1801dc2e0
lea rax, [rbp - 0x58]
cmp rsi, 8
cmovae rax, r14
cmp word [rax + 2], 0x2e
jne 0x1801dc377
cmp rbx, 2
je 0x1801dc2e0
test cl, cl
je 0x1801dc408
mov qword [rsp + 0x48], r12
mov qword [rsp + 0x50], r12
mov qword [rsp + 0x48], r12
mov qword [rsp + 0x50], 7
mov word [rsp + 0x38], r12w
or edi, 8
mov dword [rsp + 0x20], edi
mov rdx, qword [rsp + 0x68]
add rdx, rbx
lea rcx, [rsp + 0x38]
call fcn.18006c6b0
lea rdx, [rsp + 0x58]
cmp qword [rsp + 0x70], 8
cmovae rdx, qword [rsp + 0x58]
mov r8, qword [rsp + 0x68]
lea rcx, [rsp + 0x38]
call fcn.180033c20
lea rdx, [rbp - 0x58]
cmp rsi, 8
cmovae rdx, r14
mov r8, rbx
lea rcx, [rsp + 0x38]
call fcn.180033c20
lea rcx, [rsp + 0x38]
call fcn.1801dc010
add r15, rax
and edi, 0xfffffff7
mov dword [rsp + 0x20], edi
jmp 0x1801dc2d5
mov qword [rbp - 0x20], r12
mov qword [rbp - 0x18], r12
mov qword [rbp - 0x20], r12
mov qword [rbp - 0x18], 7
mov word [rbp - 0x30], r12w
or edi, 0x10
mov dword [rsp + 0x20], edi
mov rdx, qword [rsp + 0x68]
add rdx, rbx
lea rcx, [rbp - 0x30]
call fcn.18006c6b0
lea rdx, [rsp + 0x58]
cmp qword [rsp + 0x70], 8
cmovae rdx, qword [rsp + 0x58]
mov r8, qword [rsp + 0x68]
lea rcx, [rbp - 0x30]
call fcn.180033c20
lea rdx, [rbp - 0x58]
cmp rsi, 8
cmovae rdx, r14
mov r8, rbx
lea rcx, [rbp - 0x30]
call fcn.180033c20
lea rcx, [rbp - 0x30]
call fcn.1801f0610
movzx eax, al
add r15, rax
and edi, 0xffffffef
mov dword [rsp + 0x20], edi
lea rcx, [rbp - 0x30]
jmp 0x1801dc2da
mov rsi, qword [rsp + 0x78]
mov rcx, qword [rsi]
cmp rcx, 0xffffffffffffffff
je 0x1801dc4ae
call qword [sym.imp.KERNEL32.dll_FindClose]
test eax, eax
je 0x1801dc4ae
mov qword [rsi], 0xffffffffffffffff
lea rcx, [rsp + 0x58]
cmp qword [rsp + 0x70], 8
cmovae rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x1801dc527
mov qword [rsp + 0x48], r12
mov qword [rsp + 0x50], r12
mov qword [rsp + 0x48], r12
mov qword [rsp + 0x50], 7
mov word [rsp + 0x38], r12w
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x58]
call fcn.1801f0cb0
test al, al
je 0x1801dc5a2
lea rcx, [rsp + 0x38]
cmp qword [rsp + 0x50], 8
cmovae rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
je 0x1801dc5a2
lea rcx, [rsp + 0x38]
call fcn.1800338a0
inc r15
mov rbx, qword [rsp + 0x78]
test rbx, rbx
je 0x1801dc55b
mov rcx, qword [rbx]
cmp rcx, 0xffffffffffffffff
je 0x1801dc54e
call qword [sym.imp.KERNEL32.dll_FindClose]
test eax, eax
je 0x1801dc54e
mov qword [rbx], 0xffffffffffffffff
mov edx, 8
mov rcx, rbx
call fcn.180299904
mov qword [rsp + 0x78], r12
lea rcx, [rbp - 0x58]
call fcn.1800338a0
nop
lea rcx, [rsp + 0x58]
call fcn.1800338a0
mov rax, r15
mov rcx, qword [rbp + 0x240]
xor rcx, rsp
call fcn.1802994c0
lea r11, [rsp + 0x350]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
lea rcx, [rsp + 0x38]
call fcn.1800338a0
lea rcx, [rsp + 0x58]
call fcn.1801f0260
mov ebx, eax
cmp eax, 0xffffffff
je 0x1801dc52a
xor edx, edx
lea rcx, [rsp + 0x58]
call fcn.1801f0190
lea rcx, [rsp + 0x58]
cmp qword [rsp + 0x70], 8
cmovae rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x1801dc527
mov qword [rsp + 0x48], r12
mov qword [rsp + 0x50], r12
mov qword [rsp + 0x48], r12
mov qword [rsp + 0x50], 7
mov word [rsp + 0x38], r12w
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x58]
call fcn.1801f0cb0
test al, al
je 0x1801dc63d
lea rcx, [rsp + 0x38]
cmp qword [rsp + 0x50], 8
cmovae rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
je 0x1801dc63d
jmp 0x1801dc51d
lea rcx, [rsp + 0x38]
call fcn.1800338a0
mov edx, ebx
lea rcx, [rsp + 0x58]
call fcn.1801f0190
jmp 0x1801dc52a