Function at 0x14001da84
Capabilities:
Check if file exists
Enumerate files on windows
Enumerate files recursively
Get file attributes
Set file attributes

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
push r12
push r13
lea rbp, [rax - 0x238]
sub rsp, 0x320
mov rax, qword [0x140050af8]
xor rax, rsp
mov qword [rbp + 0x210], rax
mov rbx, rcx
mov rcx, qword [rcx + 0x10]
movabs r12, 0x7ffffffffffffffe
mov rax, r12
sub rax, rcx
cmp rax, 2
jb 0x14001dd21
mov r9, rbx
cmp qword [rbx + 0x18], 8
jb 0x14001dae5
mov r9, qword [rbx]
mov qword [rsp + 0x30], 2
lea rax, [0x14002ac8c]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rcx
lea rcx, [rbp - 0x80]
call fcn.140017828
lea rcx, [rbp - 0x80]
cmp qword [rbp - 0x68], 8
cmovae rcx, qword [rbp - 0x80]
lea rdx, [rbp - 0x40]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rdi, rax
lea rcx, [rbp - 0x80]
call fcn.14000cc0c
cmp rdi, 0xffffffffffffffff
je 0x14001dcde
xor esi, esi
lea r13, [0x14002ac94]
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x50], rsi
mov qword [rsp + 0x58], 7
mov word [rsp + 0x40], si
lea rax, [rbp - 0x14]
or r8, 0xffffffffffffffff
inc r8
cmp word [rax + r8*2], si
jne 0x14001db5f
lea rdx, [rbp - 0x14]
lea rcx, [rsp + 0x40]
call fcn.14000d0cc
nop
lea rdx, [rsp + 0x40]
cmp qword [rsp + 0x58], 8
cmovae rdx, qword [rsp + 0x40]
cmp qword [rsp + 0x50], 1
jne 0x14001dbbc
mov r8d, 1
lea rax, [0x14002ac9c]
mov rcx, rax
sub rdx, rax
movzx eax, word [rcx]
cmp word [rdx + rcx], ax
jne 0x14001dbbc
add rcx, 2
sub r8, 1
jne 0x14001dba4
jmp 0x14001dcb6
lea rdx, [rsp + 0x40]
cmp qword [rsp + 0x58], 8
cmovae rdx, qword [rsp + 0x40]
cmp qword [rsp + 0x50], 2
jne 0x14001dbf8
mov r8d, 2
mov rcx, r13
sub rdx, r13
movzx eax, word [rcx]
cmp word [rdx + rcx], ax
jne 0x14001dbf8
add rcx, 2
sub r8, 1
jne 0x14001dbe1
mov al, 1
jmp 0x14001dbfb
mov al, sil
test al, al
jne 0x14001dcb6
mov rcx, qword [rbx + 0x10]
mov rax, r12
sub rax, rcx
cmp rax, 1
jb 0x14001dd27
mov r9, rbx
cmp qword [rbx + 0x18], 8
jb 0x14001dc24
mov r9, qword [rbx]
mov qword [rsp + 0x30], 1
lea rax, [0x14002ac88]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rcx
lea rcx, [rbp - 0x60]
call fcn.140017828
nop
lea r8, [rsp + 0x40]
lea rdx, [rbp - 0x60]
lea rcx, [rsp + 0x60]
call fcn.14002027c
nop
lea rcx, [rbp - 0x60]
call fcn.14000cc0c
lea rcx, [rsp + 0x60]
test byte [rbp - 0x40], 0x10
je 0x14001dc77
call fcn.14001da84
jmp 0x14001dcab
cmp qword [rsp + 0x78], 8
cmovae rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14001dd0a
or eax, 6
lea rcx, [rsp + 0x60]
cmp qword [rsp + 0x78], 8
cmovae rcx, qword [rsp + 0x60]
mov edx, eax
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
nop
lea rcx, [rsp + 0x60]
call fcn.14000cc0c
nop
lea rcx, [rsp + 0x40]
call fcn.14000cc0c
lea rdx, [rbp - 0x40]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x14001db3f
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindClose]
mov rcx, qword [rbp + 0x210]
xor rcx, rsp
call fcn.140023540
lea r11, [rsp + 0x320]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r13
pop r12
pop rbp
ret
lea rcx, [rsp + 0x60]
call fcn.14000cc0c
nop
lea rcx, [rsp + 0x40]
call fcn.14000cc0c
jmp 0x14001dcde
call fcn.14000531c
nop
call fcn.14000531c
int3