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

Disassembly:
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x300]
sub rsp, 0x400
mov qword [rsp + 0x50], 0xfffffffffffffffe
mov qword [rsp + 0x430], rbx
mov rax, qword [0x140050088]
xor rax, rsp
mov qword [rbp + 0x2f0], rax
mov rdi, rdx
mov qword [rsp + 0x20], rdx
mov qword [rsp + 0x48], rcx
mov bl, 1
xor edx, edx
mov r8d, 0xf8
lea rcx, [rbp - 0x60]
call fcn.140019d60
lea rcx, [rbp - 0x60]
call fcn.14000c160
nop
mov rdx, rdi
lea rcx, [rbp - 0x50]
call fcn.14000d850
mov rcx, rax
lea rdx, [0x140047068]
call fcn.14000d850
mov qword [rsp + 0x70], 7
xor eax, eax
mov qword [rsp + 0x68], rax
mov word [rsp + 0x58], ax
lea rdx, [rsp + 0x78]
lea rcx, [rbp - 0x60]
call fcn.14000c050
nop
lea rcx, [rsp + 0x78]
cmp qword [rbp - 0x70], 8
cmovae rcx, qword [rsp + 0x78]
lea rdx, [rbp + 0xa0]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x1400142e0
nop dword [rax + rax]
mov qword [rsp + 0x40], 7
xor eax, eax
mov qword [rsp + 0x38], rax
mov word [rsp + 0x28], ax
lea rcx, [rbp - 0x48]
call fcn.14000d360
mov r9d, dword [rbp + 0x28]
xor r8d, r8d
lea rdx, [rsp + 0x28]
lea rcx, [rbp - 0x48]
call fcn.14000d580
nop
mov r8, qword [rsp + 0x40]
cmp r8, 8
jb 0x140014171
inc r8
mov rdx, qword [rsp + 0x28]
lea rcx, [rsp + 0x28]
call fcn.140002ef0
mov rdx, rdi
lea rcx, [rbp - 0x50]
call fcn.14000d850
mov rcx, rax
lea rdx, [0x140046ea8]
call fcn.14000d850
mov rcx, rax
lea rdx, [rbp + 0xcc]
call fcn.14000d850
lea rdx, [rsp + 0x28]
lea rcx, [rbp - 0x60]
call fcn.14000c050
mov rdi, rax
lea rax, [rsp + 0x58]
cmp rax, rdi
je 0x1400141f6
mov r8, qword [rsp + 0x70]
cmp r8, 8
jb 0x1400141d3
inc r8
mov rdx, qword [rsp + 0x58]
lea rcx, [rsp + 0x58]
call fcn.140002ef0
mov qword [rsp + 0x70], 7
xor eax, eax
mov qword [rsp + 0x68], rax
mov word [rsp + 0x58], ax
mov rdx, rdi
lea rcx, [rsp + 0x58]
call fcn.140003990
nop
mov r8, qword [rsp + 0x40]
cmp r8, 8
jb 0x140014213
inc r8
mov rdx, qword [rsp + 0x28]
lea rcx, [rsp + 0x28]
call fcn.140002ef0
mov ecx, dword [rbp + 0xa0]
and ecx, 0x10
je 0x14001427f
movzx edx, word [rbp + 0xcc]
movzx eax, word [rbp + 0xce]
cmp dx, word [0x14004705c]
jne 0x14001423e
cmp ax, word [0x14004705e]
je 0x14001427f
cmp dx, word [0x140047060]
jne 0x140014260
cmp ax, word [0x140047062]
jne 0x140014260
movzx eax, word [rbp + 0xd0]
cmp ax, word [0x140047064]
je 0x14001427f
lea rdx, [rsp + 0x58]
cmp qword [rsp + 0x70], 8
cmovae rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x48]
call fcn.140014050
and bl, al
jmp 0x1400142a7
test ecx, ecx
jne 0x1400142a7
lea rcx, [rsp + 0x58]
cmp qword [rsp + 0x70], 8
cmovae rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
movzx ebx, bl
test eax, eax
mov eax, 0
cmove ebx, eax
lea rdx, [rbp + 0xa0]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
mov rdi, qword [rsp + 0x20]
jne 0x140014120
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
jne 0x1400142d7
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindClose]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x14001430a
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x91
je 0x14001430a
movzx ebx, bl
cmp eax, 2
mov edi, 0
cmovne ebx, edi
jmp 0x14001430c
xor edi, edi
mov r8, qword [rbp - 0x70]
cmp r8, 8
jb 0x140014328
inc r8
mov rdx, qword [rsp + 0x78]
lea rcx, [rsp + 0x78]
call fcn.140002ef0
mov qword [rbp - 0x70], 7
mov qword [rbp - 0x78], rdi
mov word [rsp + 0x78], di
mov r8, qword [rsp + 0x70]
cmp r8, 8
jb 0x140014356
inc r8
mov rdx, qword [rsp + 0x58]
lea rcx, [rsp + 0x58]
call fcn.140002ef0
mov qword [rsp + 0x70], 7
mov qword [rsp + 0x68], rdi
mov word [rsp + 0x58], di
lea rcx, [rbp + 0x38]
call fcn.14000c080
nop
lea rax, vtable.std::ios_base.0
mov qword [rbp + 0x38], rax
lea rcx, [rbp + 0x38]
call fcn.140015668
nop
movzx eax, bl
mov rcx, qword [rbp + 0x2f0]
xor rcx, rsp
call fcn.1400164d0
mov rbx, qword [rsp + 0x430]
add rsp, 0x400
pop rdi
pop rsi
pop rbp
ret