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

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x3b0]
sub rsp, 0x4b0
mov rax, qword [0x1400400b0]
xor rax, rsp
mov qword [rbp + 0x3a0], rax
or r13, 0xffffffffffffffff
mov r14, r8
mov r9, r13
xor r12d, r12d
mov rbx, rcx
inc r9
cmp word [rcx + r9*2], r12w
jne 0x140003018
add r9, 2
mov eax, edx
cmp r9, rax
ja 0x140003066
mov rdi, r13
inc rdi
cmp word [rcx + rdi*2], r12w
jne 0x140003030
sub edi, 2
mov dword [r8], edi
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_GetFileAttributesW]
nop dword [rax + rax]
cmp eax, 0xffffffff
jne 0x140003093
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov ecx, eax
xor edx, edx
call fcn.140002bfc
xor eax, eax
mov rcx, qword [rbp + 0x3a0]
xor rcx, rsp
call fcn.14001f920
mov rbx, qword [rsp + 0x4f8]
add rsp, 0x4b0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
test al, 0x10
je 0x140003306
mov rax, r13
inc rax
cmp word [rbx + rax*2], r12w
jne 0x14000309e
mov r8d, 0x5c
cmp word [rbx + rax*2 - 2], r8w
jne 0x1400030c0
movzx edx, r12w
lea ecx, [r8 - 0x32]
jmp 0x1400030cf
mov word [rbx + rax*2 + 4], r12w
mov edx, 0x2a
movzx ecx, r8w
mov word [rbx + rax*2], cx
mov rcx, rbx
mov word [rbx + rax*2 + 2], dx
lea rdx, [rbp + 0x150]
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_FindFirstFileW]
nop dword [rax + rax]
mov r15, rax
cmp rax, r13
jne 0x140003129
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov rcx, r13
mov ebx, eax
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_FindClose]
nop dword [rax + rax]
lea ecx, [rbx - 2]
test ecx, 0xffffffef
je 0x140003306
mov ecx, ebx
jmp 0x14000305f
mov esi, 1
cmp word [rbp + 0x17c], 0x2e
movzx eax, word [rbp + 0x17e]
jne 0x140003166
test ax, ax
je 0x14000328f
cmp word [rbp + 0x17c], 0x2e
jne 0x140003166
cmp ax, 0x2e
jne 0x140003166
cmp word [rbp + 0x180], r12w
je 0x14000328f
lea rax, [rbp + 0x17c]
mov rcx, r13
inc rcx
cmp word [rax + rcx*2], r12w
jne 0x140003170
test rcx, rcx
je 0x14000328f
test byte [rbp + 0x150], 0x10
jne 0x140003284
xor edx, edx
mov qword [rbp + 0x138], r12
mov r8d, 0x104
mov byte [rbp + 0x140], 1
lea rcx, [rsp + 0x30]
mov qword [rbp + 0x148], 0x104
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
mov al, byte [rbp + 0x140]
lea rcx, [rsp + 0x30]
neg al
sbb rdx, rdx
and edx, 0x7ee3
add rdx, 0x104
call fcn.140010e10
test eax, eax
js 0x1400032b0
mov rdx, rbx
lea rcx, [rsp + 0x30]
call fcn.140016cc0
mov rax, qword [rbp + 0x138]
lea rdx, [rsp + 0x30]
test rax, rax
lea rcx, [rsp + 0x30]
cmovne rdx, rax
cmovne rcx, rax
mov rax, r13
inc rax
cmp word [rcx + rax*2], r12w
jne 0x140003211
mov word [rdx + rax*2 - 2], r12w
lea rcx, [rsp + 0x30]
lea rdx, [rbp + 0x17c]
call fcn.14001b7dc
mov rax, qword [rbp + 0x138]
lea rcx, [rsp + 0x30]
mov edx, dword [rbp + 0x148]
lea r8, [rsp + 0x20]
test rax, rax
cmovne rcx, rax
call fcn.140002fd8
test eax, eax
je 0x1400032c1
mov eax, dword [r14]
mov ecx, dword [rsp + 0x20]
add ecx, edi
cmp eax, ecx
cmovle eax, ecx
mov rcx, qword [rbp + 0x138]
mov dword [r14], eax
mov qword [rbp + 0x138], r12
test rcx, rcx
je 0x14000328f
call fcn.14001fe90
jmp 0x14000328f
mov eax, dword [r14]
cmp eax, ecx
cmovle eax, ecx
mov dword [r14], eax
lea rdx, [rbp + 0x150]
mov rcx, r15
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_FindNextFileW]
nop dword [rax + rax]
mov esi, eax
test eax, eax
je 0x1400032d9
jmp 0x14000312e
mov ecx, 8
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
nop dword [rax + rax]
mov rcx, qword [rbp + 0x138]
mov qword [rbp + 0x138], r12
test rcx, rcx
je 0x1400032d9
call fcn.14001fe90
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov rcx, r15
mov ebx, eax
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_FindClose]
nop dword [rax + rax]
test esi, esi
jne 0x140003066
cmp ebx, 0x12
jmp 0x14000311c
mov eax, 1
jmp 0x140003068