Function at 0x18007d730
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 [0x1800fb008]
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.180088680
mov rbx, rax
mov qword [rsp + 0x30], rax
xor r13d, r13d
test rax, rax
je 0x18007d79c
xor eax, eax
mov qword [rbx], 0xffffffffffffffff
jmp 0x18007d79f
mov rbx, r13
mov qword [rbp - 0x38], rbx
test rbx, rbx
je 0x18007da7b
mov r9d, 0x80
lea r8d, [r9 - 0x7d]
mov rdx, rsi
lea rcx, [rbp - 0x38]
call fcn.1800122b0
mov rbx, qword [rbp - 0x38]
test al, al
je 0x18007da7b
test rbx, rbx
je 0x18007d9f2
mov rcx, qword [rbx]
cmp rcx, 0xffffffffffffffff
je 0x18007d9f2
lea rdx, [rbp - 0x30]
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp eax, 0xffffffff
jne 0x18007d803
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x18007d9f2
mov r14d, dword [rbp - 0x30]
shl r14, 0x20
add r14, rsi
je 0x18007d9f2
mov r12b, 1
mov dword [rbp - 0x40], r13d
mov rsi, r13
mov ecx, 0x10000
call fcn.180087e84
mov r15, rax
movsd xmm6, qword [0x1800cb670]
test r15, r15
je 0x18007d964
cmp qword [rbx], 0xffffffffffffffff
je 0x18007d97e
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 0x18007d964
movzx eax, byte [rdi + 0x10]
test al, al
jne 0x18007d8d5
mov r8d, dword [rbp - 0x40]
test r8d, r8d
je 0x18007d960
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 0x18007d8c8
mov rax, qword [rcx]
xorps xmm1, xmm1
cvtsi2sd xmm1, rsi
test rsi, rsi
jns 0x18007d8b1
addsd xmm1, xmm6
xorps xmm0, xmm0
cvtsi2sd xmm0, r14
test r14, r14
jns 0x18007d8c2
addsd xmm0, xmm6
divsd xmm1, xmm0
call qword [rax]
mov dword [rbp - 0x40], r13d
mov rbx, qword [rbp - 0x38]
jmp 0x18007d833
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 0x18007d93d
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.1800032a0
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 0x18007d94f
mov rcx, qword [rbp - 0x28]
call fcn.18008861c
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 0x18007d97e
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x18007d97e
mov qword [rbx], 0xffffffffffffffff
mov rcx, r15
call fcn.180088db0
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 0x18007d9c9
lea r8, [rsp + 0x38]
mov dl, 1
mov rcx, rdi
call fcn.18007db60
mov rax, qword [rsp + 0x50]
cmp rax, 8
jb 0x18007d9d9
mov rcx, qword [rsp + 0x38]
call fcn.18008861c
mov qword [rsp + 0x50], 7
mov qword [rsp + 0x48], r13
mov word [rsp + 0x38], r13w
jmp 0x18007daf9
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 0x18007da56
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.1800032a0
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 0x18007da65
mov rcx, qword [rbp - 8]
call fcn.18008861c
mov qword [rbp + 0x10], 7
mov qword [rbp + 8], r13
mov word [rbp - 8], r13w
jmp 0x18007daf6
lea rcx, [rbp + 0x18]
call fcn.18007e250
nop
cmp qword [rdi + 8], 0
je 0x18007dad5
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.1800032a0
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 0x18007dae5
mov rcx, qword [rbp + 0x18]
call fcn.18008861c
mov qword [rbp + 0x30], 7
mov qword [rbp + 0x28], r13
mov word [rbp + 0x18], r13w
xor r12b, r12b
test rbx, rbx
je 0x18007db20
mov rcx, qword [rbx]
lea rdx, [rcx - 1]
cmp rdx, 0xfffffffffffffffd
ja 0x18007db14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx], r13
mov rcx, rbx
call fcn.18008861c
mov qword [rbp - 0x38], r13
movzx eax, r12b
mov rcx, qword [rbp + 0x38]
xor rcx, rsp
call fcn.180087ea0
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