Function at 0x1400035b8
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 [0x14003d0f8]
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 0x1400035f8
add r9, 2
mov eax, edx
cmp r9, rax
ja 0x140003671
mov rdi, r13
inc rdi
cmp word [rcx + rdi*2], r12w
jne 0x140003610
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
je 0x140021374
test al, 0x10
jne 0x140003669
mov eax, 1
mov rcx, qword [rbp + 0x3a0]
xor rcx, rsp
call fcn.140018f90
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 0x140021393
xor eax, eax
jmp 0x14000363e
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov ecx, eax
jmp 0x140021386
mov ecx, ebx
xor edx, edx
call fcn.140003278
nop
jmp 0x140003671
inc rax
cmp word [rbx + rax*2], r12w
jne 0x140021393
mov r8d, 0x5c
cmp word [rbx + rax*2 - 2], r8w
jne 0x1400213b5
movzx edx, r12w
lea ecx, [r8 - 0x32]
jmp 0x1400213c4
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 0x140021421
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
jmp 0x140021416
cmp ebx, 0x12
je 0x140003639
jmp 0x140021384
mov esi, 1
movzx ecx, word [rbp + 0x17c]
mov edx, 0x2e
movzx eax, dx
sub ecx, eax
jne 0x140021446
movzx ecx, word [rbp + 0x17e]
movzx eax, r12w
sub ecx, eax
test ecx, ecx
je 0x1400215af
movzx ecx, word [rbp + 0x17c]
movzx eax, dx
sub ecx, eax
jne 0x140021477
movzx ecx, word [rbp + 0x17e]
movzx eax, dx
sub ecx, eax
jne 0x140021477
movzx ecx, word [rbp + 0x180]
movzx eax, r12w
sub ecx, eax
test ecx, ecx
je 0x1400215af
lea rax, [rbp + 0x17c]
mov rcx, r13
inc rcx
cmp word [rax + rcx*2], r12w
jne 0x140021489
test rcx, rcx
je 0x1400215af
test byte [rbp + 0x150], 0x10
jne 0x1400215a4
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.14000ca40
test eax, eax
js 0x1400215d0
mov rdx, rbx
lea rcx, [rsp + 0x30]
call fcn.14000b364
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 0x14002152a
mov word [rdx + rax*2 - 2], r12w
lea rcx, [rsp + 0x30]
lea rdx, [rbp + 0x17c]
call fcn.140008940
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.1400035b8
test eax, eax
je 0x1400215e1
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 0x1400215af
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete___void____ptr64_]
nop dword [rax + rax]
jmp 0x1400215af
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 0x140021600
jmp 0x140021426
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 0x140021600
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete___void____ptr64_]
nop dword [rax + rax]
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 0x140003671
jmp 0x140021413