Function at 0x1400f87c0
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
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1d0]
sub rsp, 0x2d0
mov rax, qword [0x140170608]
xor rax, rsp
mov qword [rbp + 0x1c0], rax
mov rdi, rdx
mov qword [rsp + 0x60], rcx
mov r14, rcx
mov rcx, qword [0x140170048]
lea rax, [0x140170048]
cmp rcx, rax
je 0x1400f8832
test dword [rcx + 0x1c], 0x200
je 0x1400f8832
cmp byte [rcx + 0x19], 4
jb 0x1400f8832
mov rcx, qword [rcx + 0x10]
lea r8, [0x1401573e8]
mov edx, 0x4f
call fcn.140004c54
xor r12d, r12d
test r14, r14
jne 0x1400f8852
lea r8, str.wszPath
mov edx, 0x630
lea rcx, str.base_stor_blbengine_blbengutils_blbfsutils.cpp
call fcn.14008388c
test rdi, rdi
jne 0x1400f886f
lea r8, str.pullDirSize
mov edx, 0x631
lea rcx, str.base_stor_blbengine_blbengutils_blbfsutils.cpp
call fcn.14008388c
xor edx, edx
mov qword [rsp + 0x58], r12
mov r8d, 0x250
mov qword [rsp + 0x50], r12
lea rcx, [rsp + 0x70]
mov qword [rsp + 0x38], r12
mov r15, r12
mov qword [rsp + 0x30], r12
mov rsi, r12
mov qword [rdi], r12
call sub.msvcrt.dll_memset
or rbx, 0xffffffffffffffff
mov qword [rsp + 0x48], r12
inc rbx
cmp word [r14 + rbx*2], r12w
jne 0x1400f88a7
test r14, r14
jne 0x1400f88ce
lea r8, str.wszPath
mov edx, 0x101
lea rcx, str.base_stor_blbutil_stringutils.cpp
call fcn.14008388c
mov qword [rsp + 0x40], r12
mov r13, r12
test ebx, ebx
je 0x1400f88e4
dec ebx
cmp word [r14 + rbx*2], 0x5c
je 0x1400f88d6
mov ecx, r12d
mov eax, ebx
lea rdx, [rsp + 0x40]
cmp word [r14 + rax*2], 0x5c
setne cl
lea r8d, [rcx + rbx]
mov rcx, r14
call fcn.14008468c
mov ebx, eax
test eax, eax
js 0x1400f8913
mov r13, qword [rsp + 0x40]
mov rcx, r12
jmp 0x1400f8918
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x1400f8923
call qword [sym.imp.ole32.dll_CoTaskMemFree]
test ebx, ebx
js 0x1400f8c17
mov rcx, qword [0x140170048]
lea rax, [0x140170048]
cmp rcx, rax
je 0x1400f8965
test dword [rcx + 0x1c], 0x200
je 0x1400f8965
cmp byte [rcx + 0x19], 4
jb 0x1400f8965
mov rcx, qword [rcx + 0x10]
lea r8, [0x1401573e8]
mov edx, 0x50
mov r9, r13
call fcn.140005bdc
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1400f8c17
lea r8, [rsp + 0x50]
mov rcx, r13
lea rdx, [0x14014eecc]
call fcn.140084760
mov r14, qword [rsp + 0x50]
mov ebx, eax
test eax, eax
js 0x1400f8b88
lea r8, [rsp + 0x38]
mov rcx, r13
lea rdx, [0x1401487f8]
call fcn.140084760
mov ebx, eax
test eax, eax
js 0x1400f8b83
lea rdx, [rsp + 0x70]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov r12, rax
cmp rax, 0xffffffffffffffff
jne 0x1400f8a34
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov rcx, qword [0x140170048]
lea rax, [0x140170048]
cmp rcx, rax
je 0x1400f8a1c
test dword [rcx + 0x1c], 0x200
je 0x1400f8a1c
cmp byte [rcx + 0x19], 2
jb 0x1400f8a1c
mov rcx, qword [rcx + 0x10]
lea edx, [r12 + 0x52]
mov r9, r14
mov dword [rsp + 0x20], edi
lea r8, [0x1401573e8]
call fcn.140005c44
mov rcx, qword [0x140170048]
mov r15, qword [rsp + 0x38]
movzx ebx, di
or ebx, 0x80070000
test edi, edi
cmovle ebx, edi
jmp 0x1400f8b8f
mov r15, qword [rsp + 0x38]
test rsi, rsi
je 0x1400f8a4e
mov rcx, rsi
call qword [sym.imp.ole32.dll_CoTaskMemFree]
xor esi, esi
mov qword [rsp + 0x30], rsi
movzx ecx, word [rbp - 0x64]
cmp cx, word [0x14014eed4]
movzx eax, word [rbp - 0x62]
jne 0x1400f8a6c
cmp ax, word [0x14014eed6]
je 0x1400f8afb
cmp cx, word [0x14014eed8]
jne 0x1400f8a8b
cmp ax, word [0x14014eeda]
jne 0x1400f8a8b
movzx eax, word [rbp - 0x60]
cmp ax, word [0x14014eedc]
je 0x1400f8afb
lea rdx, [0x14014de00]
lea rcx, [rbp - 0x64]
call qword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
je 0x1400f8afb
lea r8, [rsp + 0x30]
mov rcx, r15
lea rdx, [rbp - 0x64]
call fcn.140084760
mov rsi, qword [rsp + 0x30]
mov ebx, eax
test eax, eax
js 0x1400f8b6a
test byte [rsp + 0x70], 0x10
je 0x1400f8ae5
lea rdx, [rsp + 0x58]
mov rcx, rsi
call fcn.1400f87c0
mov ebx, eax
test eax, eax
js 0x1400f8b6a
mov rax, qword [rsp + 0x58]
jmp 0x1400f8af8
mov eax, dword [rbp - 0x70]
mov dword [rsp + 0x48], eax
mov eax, dword [rbp - 0x74]
mov dword [rsp + 0x4c], eax
mov rax, qword [rsp + 0x48]
add qword [rdi], rax
lea rdx, [rsp + 0x70]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x1400f8a39
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp eax, 0x12
je 0x1400f8b6a
mov rcx, qword [0x140170048]
lea rax, [0x140170048]
cmp rcx, rax
je 0x1400f8b5c
test dword [rcx + 0x1c], 0x200
je 0x1400f8b5c
cmp byte [rcx + 0x19], 2
jb 0x1400f8b5c
mov rcx, qword [rcx + 0x10]
lea r8, [0x1401573e8]
mov edx, 0x52
mov dword [rsp + 0x20], edi
mov r9, r14
call fcn.140005c44
movzx ebx, di
or ebx, 0x80070000
test edi, edi
cmovle ebx, edi
test rsi, rsi
je 0x1400f8b78
mov rcx, rsi
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x1400f8b88
mov r15, qword [rsp + 0x38]
mov rcx, qword [0x140170048]
test r14, r14
je 0x1400f8ba4
mov rcx, r14
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rcx, qword [0x140170048]
test r15, r15
je 0x1400f8bb9
mov rcx, r15
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rcx, qword [0x140170048]
mov r14, qword [rsp + 0x60]
test r13, r13
je 0x1400f8bd3
mov rcx, r13
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rcx, qword [0x140170048]
test ebx, ebx
jns 0x1400f8c20
lea rdi, [0x140170048]
cmp rcx, rdi
je 0x1400f8c50
test dword [rcx + 0x1c], 0x200
je 0x1400f8c27
cmp byte [rcx + 0x19], 2
jb 0x1400f8c27
mov rcx, qword [rcx + 0x10]
lea r8, [0x1401573e8]
mov edx, 0x53
mov dword [rsp + 0x20], ebx
mov r9, r14
call fcn.140005c44
mov rcx, qword [0x140170048]
jmp 0x1400f8c27
mov rcx, qword [0x140170048]
jmp 0x1400f8bbe
lea rdi, [0x140170048]
cmp rcx, rdi
je 0x1400f8c50
test dword [rcx + 0x1c], 0x200
je 0x1400f8c50
cmp byte [rcx + 0x19], 4
jb 0x1400f8c50
mov rcx, qword [rcx + 0x10]
lea r8, [0x1401573e8]
mov edx, 0x54
call fcn.140004c54
mov eax, ebx
mov rcx, qword [rbp + 0x1c0]
xor rcx, rsp
call fcn.140141340
mov rbx, qword [rsp + 0x320]
add rsp, 0x2d0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret