Function at 0x1400036e0
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
lea rbp, [rsp - 0x3b0]
sub rsp, 0x4b0
mov rax, qword [0x14002f008]
xor rax, rsp
mov qword [rbp + 0x3a0], rax
mov rbx, rcx
mov qword [rsp + 0x28], r8
or rcx, 0xffffffffffffffff
mov rax, rcx
xor esi, esi
inc rax
cmp word [rbx + rax*2], si
jne 0x140003719
add rax, 2
cmp rax, 0x104
ja 0x140016bf9
mov rdi, rcx
inc rdi
cmp word [rbx + rdi*2], si
jne 0x140003735
sub edi, 2
mov rcx, rbx
mov dword [r8], edi
call qword [sym.imp.api_ms_win_core_file_l1_2_1.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140016bea
test al, 0x10
jne 0x140003781
mov eax, 1
mov rcx, qword [rbp + 0x3a0]
xor rcx, rsp
call fcn.1400151c0
mov rbx, qword [rsp + 0x4d8]
add rsp, 0x4b0
pop rdi
pop rsi
pop rbp
ret
or rax, 0xffffffffffffffff
jmp 0x140016c00
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_GetLastError]
mov ecx, eax
xor edx, edx
call fcn.1400057e4
xor eax, eax
jmp 0x14000375f
inc rax
cmp word [rbx + rax*2], si
jne 0x140016c00
mov ecx, 0x5c
cmp word [rbx + rax*2 - 2], cx
jne 0x140016c1e
mov dword [rbx + rax*2], 0x2a
jmp 0x140016c2a
mov dword [rbx + rax*2], 0x2a005c
mov word [rbx + rax*2 + 4], si
lea rdx, [rsp + 0x40]
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_file_l1_2_1.dll_FindFirstFileW]
mov qword [rsp + 0x30], rax
cmp rax, 0xffffffffffffffff
jne 0x140016c63
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_GetLastError]
or rcx, 0xffffffffffffffff
mov ebx, eax
call qword [sym.imp.api_ms_win_core_file_l1_2_1.dll_FindClose]
lea ecx, [rbx - 2]
test ecx, 0xffffffef
jmp 0x140016da4
mov esi, 1
xor edx, edx
movzx ecx, word [rsp + 0x6c]
movzx eax, word [0x140028848]
sub ecx, eax
jne 0x140016c88
movzx ecx, word [rsp + 0x6e]
movzx eax, word [0x14002884a]
sub ecx, eax
test ecx, ecx
je 0x140016d6a
movzx ecx, word [rsp + 0x6c]
movzx eax, word [0x140028840]
sub ecx, eax
jne 0x140016cbe
movzx ecx, word [rsp + 0x6e]
movzx eax, word [0x140028842]
sub ecx, eax
jne 0x140016cbe
movzx ecx, word [rsp + 0x70]
movzx eax, word [0x140028844]
sub ecx, eax
test ecx, ecx
je 0x140016d6a
lea rcx, [rsp + 0x6c]
or rax, 0xffffffffffffffff
inc rax
cmp word [rcx + rax*2], dx
jne 0x140016ccf
test rax, rax
je 0x140016d6a
test byte [rsp + 0x40], 0x10
jne 0x140016d5e
mov r8, rbx
lea rcx, [rbp + 0x190]
mov edx, 0x104
call fcn.14000dc10
or rax, 0xffffffffffffffff
lea rdx, [rbp + 0x190]
xor ecx, ecx
inc rax
cmp word [rdx + rax*2], cx
jne 0x140016d09
mov word [rbp + rax*2 + 0x18e], cx
lea r8, [rsp + 0x6c]
lea rcx, [rbp + 0x190]
mov edx, 0x104
call fcn.14000db30
lea r8, [rsp + 0x20]
mov edx, 0x104
lea rcx, [rbp + 0x190]
call fcn.1400036e0
test eax, eax
je 0x140016d86
mov rax, qword [rsp + 0x28]
mov ecx, dword [rsp + 0x20]
add ecx, edi
cmp dword [rax], ecx
cmovg ecx, dword [rax]
mov dword [rax], ecx
jmp 0x140016d6a
mov rcx, qword [rsp + 0x28]
cmp dword [rcx], eax
cmovg eax, dword [rcx]
mov dword [rcx], eax
mov rcx, qword [rsp + 0x30]
lea rdx, [rsp + 0x40]
call qword [sym.imp.api_ms_win_core_file_l1_2_1.dll_FindNextFileW]
xor edx, edx
mov esi, eax
test eax, eax
jne 0x140016c6a
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_GetLastError]
mov rcx, qword [rsp + 0x30]
mov ebx, eax
call qword [sym.imp.api_ms_win_core_file_l1_2_1.dll_FindClose]
test esi, esi
jne 0x140016bf9
cmp ebx, 0x12
je 0x14000375a
mov ecx, ebx
jmp 0x140016bf2