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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
sub rsp, 0xa70
mov rsi, r9
mov rbx, r8
mov rbp, rdx
mov rdi, rcx
call fcn.140008384
xor r13d, r13d
mov r12d, 0x1000000
cmp eax, r13d
je 0x140006dbd
cmp rbx, r13
je 0x140006c43
cmp word [rbx], r13w
je 0x140006c43
lea rcx, [rsp + 0x270]
mov rdx, rbx
call fcn.140011b5c
jmp 0x140006c56
lea rdx, [rsp + 0x270]
mov r8, r12
mov rcx, rbp
call fcn.14001191c
or rbx, 0xffffffffffffffff
lea rdx, [rsp + 0x20]
cmp rdi, rbx
jne 0x140006ca0
lea rcx, [rsp + 0x270]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rdi, rax
cmp rax, rbx
jne 0x140006ccc
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x140006c92
cmp eax, 3
je 0x140006c92
cmp eax, 0x12
lea eax, [rbx + 2]
jne 0x140006c95
mov eax, r13d
mov byte [rsi + 0x109c], al
jmp 0x140006f3f
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
cmp eax, r13d
jne 0x140006cc3
mov rdi, rbx
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
setne al
mov byte [rsi + 0x109c], al
cmp rdi, rbx
je 0x140006f3f
lea rdx, [rsp + 0x270]
lea rcx, [rsi + 0x400]
call fcn.140011b5c
lea rcx, [rsi + 0x400]
call fcn.140008a00
lea rdx, [rsp + 0x4c]
mov rcx, rax
call fcn.140011b5c
lea rcx, [rsi + 0x400]
mov r8, r12
mov rdx, rsi
call fcn.1400118e4
mov eax, dword [rsp + 0x40]
mov r11d, dword [rsp + 0x3c]
shl r11, 0x20
lea rdx, [rsi + 0xc80]
lea rcx, [rsp + 0x254]
add r11, rax
mov eax, dword [rsp + 0x20]
mov r8, r12
mov dword [rsi + 0xc08], eax
mov qword [rsi + 0xc00], r11
call fcn.1400118e4
mov rax, qword [rsp + 0x2c]
mov r11, qword [rsp + 0x24]
lea rdx, [rsp + 0x34]
mov qword [rsi + 0x1088], rax
mov rax, qword [rsp + 0x34]
lea rcx, [rsi + 0xc14]
mov qword [rsi + 0x1090], rax
mov qword [rsi + 0x1080], r11
call fcn.140011704
lea rcx, [rsi + 0xc38]
lea rdx, [rsp + 0x24]
call fcn.140011704
lea rcx, [rsi + 0xc5c]
lea rdx, [rsp + 0x2c]
call fcn.140011704
lea rcx, [rsi + 0xc14]
call fcn.140011640
lea rcx, [rsi + 0x400]
mov dword [rsi + 0xc0c], eax
call fcn.140011160
jmp 0x140006f32
cmp rbp, r13
je 0x140006dda
cmp byte [rbp], r13b
je 0x140006dda
lea rcx, [rsp + 0x270]
mov rdx, rbp
call fcn.14000c978
jmp 0x140006ded
lea rdx, [rsp + 0x270]
mov r8, r12
mov rcx, rbx
call fcn.1400118e4
or rbx, 0xffffffffffffffff
lea rdx, [rsp + 0x20]
cmp rdi, rbx
jne 0x140006e29
lea rcx, [rsp + 0x270]
call qword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov rdi, rax
cmp rax, rbx
jne 0x140006e55
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x140006e24
cmp eax, 3
lea eax, [rbx + 2]
jne 0x140006e46
mov eax, r13d
jmp 0x140006e46
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindNextFileA]
cmp eax, r13d
jne 0x140006e4c
mov rdi, rbx
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
setne al
mov byte [rsi + 0x109c], al
cmp rdi, rbx
je 0x140006f3f
lea rdx, [rsp + 0x270]
mov rcx, rsi
call fcn.14000c978
mov rcx, rsi
call fcn.140008968
lea rdx, [rsp + 0x4c]
mov rcx, rax
call fcn.14000c978
lea rdx, [rsi + 0x400]
mov r8, r12
mov rcx, rsi
call fcn.14001191c
mov eax, dword [rsp + 0x40]
mov r11d, dword [rsp + 0x3c]
shl r11, 0x20
lea rcx, [rsi + 0xc80]
lea rdx, [rsp + 0x150]
add r11, rax
mov eax, dword [rsp + 0x20]
mov dword [rsi + 0xc08], eax
mov qword [rsi + 0xc00], r11
call fcn.14000c978
mov rax, qword [rsp + 0x2c]
mov r11, qword [rsp + 0x24]
lea rdx, [rsp + 0x34]
mov qword [rsi + 0x1088], rax
mov rax, qword [rsp + 0x34]
lea rcx, [rsi + 0xc14]
mov qword [rsi + 0x1090], rax
mov qword [rsi + 0x1080], r11
call fcn.140011704
lea rcx, [rsi + 0xc38]
lea rdx, [rsp + 0x24]
call fcn.140011704
lea rcx, [rsi + 0xc5c]
lea rdx, [rsp + 0x2c]
call fcn.140011704
lea rcx, [rsi + 0xc14]
call fcn.140011640
mov rcx, rsi
mov dword [rsi + 0xc0c], eax
call fcn.140011144
cmp al, r13b
je 0x140006f3f
mov word [rsi + 0x400], r13w
lea r11, [rsp + 0xa70]
mov dword [rsi + 0x1098], r13d
mov rax, rdi
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r13
pop r12
pop rdi
ret