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

Disassembly:
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x110]
sub rsp, 0x210
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rsp + 0x248], rbx
mov rax, qword [0x1401a3008]
xor rax, rsp
mov qword [rbp + 0x100], rax
mov esi, r8d
mov rbx, rdx
mov rdi, rcx
mov qword [rsp + 0x28], rcx
xor eax, eax
mov qword [rbp - 0x78], rax
mov qword [rbp - 0x70], rax
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x78]
call fcn.140018f70
nop
xor eax, eax
mov qword [rbp - 0x58], rax
mov qword [rbp - 0x50], rax
xor r8d, r8d
xor edx, edx
lea rcx, [rbp - 0x68]
call fcn.140018f70
nop
lea r8, [0x140123250]
mov rdx, rdi
lea rcx, [rsp + 0x38]
call fcn.1400a2160
mov rdi, rax
lea rax, [rbp - 0x68]
cmp rax, rdi
je 0x140098231
xor r8d, r8d
mov dl, 1
lea rcx, [rbp - 0x68]
call fcn.140018f70
mov rdx, rdi
lea rcx, [rbp - 0x68]
call fcn.140019520
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0x38]
call fcn.140018f70
lea rcx, [rbp - 0x68]
cmp qword [rbp - 0x50], 0x10
cmovae rcx, qword [rbp - 0x68]
lea rdx, [rbp - 0x40]
call qword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov qword [rsp + 0x20], rax
cmp rax, 0xffffffffffffffff
je 0x1400983c4
mov rdi, rax
nop word [rax + rax]
cmp byte [rbp - 0x14], 0x2e
je 0x140098369
test rbx, rbx
je 0x1400982ab
test esi, esi
jne 0x1400982ab
mov rax, rbx
lea r8, [rbp - 0x14]
sub r8, rbx
nop dword [rax]
movzx edx, byte [rax]
movzx ecx, byte [rax + r8]
sub edx, ecx
jne 0x1400982a3
inc rax
test ecx, ecx
jne 0x140098290
test edx, edx
je 0x140098369
mov qword [rbp - 0x78], 0
lea rax, [rsp + 0x78]
cmp qword [rbp - 0x70], 0x10
cmovae rax, qword [rsp + 0x78]
mov byte [rax], 0
lea r8, [0x140110d5c]
mov rdx, qword [rsp + 0x28]
lea rcx, [rsp + 0x58]
call fcn.1400a2160
nop
lea r8, [rbp - 0x14]
mov rdx, rax
lea rcx, [rsp + 0x38]
call fcn.14001a000
mov rdi, rax
lea rax, [rsp + 0x78]
cmp rax, rdi
je 0x140098318
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0x78]
call fcn.140018f70
mov rdx, rdi
lea rcx, [rsp + 0x78]
call fcn.140019520
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0x38]
call fcn.140018f70
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0x58]
call fcn.140018f70
lea rcx, [rsp + 0x78]
test byte [rbp - 0x40], 0x10
je 0x140098354
lea r8d, [rsi + 1]
mov rdx, rbx
call fcn.140098180
test al, al
je 0x14009837f
jmp 0x140098364
cmp qword [rbp - 0x70], 0x10
cmovae rcx, qword [rsp + 0x78]
call fcn.1400a5cd0
mov rdi, qword [rsp + 0x20]
lea rdx, [rbp - 0x40]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
je 0x14009838c
jmp 0x140098270
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x1400983c0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindClose]
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
jne 0x1400983c0
test esi, esi
je 0x1400983c4
mov rax, qword [rsp + 0x28]
cmp qword [rax + 0x18], 0x10
jb 0x1400983b3
mov rax, qword [rax]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
jne 0x1400983c4
xor bl, bl
jmp 0x1400983c6
mov bl, 1
xor r8d, r8d
mov dl, 1
lea rcx, [rbp - 0x68]
call fcn.140018f70
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0x78]
call fcn.140018f70
movzx eax, bl
mov rcx, qword [rbp + 0x100]
xor rcx, rsp
call fcn.1400ca980
mov rbx, qword [rsp + 0x248]
add rsp, 0x210
pop rdi
pop rsi
pop rbp
ret