Function at 0x14001dc30
Capabilities:
Check if file exists
Enumerate files on windows
Get file attributes

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x220]
sub rsp, 0x320
mov qword [rsp + 0x78], 0xfffffffffffffffe
mov qword [rsp + 0x370], rbx
mov rax, qword [0x1401310c8]
xor rax, rsp
mov qword [rbp + 0x210], rax
mov r13, r9
movzx r14d, r8b
mov rbx, rdx
mov rsi, rcx
mov qword [rbp - 0x80], rcx
xor edi, edi
mov dword [rsp + 0x30], edi
mov qword [rcx], rdi
mov qword [rcx + 8], rdi
xor r8d, r8d
xor edx, edx
call fcn.140016e90
mov qword [rsi], rax
mov dword [rsp + 0x30], 1
cmp qword [rbx + 0x18], 8
jb 0x14001dcac
mov rcx, qword [rbx]
jmp 0x14001dcaf
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14001df09
test al, 0x10
je 0x14001df09
mov qword [rbp - 0x78], rdi
mov qword [rbp - 0x70], rdi
xor r8d, r8d
xor edx, edx
call fcn.140016e90
mov rdi, rax
mov qword [rbp - 0x78], rax
mov r9, rbx
mov r8, qword [rax + 8]
mov rdx, rax
call fcn.14001e160
mov r8, rax
movabs rcx, 0x555555555555554
mov rdx, qword [rbp - 0x70]
sub rcx, rdx
cmp rcx, 1
jae 0x14001dd15
lea rcx, str.list_T__too_long
call fcn.140079b20
int3
inc rdx
mov qword [rbp - 0x70], rdx
mov qword [rdi + 8], r8
mov rax, qword [rax + 8]
mov qword [rax], r8
test r14b, r14b
je 0x14001dd6d
xor eax, eax
mov qword [rbp - 0x68], rax
mov qword [rbp - 0x60], rax
mov r8b, 1
mov rdx, rbx
lea rcx, [rbp - 0x68]
call fcn.14001d930
nop
mov r9, qword [rbp - 0x68]
mov r8, qword [r9]
mov rdx, qword [rbp - 0x78]
lea rcx, [rbp - 0x78]
call fcn.14001e0a0
nop
lea rcx, [rbp - 0x68]
call fcn.1400166e0
mov rcx, qword [rbp - 0x68]
call fcn.140078bcc
mov r12, qword [rbp - 0x78]
mov rbx, qword [r12]
cmp rbx, r12
je 0x14001def7
mov r8, r13
lea rdx, [rbx + 0x10]
lea rcx, [rsp + 0x38]
call fcn.14001d430
cmp qword [rax + 0x18], 8
jb 0x14001dd99
mov rax, qword [rax]
lea rdx, [rbp - 0x40]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov r14, rax
mov r8, qword [rsp + 0x50]
cmp r8, 8
jb 0x14001ddc6
inc r8
mov rdx, qword [rsp + 0x38]
lea rcx, [rsp + 0x38]
call fcn.140007ea0
mov qword [rsp + 0x50], 7
xor edi, edi
mov qword [rsp + 0x48], rdi
mov word [rsp + 0x38], di
cmp r14, 0xffffffffffffffff
je 0x14001dee2
test byte [rbp - 0x40], 0x10
jne 0x14001dec4
mov qword [rbp - 0x50], 7
mov qword [rbp - 0x58], rdi
mov word [rbp - 0x68], di
cmp word [rbp - 0x14], 0
jne 0x14001de0b
mov r8, rdi
jmp 0x14001de1e
lea rax, [rbp - 0x14]
or r8, 0xffffffffffffffff
inc r8
cmp word [rax + r8*2], 0
jne 0x14001de13
lea rdx, [rbp - 0x14]
lea rcx, [rbp - 0x68]
call fcn.140007ad0
nop
lea r8, [rbp - 0x68]
lea rdx, [rbx + 0x10]
lea rcx, [rsp + 0x58]
call fcn.14001d430
nop
mov rdi, qword [rsi]
mov r9, rax
mov r8, qword [rdi + 8]
mov rdx, rdi
call fcn.14001e1e0
movabs rcx, 0x555555555555554
sub rcx, qword [rsi + 8]
cmp rcx, 1
jb 0x14001deea
inc qword [rsi + 8]
mov qword [rdi + 8], rax
mov rcx, qword [rax + 8]
mov qword [rcx], rax
mov r8, qword [rsp + 0x70]
cmp r8, 8
jb 0x14001de95
inc r8
mov rdx, qword [rsp + 0x58]
lea rcx, [rsp + 0x58]
call fcn.140007ea0
mov qword [rsp + 0x70], 7
xor edi, edi
mov qword [rsp + 0x68], rdi
mov word [rsp + 0x58], di
mov r8, qword [rbp - 0x50]
cmp r8, 8
jb 0x14001dec4
inc r8
mov rdx, qword [rbp - 0x68]
lea rcx, [rbp - 0x68]
call fcn.140007ea0
lea rdx, [rbp - 0x40]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x14001dde5
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_FindClose]
mov rbx, qword [rbx]
jmp 0x14001dd75
lea rcx, str.list_T__too_long
call fcn.140079b20
nop
lea rcx, [rbp - 0x78]
call fcn.1400166e0
mov rcx, qword [rbp - 0x78]
call fcn.140078bcc
mov rax, rsi
mov rcx, qword [rbp + 0x210]
xor rcx, rsp
call fcn.1400784c0
mov rbx, qword [rsp + 0x370]
add rsp, 0x320
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret