Function at 0x1400206a4
Capabilities:
Check if file exists
Enumerate files on windows

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x268]
sub rsp, 0x340
mov qword [rbp - 0x80], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
movaps xmmword [rax - 0x38], xmm6
mov rax, qword [0x14004b018]
xor rax, rsp
mov qword [rbp + 0x220], rax
mov rsi, rcx
lea rdx, [rbp - 0x30]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
nop dword [rax + rax]
mov rbx, rax
mov qword [rbp - 0x78], rax
or r12, 0xffffffffffffffff
cmp rax, r12
jne 0x14002074f
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
cmp eax, 2
je 0x140020ab8
cmp dword [0x14004c5e8], 1
jl 0x140020ab8
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov r8d, eax
mov rdx, rsi
lea rcx, str.FindFirstFile__ls_:_lasterror__d_n
call fcn.14000b644
jmp 0x140020ab8
mov qword [rsp + 0x30], rsi
mov rdi, r12
xor r13d, r13d
inc rdi
cmp word [rsi + rdi*2], r13w
jne 0x14002075a
mov qword [rsp + 0x38], rdi
lea rcx, [rsp + 0x30]
call fcn.140028bac
cmp rax, r12
je 0x140020798
inc rax
cmp rdi, rax
cmovb rax, rdi
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x48], rax
movaps xmm6, xmmword [rsp + 0x40]
movaps xmmword [rsp + 0x30], xmm6
jmp 0x1400207a7
mov qword [rsp + 0x30], r13
mov qword [rsp + 0x38], r13
movaps xmm6, xmmword [rsp + 0x30]
lea rsi, [0x14004bc08]
lea rax, [rbp - 4]
mov rdi, r12
inc rdi
cmp word [rax + rdi*2], r13w
jne 0x1400207b5
test rdi, rdi
je 0x1400207f7
lea rcx, [rdi - 1]
mov rax, r12
cmp rcx, r12
cmovb rax, rcx
lea rdx, [rbp - 4]
lea rdx, [rdx + rax*2]
jmp 0x1400207e5
cmp rdx, rax
je 0x1400207f7
sub rdx, 2
lea rax, [rbp - 4]
cmp word [rdx], 0x2e
jne 0x1400207dc
sub rdx, rax
sar rdx, 1
jmp 0x1400207fa
mov rdx, r12
cmp rdx, r12
jne 0x140020823
cmp dword [0x14004c5e8], 1
jl 0x140020a9d
lea rcx, str.File__.ls_has_no_extension_n
mov edx, edi
lea r8, [rbp - 4]
call fcn.14000b644
jmp 0x140020a9d
movups xmm0, xmmword [str..c.cxx.cpp.c]
movdqu xmmword [rbp - 0x50], xmm0
cmp rdi, rdx
jb 0x140020b02
mov rax, rdi
sub rax, rdx
mov rcx, r12
cmp rax, r12
cmovb rcx, rax
lea rax, [rbp - 4]
lea rax, [rax + rdx*2]
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], rcx
movaps xmm0, xmmword [rsp + 0x50]
movdqa xmmword [rbp - 0x70], xmm0
lea rdx, [rbp - 0x50]
lea rcx, [rbp - 0x70]
call fcn.140020538
test al, al
jne 0x14002088b
cmp dword [0x14004c5e8], 1
jl 0x140020a9d
lea rcx, str.File__.ls_has_unrecognized_extension_n
jmp 0x140020813
test rdi, rdi
je 0x1400208c3
lea rcx, [rdi - 1]
mov rax, r12
cmp rcx, r12
cmovb rax, rcx
lea rdx, [rbp - 4]
lea rdx, [rdx + rax*2]
jmp 0x1400208b1
cmp rdx, rax
je 0x1400208c3
sub rdx, 2
lea rax, [rbp - 4]
cmp word [rdx], 0x2e
jne 0x1400208a8
sub rdx, rax
sar rdx, 1
jmp 0x1400208c6
mov rdx, r12
cmp rdx, r12
je 0x14002091d
movups xmm0, xmmword [0x14004c468]
movdqu xmmword [rbp - 0x70], xmm0
cmp rdi, rdx
jb 0x140020b02
sub rdi, rdx
mov rcx, r12
cmp rdi, r12
cmovb rcx, rdi
lea rax, [rbp - 4]
lea rax, [rax + rdx*2]
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], rcx
movaps xmm0, xmmword [rsp + 0x60]
movdqa xmmword [rbp - 0x50], xmm0
lea rdx, [rbp - 0x70]
lea rcx, [rbp - 0x50]
call fcn.140020538
test al, al
mov r15b, 1
jne 0x140020920
mov r15b, r13b
mov r14, qword [0x14004bc08]
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x48], r13
mov ecx, 0xc0
call fcn.140033c3c
mov rsi, rax
mov qword [rsp + 0x48], rax
movdqa xmmword [rbp - 0x70], xmm6
mov r9b, r15b
lea r8, [rbp - 0x30]
lea rdx, [rbp - 0x70]
lea rcx, [rax + 0x20]
call fcn.140006f78
mov qword [rsi], r14
mov qword [rsi + 8], r14
mov qword [rsi + 0x10], r14
mov word [rsi + 0x18], r13w
mov qword [rsp + 0x48], r13
mov qword [rsp + 0x20], rsi
lea r9, [rsi + 0x20]
lea rdx, [rsp + 0x70]
lea rsi, [0x14004bc08]
mov rcx, rsi
call fcn.14002a7e8
cmp byte [rsp + 0x78], r13b
jne 0x140020a9d
lea rdx, [rsp + 0x30]
lea rcx, [rbp - 0x50]
call fcn.14000448c
nop
lea rcx, [rbp - 4]
mov r8, r12
inc r8
cmp word [rcx + r8*2], r13w
jne 0x1400209af
lea rdx, [rbp - 4]
mov rcx, rax
call fcn.14000670c
mov qword [rbp - 0x60], r13
mov qword [rbp - 0x58], r13
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x70], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 0x60], xmm1
mov qword [rax + 0x10], r13
mov qword [rax + 0x18], 7
mov word [rax], r13w
lea rcx, [rbp - 0x50]
call fcn.14000230c
lea r8, [rbp - 0x70]
cmp qword [rbp - 0x58], 8
cmovae r8, qword [rbp - 0x70]
mov rdi, qword [rsp + 0x70]
lea rcx, [rdi + 0x38]
cmp qword [rcx + 0x18], 8
jb 0x140020a16
mov rcx, qword [rcx]
mov dword [rsp + 0x20], 1
mov r9d, r12d
mov edx, r12d
call qword [sym.imp.KERNEL32.dll_CompareStringOrdinal]
nop dword [rax + rax]
cmp eax, 2
jne 0x140020a51
lea rdx, [rbp - 0x70]
cmp qword [rbp - 0x58], 8
cmovae rdx, qword [rbp - 0x70]
lea rcx, str.Source_file___ls__specified_multiple_times.
call fcn.14000b794
jmp 0x140020a94
lea rax, [rdi + 0x58]
mov rcx, qword [rax + 0x10]
cmp qword [rax + 0x18], 8
jb 0x140020a63
mov rax, qword [rax]
lea r8, [rbp - 0x70]
cmp qword [rbp - 0x58], 8
cmovae r8, qword [rbp - 0x70]
lea rdx, [rdi + 0x38]
cmp qword [rdx + 0x18], 8
jb 0x140020a7f
mov rdx, qword [rdx]
mov qword [rsp + 0x20], rax
mov r9d, ecx
lea rcx, str.Source_files___ls__and___ls__have_the_same_symbol___.ls_.
call fcn.14000b758
nop
lea rcx, [rbp - 0x70]
call fcn.14000230c
lea rdx, [rbp - 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
nop dword [rax + rax]
test eax, eax
jne 0x1400207ae
cmp rbx, r12
je 0x140020acc
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindClose]
nop dword [rax + rax]
mov rcx, qword [rbp + 0x220]
xor rcx, rsp
call fcn.140033bd0
lea r11, [rsp + 0x340]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
movaps xmm6, xmmword [r11 - 0x10]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
call fcn.140006784
nop
int3