Function at 0x14008037c
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 r14, r8
mov r15, rdx
mov r12, rcx
mov rcx, qword [0x1401720a0]
lea rsi, [0x1401720a0]
cmp rcx, rsi
je 0x1400803cf
test byte [rcx + 0x1c], 1
je 0x1400803cf
cmp byte [rcx + 0x19], 4
jb 0x1400803cf
mov rcx, qword [rcx + 0x10]
lea r8, [0x14014efa8]
mov edx, 0x2a
call fcn.140004b74
lea rbx, str.base_stor_blbengine_service_sppmetadatamanager.cpp
test r12, r12
jne 0x1400803ef
lea r8, str.wszFile___NULL
mov edx, 0x263
mov rcx, rbx
call fcn.14008410c
test r15, r15
jne 0x140080408
lea r8, str.pbSppBlob___NULL
mov edx, 0x264
mov rcx, rbx
call fcn.14008410c
test r14, r14
jne 0x140080421
lea r8, str.dwcSppBlob___NULL
mov edx, 0x265
mov rcx, rbx
call fcn.14008410c
and qword [rsp + 0x30], 0
xor r9d, r9d
and qword [r15], 0
mov edx, 0x80000000
and dword [r14], 0
mov rcx, r12
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]
mov rbp, rax
cmp rax, 0xffffffffffffffff
jne 0x14008047c
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
jmp 0x14008058d
lea rdx, [rsp + 0x78]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x1400804a7
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
jmp 0x140080584
mov rbx, qword [rsp + 0x78]
mov ecx, 0xffffffff
mov eax, ebx
cmp rax, rcx
jbe 0x1400804bf
mov edi, 0x80070216
jmp 0x1400804df
mov rcx, rax
mov rdi, rax
call qword [sym.imp.ole32.dll_CoTaskMemAlloc]
mov rsi, rax
test rax, rax
jne 0x140080521
mov edi, 0x8007000e
lea rsi, [0x1401720a0]
mov rcx, qword [0x1401720a0]
cmp rcx, rsi
je 0x140080584
test byte [rcx + 0x1c], 1
je 0x140080584
cmp byte [rcx + 0x19], 2
jb 0x140080584
mov rcx, qword [rcx + 0x10]
lea r8, [0x14014efa8]
mov edx, 0x2b
mov dword [rsp + 0x20], edi
mov r9, r12
call fcn.140005b60
jmp 0x140080584
mov r8, rdi
xor edx, edx
mov rcx, rax
call sub.msvcrt.dll_memset
xor edi, edi
lea r9, [rsp + 0x70]
and qword [rsp + 0x20], rdi
mov r8d, ebx
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x140080563
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
jmp 0x14008056f
mov eax, dword [rsp + 0x70]
mov qword [r15], rsi
xor esi, esi
mov dword [r14], eax
test rsi, rsi
je 0x14008057d
mov rcx, rsi
call qword [sym.imp.ole32.dll_CoTaskMemFree]
lea rsi, [0x1401720a0]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
jns 0x1400805c5
mov rcx, qword [0x1401720a0]
cmp rcx, rsi
je 0x1400805f2
test byte [rcx + 0x1c], 1
je 0x1400805cc
cmp byte [rcx + 0x19], 2
jb 0x1400805cc
mov rcx, qword [rcx + 0x10]
lea r8, [0x14014efa8]
mov edx, 0x2c
mov dword [rsp + 0x20], edi
mov r9, r12
call fcn.140005b60
mov rcx, qword [0x1401720a0]
cmp rcx, rsi
je 0x1400805f2
test byte [rcx + 0x1c], 1
je 0x1400805f2
cmp byte [rcx + 0x19], 4
jb 0x1400805f2
mov rcx, qword [rcx + 0x10]
lea r8, [0x14014efa8]
mov edx, 0x2d
call fcn.140004b74
lea r11, [rsp + 0x40]
mov eax, edi
mov rbx, qword [r11 + 0x40]
mov rbp, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret