Function at 0x14001d8f0
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 [0x140051af8]
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 0x14001db8d
mov r9, rbx
cmp qword [rbx + 0x18], 8
jb 0x14001d951
mov r9, qword [rbx]
mov qword [rsp + 0x30], 2
lea rax, [0x14002b480]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rcx
lea rcx, [rbp - 0x80]
call fcn.1400178bc
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.14000d3c4
cmp rdi, 0xffffffffffffffff
je 0x14001db4a
xor esi, esi
lea r13, [0x14002b488]
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 0x14001d9cb
lea rdx, [rbp - 0x14]
lea rcx, [rsp + 0x40]
call fcn.14000d884
nop
lea rdx, [rsp + 0x40]
cmp qword [rsp + 0x58], 8
cmovae rdx, qword [rsp + 0x40]
cmp qword [rsp + 0x50], 1
jne 0x14001da28
mov r8d, 1
lea rax, [0x14002b47c]
mov rcx, rax
sub rdx, rax
movzx eax, word [rcx]
cmp word [rdx + rcx], ax
jne 0x14001da28
add rcx, 2
sub r8, 1
jne 0x14001da10
jmp 0x14001db22
lea rdx, [rsp + 0x40]
cmp qword [rsp + 0x58], 8
cmovae rdx, qword [rsp + 0x40]
cmp qword [rsp + 0x50], 2
jne 0x14001da64
mov r8d, 2
mov rcx, r13
sub rdx, r13
movzx eax, word [rcx]
cmp word [rdx + rcx], ax
jne 0x14001da64
add rcx, 2
sub r8, 1
jne 0x14001da4d
mov al, 1
jmp 0x14001da67
mov al, sil
test al, al
jne 0x14001db22
mov rcx, qword [rbx + 0x10]
mov rax, r12
sub rax, rcx
cmp rax, 1
jb 0x14001db93
mov r9, rbx
cmp qword [rbx + 0x18], 8
jb 0x14001da90
mov r9, qword [rbx]
mov qword [rsp + 0x30], 1
lea rax, [0x14002b478]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rcx
lea rcx, [rbp - 0x60]
call fcn.1400178bc
nop
lea r8, [rsp + 0x40]
lea rdx, [rbp - 0x60]
lea rcx, [rsp + 0x60]
call fcn.14002018c
nop
lea rcx, [rbp - 0x60]
call fcn.14000d3c4
lea rcx, [rsp + 0x60]
test byte [rbp - 0x40], 0x10
je 0x14001dae3
call fcn.14001d8f0
jmp 0x14001db17
cmp qword [rsp + 0x78], 8
cmovae rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14001db76
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.14000d3c4
nop
lea rcx, [rsp + 0x40]
call fcn.14000d3c4
lea rdx, [rbp - 0x40]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x14001d9ab
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindClose]
mov rcx, qword [rbp + 0x210]
xor rcx, rsp
call fcn.140023640
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.14000d3c4
nop
lea rcx, [rsp + 0x40]
call fcn.14000d3c4
jmp 0x14001db4a
call fcn.140004fcc
nop
call fcn.140004fcc
int3