Function at 0x140014170
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 - 0x80]
sub rsp, 0x180
mov qword [rsp + 0x60], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
movaps xmmword [rax - 0x48], xmm6
mov rax, qword [0x14003e010]
xor rax, rsp
mov qword [rbp + 0x60], rax
mov rbx, rdx
mov rdi, rcx
xor r13d, r13d
mov byte [rcx + 0x10], r13b
mov rax, qword [rcx]
call qword [rax]
mov qword [rbp - 0x10], r13
lea ecx, [r13 + 8]
call fcn.140018420
mov qword [rsp + 0x30], rax
mov qword [rax], 0xffffffffffffffff
mov qword [rbp - 0x10], rax
mov rdx, rbx
lea rcx, [rbp - 0x10]
call fcn.140008190
test al, al
jne 0x140014280
lea rcx, [rbp + 0x40]
call fcn.140014ea0
nop
cmp qword [rdi + 8], r13
je 0x140014226
lea rax, [rsp + 0x68]
mov qword [rsp + 0x30], rax
lea rdx, [rbp + 0x40]
lea rcx, [rsp + 0x68]
call fcn.1400030a0
nop
mov rcx, qword [rdi + 8]
mov r9, qword [rcx]
mov r8, rax
xor edx, edx
call qword [r9 + 8]
nop
mov rdx, qword [rbp + 0x58]
cmp rdx, 8
jb 0x140014266
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140014261
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140014603
call fcn.14001845c
mov qword [rbp + 0x50], r13
mov qword [rbp + 0x58], 7
mov word [rbp + 0x40], r13w
mov rbx, qword [rbp - 0x10]
jmp 0x14001459b
mov rbx, qword [rbp - 0x10]
test rbx, rbx
je 0x140014506
mov rcx, qword [rbx]
cmp rcx, 0xffffffffffffffff
je 0x140014506
lea rdx, [rbp - 8]
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp eax, 0xffffffff
jne 0x1400142b9
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x140014506
mov r14d, dword [rbp - 8]
shl r14, 0x20
add r14, rsi
je 0x140014506
mov r12b, 1
mov dword [rbp - 0x18], r13d
mov rsi, r13
mov ecx, 0x10000
call fcn.140018464
mov r15, rax
movsd xmm6, qword [0x140035b58]
nop dword [rax]
test r15, r15
je 0x140014432
cmp qword [rbx], 0xffffffffffffffff
je 0x14001444c
mov dword [rbp - 0x18], r13d
mov qword [rsp + 0x20], r13
lea r9, [rbp - 0x18]
mov r8d, 0x10000
mov rdx, r15
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140014432
movzx eax, byte [rdi + 0x10]
test al, al
jne 0x140014392
mov r8d, dword [rbp - 0x18]
test r8d, r8d
je 0x14001442e
mov rax, qword [rdi]
mov rdx, r15
mov rcx, rdi
call qword [rax + 8]
mov eax, dword [rbp - 0x18]
add rsi, rax
mov rcx, qword [rdi + 8]
test rcx, rcx
je 0x140014385
mov rax, qword [rcx]
xorps xmm1, xmm1
cvtsi2sd xmm1, rsi
test rsi, rsi
jns 0x14001436e
addsd xmm1, xmm6
xorps xmm0, xmm0
cvtsi2sd xmm0, r14
test r14, r14
jns 0x14001437f
addsd xmm0, xmm6
divsd xmm1, xmm0
call qword [rax]
mov dword [rbp - 0x18], r13d
mov rbx, qword [rbp - 0x10]
jmp 0x1400142f0
mov qword [rbp + 0x10], r13
mov qword [rbp + 0x18], r13
mov qword [rbp + 0x10], r13
mov eax, 7
mov qword [rbp + 0x18], rax
mov word [rbp], r13w
cmp qword [rdi + 8], 0
je 0x1400143de
lea rax, [rbp - 0x78]
mov qword [rsp + 0x30], rax
lea rdx, [rbp]
lea rcx, [rbp - 0x78]
call fcn.1400030a0
nop
mov rcx, qword [rdi + 8]
mov r9, qword [rcx]
mov r8, rax
xor edx, edx
call qword [r9 + 8]
mov rax, qword [rbp + 0x18]
xor r12b, r12b
cmp rax, 8
jb 0x14001441d
lea rdx, [rax*2 + 2]
mov rcx, qword [rbp]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140014418
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140014609
call fcn.14001845c
mov qword [rbp + 0x10], r13
mov qword [rbp + 0x18], 7
mov word [rbp], r13w
mov rbx, qword [rbp - 0x10]
mov rcx, qword [rbx]
cmp rcx, 0xffffffffffffffff
je 0x14001444c
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x14001444c
mov qword [rbx], 0xffffffffffffffff
mov rcx, r15
call fcn.14001845c
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x10]
mov qword [rsp + 0x48], r13
mov qword [rsp + 0x50], r13
mov qword [rsp + 0x48], r13
mov edx, 7
mov qword [rsp + 0x50], rdx
mov word [rsp + 0x38], r13w
cmp qword [rdi + 8], 0
je 0x1400144b0
lea rax, [rbp - 0x58]
mov qword [rsp + 0x30], rax
lea rdx, [rsp + 0x38]
lea rcx, [rbp - 0x58]
call fcn.1400030a0
nop
mov rcx, qword [rdi + 8]
mov r9, qword [rcx]
mov r8, rax
mov dl, 1
call qword [r9 + 8]
mov rdx, qword [rsp + 0x50]
cmp rdx, 8
jb 0x1400144ed
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400144e8
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14001460f
call fcn.14001845c
mov qword [rsp + 0x48], r13
mov qword [rsp + 0x50], 7
mov word [rsp + 0x38], r13w
jmp 0x14001459e
mov qword [rbp + 0x30], r13
mov qword [rbp + 0x38], r13
mov qword [rbp + 0x30], r13
mov eax, 7
mov qword [rbp + 0x38], rax
mov word [rbp + 0x20], r13w
cmp qword [rdi + 8], 0
je 0x140014552
lea rax, [rbp - 0x38]
mov qword [rsp + 0x30], rax
lea rdx, [rbp + 0x20]
lea rcx, [rbp - 0x38]
call fcn.1400030a0
nop
mov rcx, qword [rdi + 8]
mov r9, qword [rcx]
mov r8, rax
xor edx, edx
call qword [r9 + 8]
mov rax, qword [rbp + 0x38]
cmp rax, 8
jb 0x14001458a
lea rdx, [rax*2 + 2]
mov rcx, qword [rbp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140014585
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400145fd
call fcn.14001845c
mov qword [rbp + 0x30], r13
mov qword [rbp + 0x38], 7
mov word [rbp + 0x20], r13w
xor r12b, r12b
test rbx, rbx
je 0x1400145ca
mov rcx, qword [rbx]
lea r8, [rcx - 1]
cmp r8, 0xfffffffffffffffd
ja 0x1400145b9
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx], r13
mov edx, 8
mov rcx, rbx
call fcn.14001845c
mov qword [rbp - 0x10], r13
movzx eax, r12b
mov rcx, qword [rbp + 0x60]
xor rcx, rsp
call fcn.140018190
mov rbx, qword [rsp + 0x1d0]
movaps xmm6, xmmword [rsp + 0x170]
add rsp, 0x180
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call fcn.14001c324
nop
call fcn.14001c324
int3
call fcn.14001c324
int3
call fcn.14001c324
int3