Function at 0x140003b50
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 [0x14003b0f8]
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 0x140003b90
add r9, 2
mov eax, edx
cmp r9, rax
ja 0x140003c02
mov rdi, r13
inc rdi
cmp word [rcx + rdi*2], r12w
jne 0x140003ba8
sub edi, 2
mov dword [r8], edi
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140021104
test al, 0x10
jne 0x140003bfa
mov eax, 1
mov rcx, qword [rbp + 0x3a0]
xor rcx, rsp
call fcn.1400182e0
mov rbx, qword [rsp + 0x4f8]
add rsp, 0x4b0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov rax, r13
jmp 0x14002111d
xor eax, eax
jmp 0x140003bd0
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov ecx, eax
jmp 0x140021110
mov ecx, ebx
xor edx, edx
call fcn.140015118
nop
jmp 0x140003c02
inc rax
cmp word [rbx + rax*2], r12w
jne 0x14002111d
mov r8d, 0x5c
lea ecx, [r8 - 0x32]
cmp word [rbx + rax*2 - 2], r8w
jne 0x14002113f
movzx edx, r12w
jmp 0x14002114b
mov edx, ecx
mov word [rbx + rax*2 + 4], r12w
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]
mov r15, rax
cmp rax, r13
jne 0x140021196
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov rcx, r13
mov ebx, eax
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_FindClose]
lea ecx, [rbx - 2]
test ecx, 0xffffffef
jmp 0x14002118b
cmp ebx, 0x12
je 0x140003bcb
jmp 0x14002110e
mov esi, 1
movzx ecx, word [rbp + 0x17c]
movzx eax, word [0x140032420]
sub ecx, eax
jne 0x1400211bd
movzx ecx, word [rbp + 0x17e]
movzx eax, word [0x140032422]
sub ecx, eax
test ecx, ecx
je 0x14002132b
movzx ecx, word [rbp + 0x17c]
movzx eax, word [0x140032418]
sub ecx, eax
jne 0x1400211f9
movzx ecx, word [rbp + 0x17e]
movzx eax, word [0x14003241a]
sub ecx, eax
jne 0x1400211f9
movzx ecx, word [rbp + 0x180]
movzx eax, word [0x14003241c]
sub ecx, eax
test ecx, ecx
je 0x14002132b
lea rax, [rbp + 0x17c]
mov rcx, r13
inc rcx
cmp word [rax + rcx*2], r12w
jne 0x14002120b
test rcx, rcx
je 0x14002132b
test byte [rbp + 0x150], 0x10
jne 0x140021320
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.msvcrt.dll_memset
mov al, byte [rbp + 0x140]
lea rcx, [rsp + 0x30]
neg al
sbb rdx, rdx
and edx, 0x7ee3
add rdx, 0x104
call fcn.14000c130
test eax, eax
js 0x140021347
mov rdx, rbx
lea rcx, [rsp + 0x30]
call fcn.14000abcc
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 0x1400212ac
mov word [rdx + rax*2 - 2], r12w
lea rcx, [rsp + 0x30]
lea rdx, [rbp + 0x17c]
call fcn.1400082a0
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.140003b50
test eax, eax
je 0x140021352
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 0x14002132b
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete___void____ptr64_]
jmp 0x14002132b
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]
mov esi, eax
test eax, eax
jne 0x14002119b
jmp 0x14002136b
mov ecx, 8
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
mov rcx, qword [rbp + 0x138]
mov qword [rbp + 0x138], r12
test rcx, rcx
je 0x14002136b
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete___void____ptr64_]
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov rcx, r15
mov ebx, eax
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_FindClose]
test esi, esi
jne 0x140003c02
jmp 0x140021188