Function at 0x140064ed0
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 [0x14016ca00]
xor rax, rsp
mov qword [rbp + 0x38], rax
mov rbx, rdx
mov rdi, rcx
mov byte [rcx + 0x10], 0
mov rax, qword [rcx]
call qword [rax]
mov ecx, 8
call fcn.1400bd270
mov qword [rsp + 0x30], rax
xor r13d, r13d
test rax, rax
je 0x140064f37
mov qword [rax], 0xffffffffffffffff
jmp 0x140064f3a
mov rax, r13
mov qword [rbp - 0x38], rax
mov dword [rsp + 0x20], 3
mov r9d, 1
mov r8d, 0x80000000
mov rdx, rbx
lea rcx, [rbp - 0x38]
call fcn.14006fad0
test al, al
jne 0x140064fe8
lea rcx, [rbp + 0x18]
call fcn.14007a000
nop
cmp qword [rdi + 8], 0
je 0x140064fbe
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 + 0x18]
lea rcx, [rsp + 0x78]
call fcn.140006b90
nop
mov rcx, qword [rdi + 8]
mov rax, qword [rcx]
add rax, 8
lea r8, [rsp + 0x78]
xor edx, edx
call qword [rax]
nop
cmp qword [rbp + 0x30], 8
jb 0x140064fce
mov rcx, qword [rbp + 0x18]
call fcn.1400bd20c
mov qword [rbp + 0x30], 7
mov qword [rbp + 0x28], r13
mov word [rbp + 0x18], r13w
mov rbx, qword [rbp - 0x38]
jmp 0x140065296
mov rbx, qword [rbp - 0x38]
test rbx, rbx
je 0x14006520c
mov rcx, qword [rbx]
cmp rcx, 0xffffffffffffffff
je 0x14006520c
lea rdx, [rbp - 0x30]
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp eax, 0xffffffff
jne 0x140065021
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x14006520c
mov r14d, dword [rbp - 0x30]
shl r14, 0x20
add r14, rsi
je 0x14006520c
mov r12b, 1
mov dword [rbp - 0x40], r13d
mov rsi, r13
mov ecx, 0x10000
call fcn.1400bbc88
mov r15, rax
movsd xmm6, qword [0x140132020]
test r15, r15
je 0x14006517e
cmp qword [rbx], 0xffffffffffffffff
je 0x140065198
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 0x14006517e
movzx eax, byte [rdi + 0x10]
test al, al
jne 0x1400650f3
mov r8d, dword [rbp - 0x40]
test r8d, r8d
je 0x14006517a
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 0x1400650e6
mov rax, qword [rcx]
xorps xmm1, xmm1
cvtsi2sd xmm1, rsi
test rsi, rsi
jns 0x1400650cf
addsd xmm1, xmm6
xorps xmm0, xmm0
cvtsi2sd xmm0, r14
test r14, r14
jns 0x1400650e0
addsd xmm0, xmm6
divsd xmm1, xmm0
call qword [rax]
mov dword [rbp - 0x40], r13d
mov rbx, qword [rbp - 0x38]
jmp 0x140065051
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 0x140065157
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 - 0x28]
lea rcx, [rbp - 0x68]
call fcn.140006b90
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]
xor r12b, r12b
cmp rax, 8
jb 0x140065169
mov rcx, qword [rbp - 0x28]
call fcn.1400bd20c
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 0x140065198
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x140065198
mov qword [rbx], 0xffffffffffffffff
mov rcx, r15
call fcn.1400bd2dc
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 0x1400651e3
lea r8, [rsp + 0x38]
mov dl, 1
mov rcx, rdi
call fcn.140065300
mov rax, qword [rsp + 0x50]
cmp rax, 8
jb 0x1400651f3
mov rcx, qword [rsp + 0x38]
call fcn.1400bd20c
mov qword [rsp + 0x50], 7
mov qword [rsp + 0x48], r13
mov word [rsp + 0x38], r13w
jmp 0x140065299
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 0x140065276
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 - 8]
lea rcx, [rsp + 0x58]
call fcn.140006b90
nop
mov rcx, qword [rdi + 8]
mov rax, qword [rcx]
lea r8, [rsp + 0x58]
xor edx, edx
call qword [rax + 8]
mov rax, qword [rbp + 0x10]
cmp rax, 8
jb 0x140065285
mov rcx, qword [rbp - 8]
call fcn.1400bd20c
mov qword [rbp + 0x10], 7
mov qword [rbp + 8], r13
mov word [rbp - 8], r13w
xor r12b, r12b
test rbx, rbx
je 0x1400652c0
mov rcx, qword [rbx]
lea rdx, [rcx - 1]
cmp rdx, 0xfffffffffffffffd
ja 0x1400652b4
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx], r13
mov rcx, rbx
call fcn.1400bd20c
mov qword [rbp - 0x38], r13
movzx eax, r12b
mov rcx, qword [rbp + 0x38]
xor rcx, rsp
call fcn.1400bcae0
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