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

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x27]
sub rsp, 0xf0
mov rax, qword [0x14008b1c0]
xor rax, rsp
mov qword [rbp + 0x17], rax
movups xmm0, xmmword [r8]
mov rax, qword gs:[0x58]
lea r8, [rbp - 0x79]
mov r12, rdx
mov qword [rbp - 0x39], rdx
mov edx, dword [0x14008be84]
mov r15, rcx
mov qword [rbp - 0x41], rcx
xor edi, edi
mov ecx, 8
movaps xmmword [rbp - 0x79], xmm0
mov rax, qword [rax + rdx*8]
mov rdx, qword [rcx + rax]
lea rcx, [rbp - 0x31]
mov r14, qword [rdx]
mov rdx, r14
mov rax, qword [r14 + 8]
mov rsi, qword [rax + 0x18]
add rsi, qword [rax + 0x10]
call fcn.140015aa0
mov qword [rsp + 0x30], rdi
lea r8d, [rdi + 1]
mov dword [rsp + 0x28], 0x80
xor r9d, r9d
mov edx, 0x80000000
mov dword [rsp + 0x20], 3
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, edi
mov rdx, rsi
cmp rax, 0xffffffffffffffff
mov rcx, r14
cmovne rbx, rax
call fcn.140001240
xorps xmm0, xmm0
movups xmmword [rbp - 0x61], xmm0
test rbx, rbx
je 0x140004ce8
lea rdx, [rbp - 0x21]
mov rcx, rbx
movups xmmword [rbp - 0x51], xmm0
call qword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
test eax, eax
je 0x140004ce8
mov ecx, dword [rbp - 1]
lea rdx, [rbp - 0xd]
mov eax, dword [rbp + 3]
shl rcx, 0x20
or rcx, rax
mov qword [rbp - 0x61], rcx
lea rcx, [rbp - 0x59]
call fcn.1400178d0
lea rdx, [rbp - 0x1d]
lea rcx, [rbp - 0x51]
call fcn.1400178d0
mov rax, qword [r12 + 8]
mov rcx, r12
mov r13, qword [rbp - 0x61]
mov rdx, r13
mov qword [rbp - 0x71], r13
mov rsi, qword [rax + 0x18]
add rsi, qword [rax + 0x10]
mov qword [rbp - 0x31], rsi
call fcn.1400012c0
mov qword [rbp - 0x79], rax
test rbx, rbx
je 0x140004dd4
lea rdx, [rbp - 0x69]
mov qword [rbp - 0x69], rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
mov rax, qword [rbp - 0x69]
mov r14, rdi
cmp r13, rax
mov rcx, rax
mov r15, rdi
cmovb rcx, r13
test rax, rax
cmovne rax, rdi
cmp rax, rcx
mov r12, rax
cmovbe r12, rcx
cmovbe rcx, rax
sub r12, rcx
je 0x140004dc9
mov r13, qword [rbp - 0x79]
nop dword [rax]
mov ecx, dword [0x14008b038]
lea rdx, [r14 + r13]
mov rsi, r12
mov dword [rsp + 0x40], edi
sub rsi, r14
mov qword [rbp - 0x21], rdi
cmp rsi, rcx
mov qword [rbp - 0x19], rdi
mov rax, r15
mov qword [rbp - 9], rdi
cmova esi, ecx
mov dword [rbp - 0x11], r15d
shr rax, 0x20
lea r9, [rsp + 0x40]
mov dword [rbp - 0xd], eax
mov r8d, esi
lea rax, [rbp - 0x21]
mov rcx, rbx
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [rsp + 0x40]
add r15, rcx
add r14, rcx
cmp ecx, esi
jne 0x140004dc1
cmp r14, r12
jb 0x140004d60
mov r13, qword [rbp - 0x61]
mov rsi, qword [rbp - 0x31]
mov r15, qword [rbp - 0x41]
mov rdi, r14
mov r12, qword [rbp - 0x39]
cmp rdi, r13
jae 0x140004de9
lea rdx, [rdi + rsi]
mov rcx, r12
call fcn.140001240
mov qword [rbp - 0x71], rdi
movups xmm0, xmmword [rbp - 0x79]
movups xmmword [r15], xmm0
test rbx, rbx
je 0x140004dff
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, r15
mov rcx, qword [rbp + 0x17]
xor rcx, rsp
call fcn.1400184d0
mov rbx, qword [rsp + 0x130]
add rsp, 0xf0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret