Function at 0x140020450
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x90
mov rax, qword [0x140043080]
xor rax, rsp
mov qword [rsp + 0x80], rax
xor r15d, r15d
mov r14d, edx
mov rdi, rcx
movabs r13, 0x8000000000000000
test edx, edx
jns 0x1400204fe
mov r12, r13
mov esi, r15d
cmp dword [rcx + 0x30], r15d
jbe 0x140020726
mov ebx, r15d
nop dword [rax]
nop word [rax + rax]
mov rbp, qword [rdi + 0x28]
mov r8, qword [rbx + rbp + 0x18]
cmp r8, r13
je 0x1400204e8
cmp r12, r13
je 0x1400204e0
mov r9, qword [rbx + rbp + 8]
mov rcx, r12
movsxd rax, r14d
lea rdx, [rax + rax*8]
mov rdx, qword [rbp + rdx*8 + 8]
call sub.avutil_58.dll_av_compare_ts
test eax, eax
jns 0x1400204e8
mov r12, qword [rbx + rbp + 0x18]
mov r14d, esi
inc esi
add rbx, 0x48
mov eax, r14d
cmp esi, dword [rdi + 0x30]
jb 0x1400204b0
test eax, eax
js 0x140020726
mov eax, r14d
mov rsi, r15
lea rcx, [rax + rax*8]
mov rax, qword [rdi + 0x28]
lea r14, [rax + rcx*8]
mov rcx, qword [r14]
lea rdx, [rsp + 0x30]
mov r9, rsi
mov r8d, 1
call sub.avutil_58.dll_av_fifo_peek
test eax, eax
js 0x140020726
mov rax, qword [rsp + 0x30]
cmp dword [rdi], r15d
jne 0x140020542
mov rbx, qword [rax + 0x40]
add rbx, qword [rax + 8]
jmp 0x140020550
mov rbx, qword [rax + 0x1d8]
add rbx, qword [rax + 0x88]
inc rsi
cmp rbx, r13
je 0x140020510
mov rcx, qword [r14 + 0x18]
cmp rbx, rcx
jge 0x140020726
mov rdx, qword [r14 + 8]
sub rcx, rbx
mov dword [rsp + 0x38], 1
mov dword [rsp + 0x3c], 0xf4240
mov r8, qword [rsp + 0x38]
call sub.avutil_58.dll_av_rescale_q
cmp rax, qword [rdi + 0x20]
jl 0x140020726
lea rbp, [rbx + 1]
cmp dword [rdi + 0x30], r15d
jbe 0x14002071f
nop
mov eax, r15d
lea rcx, [rax + rax*8]
mov rax, qword [rdi + 0x28]
lea rbx, [rax + rcx*8]
cmp r14, rbx
je 0x140020712
cmp dword [rbx + 0x24], 0
jne 0x140020712
mov r8, qword [rbx + 0x18]
cmp r8, r13
je 0x1400205e3
mov r9, qword [rbx + 8]
mov rcx, rbp
mov rdx, qword [r14 + 8]
call sub.avutil_58.dll_av_compare_ts
test eax, eax
jle 0x140020712
mov r8, qword [rbx + 8]
mov rcx, rbp
mov rdx, qword [r14 + 8]
call sub.avutil_58.dll_av_rescale_q
mov rcx, qword [rbx + 0x18]
mov rsi, rax
cmp rcx, r13
je 0x140020609
inc rcx
cmp rcx, rax
cmovg rsi, rcx
lea rcx, [rsp + 0x40]
xorps xmm0, xmm0
xorps xmm1, xmm1
mov edx, 0x20
movups xmmword [rsp + 0x40], xmm0
movups xmmword [rsp + 0x50], xmm0
movups xmmword [rsp + 0x60], xmm1
movups xmmword [rsp + 0x70], xmm1
cmp rsi, r13
jne 0x140020640
lea r8, str.NOPTS
call fcn.140002aa0
jmp 0x140020679
mov rax, qword [rbx + 8]
lea r8, str._.6g
xorps xmm1, xmm1
cvtsi2sd xmm1, rsi
movd xmm3, eax
cvtdq2pd xmm3, xmm3
shr rax, 0x20
movd xmm0, eax
cvtdq2pd xmm0, xmm0
divsd xmm3, xmm0
mulsd xmm3, xmm1
movq r9, xmm3
call fcn.140002aa0
mov rcx, qword [rbx + 0x18]
mov edx, 0x20
cmp rcx, r13
jne 0x14002069a
lea r8, str.NOPTS
lea rcx, [rsp + 0x60]
call fcn.140002aa0
jmp 0x1400206d8
mov rax, qword [rbx + 8]
lea r8, str._.6g
xorps xmm1, xmm1
cvtsi2sd xmm1, rcx
lea rcx, [rsp + 0x60]
movd xmm3, eax
cvtdq2pd xmm3, xmm3
shr rax, 0x20
movd xmm0, eax
cvtdq2pd xmm0, xmm0
divsd xmm3, xmm0
mulsd xmm3, xmm1
movq r9, xmm3
call fcn.140002aa0
mov rcx, qword [rdi + 8]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea r8, str.sq:__u_overflow_heardbeat__s_____s_n
lea rax, [rsp + 0x60]
mov r9d, r15d
mov edx, 0x30
mov qword [rsp + 0x20], rax
call sub.avutil_58.dll_av_log
mov r8, rsi
mov edx, r15d
mov rcx, rdi
call fcn.1400217a0
inc r15d
cmp r15d, dword [rdi + 0x30]
jb 0x1400205a0
mov eax, 1
jmp 0x140020728
xor eax, eax
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.14002b2c0
mov rbx, qword [rsp + 0xe0]
add rsp, 0x90
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret