Function at 0x1400fa8bc
Capabilities:
Check if file exists
Enumerate files on windows
Enumerate files recursively
Get file attributes

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x1d0]
sub rsp, 0x2d0
mov rax, qword [0x140172608]
xor rax, rsp
mov qword [rbp + 0x1c0], rax
mov rdi, rdx
mov qword [rsp + 0x60], rcx
mov rsi, rcx
mov rcx, qword [0x1401720a0]
lea rax, [0x1401720a0]
cmp rcx, rax
je 0x1400fa926
test dword [rcx + 0x1c], 0x200
je 0x1400fa926
cmp byte [rcx + 0x19], 4
jb 0x1400fa926
mov rcx, qword [rcx + 0x10]
lea r8, [0x140157e00]
mov edx, 0x4f
call fcn.140004b74
xor ebx, ebx
test rsi, rsi
jne 0x1400fa945
lea r8, str.wszPath
mov edx, 0x630
lea rcx, str.base_stor_blbengine_blbengutils_blbfsutils.cpp
call fcn.14008410c
test rdi, rdi
jne 0x1400fa962
lea r8, str.pullDirSize
mov edx, 0x631
lea rcx, str.base_stor_blbengine_blbengutils_blbfsutils.cpp
call fcn.14008410c
xor edx, edx
mov qword [rsp + 0x68], rbx
mov r8d, 0x250
mov qword [rsp + 0x48], rbx
lea rcx, [rsp + 0x70]
mov qword [rsp + 0x58], rbx
mov rsi, rbx
mov qword [rsp + 0x40], rbx
mov qword [rdi], rbx
call sub.msvcrt.dll_memset
mov r9, qword [rsp + 0x60]
xor eax, eax
or rbx, 0xffffffffffffffff
mov qword [rsp + 0x50], rax
xor ecx, ecx
inc rbx
cmp word [r9 + rbx*2], cx
jne 0x1400fa9a0
test r9, r9
jne 0x1400fa9ce
lea r8, str.wszPath
mov edx, 0x101
lea rcx, str.base_stor_blbutil_stringutils.cpp
call fcn.14008410c
mov r9, qword [rsp + 0x60]
xor ecx, ecx
mov qword [rsp + 0x38], rcx
mov qword [rsp + 0x30], rcx
test ebx, ebx
je 0x1400fa9e6
dec ebx
cmp word [r9 + rbx*2], 0x5c
je 0x1400fa9d8
mov eax, ebx
lea rdx, [rsp + 0x38]
cmp word [r9 + rax*2], 0x5c
setne cl
lea r8d, [rcx + rbx]
mov rcx, r9
call fcn.140084ef8
mov ebx, eax
test eax, eax
js 0x1400faa16
mov rax, qword [rsp + 0x38]
xor ecx, ecx
mov qword [rsp + 0x30], rax
jmp 0x1400faa1b
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x1400faa26
call qword [sym.imp.ole32.dll_CoTaskMemFree]
test ebx, ebx
js 0x1400facbf
mov rcx, qword [0x1401720a0]
lea rax, [0x1401720a0]
cmp rcx, rax
je 0x1400faa6a
test dword [rcx + 0x1c], 0x200
je 0x1400faa6a
cmp byte [rcx + 0x19], 4
jb 0x1400faa6a
mov r9, qword [rsp + 0x30]
lea r8, [0x140157e00]
mov rcx, qword [rcx + 0x10]
mov edx, 0x50
call fcn.140005afc
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1400facbf
mov rcx, qword [rsp + 0x30]
lea r8, [rsp + 0x48]
lea rdx, [0x14014fb7c]
call fcn.140084fcc
mov ebx, eax
test eax, eax
js 0x1400fac8b
mov rcx, qword [rsp + 0x30]
lea r8, [rsp + 0x58]
lea rdx, [0x140149494]
call fcn.140084fcc
mov ebx, eax
test eax, eax
js 0x1400fac8b
mov rcx, qword [rsp + 0x48]
lea rdx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov qword [rsp + 0x38], rax
cmp rax, 0xffffffffffffffff
jne 0x1400fab3b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov rcx, qword [0x1401720a0]
lea rax, [0x1401720a0]
cmp rcx, rax
je 0x1400fab28
test dword [rcx + 0x1c], 0x200
je 0x1400fab28
cmp byte [rcx + 0x19], 2
jb 0x1400fab28
mov r9, qword [rsp + 0x48]
lea r8, [0x140157e00]
mov rcx, qword [rcx + 0x10]
mov edx, 0x51
mov dword [rsp + 0x20], edi
call fcn.140005b60
mov rcx, qword [0x1401720a0]
movzx ebx, di
or ebx, 0x80070000
test edi, edi
cmovle ebx, edi
jmp 0x1400fac92
test rsi, rsi
je 0x1400fab50
mov rcx, rsi
call qword [sym.imp.ole32.dll_CoTaskMemFree]
xor esi, esi
mov qword [rsp + 0x40], rsi
movzx ecx, word [rbp - 0x64]
cmp cx, word [0x14014fb84]
movzx eax, word [rbp - 0x62]
jne 0x1400fab6e
cmp ax, word [0x14014fb86]
je 0x1400fabff
cmp cx, word [0x14014fb88]
jne 0x1400fab8d
cmp ax, word [0x14014fb8a]
jne 0x1400fab8d
movzx eax, word [rbp - 0x60]
cmp ax, word [0x14014fb8c]
je 0x1400fabff
lea rdx, [0x14014eaa0]
lea rcx, [rbp - 0x64]
call qword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
je 0x1400fabff
mov rcx, qword [rsp + 0x58]
lea r8, [rsp + 0x40]
lea rdx, [rbp - 0x64]
call fcn.140084fcc
mov rsi, qword [rsp + 0x40]
mov ebx, eax
test eax, eax
js 0x1400fac72
test byte [rsp + 0x70], 0x10
je 0x1400fabe9
lea rdx, [rsp + 0x68]
mov rcx, rsi
call fcn.1400fa8bc
mov ebx, eax
test eax, eax
js 0x1400fac72
mov rax, qword [rsp + 0x68]
jmp 0x1400fabfc
mov eax, dword [rbp - 0x70]
mov dword [rsp + 0x50], eax
mov eax, dword [rbp - 0x74]
mov dword [rsp + 0x54], eax
mov rax, qword [rsp + 0x50]
add qword [rdi], rax
mov rcx, qword [rsp + 0x38]
lea rdx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x1400fab3b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp eax, 0x12
je 0x1400fac72
mov rcx, qword [0x1401720a0]
lea rax, [0x1401720a0]
cmp rcx, rax
je 0x1400fac64
test dword [rcx + 0x1c], 0x200
je 0x1400fac64
cmp byte [rcx + 0x19], 2
jb 0x1400fac64
mov r9, qword [rsp + 0x48]
lea r8, [0x140157e00]
mov rcx, qword [rcx + 0x10]
mov edx, 0x52
mov dword [rsp + 0x20], edi
call fcn.140005b60
movzx ebx, di
or ebx, 0x80070000
test edi, edi
cmovle ebx, edi
test rsi, rsi
je 0x1400fac80
mov rcx, rsi
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_FindClose]
mov rcx, qword [0x1401720a0]
mov rax, qword [rsp + 0x48]
test rax, rax
je 0x1400facac
mov rcx, rax
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rcx, qword [0x1401720a0]
mov rax, qword [rsp + 0x58]
test rax, rax
je 0x1400facc6
mov rcx, rax
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rcx, qword [0x1401720a0]
mov rax, qword [rsp + 0x30]
test rax, rax
je 0x1400face0
mov rcx, rax
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rcx, qword [0x1401720a0]
test ebx, ebx
jns 0x1400fad26
lea rdi, [0x1401720a0]
cmp rcx, rdi
je 0x1400fad56
test dword [rcx + 0x1c], 0x200
je 0x1400fad2d
cmp byte [rcx + 0x19], 2
jb 0x1400fad2d
mov r9, qword [rsp + 0x60]
lea r8, [0x140157e00]
mov rcx, qword [rcx + 0x10]
mov edx, 0x53
mov dword [rsp + 0x20], ebx
call fcn.140005b60
mov rcx, qword [0x1401720a0]
jmp 0x1400fad2d
lea rdi, [0x1401720a0]
cmp rcx, rdi
je 0x1400fad56
test dword [rcx + 0x1c], 0x200
je 0x1400fad56
cmp byte [rcx + 0x19], 4
jb 0x1400fad56
mov rcx, qword [rcx + 0x10]
lea r8, [0x140157e00]
mov edx, 0x54
call fcn.140004b74
mov eax, ebx
mov rcx, qword [rbp + 0x1c0]
xor rcx, rsp
call fcn.140141cf0
mov rbx, qword [rsp + 0x300]
add rsp, 0x2d0
pop rdi
pop rsi
pop rbp
ret