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

Disassembly:
mov rax, rsp
push rbp
lea rbp, [rax - 0x238]
sub rsp, 0x330
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x18002e1e0]
xor rax, rsp
mov qword [rbp + 0x220], rax
mov rdx, rcx
mov qword [rsp + 0x20], rcx
mov qword [rsp + 0x48], 7
xor ebx, ebx
mov qword [rsp + 0x40], rbx
mov word [rsp + 0x30], bx
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rdx
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx - 1]
lea rcx, [rsp + 0x30]
call fcn.180005c90
nop
mov rax, qword [rsp + 0x40]
lea rcx, [rax - 1]
cmp rax, rcx
ja 0x180004a7e
lea rcx, str.invalid_string_position
call fcn.180006bd0
int3
lea rax, [rsp + 0x30]
cmp qword [rsp + 0x48], 8
cmovae rax, qword [rsp + 0x30]
cmp word [rax + rcx*2], 0x5c
je 0x180004aa0
lea rcx, [rsp + 0x30]
call fcn.180004de0
lea r8, [0x1800287a8]
lea rdx, [rsp + 0x30]
lea rcx, [rbp - 0x80]
call fcn.180004ed0
cmp qword [rax + 0x18], 8
jb 0x180004abf
mov rax, qword [rax]
lea rdx, [rbp - 0x30]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rsi, rax
cmp qword [rbp - 0x68], 8
jb 0x180004adf
mov rcx, qword [rbp - 0x80]
call fcn.18000e010
mov qword [rbp - 0x68], 7
mov qword [rbp - 0x70], rbx
mov word [rbp - 0x80], bx
cmp rsi, 0xffffffffffffffff
jne 0x180004b10
cmp qword [rsp + 0x48], 8
jb 0x180004b07
mov rcx, qword [rsp + 0x30]
call fcn.18000e010
xor al, al
jmp 0x180004ce5
test byte [rbp - 0x30], 0x10
je 0x180004b88
lea rdx, [0x1800287b0]
lea rcx, [rbp - 4]
call fcn.18000f090
test eax, eax
je 0x180004ca7
lea rdx, [0x1800287b4]
lea rcx, [rbp - 4]
call fcn.18000f090
test eax, eax
je 0x180004ca7
lea r8, [rbp - 4]
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x58]
call fcn.180004ed0
nop
cmp qword [rax + 0x18], 8
jb 0x180004b64
mov rax, qword [rax]
mov rcx, rax
call fcn.1800049f0
nop
cmp qword [rsp + 0x70], 8
jb 0x180004ca7
mov rcx, qword [rsp + 0x58]
call fcn.18000e010
jmp 0x180004ca7
lea r8, [rbp - 4]
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x58]
call fcn.180004ed0
cmp qword [rax + 0x18], 8
jb 0x180004ba5
mov rax, qword [rax]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp qword [rsp + 0x70], 8
jb 0x180004bc0
mov rcx, qword [rsp + 0x58]
call fcn.18000e010
lea r8, [rbp - 4]
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x58]
call fcn.180004ed0
cmp qword [rax + 0x10], 0x208
setb dil
cmp qword [rsp + 0x70], 8
jb 0x180004bf1
mov rcx, qword [rsp + 0x58]
call fcn.18000e010
test dil, dil
je 0x180004ca7
mov ecx, 0x410
call fcn.180006b40
mov rdi, rax
xor edx, edx
mov r8d, 0x208
mov rcx, rax
call fcn.18000fe40
lea r8, [rbp - 4]
lea rdx, [rsp + 0x30]
lea rcx, [rbp - 0x58]
call fcn.180004ed0
mov rbx, rax
lea r8, [rbp - 4]
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x58]
call fcn.180004ed0
cmp qword [rbx + 0x18], 8
jb 0x180004c49
mov rbx, qword [rbx]
mov rdx, qword [rax + 0x10]
inc rdx
mov r8, rbx
mov rcx, rdi
call fcn.18000e5a4
cmp qword [rsp + 0x70], 8
jb 0x180004c6d
mov rcx, qword [rsp + 0x58]
call fcn.18000e010
mov qword [rsp + 0x70], 7
xor ebx, ebx
mov qword [rsp + 0x68], rbx
mov word [rsp + 0x58], bx
cmp qword [rbp - 0x40], 8
jb 0x180004c92
mov rcx, qword [rbp - 0x58]
call fcn.18000e010
mov rcx, rdi
call fcn.180003db0
test rdi, rdi
je 0x180004ca7
mov rcx, rdi
call fcn.18000e3f0
lea rdx, [rbp - 0x30]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x180004b10
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindClose]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
nop
cmp qword [rsp + 0x48], 8
jb 0x180004ce3
mov rcx, qword [rsp + 0x30]
call fcn.18000e010
mov al, 1
mov rcx, qword [rbp + 0x220]
xor rcx, rsp
call fcn.18000e030
lea r11, [rsp + 0x330]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret