Function at 0x180006fcc
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
mov qword [rsp + 0x10], rbx
mov dword [rsp + 0x18], r8d
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
sub rsp, 0x40
mov edi, 0x104
mov ebx, 8
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_lstrlenA]
mov rcx, qword [0x180023a50]
mov esi, eax
mov r8, rdi
xor edx, edx
mov dword [rsp + 0x78], esi
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rdi, rax
test rax, rax
je 0x1800071fd
mov rcx, qword [0x180023a50]
lea r8, [rsi + 5]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbp, rax
mov qword [rsp + 0x38], rax
test rax, rax
je 0x1800071e6
mov rcx, qword [0x180023a50]
xor edx, edx
mov r8d, 0x140
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rsi, rax
test rax, rax
je 0x1800071d4
mov rbx, qword [rsp + 0x60]
mov rcx, rdi
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_lstrcpyA]
lea rdx, [0x1800252d9]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrcatA]
mov rdx, rbx
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_lstrcpyA]
lea rdx, [0x1800252cb]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_lstrcatA]
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov qword [rsp + 0x30], rax
cmp rax, 0xffffffffffffffff
jne 0x1800070bc
lea ebx, [rax + 4]
jmp 0x1800071c2
movsxd rbp, dword [rsp + 0x78]
xor ebx, ebx
mov qword [rsp + 0x28], rbp
lea rax, [rsi + 0x2c]
cmp byte [rax], 0x2e
je 0x180007197
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_lstrlenA]
lea ebp, [rax + rbp + 2]
cmp dword [rsp + 0x20], ebp
jae 0x18000713c
mov rcx, qword [0x180023a50]
mov r8, rdi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, qword [0x180023a50]
mov r8d, ebp
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rdi, rax
test rax, rax
je 0x1800071ae
mov rdx, qword [rsp + 0x60]
mov rcx, rax
mov dword [rsp + 0x20], ebp
call qword [sym.imp.KERNEL32.dll_lstrcpyA]
lea rdx, [0x1800252d9]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrcatA]
jmp 0x180007146
mov rax, qword [rsp + 0x28]
mov byte [rax + rdi + 1], 0
lea rdx, [rsi + 0x2c]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrcatA]
test byte [rsi], 0x10
mov rcx, rdi
je 0x180007183
mov ebp, dword [rsp + 0x70]
mov edx, 1
mov r8d, ebp
call fcn.180006fcc
mov ebx, eax
test eax, eax
jne 0x1800071bd
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
jne 0x180007193
test ebp, ebp
jmp 0x180007191
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x180007193
cmp dword [rsp + 0x70], eax
je 0x1800071b5
mov ebp, dword [rsp + 0x78]
mov rcx, qword [rsp + 0x30]
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
je 0x1800071bd
jmp 0x1800070c8
mov ebx, 8
jmp 0x1800071bd
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rbp, qword [rsp + 0x38]
mov rcx, qword [0x180023a50]
mov r8, rsi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, qword [0x180023a50]
mov r8, rbp
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
test rdi, rdi
je 0x1800071fd
mov rcx, qword [0x180023a50]
mov r8, rdi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, ebx
mov rbx, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
pop rsi
pop rbp
ret