Function at 0x1400f7200
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 [0x14016f608]
xor rax, rsp
mov qword [rbp + 0x1c0], rax
mov rdi, rdx
mov qword [rsp + 0x60], rcx
mov rsi, rcx
mov rcx, qword [0x14016f048]
lea rax, [0x14016f048]
cmp rcx, rax
je 0x1400f726a
test dword [rcx + 0x1c], 0x200
je 0x1400f726a
cmp byte [rcx + 0x19], 4
jb 0x1400f726a
mov rcx, qword [rcx + 0x10]
lea r8, [0x140154378]
mov edx, 0x4f
call fcn.1400049d8
xor ebx, ebx
test rsi, rsi
jne 0x1400f7289
lea r8, str.wszPath
mov edx, 0x630
lea rcx, str.base_stor_blbengine_blbengutils_blbfsutils.cpp
call fcn.140082070
test rdi, rdi
jne 0x1400f72a6
lea r8, str.pullDirSize
mov edx, 0x631
lea rcx, str.base_stor_blbengine_blbengutils_blbfsutils.cpp
call fcn.140082070
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 0x1400f72e4
test r9, r9
jne 0x1400f7312
lea r8, str.wszPath
mov edx, 0x101
lea rcx, str.base_stor_blbutil_stringutils.cpp
call fcn.140082070
mov r9, qword [rsp + 0x60]
xor ecx, ecx
mov qword [rsp + 0x38], rcx
mov qword [rsp + 0x30], rcx
test ebx, ebx
je 0x1400f732a
dec ebx
cmp word [r9 + rbx*2], 0x5c
je 0x1400f731c
mov eax, ebx
lea rdx, [rsp + 0x38]
cmp word [r9 + rax*2], 0x5c
setne cl
lea r8d, [rcx + rbx]
mov rcx, r9
call fcn.140082e28
mov ebx, eax
test eax, eax
js 0x1400f735a
mov rax, qword [rsp + 0x38]
xor ecx, ecx
mov qword [rsp + 0x30], rax
jmp 0x1400f735f
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x1400f736a
call qword [sym.imp.ole32.dll_CoTaskMemFree]
test ebx, ebx
js 0x1400f7603
mov rcx, qword [0x14016f048]
lea rax, [0x14016f048]
cmp rcx, rax
je 0x1400f73ae
test dword [rcx + 0x1c], 0x200
je 0x1400f73ae
cmp byte [rcx + 0x19], 4
jb 0x1400f73ae
mov r9, qword [rsp + 0x30]
lea r8, [0x140154378]
mov rcx, qword [rcx + 0x10]
mov edx, 0x50
call fcn.1400058d8
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1400f7603
mov rcx, qword [rsp + 0x30]
lea r8, [rsp + 0x48]
lea rdx, [0x14014be4c]
call fcn.140082ef4
mov ebx, eax
test eax, eax
js 0x1400f75cf
mov rcx, qword [rsp + 0x30]
lea r8, [rsp + 0x58]
lea rdx, [0x140145788]
call fcn.140082ef4
mov ebx, eax
test eax, eax
js 0x1400f75cf
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 0x1400f747f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov rcx, qword [0x14016f048]
lea rax, [0x14016f048]
cmp rcx, rax
je 0x1400f746c
test dword [rcx + 0x1c], 0x200
je 0x1400f746c
cmp byte [rcx + 0x19], 2
jb 0x1400f746c
mov r9, qword [rsp + 0x48]
lea r8, [0x140154378]
mov rcx, qword [rcx + 0x10]
mov edx, 0x51
mov dword [rsp + 0x20], edi
call fcn.140005938
mov rcx, qword [0x14016f048]
movzx ebx, di
or ebx, 0x80070000
test edi, edi
cmovle ebx, edi
jmp 0x1400f75d6
test rsi, rsi
je 0x1400f7494
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 [0x14014be54]
movzx eax, word [rbp - 0x62]
jne 0x1400f74b2
cmp ax, word [0x14014be56]
je 0x1400f7543
cmp cx, word [0x14014be58]
jne 0x1400f74d1
cmp ax, word [0x14014be5a]
jne 0x1400f74d1
movzx eax, word [rbp - 0x60]
cmp ax, word [0x14014be5c]
je 0x1400f7543
lea rdx, [0x14014ad80]
lea rcx, [rbp - 0x64]
call qword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
je 0x1400f7543
mov rcx, qword [rsp + 0x58]
lea r8, [rsp + 0x40]
lea rdx, [rbp - 0x64]
call fcn.140082ef4
mov rsi, qword [rsp + 0x40]
mov ebx, eax
test eax, eax
js 0x1400f75b6
test byte [rsp + 0x70], 0x10
je 0x1400f752d
lea rdx, [rsp + 0x68]
mov rcx, rsi
call fcn.1400f7200
mov ebx, eax
test eax, eax
js 0x1400f75b6
mov rax, qword [rsp + 0x68]
jmp 0x1400f7540
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 0x1400f747f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp eax, 0x12
je 0x1400f75b6
mov rcx, qword [0x14016f048]
lea rax, [0x14016f048]
cmp rcx, rax
je 0x1400f75a8
test dword [rcx + 0x1c], 0x200
je 0x1400f75a8
cmp byte [rcx + 0x19], 2
jb 0x1400f75a8
mov r9, qword [rsp + 0x48]
lea r8, [0x140154378]
mov rcx, qword [rcx + 0x10]
mov edx, 0x52
mov dword [rsp + 0x20], edi
call fcn.140005938
movzx ebx, di
or ebx, 0x80070000
test edi, edi
cmovle ebx, edi
test rsi, rsi
je 0x1400f75c4
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 [0x14016f048]
mov rax, qword [rsp + 0x48]
test rax, rax
je 0x1400f75f0
mov rcx, rax
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rcx, qword [0x14016f048]
mov rax, qword [rsp + 0x58]
test rax, rax
je 0x1400f760a
mov rcx, rax
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rcx, qword [0x14016f048]
mov rax, qword [rsp + 0x30]
test rax, rax
je 0x1400f7624
mov rcx, rax
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rcx, qword [0x14016f048]
test ebx, ebx
jns 0x1400f766a
lea rdi, [0x14016f048]
cmp rcx, rdi
je 0x1400f769a
test dword [rcx + 0x1c], 0x200
je 0x1400f7671
cmp byte [rcx + 0x19], 2
jb 0x1400f7671
mov r9, qword [rsp + 0x60]
lea r8, [0x140154378]
mov rcx, qword [rcx + 0x10]
mov edx, 0x53
mov dword [rsp + 0x20], ebx
call fcn.140005938
mov rcx, qword [0x14016f048]
jmp 0x1400f7671
lea rdi, [0x14016f048]
cmp rcx, rdi
je 0x1400f769a
test dword [rcx + 0x1c], 0x200
je 0x1400f769a
cmp byte [rcx + 0x19], 4
jb 0x1400f769a
mov rcx, qword [rcx + 0x10]
lea r8, [0x140154378]
mov edx, 0x54
call fcn.1400049d8
mov eax, ebx
mov rcx, qword [rbp + 0x1c0]
xor rcx, rsp
call fcn.14013e2a0
mov rbx, qword [rsp + 0x300]
add rsp, 0x2d0
pop rdi
pop rsi
pop rbp
ret