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

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x50]
sub rsp, 0x150
mov qword [rbp - 0x48], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
movaps xmmword [rax - 0x48], xmm6
mov rax, qword [0x1802247b8]
xor rax, rsp
mov qword [rbp + 0x38], rax
mov rsi, rdx
mov rdi, rcx
mov byte [rcx + 0x10], 0
mov rax, qword [rcx]
call qword [rax]
mov ecx, 8
call fcn.180139f6c
mov rbx, rax
mov qword [rsp + 0x30], rax
xor r13d, r13d
test rax, rax
je 0x18007af4c
xor eax, eax
mov qword [rbx], 0xffffffffffffffff
jmp 0x18007af4f
mov rbx, r13
mov qword [rbp - 0x38], rbx
test rbx, rbx
je 0x18007b23a
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
mov r9d, 1
mov r8d, 0x80000000
mov rdx, rsi
lea rcx, [rbp - 0x38]
call fcn.18004f5f0
mov rbx, qword [rbp - 0x38]
test al, al
je 0x18007b23a
test rbx, rbx
je 0x18007b1b4
mov rcx, qword [rbx]
cmp rcx, 0xffffffffffffffff
je 0x18007b1b4
lea rdx, [rbp - 0x30]
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp eax, 0xffffffff
jne 0x18007afc5
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x18007b1b4
mov r14d, dword [rbp - 0x30]
shl r14, 0x20
add r14, rsi
je 0x18007b1b4
mov r12b, 1
mov dword [rbp - 0x40], r13d
mov rsi, r13
mov ecx, 0x10000
call fcn.180112448
mov r15, rax
movsd xmm6, qword [0x1801b3440]
test r15, r15
je 0x18007b126
cmp qword [rbx], 0xffffffffffffffff
je 0x18007b140
mov dword [rbp - 0x40], r13d
mov qword [rsp + 0x20], r13
lea r9, [rbp - 0x40]
mov r8d, 0x10000
mov rdx, r15
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x18007b126
movzx eax, byte [rdi + 0x10]
test al, al
jne 0x18007b097
mov r8d, dword [rbp - 0x40]
test r8d, r8d
je 0x18007b122
mov rax, qword [rdi]
mov rdx, r15
mov rcx, rdi
call qword [rax + 8]
mov eax, dword [rbp - 0x40]
add rsi, rax
mov rcx, qword [rdi + 8]
test rcx, rcx
je 0x18007b08a
mov rax, qword [rcx]
xorps xmm1, xmm1
cvtsi2sd xmm1, rsi
test rsi, rsi
jns 0x18007b073
addsd xmm1, xmm6
xorps xmm0, xmm0
cvtsi2sd xmm0, r14
test r14, r14
jns 0x18007b084
addsd xmm0, xmm6
divsd xmm1, xmm0
call qword [rax]
mov dword [rbp - 0x40], r13d
mov rbx, qword [rbp - 0x38]
jmp 0x18007aff5
mov qword [rbp - 0x18], r13
mov qword [rbp - 0x10], r13
mov eax, 7
mov qword [rbp - 0x10], rax
mov qword [rbp - 0x18], r13
mov word [rbp - 0x28], r13w
cmp qword [rdi + 8], 0
je 0x18007b0ff
lea rax, [rsp + 0x78]
mov qword [rsp + 0x30], rax
mov qword [rbp - 0x70], 7
mov qword [rbp - 0x78], r13
mov word [rsp + 0x78], r13w
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rdx, [rbp - 0x28]
lea rcx, [rsp + 0x78]
call fcn.180005330
nop
mov rcx, qword [rdi + 8]
mov rax, qword [rcx]
lea r8, [rsp + 0x78]
xor edx, edx
call qword [rax + 8]
mov rax, qword [rbp - 0x10]
xor r12b, r12b
cmp rax, 8
jb 0x18007b111
mov rcx, qword [rbp - 0x28]
call fcn.180139b7c
mov qword [rbp - 0x10], 7
mov qword [rbp - 0x18], r13
mov word [rbp - 0x28], r13w
mov rbx, qword [rbp - 0x38]
mov rcx, qword [rbx]
cmp rcx, 0xffffffffffffffff
je 0x18007b140
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x18007b140
mov qword [rbx], 0xffffffffffffffff
mov rcx, r15
call fcn.18013a400
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x10]
mov qword [rsp + 0x48], r13
mov qword [rsp + 0x50], r13
mov eax, 7
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x48], r13
mov word [rsp + 0x38], r13w
cmp qword [rdi + 8], 0
je 0x18007b18b
lea r8, [rsp + 0x38]
mov dl, 1
mov rcx, rdi
call fcn.18007b340
mov rax, qword [rsp + 0x50]
cmp rax, 8
jb 0x18007b19b
mov rcx, qword [rsp + 0x38]
call fcn.180139b7c
mov qword [rsp + 0x50], 7
mov qword [rsp + 0x48], r13
mov word [rsp + 0x38], r13w
jmp 0x18007b2b8
mov qword [rbp + 8], r13
mov qword [rbp + 0x10], r13
mov eax, 7
mov qword [rbp + 0x10], rax
mov qword [rbp + 8], r13
mov word [rbp - 8], r13w
cmp qword [rdi + 8], 0
je 0x18007b218
lea rax, [rbp - 0x68]
mov qword [rsp + 0x30], rax
mov qword [rbp - 0x50], 7
mov qword [rbp - 0x58], r13
mov word [rbp - 0x68], r13w
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rdx, [rbp - 8]
lea rcx, [rbp - 0x68]
call fcn.180005330
nop
mov rcx, qword [rdi + 8]
mov rax, qword [rcx]
lea r8, [rbp - 0x68]
xor edx, edx
call qword [rax + 8]
mov rax, qword [rbp + 0x10]
cmp rax, 8
jb 0x18007b227
mov rcx, qword [rbp - 8]
call fcn.180139b7c
mov qword [rbp + 0x10], 7
mov qword [rbp + 8], r13
mov word [rbp - 8], r13w
jmp 0x18007b2b5
lea rcx, [rbp + 0x18]
call fcn.18008a6b0
nop
cmp qword [rdi + 8], 0
je 0x18007b294
lea rax, [rsp + 0x58]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x70], 7
mov qword [rsp + 0x68], r13
mov word [rsp + 0x58], r13w
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rdx, [rbp + 0x18]
lea rcx, [rsp + 0x58]
call fcn.180005330
nop
mov rcx, qword [rdi + 8]
mov rax, qword [rcx]
add rax, 8
lea r8, [rsp + 0x58]
xor edx, edx
call qword [rax]
nop
cmp qword [rbp + 0x30], 8
jb 0x18007b2a4
mov rcx, qword [rbp + 0x18]
call fcn.180139b7c
mov qword [rbp + 0x30], 7
mov qword [rbp + 0x28], r13
mov word [rbp + 0x18], r13w
xor r12b, r12b
test rbx, rbx
je 0x18007b2df
mov rcx, qword [rbx]
lea rdx, [rcx - 1]
cmp rdx, 0xfffffffffffffffd
ja 0x18007b2d3
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx], r13
mov rcx, rbx
call fcn.180139b7c
mov qword [rbp - 0x38], r13
movzx eax, r12b
mov rcx, qword [rbp + 0x38]
xor rcx, rsp
call fcn.180139310
mov rbx, qword [rsp + 0x1a0]
movaps xmm6, xmmword [rsp + 0x140]
add rsp, 0x150
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret