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

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x20], rbp
push rsi
push rdi
push r12
push r13
push r15
sub rsp, 0x40
xor esi, esi
mov rbx, r8
mov qword [rdx], rsi
mov r15, rdx
mov qword [rax - 0x38], rsi
xor r9d, r9d
mov qword [r8], rsi
mov edx, 0x80000000
mov dword [rax - 0x40], 0x80
lea r8d, [rsi + 1]
mov r12, rcx
mov dword [rax - 0x48], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
nop dword [rax + rax]
mov qword [rsp + 0x80], rax
cmp rax, 0xffffffffffffffff
jne 0x14013efc9
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov edi, eax
mov rcx, qword [0x140183048]
lea rbp, [0x140183048]
cmp rcx, rbp
je 0x14013efb6
test byte [rcx + 0x1c], 1
je 0x14013efb6
cmp byte [rcx + 0x19], 2
jb 0x14013efb6
mov rcx, qword [rcx + 0x10]
lea edx, [rsi + 0xa]
mov r9, r12
mov dword [rsp + 0x20], eax
lea r8, [0x14016d548]
call fcn.140005f80
mov rcx, qword [0x140183048]
movzx ebx, di
or ebx, 0x80070000
test edi, edi
cmovle ebx, edi
jmp 0x14013f1a0
mov rdx, rbx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
nop dword [rax + rax]
lea rbp, [0x140183048]
test eax, eax
jne 0x14013f03b
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov edi, eax
mov rcx, qword [0x140183048]
cmp rcx, rbp
je 0x14013f028
test byte [rcx + 0x1c], 1
je 0x14013f028
cmp byte [rcx + 0x19], 2
jb 0x14013f028
mov rcx, qword [rcx + 0x10]
lea r8, [0x14016d548]
mov edx, 0xb
mov dword [rsp + 0x20], eax
mov r9, r12
call fcn.140005f80
movzx ebx, di
or ebx, 0x80070000
test edi, edi
cmovle ebx, edi
jmp 0x14013f185
cmp dword [rbx + 4], esi
je 0x14013f04a
mov ebx, 0x80780028
jmp 0x14013f185
mov edi, dword [rbx]
test dil, 1
jne 0x14013f040
lea eax, [rdi + 2]
cmp eax, edi
jb 0x14013f148
mov ecx, eax
mov ebx, esi
call qword [sym.imp.ole32.dll_CoTaskMemAlloc]
nop dword [rax + rax]
mov r13, rax
mov rsi, rax
xor eax, eax
test r13, r13
jne 0x14013f084
mov ebx, 0x8007000e
jmp 0x14013f185
mov rcx, qword [rsp + 0x80]
lea r9, [rsp + 0x78]
mov r8d, edi
mov qword [rsp + 0x20], rax
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_ReadFile]
nop dword [rax + rax]
xor ecx, ecx
test eax, eax
jne 0x14013f100
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov edi, eax
mov rcx, qword [0x140183048]
cmp rcx, rbp
je 0x14013f0f0
test byte [rcx + 0x1c], 1
je 0x14013f0f0
cmp byte [rcx + 0x19], 2
jb 0x14013f0f0
mov rcx, qword [rcx + 0x10]
lea r8, [0x14016d548]
mov edx, 0xd
mov dword [rsp + 0x20], eax
mov r9, r12
call fcn.140005f80
movzx ebx, di
or ebx, 0x80070000
test edi, edi
cmovle ebx, edi
jmp 0x14013f132
cmp dword [rsp + 0x78], edi
je 0x14013f120
lea r8, [0x14016d4a8]
mov edx, 0x8d
lea rcx, str.base_stor_blbwsbutilwsbfsutils.cpp
call fcn.14008f4c8
xor ecx, ecx
mov qword [r15], rsi
mov rax, rdi
shr rax, 1
mov rsi, rcx
mov word [r13 + rax*2], cx
test rsi, rsi
je 0x14013f185
mov rcx, rsi
call qword [sym.imp.ole32.dll_CoTaskMemFree]
nop dword [rax + rax]
jmp 0x14013f185
mov rcx, qword [0x140183048]
cmp rcx, rbp
je 0x14013f180
test byte [rcx + 0x1c], 1
je 0x14013f180
cmp byte [rcx + 0x19], 2
jb 0x14013f180
mov rcx, qword [rcx + 0x10]
lea r8, [0x14016d548]
mov edx, 0xc
mov dword [rsp + 0x20], 2
mov r9d, edi
call fcn.1400104d0
mov ebx, 0x80070216
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
mov rcx, qword [0x140183048]
test ebx, ebx
jns 0x14013f1d1
cmp rcx, rbp
je 0x14013f1d1
test byte [rcx + 0x1c], 1
je 0x14013f1d1
cmp byte [rcx + 0x19], 2
jb 0x14013f1d1
mov rcx, qword [rcx + 0x10]
lea r8, [0x14016d548]
mov edx, 0xe
mov dword [rsp + 0x20], ebx
mov r9, r12
call fcn.140005f80
lea r11, [rsp + 0x40]
mov eax, ebx
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r13
pop r12
pop rdi
pop rsi
ret