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

Disassembly:
mov dword [rsp + 0x18], r8d
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x190]
sub rsp, 0x290
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov qword [rsp + 0x2d8], rbx
mov r13d, r9d
mov esi, r8d
mov r15, rdx
mov r14, rcx
mov rcx, qword [rcx + 0x12d8]
mov rax, qword [rcx]
lea rdx, str.DeleteFilesAndFolders
call qword [rax + 0x48]
xor edi, edi
test r15, r15
jne 0x140082309
mov ebx, edi
mov qword [rbp + 0x1d0], rbx
lea rax, vtable.CSABString.0
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x30], edi
lea rdx, [rbp + 0x1d0]
lea rcx, [rsp + 0x20]
call fcn.140005530
mov dword [rsp + 0x34], 1
mov rcx, qword [r14 + 0x12d8]
mov rax, qword [rcx]
mov rdi, qword [rsp + 0x28]
mov rdx, rdi
call qword [rax + 0x48]
nop
test rdi, rdi
je 0x140082216
mov rcx, rdi
call fcn.140247060
nop
mov rcx, rbx
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov rax, 0xffffffffffffffff
nop word [rax + rax]
inc rax
cmp word [r15 + rax*2], 0
jne 0x140082230
cmp rax, 0xa
jb 0x140082401
cmp esi, r13d
jae 0x140082401
mov ecx, 0x820
call fcn.140247068
mov rdi, rax
mov r8, r15
mov edx, 0x410
mov rcx, rax
call fcn.140251ec0
lea r8, str..
mov edx, 0x410
mov rcx, rdi
call fcn.140251e40
lea rdx, [rsp + 0x40]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov r12, rax
cmp rax, 0xffffffffffffffff
je 0x1400823f9
nop word [rax + rax]
cmp word [rsp + 0x6c], 0x2e
je 0x1400823d0
mov r8, r15
mov edx, 0x410
mov rcx, rdi
call fcn.140251ec0
lea r8, [0x140287d80]
mov edx, 0x410
mov rcx, rdi
call fcn.140251e40
lea r8, [rsp + 0x6c]
mov edx, 0x410
mov rcx, rdi
call fcn.140251e40
test byte [rsp + 0x40], 0x10
je 0x14008232a
lea r8d, [rsi + 1]
mov r9d, r13d
mov rdx, rdi
mov rcx, r14
call fcn.140082160
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x1400823d0
mov rcx, r15
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov rbx, rax
mov qword [rbp + 0x1d0], rax
test rax, rax
je 0x140082427
jmp 0x1400821c4
test rdi, rdi
jne 0x14008233a
xor ebx, ebx
mov qword [rbp + 0x1d0], rbx
jmp 0x140082356
mov rcx, rdi
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov rbx, rax
mov qword [rbp + 0x1d0], rax
test rax, rax
je 0x14008241c
lea rax, vtable.CSABString.0
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x30], 0
lea rdx, [rbp + 0x1d0]
lea rcx, [rsp + 0x20]
call fcn.140005530
mov dword [rsp + 0x34], 1
mov rcx, qword [r14 + 0x12d8]
mov rax, qword [rcx]
xor r9d, r9d
mov rsi, qword [rsp + 0x28]
mov r8, rsi
mov edx, 0x400
call qword [rax + 0x20]
nop
test rsi, rsi
je 0x1400823b8
mov rcx, rsi
call fcn.140247060
nop
mov rcx, rbx
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov esi, dword [rbp + 0x1e0]
lea rdx, [rsp + 0x40]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x1400823f0
cmp dword [r14 + 0x127c], 0
je 0x1400822a0
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_FindClose]
mov rcx, rdi
call fcn.140247060
mov rbx, qword [rsp + 0x2d8]
add rsp, 0x290
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov ecx, 0x8007000e
call fcn.140004cd0
int3
mov ecx, 0x8007000e
call fcn.140004cd0
int3