Function at 0x14014e5ac
Capabilities:
Check if file exists
Delete directory
Enumerate files on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
push r12
push r15
lea rbp, [rax - 0x5d8]
sub rsp, 0x6c0
mov rax, qword [0x14017d140]
xor rax, rsp
mov qword [rbp + 0x5b0], rax
lea rcx, [rsp + 0x30]
xor r15d, r15d
mov qword [rsp + 0x30], r15
call fcn.14014dfd0
lea rdi, [0x14017d3a8]
mov ebx, eax
test eax, eax
js 0x14014e8e6
mov r8, qword [rsp + 0x30]
lea rax, [rbp + 0x190]
mov r12d, 0x104
mov edx, r12d
lea rcx, [rbp + 0x190]
mov ebx, r15d
sub r8, rax
lea rax, [rdx + 0x7ffffefa]
test rax, rax
je 0x14014e646
movzx eax, word [r8 + rcx]
test ax, ax
je 0x14014e646
mov word [rcx], ax
add rcx, 2
dec rdx
jne 0x14014e624
test rdx, rdx
jne 0x14014e654
sub rcx, 2
mov ebx, 0x8007007a
mov word [rcx], r15w
test ebx, ebx
js 0x14014e8e6
lea rdx, [rsp + 0x40]
lea rcx, [rbp + 0x190]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp rax, 0xffffffffffffffff
jne 0x14014e71a
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x14014e6c3
mov rcx, qword [0x14017d3a8]
cmp rcx, rdi
je 0x14014e8ed
test byte [rcx + 0x1c], 1
je 0x14014e8ed
cmp byte [rcx + 0x19], 5
jb 0x14014e8ed
lea edx, [rax + 0x17]
mov rcx, qword [rcx + 0x10]
lea r8, [0x140015578]
call fcn.14001dd24
jmp 0x14014e8e6
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov rcx, qword [0x14017d3a8]
cmp rcx, rdi
je 0x14014e8ed
test byte [rcx + 0x1c], 1
je 0x14014e8ed
cmp byte [rcx + 0x19], 2
jb 0x14014e8ed
mov rcx, qword [rcx + 0x10]
lea r9, [rbp + 0x190]
lea r8, [0x140015578]
mov edx, 0x1a
mov dword [rsp + 0x20], ebx
call fcn.14001ecbc
jmp 0x14014e8e6
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FindClose]
lea r8, [0x140001800]
lea rcx, [rbp + 0x190]
mov rdx, r12
call fcn.14006892c
mov ebx, eax
test eax, eax
js 0x14014e8e6
lea r8, [0x140015510]
lea rcx, [rbp + 0x190]
mov rdx, r12
call fcn.14006892c
mov ebx, eax
test eax, eax
js 0x14014e8e6
lea rdx, [rsp + 0x40]
lea rcx, [rbp + 0x190]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x14014e7ca
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [0x14017d3a8]
cmp eax, 2
je 0x14014e7a3
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
jmp 0x14014e8ed
cmp rcx, rdi
je 0x14014e8ed
test byte [rcx + 0x1c], 1
je 0x14014e8ed
cmp byte [rcx + 0x19], 5
jb 0x14014e8ed
mov edx, 0x1b
jmp 0x14014e6ae
mov rdi, qword [rsp + 0x30]
lea rax, [rbp + 0x3a0]
sub rdi, rax
mov rdx, r12
lea rcx, [rbp + 0x3a0]
mov ebx, r15d
lea rax, [rdx + 0x7ffffefa]
test rax, rax
je 0x14014e807
movzx eax, word [rdi + rcx]
test ax, ax
je 0x14014e807
mov word [rcx], ax
add rcx, 2
dec rdx
jne 0x14014e7e6
test rdx, rdx
jne 0x14014e815
sub rcx, 2
mov ebx, 0x8007007a
mov word [rcx], r15w
test ebx, ebx
js 0x14014e8d6
lea r8, [0x140001800]
lea rcx, [rbp + 0x3a0]
mov rdx, r12
call fcn.14006892c
mov ebx, eax
test eax, eax
js 0x14014e8d6
lea r8, [rsp + 0x6c]
lea rcx, [rbp + 0x3a0]
mov rdx, r12
call fcn.14006892c
mov ebx, eax
test eax, eax
js 0x14014e8d6
lea rcx, [rbp + 0x3a0]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x14014e8a7
mov rcx, qword [0x14017d3a8]
lea rax, [0x14017d3a8]
cmp rcx, rax
je 0x14014e8a7
test byte [rcx + 0x1c], 1
je 0x14014e8a7
cmp byte [rcx + 0x19], 2
jb 0x14014e8a7
mov rcx, qword [rcx + 0x10]
lea r9, [rbp + 0x3a0]
lea r8, [0x140015578]
mov edx, 0x1c
call fcn.14001ec40
lea rdx, [rsp + 0x40]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x14014e7d9
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
je 0x14014e8d6
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindClose]
lea rdi, [0x14017d3a8]
mov rcx, qword [0x14017d3a8]
cmp qword [rsp + 0x30], r15
je 0x14014e906
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rcx, qword [0x14017d3a8]
test ebx, ebx
jns 0x14014e933
cmp rcx, rdi
je 0x14014e933
test byte [rcx + 0x1c], 1
je 0x14014e933
cmp byte [rcx + 0x19], 2
jb 0x14014e933
mov rcx, qword [rcx + 0x10]
lea r8, [0x140015578]
mov edx, 0x1d
mov r9d, ebx
call fcn.14001de24
mov eax, ebx
mov rcx, qword [rbp + 0x5b0]
xor rcx, rsp
call fcn.140168920
lea r11, [rsp + 0x6c0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r12
pop rbp
ret