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

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x40
mov rsi, r8
mov r14, rdx
mov r15, rcx
mov rcx, qword [0x140173048]
lea rax, [0x140173048]
cmp rcx, rax
je 0x14008d8a1
test byte [rcx + 0x1c], 1
je 0x14008d8a1
cmp byte [rcx + 0x19], 4
jb 0x14008d8a1
mov rcx, qword [rcx + 0x10]
lea r8, [0x140155f88]
mov edx, 0x2a
call fcn.14000c328
and qword [rsp + 0x78], 0
lea rbx, str.base_stor_blbengine_service_sppmetadatamanager.cpp
test r15, r15
jne 0x14008d8c7
lea r8, str.wszFile___NULL
mov edx, 0x263
mov rcx, rbx
call fcn.1400906e0
test r14, r14
jne 0x14008d8e0
lea r8, str.pbSppBlob___NULL
mov edx, 0x264
mov rcx, rbx
call fcn.1400906e0
test rsi, rsi
jne 0x14008d8f9
lea r8, str.dwcSppBlob___NULL
mov edx, 0x265
mov rcx, rbx
call fcn.1400906e0
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 + 0x80], 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 0x14008d96e
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
lea rsi, [0x140173048]
mov edi, eax
test eax, eax
jle 0x14008da98
movzx edi, ax
or edi, 0x80070000
jmp 0x14008da98
lea rdx, [rsp + 0x80]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
nop dword [rax + rax]
test eax, eax
jne 0x14008d9b4
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
lea rsi, [0x140173048]
mov edi, eax
test eax, eax
jle 0x14008da89
movzx edi, ax
or edi, 0x80070000
jmp 0x14008da89
mov rbx, qword [rsp + 0x80]
lea rcx, [rsp + 0x78]
mov edx, ebx
mov r8d, 1
call fcn.14000d5bc
mov edi, eax
test eax, eax
jns 0x14008da16
mov rcx, qword [0x140173048]
lea rsi, [0x140173048]
cmp rcx, rsi
je 0x14008da0f
test byte [rcx + 0x1c], 1
je 0x14008da0f
cmp byte [rcx + 0x19], 2
jb 0x14008da0f
mov rcx, qword [rcx + 0x10]
lea r8, [0x140155f88]
mov edx, 0x2b
mov dword [rsp + 0x20], eax
mov r9, r15
call fcn.1400151b8
mov rbx, qword [rsp + 0x78]
jmp 0x14008da75
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x70]
mov r8d, ebx
mov rcx, rbp
mov rbx, qword [rsp + 0x78]
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_ReadFile]
nop dword [rax + rax]
test eax, eax
jne 0x14008da63
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
lea rsi, [0x140173048]
mov edi, eax
test eax, eax
jle 0x14008da75
movzx edi, ax
or edi, 0x80070000
jmp 0x14008da75
mov eax, dword [rsp + 0x70]
mov dword [rsi], eax
lea rsi, [0x140173048]
mov qword [r14], rbx
xor ebx, ebx
test rbx, rbx
je 0x14008da89
mov rcx, rbx
call qword [sym.imp.ole32.dll_CoTaskMemFree]
nop dword [rax + rax]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
test edi, edi
jns 0x14008dad0
mov rcx, qword [0x140173048]
cmp rcx, rsi
je 0x14008dafd
test byte [rcx + 0x1c], 1
je 0x14008dad7
cmp byte [rcx + 0x19], 2
jb 0x14008dad7
mov rcx, qword [rcx + 0x10]
lea r8, [0x140155f88]
mov edx, 0x2c
mov dword [rsp + 0x20], edi
mov r9, r15
call fcn.1400151b8
mov rcx, qword [0x140173048]
cmp rcx, rsi
je 0x14008dafd
test byte [rcx + 0x1c], 1
je 0x14008dafd
cmp byte [rcx + 0x19], 4
jb 0x14008dafd
mov rcx, qword [rcx + 0x10]
lea r8, [0x140155f88]
mov edx, 0x2d
call fcn.14000c328
mov rbx, qword [rsp + 0x88]
mov eax, edi
add rsp, 0x40
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret