Function at 0x1401374ac
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 0x14013756e
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
mov rcx, qword [0x140173048]
lea rsi, [0x140173048]
cmp rcx, rsi
je 0x140137558
test byte [rcx + 0x1c], 1
je 0x140137558
cmp byte [rcx + 0x19], 2
jb 0x140137558
mov rcx, qword [rcx + 0x10]
lea edx, [r14 + 0xa]
mov r9, r12
mov dword [rsp + 0x20], eax
lea r8, [0x1401627a8]
call fcn.14003fe00
mov rcx, qword [0x140173048]
test ebx, ebx
jle 0x140137735
movzx ebx, bx
or ebx, 0x80070000
jmp 0x140137733
mov rdx, rbx
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
nop dword [rax + rax]
lea rsi, [0x140173048]
test eax, eax
jne 0x1401375e3
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
mov rcx, qword [0x140173048]
cmp rcx, rsi
je 0x1401375cd
test byte [rcx + 0x1c], 1
je 0x1401375cd
cmp byte [rcx + 0x19], 2
jb 0x1401375cd
mov rcx, qword [rcx + 0x10]
lea r8, [0x1401627a8]
mov edx, 0xb
mov dword [rsp + 0x20], eax
mov r9, r12
call fcn.14003fe00
test ebx, ebx
jle 0x14013771d
movzx ebx, bx
or ebx, 0x80070000
jmp 0x14013771d
cmp dword [rbx + 4], r14d
je 0x1401375f3
mov ebx, 0x80780028
jmp 0x14013771d
mov edi, dword [rbx]
test dil, 1
jne 0x1401375e9
lea eax, [rdi + 2]
cmp eax, edi
jb 0x1401376e0
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 0x14013762b
mov ebx, 0x8007000e
jmp 0x14013771d
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 0x1401376b0
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
mov rcx, qword [0x140173048]
cmp rcx, rsi
je 0x140137692
test byte [rcx + 0x1c], 1
je 0x140137692
cmp byte [rcx + 0x19], 2
jb 0x140137692
mov rcx, qword [rcx + 0x10]
lea r8, [0x1401627a8]
mov edx, 0xd
mov dword [rsp + 0x20], eax
mov r9, r12
call fcn.14003fe00
test ebx, ebx
jle 0x14013769f
movzx ebx, bx
or ebx, 0x80070000
mov rcx, r14
call qword [sym.imp.ole32.dll_CoTaskMemFree]
nop dword [rax + rax]
jmp 0x14013771d
cmp dword [rsp + 0x78], edi
je 0x1401376d0
lea r8, str.dwBytesRead__dwBytesToRead
mov edx, 0x8d
lea rcx, [0x1401626f8]
call fcn.1400906e0
xor ecx, ecx
mov rax, rdi
mov qword [r15], r14
shr rax, 1
mov word [r14 + rax*2], cx
jmp 0x14013771d
mov rcx, qword [0x140173048]
cmp rcx, rsi
je 0x140137718
test byte [rcx + 0x1c], 1
je 0x140137718
cmp byte [rcx + 0x19], 2
jb 0x140137718
mov rcx, qword [rcx + 0x10]
lea r8, [0x1401627a8]
mov edx, 0xc
mov dword [rsp + 0x20], 2
mov r9d, edi
call fcn.14003f558
mov ebx, 0x80070216
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
mov rcx, qword [0x140173048]
test ebx, ebx
jns 0x140137764
cmp rcx, rsi
je 0x140137764
test byte [rcx + 0x1c], 1
je 0x140137764
cmp byte [rcx + 0x19], 2
jb 0x140137764
mov rcx, qword [rcx + 0x10]
lea r8, [0x1401627a8]
mov edx, 0xe
mov dword [rsp + 0x20], ebx
mov r9, r12
call fcn.1400151b8
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