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

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
xor r14d, r14d
mov rbx, r8
mov qword [rdx], r14
mov r15, rdx
mov qword [rax - 0x38], r14
xor r9d, r9d
mov qword [r8], r14
mov edx, 0x80000000
mov dword [rax - 0x40], 0x80
lea r8d, [r14 + 1]
mov r12, rcx
mov dword [rax - 0x48], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
nop dword [rax + rax]
mov r13, rax
cmp rax, 0xffffffffffffffff
jne 0x14012fdee
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
mov rcx, qword [0x14016a048]
lea rsi, [0x14016a048]
cmp rcx, rsi
je 0x14012fdd8
test byte [rcx + 0x1c], 1
je 0x14012fdd8
cmp byte [rcx + 0x19], 2
jb 0x14012fdd8
mov rcx, qword [rcx + 0x10]
lea edx, [r14 + 0xa]
mov r9, r12
mov dword [rsp + 0x20], eax
lea r8, [0x14015a108]
call fcn.14003fbc0
mov rcx, qword [0x14016a048]
test ebx, ebx
jle 0x14012ffb5
movzx ebx, bx
or ebx, 0x80070000
jmp 0x14012ffb3
mov rdx, rbx
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
nop dword [rax + rax]
lea rsi, [0x14016a048]
test eax, eax
jne 0x14012fe63
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
mov rcx, qword [0x14016a048]
cmp rcx, rsi
je 0x14012fe4d
test byte [rcx + 0x1c], 1
je 0x14012fe4d
cmp byte [rcx + 0x19], 2
jb 0x14012fe4d
mov rcx, qword [rcx + 0x10]
lea r8, [0x14015a108]
mov edx, 0xb
mov dword [rsp + 0x20], eax
mov r9, r12
call fcn.14003fbc0
test ebx, ebx
jle 0x14012ff9d
movzx ebx, bx
or ebx, 0x80070000
jmp 0x14012ff9d
cmp dword [rbx + 4], r14d
je 0x14012fe73
mov ebx, 0x80780028
jmp 0x14012ff9d
mov edi, dword [rbx]
test dil, 1
jne 0x14012fe69
lea eax, [rdi + 2]
cmp eax, edi
jb 0x14012ff60
mov ecx, eax
mov ebx, r14d
call qword [sym.imp.ole32.dll_CoTaskMemAlloc]
nop dword [rax + rax]
mov r14, rax
xor eax, eax
test r14, r14
jne 0x14012feab
mov ebx, 0x8007000e
jmp 0x14012ff9d
lea r9, [rsp + 0x78]
mov qword [rsp + 0x20], rax
mov r8d, edi
mov rdx, r14
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_ReadFile]
nop dword [rax + rax]
xor ecx, ecx
test eax, eax
jne 0x14012ff30
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
mov rcx, qword [0x14016a048]
cmp rcx, rsi
je 0x14012ff12
test byte [rcx + 0x1c], 1
je 0x14012ff12
cmp byte [rcx + 0x19], 2
jb 0x14012ff12
mov rcx, qword [rcx + 0x10]
lea r8, [0x14015a108]
mov edx, 0xd
mov dword [rsp + 0x20], eax
mov r9, r12
call fcn.14003fbc0
test ebx, ebx
jle 0x14012ff1f
movzx ebx, bx
or ebx, 0x80070000
mov rcx, r14
call qword [sym.imp.ole32.dll_CoTaskMemFree]
nop dword [rax + rax]
jmp 0x14012ff9d
cmp dword [rsp + 0x78], edi
je 0x14012ff50
lea r8, [0x14015a058]
mov edx, 0x8d
lea rcx, str.base_stor_blbwsbutilwsbfsutils.cpp
call fcn.140088f60
xor ecx, ecx
mov rax, rdi
mov qword [r15], r14
shr rax, 1
mov word [r14 + rax*2], cx
jmp 0x14012ff9d
mov rcx, qword [0x14016a048]
cmp rcx, rsi
je 0x14012ff98
test byte [rcx + 0x1c], 1
je 0x14012ff98
cmp byte [rcx + 0x19], 2
jb 0x14012ff98
mov rcx, qword [rcx + 0x10]
lea r8, [0x14015a108]
mov edx, 0xc
mov dword [rsp + 0x20], 2
mov r9d, edi
call fcn.14003f318
mov ebx, 0x80070216
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
mov rcx, qword [0x14016a048]
test ebx, ebx
jns 0x14012ffe4
cmp rcx, rsi
je 0x14012ffe4
test byte [rcx + 0x1c], 1
je 0x14012ffe4
cmp byte [rcx + 0x19], 2
jb 0x14012ffe4
mov rcx, qword [rcx + 0x10]
lea r8, [0x14015a108]
mov edx, 0xe
mov dword [rsp + 0x20], ebx
mov r9, r12
call fcn.140014f78
lea r11, [rsp + 0x40]
mov eax, ebx
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret