Function at 0x1400860d4
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 [0x14016a048]
lea rax, [0x14016a048]
cmp rcx, rax
je 0x140086121
test byte [rcx + 0x1c], 1
je 0x140086121
cmp byte [rcx + 0x19], 4
jb 0x140086121
mov rcx, qword [rcx + 0x10]
lea r8, [0x14014d8e8]
mov edx, 0x2a
call fcn.14000c0e8
and qword [rsp + 0x78], 0
lea rbx, str.base_stor_blbengine_service_sppmetadatamanager.cpp
test r15, r15
jne 0x140086147
lea r8, str.wszFile___NULL
mov edx, 0x263
mov rcx, rbx
call fcn.140088f60
test r14, r14
jne 0x140086160
lea r8, str.pbSppBlob___NULL
mov edx, 0x264
mov rcx, rbx
call fcn.140088f60
test rsi, rsi
jne 0x140086179
lea r8, str.dwcSppBlob___NULL
mov edx, 0x265
mov rcx, rbx
call fcn.140088f60
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 0x1400861ee
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
lea rsi, [0x14016a048]
mov edi, eax
test eax, eax
jle 0x140086318
movzx edi, ax
or edi, 0x80070000
jmp 0x140086318
lea rdx, [rsp + 0x80]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
nop dword [rax + rax]
test eax, eax
jne 0x140086234
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
lea rsi, [0x14016a048]
mov edi, eax
test eax, eax
jle 0x140086309
movzx edi, ax
or edi, 0x80070000
jmp 0x140086309
mov rbx, qword [rsp + 0x80]
lea rcx, [rsp + 0x78]
mov edx, ebx
mov r8d, 1
call fcn.14000d37c
mov edi, eax
test eax, eax
jns 0x140086296
mov rcx, qword [0x14016a048]
lea rsi, [0x14016a048]
cmp rcx, rsi
je 0x14008628f
test byte [rcx + 0x1c], 1
je 0x14008628f
cmp byte [rcx + 0x19], 2
jb 0x14008628f
mov rcx, qword [rcx + 0x10]
lea r8, [0x14014d8e8]
mov edx, 0x2b
mov dword [rsp + 0x20], eax
mov r9, r15
call fcn.140014f78
mov rbx, qword [rsp + 0x78]
jmp 0x1400862f5
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 0x1400862e3
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
lea rsi, [0x14016a048]
mov edi, eax
test eax, eax
jle 0x1400862f5
movzx edi, ax
or edi, 0x80070000
jmp 0x1400862f5
mov eax, dword [rsp + 0x70]
mov dword [rsi], eax
lea rsi, [0x14016a048]
mov qword [r14], rbx
xor ebx, ebx
test rbx, rbx
je 0x140086309
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 0x140086350
mov rcx, qword [0x14016a048]
cmp rcx, rsi
je 0x14008637d
test byte [rcx + 0x1c], 1
je 0x140086357
cmp byte [rcx + 0x19], 2
jb 0x140086357
mov rcx, qword [rcx + 0x10]
lea r8, [0x14014d8e8]
mov edx, 0x2c
mov dword [rsp + 0x20], edi
mov r9, r15
call fcn.140014f78
mov rcx, qword [0x14016a048]
cmp rcx, rsi
je 0x14008637d
test byte [rcx + 0x1c], 1
je 0x14008637d
cmp byte [rcx + 0x19], 4
jb 0x14008637d
mov rcx, qword [rcx + 0x10]
lea r8, [0x14014d8e8]
mov edx, 0x2d
call fcn.14000c0e8
mov rbx, qword [rsp + 0x88]
mov eax, edi
add rsp, 0x40
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret