Function at 0x14008b530
Capabilities:
Get file size
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x40
mov rsi, r8
mov r14, rdx
mov r15, rcx
mov rcx, qword [0x140183048]
lea rdi, [0x140183048]
cmp rcx, rdi
je 0x14008b583
test byte [rcx + 0x1c], 1
je 0x14008b583
cmp byte [rcx + 0x19], 4
jb 0x14008b583
mov rcx, qword [rcx + 0x10]
lea r8, [0x140160bf8]
mov edx, 0x2a
call fcn.140004e50
lea rbx, str.base_stor_blbengine_service_sppmetadatamanager.cpp
test r15, r15
jne 0x14008b5a3
lea r8, str.wszFile___NULL
mov edx, 0x263
mov rcx, rbx
call fcn.14008f4c8
test r14, r14
jne 0x14008b5bc
lea r8, str.pbSppBlob___NULL
mov edx, 0x264
mov rcx, rbx
call fcn.14008f4c8
test rsi, rsi
jne 0x14008b5d5
lea r8, str.dwcSppBlob___NULL
mov edx, 0x265
mov rcx, rbx
call fcn.14008f4c8
and qword [rsp + 0x30], 0
xor r9d, r9d
and qword [r14], 0
mov edx, 0x80000000
and dword [rsi], 0
mov rcx, r15
and qword [rsp + 0x78], 0
lea r8d, [r9 + 1]
mov dword [rsp + 0x28], 0x2000080
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
nop dword [rax + rax]
mov rbp, rax
cmp rax, 0xffffffffffffffff
jne 0x14008b63b
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
jmp 0x14008b761
lea rdx, [rsp + 0x78]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
nop dword [rax + rax]
test eax, eax
jne 0x14008b672
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
jmp 0x14008b752
mov r12d, dword [rsp + 0x78]
mov ecx, r12d
call qword [sym.imp.ole32.dll_CoTaskMemAlloc]
nop dword [rax + rax]
mov rdi, rax
test rax, rax
jne 0x14008b6de
mov edi, 0x8007000e
mov rcx, qword [0x140183048]
lea rax, [0x140183048]
mov ebx, edi
cmp rcx, rax
je 0x14008b74b
test byte [rcx + 0x1c], 1
je 0x14008b74b
cmp byte [rcx + 0x19], 2
jb 0x14008b74b
mov rcx, qword [rcx + 0x10]
lea r8, [0x140160bf8]
mov edx, 0x2b
mov dword [rsp + 0x20], edi
mov r9, r15
call fcn.140005f80
jmp 0x14008b74b
mov r8, r12
xor edx, edx
mov rcx, rdi
call sub.msvcrt.dll_memset
xor ebx, ebx
lea r9, [rsp + 0x70]
and qword [rsp + 0x20], rbx
mov r8d, r12d
mov rdx, rdi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_ReadFile]
nop dword [rax + rax]
test eax, eax
jne 0x14008b72c
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
jmp 0x14008b737
mov eax, dword [rsp + 0x70]
mov qword [r14], rdi
xor edi, edi
mov dword [rsi], eax
test rdi, rdi
je 0x14008b74b
mov rcx, rdi
call qword [sym.imp.ole32.dll_CoTaskMemFree]
nop dword [rax + rax]
lea rdi, [0x140183048]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
test ebx, ebx
jns 0x14008b799
mov rcx, qword [0x140183048]
cmp rcx, rdi
je 0x14008b7c6
test byte [rcx + 0x1c], 1
je 0x14008b7a0
cmp byte [rcx + 0x19], 2
jb 0x14008b7a0
mov rcx, qword [rcx + 0x10]
lea r8, [0x140160bf8]
mov edx, 0x2c
mov dword [rsp + 0x20], ebx
mov r9, r15
call fcn.140005f80
mov rcx, qword [0x140183048]
cmp rcx, rdi
je 0x14008b7c6
test byte [rcx + 0x1c], 1
je 0x14008b7c6
cmp byte [rcx + 0x19], 4
jb 0x14008b7c6
mov rcx, qword [rcx + 0x10]
lea r8, [0x140160bf8]
mov edx, 0x2d
call fcn.140004e50
lea r11, [rsp + 0x40]
mov eax, ebx
mov rbx, qword [r11 + 0x40]
mov rbp, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret