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

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x148
mov rax, qword [rcx + 0x40]
mov dword [rsp + 0x1a0], r8d
mov rdi, rcx
mov rbp, rdx
mov qword [rsp + 0x60], rax
test rax, rax
je 0x140022ac0
mov r9d, dword [rdi + 0xa8]
test r9d, r9d
jne 0x140021c7a
mov rax, qword [rdi + 8]
xor ebx, ebx
mov edx, dword [rax + 0x50]
test edx, edx
je 0x140021c25
pxor xmm1, xmm1
pxor xmm2, xmm2
mov r13, qword [rdi + 0x20]
pxor xmm0, xmm0
cvtsi2sd xmm1, edx
cvtsi2sd xmm2, dword [rax + 0x54]
imul ecx, dword [r13 + 0xb0], 0xfff0bdc0
divsd xmm1, xmm2
cvtsi2sd xmm0, ecx
divsd xmm0, xmm1
cvttsd2si rbx, xmm0
mov qword [rdi + 0x58], rbx
mov qword [rdi + 0x68], 0
test rbp, rbp
je 0x140021c70
movabs rdx, 0x8000000000000000
mov rcx, qword [rbp + 8]
cmp rcx, rdx
je 0x140021c70
mov r8d, dword [rdi + 0x18]
test r8d, r8d
jne 0x140021c70
movabs r8, 0xf424000000001
mov rdx, qword [rax + 0x18]
call sub.avutil_56.dll_av_rescale_q
add rbx, rax
mov qword [rdi + 0x58], rbx
mov qword [rdi + 0x68], rbx
mov dword [rdi + 0xa8], 1
movabs rax, 0x8000000000000000
cmp qword [rdi + 0x50], rax
jne 0x140021c92
mov rax, qword [rdi + 0x58]
mov qword [rdi + 0x50], rax
movabs rax, 0x8000000000000000
cmp qword [rdi + 0x60], rax
jne 0x140021caa
mov rax, qword [rdi + 0x68]
mov qword [rdi + 0x60], rax
test rbp, rbp
je 0x140022690
mov rsi, qword [rsp + 0x60]
mov rcx, rsi
call fcn.14002b190
mov rdx, rbp
mov rcx, rsi
call sub.avcodec_58.dll_av_packet_ref
mov dword [rsp + 0x90], eax
test eax, eax
js 0x140021d92
mov rcx, qword [rbp + 0x10]
mov ebx, dword [rdi + 0x18]
movabs rax, 0x8000000000000000
cmp rcx, rax
je 0x140021d30
movabs r8, 0xf424000000001
mov rax, qword [rdi + 8]
mov rdx, qword [rax + 0x18]
call sub.avutil_56.dll_av_rescale_q
mov r13, qword [rdi + 0x20]
mov qword [rdi + 0x58], rax
mov edx, dword [r13 + 0xc]
mov qword [rdi + 0x50], rax
test edx, edx
je 0x140022940
mov qword [rdi + 0x68], rax
mov qword [rdi + 0x60], rax
jmp 0x140021d34
mov r13, qword [rdi + 0x20]
test ebx, ebx
je 0x140023bfc
mov dword [rsp + 0x90], 0
mov r15, rdi
mov qword [rsp + 0x198], rbp
mov rax, qword [r15 + 0x60]
mov edi, dword [r13 + 0xc]
mov dword [rsp + 0xbc], 0
mov qword [r15 + 0x68], rax
mov rax, qword [r15 + 0x50]
mov qword [r15 + 0x58], rax
cmp edi, 1
je 0x140022410
cmp edi, 3
je 0x1400220c0
test edi, edi
je 0x140021db0
mov dword [rsp + 0x90], 0xffffffff
mov eax, dword [rsp + 0x90]
add rsp, 0x148
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
cmp qword [rsp + 0x198], 0
mov eax, dword [rsp + 0x90]
sete bl
test eax, eax
jne 0x1400226d8
cmp qword [rsp + 0x198], 0
mov r13, qword [rsp + 0x60]
je 0x140021de8
mov r14d, dword [r13 + 0x20]
test r14d, r14d
je 0x140022da0
mov r12, qword [r15 + 0x30]
test r12, r12
je 0x140023130
cmp qword [r15 + 0x38], 0
je 0x140023118
movabs rax, 0x8000000000000000
mov r14, qword [r15 + 0x58]
cmp r14, rax
je 0x140021e30
mov rax, qword [r15 + 8]
mov rcx, r14
movabs rdx, 0xf424000000001
mov r8, qword [rax + 0x18]
call sub.avutil_56.dll_av_rescale_q
mov r14, rax
test r13, r13
je 0x140022af0
cmp qword [rsp + 0x198], 0
mov qword [r13 + 0x10], r14
je 0x140021fa0
xor ecx, ecx
call fcn.1400206f0
mov r14, qword [r15 + 0x20]
mov dword [rsp + 0xbc], 0
mov rdx, r13
mov rcx, r14
call sub.avcodec_58.dll_avcodec_send_packet
mov esi, eax
test eax, eax
jns 0x140022008
cmp eax, 0xdfb9b0bb
je 0x140022008
mov rax, qword [r15 + 8]
mov edx, dword [r15]
lea rcx, str.decode_video__d._d
mov edi, esi
mov esi, 1
mov r8d, dword [rax]
call fcn.140015d80
mov rax, qword [r15 + 8]
mov rcx, qword [r15 + 0x20]
mov rax, qword [rax + 0xd0]
mov r9d, dword [rcx + 0xb0]
mov edx, dword [rax + 0x60]
cmp edx, r9d
jl 0x14002206f
cmp edi, 0xdfb9b0bb
jne 0x140022089
mov edx, dword [rsp + 0xbc]
test edx, edx
jne 0x140022988
mov r14d, edi
xor r13d, r13d
mov edi, esi
test byte [rsp + 0x90], 1
je 0x1400229a8
test bl, bl
jne 0x1400229a8
mov ebx, dword [rsp + 0xbc]
test ebx, ebx
je 0x140022624
mov rax, qword [rsp + 0x198]
mov rcx, qword [rax + 0x40]
test rcx, rcx
je 0x1400229b7
movabs r8, 0xf424000000001
mov rax, qword [r15 + 8]
mov rdx, qword [rax + 0x18]
call sub.avutil_56.dll_av_rescale_q
movabs rsi, 0x8000000000000000
cmp qword [r15 + 0x58], rsi
je 0x1400229d9
test rax, rax
je 0x1400229d9
add qword [r15 + 0x50], rax
mov r9d, dword [rsp + 0xbc]
test r9d, r9d
je 0x140022624
mov rbx, qword [r15 + 0x60]
test r13, r13
jle 0x140022d00
mov rax, qword [r15 + 8]
mov rcx, r13
movabs r8, 0xf424000000001
mov rdx, qword [rax + 0x18]
call sub.avutil_56.dll_av_rescale_q
add rax, rbx
mov qword [r15 + 0x60], rax
jmp 0x140022624
mov eax, dword [r15 + 0x1b0]
mov rcx, qword [r15 + 0x1a8]
mov r8d, 8
lea edx, [rax + 1]
movsxd rdx, edx
call sub.avutil_56.dll_av_realloc_array
test rax, rax
je 0x140023d10
movsxd rdx, dword [r15 + 0x1b0]
mov qword [r15 + 0x1a8], rax
lea ecx, [rdx + 1]
mov dword [r15 + 0x1b0], ecx
xor ecx, ecx
mov qword [rax + rdx*8], r14
call fcn.1400206f0
mov r14, qword [r15 + 0x20]
mov dword [rsp + 0xbc], 0
test r13, r13
jne 0x140021e62
nop dword [rax + rax]
mov rdx, r12
mov rcx, r14
call sub.avcodec_58.dll_avcodec_receive_frame
mov esi, eax
test eax, eax
jns 0x140022022
cmp eax, 0xfffffff5
jne 0x140021e82
mov rax, qword [r15 + 8]
mov edx, dword [r15]
mov r8d, dword [rax]
test esi, esi
js 0x140022970
lea rcx, str.decode_video__d._d
mov dword [rsp + 0xbc], 1
call fcn.140015d80
mov rax, qword [r15 + 8]
mov rcx, qword [r15 + 0x20]
mov rax, qword [rax + 0xd0]
mov r9d, dword [rcx + 0xb0]
mov edx, dword [rax + 0x60]
cmp edx, r9d
jge 0x140022b20
xor esi, esi
cmp dword [rcx + 0x18], 0x1b
jne 0x140022950
mov dword [rax + 0x60], r9d
cmp edi, 0xdfb9b0bb
je 0x140021ecd
mov edx, dword [rsp + 0xbc]
mov r8d, edi
mov rcx, r15
call fcn.14001f3c0
mov eax, dword [rsp + 0xbc]
test eax, eax
je 0x140021edc
test edi, edi
jne 0x140022988
mov edi, esi
jmp 0x140022b41
mov r8d, dword [rsp + 0x90]
test r8d, r8d
je 0x1400226e0
mov rbp, qword [rsp + 0x198]
mov rdi, r15
xor r15d, r15d
test rbp, rbp
je 0x14002281c
test ebx, ebx
je 0x140023b48
mov rax, qword [0x140048b70]
mov r13, qword [0x140048bc0]
xor esi, esi
mov r14, qword [0x140048a70]
mov r11d, dword [rax]
mov qword [rsp + 0x60], rax
test r11d, r11d
jg 0x1400223d9
jmp 0x140021d92
movsxd rdx, dword [rdi]
mov rax, qword [r14]
mov r9, qword [rax + rdx*8]
mov rdx, qword [rdi + 8]
mov eax, dword [r9 + 0x10]
add eax, dword [rdx]
cmp eax, dword [rbx + 8]
jne 0x1400223c8
mov eax, dword [rbx + 0x198]
test eax, eax
jne 0x1400223c8
mov rax, qword [0x140048bb0]
movsxd rdx, dword [rbx]
mov rax, qword [rax]
mov r15, qword [rax + rdx*8]
movabs rax, 0x8000000000000000
mov r10, qword [r15 + 0x20]
cmp r10, rax
je 0x1400229f0
cmp r10, qword [rdi + 0x68]
jg 0x1400223c8
mov ecx, dword [rbx + 0x18]
test ecx, ecx
jne 0x1400223c8
mov r8, qword [rbx + 0x40]
mov rcx, r10
mov qword [rsp + 0x70], r9
movabs rdx, 0xf424000000001
mov qword [rsp + 0x68], r10
call sub.avutil_56.dll_av_rescale_q
mov rcx, r12
mov qword [rsp + 0x78], rax
call fcn.14002b190
test rbp, rbp
mov r10, qword [rsp + 0x68]
mov r9, qword [rsp + 0x70]
je 0x140022d30
mov eax, dword [rbx + 0x1c]
test eax, eax
jne 0x140022288
test byte [rbp + 0x28], 1
jne 0x1400221e7
mov eax, dword [rbx + 0x1b8]
test eax, eax
je 0x1400223c8
mov eax, dword [rbx + 0x1bc]
test eax, eax
jne 0x140022288
mov rax, qword [0x140048900]
mov rcx, r10
mov r11d, dword [rax]
test r11d, r11d
je 0x140022228
movabs rdx, 0x8000000000000000
mov rax, qword [r9 + 0x40]
cmp rax, rdx
je 0x140022228
add rax, qword [r9 + 0x30]
cmp rax, r10
cmovl rax, r10
mov rcx, rax
movabs rax, 0x8000000000000000
mov r11, qword [rbp + 8]
cmp r11, rax
je 0x1400231c0
mov rax, qword [rdi + 8]
mov qword [rsp + 0x80], r11
movabs rdx, 0xf424000000001
mov qword [rsp + 0x70], r10
mov r8, qword [rax + 0x18]
mov qword [rsp + 0x68], r9
call sub.avutil_56.dll_av_rescale_q
mov r9, qword [rsp + 0x68]
mov r10, qword [rsp + 0x70]
mov r11, qword [rsp + 0x80]
cmp r11, rax
jl 0x1400223c8
nop dword [rax + rax]
movabs rdx, 0x7fffffffffffffff
mov rax, qword [r15 + 0x18]
cmp rax, rdx
je 0x1400222a8
add rax, r10
cmp qword [rdi + 0x68], rax
jge 0x140022a40
movabs rdx, 0x7fffffffffffffff
mov rax, qword [r9 + 0x50]
cmp rax, rdx
je 0x1400222f9
mov rdx, qword [r9]
mov rcx, qword [r9 + 0x40]
movabs r11, 0x8000000000000000
mov rdx, qword [rdx + 0x440]
cmp rcx, r11
je 0x1400222ec
mov r8, qword [0x140048900]
add rcx, rdx
mov r8d, dword [r8]
test r8d, r8d
cmovne rdx, rcx
add rax, rdx
cmp qword [rdi + 0x68], rax
jge 0x140022a40
mov rax, qword [rbx + 0x58]
mov eax, dword [rax + 0xc]
test eax, eax
jne 0x140022309
add qword [rbx + 0x28], 1
mov rdx, rbp
mov rcx, r12
call sub.avcodec_58.dll_av_packet_ref
test eax, eax
js 0x1400230df
movabs rax, 0x8000000000000000
mov rcx, qword [rbp + 8]
cmp rcx, rax
je 0x14002234a
mov rax, qword [rdi + 8]
mov r8, qword [rbx + 0x40]
mov rdx, qword [rax + 0x18]
call sub.avutil_56.dll_av_rescale_q
sub rax, qword [rsp + 0x78]
mov qword [r12 + 8], rax
movabs rax, 0x8000000000000000
mov rcx, qword [rbp + 0x10]
cmp rcx, rax
je 0x140022a08
mov rax, qword [rbx + 0x10]
mov rax, qword [rax + 0xd0]
cmp dword [rax], 1
je 0x140023158
mov r9, qword [rdi + 8]
mov r8, qword [rbx + 0x40]
mov rdx, qword [r9 + 0x18]
mov qword [rsp + 0x70], r9
mov qword [rsp + 0x68], r8
call sub.avutil_56.dll_av_rescale_q
mov r9, qword [rsp + 0x70]
mov r8, qword [rsp + 0x68]
sub rax, qword [rsp + 0x78]
mov rdx, qword [r9 + 0x18]
mov rcx, qword [rbp + 0x40]
mov qword [r12 + 0x10], rax
call sub.avutil_56.dll_av_rescale_q
mov r8, rbx
mov rdx, r12
mov rcx, r15
mov qword [r12 + 0x40], rax
call fcn.140020630
nop dword [rax]
mov rax, qword [rsp + 0x60]
add rsi, 1
cmp dword [rax], esi
jle 0x140021d92
mov rax, qword [r13]
mov rbx, qword [rax + rsi*8]
mov r12, qword [rbx + 0x88]
test r12, r12
jne 0x140022120
call sub.avcodec_58.dll_av_packet_alloc
mov qword [rbx + 0x88], rax
mov r12, rax
test rax, rax
jne 0x140022120
jmp 0x1400230df
mov eax, dword [rsp + 0x90]
mov r12, qword [r15 + 0x30]
mov ebx, 0
test eax, eax
cmove rbx, qword [rsp + 0x60]
test r12, r12
je 0x140022d50
cmp qword [r15 + 0x38], 0
je 0x140022aa0
xor ecx, ecx
call fcn.1400206f0
mov dword [rsp + 0xbc], 0
test rbx, rbx
je 0x1400224a0
mov rdx, rbx
mov rcx, r13
call sub.avcodec_58.dll_avcodec_send_packet
mov r14d, eax
test eax, eax
jns 0x1400224a0
cmp eax, 0xdfb9b0bb
je 0x1400224a0
mov rax, qword [r15 + 8]
mov edx, dword [r15]
lea rcx, str.decode_audio__d._d
mov r8d, dword [rax]
call fcn.140015d80
mov edx, dword [rsp + 0xbc]
mov r8d, r14d
mov rcx, r15
call fcn.14001f3c0
jmp 0x140022624
mov rdx, r12
mov rcx, r13
call sub.avcodec_58.dll_avcodec_receive_frame
mov r14d, eax
test eax, eax
jns 0x140022510
cmp eax, 0xfffffff5
je 0x140022510
mov rax, qword [r15 + 8]
mov edx, dword [r15]
lea rcx, str.decode_audio__d._d
mov r8d, dword [rax]
call fcn.140015d80
cmp r14d, 0xdfb9b0bb
jne 0x140022482
mov qword [rsp + 0x190], r15
mov rcx, qword [rsp + 0x60]
mov r15d, edi
mov rdi, qword [rsp + 0x190]
mov rbp, qword [rsp + 0x198]
call fcn.14002b190
mov dword [rsp + 0x90], 0
mov ebx, dword [rdi + 0x18]
jmp 0x1400220df
mov rax, qword [r15 + 8]
mov edx, dword [r15]
mov r8d, dword [rax]
test r14d, r14d
js 0x14002252a
mov dword [rsp + 0xbc], 1
lea rcx, str.decode_audio__d._d
call fcn.140015d80
mov r9d, dword [r13 + 0x190]
test r9d, r9d
jle 0x1400230f0
mov edx, dword [rsp + 0xbc]
xor r8d, r8d
mov rcx, r15
call fcn.14001f3c0
mov eax, dword [rsp + 0xbc]
test eax, eax
je 0x140023d51
movsxd rcx, dword [r12 + 0x70]
movsxd r11, dword [r13 + 0x190]
add qword [r15 + 0x1a0], rcx
imul rax, rcx, 0xf4240
add qword [r15 + 0x198], 1
mov r9, rcx
mov r8, r11
cqo
idiv r11
mov rdx, qword [r12 + 0x88]
add qword [r15 + 0x60], rax
add qword [r15 + 0x50], rax
movabs rax, 0x8000000000000000
cmp rdx, rax
je 0x140022db0
mov rax, qword [r15 + 8]
mov r11, qword [rax + 0x18]
shl r8, 0x20
mov rcx, r11
mov rax, r8
or rax, 1
mov qword [rsp + 0x28], rax
mov r8, rax
lea rax, [r15 + 0x78]
mov qword [rsp + 0x20], rax
call sub.avutil_56.dll_av_rescale_delta
movsxd rcx, dword [r12 + 0x70]
mov qword [r12 + 0x88], rax
mov qword [r15 + 0x98], rcx
mov rdx, r12
mov rcx, r15
call fcn.14001d980
mov rcx, qword [r15 + 0x38]
mov r14d, eax
call sub.avutil_56.dll_av_frame_unref
mov rcx, r12
call sub.avutil_56.dll_av_frame_unref
test r14d, r14d
mov eax, 0
cmovg r14d, eax
xor edi, edi
mov rcx, qword [rsp + 0x60]
call fcn.14002b190
cmp r14d, 0xdfb9b0bb
je 0x140023c48
test r14d, r14d
js 0x14002392c
mov edi, dword [rsp + 0xbc]
mov ebx, dword [r15 + 0x18]
test edi, edi
je 0x1400226a8
cmp qword [rsp + 0x198], 0
mov dword [r15 + 0x1b4], 1
je 0x140023a14
mov dword [rsp + 0x90], 1
test ebx, ebx
je 0x140023a32
mov r13, qword [r15 + 0x20]
jmp 0x140021d52
mov ebx, dword [rdi + 0x18]
test ebx, ebx
je 0x140023c38
mov r13, qword [rdi + 0x20]
jmp 0x140021d3c
mov qword [rsp + 0x190], r15
mov rbp, qword [rsp + 0x198]
mov r15d, edi
mov dword [rsp + 0x90], 1
mov rdi, qword [rsp + 0x190]
jmp 0x1400220df
xor r13d, r13d
jmp 0x140021de8
lea rax, [rsp + 0x100]
mov r9, qword [rsp + 0x60]
lea r8, [rsp + 0xbc]
mov rcx, r13
mov rdx, rax
mov qword [rsp + 0x88], rax
call sub.avcodec_58.dll_avcodec_decode_subtitle2
mov ebx, dword [rsp + 0xbc]
mov r14d, eax
shr eax, 0x1f
test ebx, ebx
jne 0x140022721
test al, al
je 0x140023270
lea rdx, [0x14004d2b0]
and eax, 1
add qword [rdx + rax*8], 1
test r14d, r14d
jns 0x140022e10
mov rax, qword [0x1400489b0]
mov edx, dword [rax]
test edx, edx
jne 0x1400230df
mov rax, qword [rsp + 0x60]
mov edi, 1
mov r9d, dword [rax + 0x20]
test r9d, r9d
jne 0x140022624
movabs rdx, 0x7fffffffffffffff
cmp qword [r15 + 0x100], rdx
je 0x14002277f
xor r8d, r8d
mov rcx, r15
call fcn.1400159d0
mov eax, dword [r15 + 0x138]
xor esi, esi
lea rbx, str.Flush_the_frame_error._n
test eax, eax
jle 0x1400227e0
nop dword [rax + rax]
mov rax, qword [r15 + 0x130]
xor edx, edx
mov rax, qword [rax + rsi*8]
mov rcx, qword [rax]
call sub.avfilter_7.dll_av_buffersrc_add_frame
cmp eax, 0xdfb9b0bb
je 0x140023620
test eax, eax
jns 0x140023620
mov r8, rbx
mov edx, 0x18
xor ecx, ecx
add rsi, 1
call sub.avutil_56.dll_av_log
cmp dword [r15 + 0x138], esi
jg 0x140022798
nop dword [rax]
mov edi, 1
cmp qword [rsp + 0x198], 0
jne 0x140022624
test r14d, r14d
js 0x140022624
mov rcx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x198]
mov rdi, r15
call fcn.14002b190
mov ebx, dword [r15 + 0x18]
mov r15d, 1
test ebx, ebx
je 0x1400220f0
mov r8d, dword [rsp + 0x1a0]
xor r8d, 1
test r8d, r15d
je 0x1400220f0
mov rax, qword [rdi + 8]
mov rcx, qword [rdi + 0x68]
mov r9d, 0x2005
movabs rdx, 0xf424000000001
mov r8, qword [rax + 0x18]
call sub.avutil_56.dll_av_rescale_q_rnd
mov edx, dword [rdi + 0x138]
mov rsi, rax
test edx, edx
jle 0x1400220f0
xor ebx, ebx
jmp 0x140022898
mov r8d, 4
mov rdx, rsi
call sub.avfilter_7.dll_av_buffersrc_close
test eax, eax
js 0x140022928
mov edx, dword [rdi + 0x138]
add rbx, 1
cmp edx, ebx
jle 0x1400220f0
mov rax, qword [rdi + 0x130]
mov rax, qword [rax + rbx*8]
mov rcx, qword [rax]
mov dword [rax + 0x60], 1
test rcx, rcx
jne 0x140022870
mov ecx, dword [rax + 0x30]
test ecx, ecx
jns 0x14002288c
mov r9, qword [rax + 8]
mov r11, qword [r9 + 8]
mov rcx, qword [r11 + 0xd0]
mov r10d, dword [rcx + 0x74]
mov r8d, dword [rcx + 0x1c]
mov dword [rax + 0x44], r10d
mov r10d, dword [rcx + 0x70]
mov dword [rax + 0x30], r8d
mov dword [rax + 0x48], r10d
mov r10, qword [rcx + 0x68]
mov qword [rax + 0x50], r10
mov r10d, dword [rcx + 0x38]
mov dword [rax + 0x34], r10d
mov r10d, dword [rcx + 0x3c]
mov rcx, qword [rcx + 0x40]
mov dword [rax + 0x38], r10d
mov qword [rax + 0x3c], rcx
test r8d, r8d
jns 0x14002288c
cmp dword [rax + 0x20], 1
ja 0x14002288c
mov eax, dword [r11]
lea r8, str.Cannot_determine_format_of_input_stream__d:_d_after_EOF_n
mov edx, 0x10
xor ecx, ecx
mov dword [rsp + 0x20], eax
mov r9d, dword [r9]
call sub.avutil_56.dll_av_log
lea r8, str.Error_marking_filters_as_finished_n
mov edx, 8
xor ecx, ecx
call sub.avutil_56.dll_av_log
jmp 0x1400230df
test ebx, ebx
jne 0x140021d3c
jmp 0x140021d1f
mov dword [rsp + 0x20], edx
lea r8, str.video_delay_is_larger_in_decoder_than_demuxer__d____d._nIf_you_want_to_help__upload_a_sample_of_this_file_to_https:__streams.videolan.org_upload__and_contact_the_ffmpeg_devel_mailing_list.__ffmpeg_devel_ffmpeg.org__n
mov edx, 0x18
call sub.avutil_56.dll_av_log
jmp 0x140021ec1
lea rcx, str.decode_video__d._d
call fcn.140015d80
jmp 0x14002204b
mov r14d, edi
xor r13d, r13d
mov edi, esi
test byte [rsp + 0x90], 1
je 0x1400229a8
test bl, bl
je 0x140021f09
nop word [rax + rax]
cmp qword [rsp + 0x198], 0
jne 0x140021f09
mov rdx, qword [r15 + 0x20]
xor eax, eax
mov r11d, dword [rdx + 0x368]
test r11d, r11d
je 0x1400229d9
mov r10d, dword [rdx + 0x36c]
test r10d, r10d
jne 0x1400234c0
movabs rsi, 0x8000000000000000
mov qword [r15 + 0x50], rsi
jmp 0x140021f56
mov r8d, dword [rbx + 0x18]
test r8d, r8d
jne 0x1400223c8
xor r10d, r10d
jmp 0x140022188
mov r8, qword [rbx + 0x40]
mov rcx, qword [rdi + 0x58]
movabs rdx, 0xf424000000001
mov qword [rsp + 0x68], r8
call sub.avutil_56.dll_av_rescale_q
mov r9, qword [rdi + 8]
mov r8, qword [rsp + 0x68]
sub rax, qword [rsp + 0x78]
jmp 0x14002239f
mov rax, qword [0x140048bb0]
movsxd rdx, dword [rbx]
mov rax, qword [rax]
mov r12, qword [rax + rdx*8]
or dword [rbx + 0x198], 1
mov eax, dword [r12 + 0x30]
test eax, eax
je 0x1400223c8
mov rax, qword [rbx + 0x58]
mov rcx, qword [rbx + 0x28]
movabs r8, 0xf424000000001
sub rcx, qword [rbx + 0x30]
mov rdx, qword [rax + 0x64]
call sub.avutil_56.dll_av_rescale_q
cmp qword [r12 + 0x18], rax
cmovle rax, qword [r12 + 0x18]
mov qword [r12 + 0x18], rax
jmp 0x1400223c8
call sub.avutil_56.dll_av_frame_alloc
mov qword [r15 + 0x38], rax
test rax, rax
je 0x140022d65
mov r12, qword [r15 + 0x30]
jmp 0x14002243c
call sub.avcodec_58.dll_av_packet_alloc
mov qword [rsp + 0x60], rax
mov qword [rdi + 0x40], rax
test rax, rax
jne 0x140021bd3
mov dword [rsp + 0x90], 0xfffffff4
jmp 0x140021d92
cmp qword [rsp + 0x198], 0
je 0x140021fa0
xor ecx, ecx
call fcn.1400206f0
mov r14, qword [r15 + 0x20]
mov dword [rsp + 0xbc], 0
jmp 0x140022008
mov edx, dword [rsp + 0xbc]
xor r8d, r8d
mov rcx, r15
call fcn.14001f3c0
mov esi, dword [rsp + 0xbc]
test esi, esi
je 0x1400232b0
mov rax, qword [r15 + 0x20]
mov r9d, dword [r12 + 0x68]
mov ecx, dword [r12 + 0x6c]
mov edx, dword [rax + 0x74]
mov r8d, dword [rax + 0x78]
mov r11d, dword [rax + 0x88]
mov eax, dword [r12 + 0x74]
cmp edx, r9d
jne 0x140022b70
cmp r8d, ecx
je 0x140023ae4
mov dword [rsp + 0x38], r8d
lea r8, str.Frame_parameters_mismatch_context__d__d__d____d__d__d_n
mov dword [rsp + 0x30], edx
mov edx, 0x30
mov dword [rsp + 0x20], ecx
xor ecx, ecx
mov dword [rsp + 0x40], r11d
mov dword [rsp + 0x28], eax
call sub.avutil_56.dll_av_log
mov r14d, dword [rsp + 0xbc]
test r14d, r14d
je 0x140023d43
mov eax, dword [r12 + 0x74]
mov edx, dword [r15 + 0xc0]
test edx, edx
js 0x140022bc2
mov dword [r12 + 0x100], edx
mov r8, qword [r15 + 0x170]
add qword [r15 + 0x198], 1
test r8, r8
je 0x140022be3
cmp dword [r15 + 0x178], eax
je 0x140023288
mov dword [r15 + 0x17c], eax
mov eax, dword [r15 + 0xb8]
mov r13, qword [r12 + 0x1a8]
test eax, eax
jne 0x140022d10
mov rbp, qword [r12 + 0x198]
movabs rax, 0x8000000000000000
cmp rbp, rax
jne 0x140022c57
test bl, bl
je 0x140022c57
mov eax, dword [r15 + 0x1b0]
test eax, eax
jle 0x1400231d0
mov rcx, qword [r15 + 0x1a8]
mov esi, eax
mov rbp, qword [rcx]
sub esi, 1
je 0x140022c50
sub eax, 2
lea rdx, [rcx + 8]
lea r8, [rax*8 + 8]
call sub.msvcrt.dll_memmove
mov dword [r15 + 0x1b0], esi
movabs rax, 0x8000000000000000
mov rsi, qword [r15 + 8]
mov r14, rsi
cmp rbp, rax
je 0x1400231d4
mov qword [r12 + 0x88], rbp
mov rdx, qword [rsi + 0x18]
mov rcx, rbp
movabs r8, 0xf424000000001
call sub.avutil_56.dll_av_rescale_q
movabs rcx, 0x8000000000000000
cmp rax, rcx
je 0x140022ca6
mov qword [r15 + 0x68], rax
mov qword [r15 + 0x60], rax
mov rax, qword [0x140048920]
mov eax, dword [rax]
test eax, eax
jne 0x1400232c0
mov esi, dword [r14 + 0x40]
test esi, esi
je 0x140022ccb
mov rax, qword [r14 + 0x40]
mov qword [r12 + 0x80], rax
mov rdx, r12
mov rcx, r15
call fcn.14001d980
mov rcx, qword [r15 + 0x38]
mov r14d, eax
call sub.avutil_56.dll_av_frame_unref
mov rcx, r12
call sub.avutil_56.dll_av_frame_unref
test r14d, r14d
mov eax, 0
cmovg r14d, eax
jmp 0x140021ee4
add rax, rbx
mov qword [r15 + 0x60], rax
jmp 0x140022624
mov rbp, qword [r15 + 0x90]
lea rax, [rbp + 1]
mov qword [r15 + 0x90], rax
jmp 0x140022c09
mov r9d, 1
mov r8, rbx
mov rdx, r12
mov rcx, r15
call fcn.1400193d0
jmp 0x1400223c8
call sub.avutil_56.dll_av_frame_alloc
mov qword [r15 + 0x30], rax
mov r12, rax
test rax, rax
jne 0x140022431
mov rcx, qword [rsp + 0x60]
mov rdi, r15
call fcn.14002b190
mov rax, qword [rdi + 8]
lea r8, str.Error_while_processing_the_decoded_data_for_stream__d:_d_n
mov edx, 8
xor ecx, ecx
mov eax, dword [rax]
mov dword [rsp + 0x20], eax
mov r9d, dword [rdi]
call sub.avutil_56.dll_av_log
jmp 0x1400230df
xor r13d, r13d
jmp 0x140021f09
test rbx, rbx
je 0x140022dd8
movabs rax, 0x8000000000000000
mov rdx, qword [rbx + 8]
cmp rdx, rax
je 0x140022dd8
mov qword [r12 + 0x88], rdx
jmp 0x1400225b7
movabs rax, 0x8000000000000000
mov rdx, qword [r15 + 0x58]
movabs r11, 0xf424000000001
mov qword [r12 + 0x88], rdx
cmp rdx, rax
je 0x1400225f0
jmp 0x1400225bf
test ebx, ebx
je 0x140023270
mov eax, dword [r15 + 0xcc]
test eax, eax
je 0x140022f60
mov edi, dword [r15 + 0xd0]
mov rbp, qword [r15 + 0xf0]
mov r12d, 1
mov r13d, dword [r15 + 0xe0]
test edi, edi
je 0x140022eb9
mov rcx, qword [rsp + 0x118]
mov r8d, 0xf4240
mov edx, 0x3e8
sub rcx, rbp
call sub.avutil_56.dll_av_rescale
mov rsi, rax
mov r12d, eax
cmp eax, r13d
jae 0x140022eb9
test eax, eax
lea rdx, [0x140044daf]
mov rcx, qword [r15 + 0x20]
mov r9d, r13d
lea rax, str.__dropping_it
mov dword [rsp + 0x20], esi
lea r8, str.Subtitle_duration_reduced_from__d_to__d_s_n
mov r13d, esi
cmovg rax, rdx
mov edx, 0x30
mov qword [rsp + 0x28], rax
call sub.avutil_56.dll_av_log
mov edi, dword [r15 + 0xd0]
mov ebx, dword [rsp + 0xbc]
mov rbp, qword [r15 + 0xf0]
movdqu xmm4, xmmword [rsp + 0x100]
mov r9d, dword [r15 + 0xd4]
mov dword [r15 + 0xd0], ebx
movdqu xmm5, xmmword [rsp + 0x110]
movzx r8d, word [r15 + 0xd8]
mov dword [r15 + 0xd4], r14d
mov ecx, dword [r15 + 0xdc]
mov edx, dword [r15 + 0xe4]
mov dword [rsp + 0xbc], edi
mov r14d, r9d
mov rax, qword [r15 + 0xe8]
mov dword [rsp + 0x108], r13d
mov word [rsp + 0x100], r8w
mov dword [rsp + 0x104], ecx
mov dword [rsp + 0x10c], edx
mov qword [rsp + 0x110], rax
mov qword [rsp + 0x118], rbp
movups xmmword [r15 + 0xd8], xmm4
movups xmmword [r15 + 0xe8], xmm5
test r12d, r12d
jle 0x140023608
test edi, edi
je 0x1400227e5
nop word [rax + rax]
cmp qword [r15 + 0x110], 0
je 0x140023514
mov r8, qword [rsp + 0x88]
mov rcx, r15
movabs rdx, 0x8000000000000000
call fcn.1400159d0
mov eax, dword [rsp + 0x10c]
test eax, eax
je 0x140023608
mov rax, qword [0x140048b70]
add qword [r15 + 0x198], 1
mov edi, 1
mov r12d, dword [rax]
mov qword [rsp + 0xa0], rax
test r12d, r12d
jle 0x140023608
mov rax, qword [0x140048bc0]
mov dword [rsp + 0xa8], r14d
mov qword [rsp + 0x68], 0
mov qword [rsp + 0x98], rax
mov dword [rsp + 0xac], edi
mov qword [rsp + 0x190], r15
jmp 0x1400230a3
mov rax, qword [rsp + 0x190]
movsxd rdx, dword [rax]
mov rax, qword [0x140048a70]
mov rax, qword [rax]
mov rdx, qword [rax + rdx*8]
mov rax, qword [rsp + 0x190]
mov rax, qword [rax + 8]
mov eax, dword [rax]
add eax, dword [rdx + 0x10]
cmp eax, dword [rbx + 8]
jne 0x140023088
mov esi, dword [rbx + 0x198]
test esi, esi
jne 0x140023088
mov rax, qword [0x140048bb0]
movsxd rdx, dword [rbx]
movabs rsi, 0x8000000000000000
mov rax, qword [rax]
mov rax, qword [rax + rdx*8]
mov qword [rsp + 0x80], rax
mov rax, qword [rax + 0x20]
cmp rax, rsi
je 0x14002306b
mov rsi, qword [rsp + 0x190]
cmp rax, qword [rsi + 0x68]
jg 0x140023088
mov r11d, dword [rbx + 0x18]
test r11d, r11d
je 0x140023088
mov rdx, qword [rbx + 0x68]
cmp dword [rdx + 0x10], 3
je 0x140023640
nop word [rax + rax]
mov rsi, qword [rsp + 0xa0]
add qword [rsp + 0x68], 1
mov rax, qword [rsp + 0x68]
cmp dword [rsi], eax
jle 0x1400235e9
mov rax, qword [rsp + 0x98]
mov rsi, qword [rsp + 0x68]
mov rax, qword [rax]
mov rbx, qword [rax + rsi*8]
mov r12, qword [rbx + 0x88]
test r12, r12
jne 0x140022ff8
call sub.avcodec_58.dll_av_packet_alloc
mov qword [rbx + 0x88], rax
mov r12, rax
test rax, rax
jne 0x140022ff8
mov ecx, 1
call fcn.140012ce0
nop dword [rax]
mov edx, 0x10
mov rcx, r13
xor edi, edi
mov r14d, 0xbebbb1b7
lea r8, str.Sample_rate__d_invalid_n
call sub.avutil_56.dll_av_log
jmp 0x140022482
call sub.avutil_56.dll_av_frame_alloc
mov qword [r15 + 0x38], rax
test rax, rax
je 0x140023145
mov r12, qword [r15 + 0x30]
jmp 0x140021e00
call sub.avutil_56.dll_av_frame_alloc
mov qword [r15 + 0x30], rax
mov r12, rax
test rax, rax
jne 0x140021df5
xor r13d, r13d
mov r14d, 0xfffffff4
jmp 0x140021ee4
mov edx, dword [rbp + 0x20]
mov rcx, qword [rdi + 0x20]
call sub.avcodec_58.dll_av_get_audio_frame_duration
mov r9d, eax
mov rax, qword [rdi + 0x20]
test r9d, r9d
jne 0x140023177
mov r9d, dword [rax + 0x19c]
mov r8d, dword [rax + 0x190]
mov rax, qword [rdi + 8]
mov rdx, qword [rbp + 0x10]
mov rcx, qword [rax + 0x18]
mov rax, qword [rbx + 0x40]
shl r8, 0x20
or r8, 1
mov qword [rsp + 0x28], rax
lea rax, [rdi + 0x78]
mov qword [rsp + 0x20], rax
call sub.avutil_56.dll_av_rescale_delta
sub rax, qword [rsp + 0x78]
mov r9, qword [rdi + 8]
mov qword [r12 + 8], rax
mov r8, qword [rbx + 0x40]
jmp 0x14002239f
cmp qword [rdi + 0x68], rcx
jge 0x140022288
jmp 0x1400223c8
mov rsi, qword [r15 + 8]
mov rax, qword [0x140048920]
mov r14, rsi
mov r10d, dword [rax]
test r10d, r10d
je 0x140022cb7
mov eax, dword [rsi + 0x1c]
mov edx, 0x20
mov r14d, dword [r12 + 0x7c]
lea r8, str.NOPTS
movabs rbp, 0x8000000000000000
mov dword [rsp + 0x68], eax
mov eax, dword [rsi + 0x18]
mov dword [rsp + 0x70], eax
mov eax, dword [r12 + 0x78]
mov qword [rsp + 0x100], 0
mov dword [rsp + 0x78], eax
lea rax, [rsp + 0x100]
mov rcx, rax
mov qword [rsp + 0x108], 0
mov qword [rsp + 0x110], 0
mov qword [rsp + 0x118], 0
mov qword [rsp + 0x88], rax
call fcn.140007800
jmp 0x140023358
mov rax, qword [rsp + 0x60]
mov ecx, dword [rax + 0x20]
test ecx, ecx
jne 0x1400227e0
jmp 0x140022761
mov rcx, qword [r15 + 0x20]
mov rdx, r12
call r8
mov r14d, eax
test eax, eax
js 0x1400235d0
mov eax, dword [r12 + 0x74]
jmp 0x140022be3
xor edi, edi
jmp 0x140021edc
mov eax, dword [rsi + 0x1c]
mov r14d, dword [r12 + 0x7c]
pxor xmm3, xmm3
pxor xmm0, xmm0
lea r8, str._.6g
mov edx, 0x20
mov dword [rsp + 0x68], eax
mov eax, dword [rsi + 0x18]
mov dword [rsp + 0x70], eax
mov eax, dword [r12 + 0x78]
mov qword [rsp + 0x100], 0
mov qword [rsp + 0x108], 0
mov qword [rsp + 0x110], 0
mov qword [rsp + 0x118], 0
mov dword [rsp + 0x78], eax
lea rax, [rsp + 0x100]
mov rcx, rax
mov qword [rsp + 0x88], rax
cvtsi2sd xmm0, dword [rsi + 0x1c]
cvtsi2sd xmm3, dword [rsi + 0x18]
divsd xmm3, xmm0
pxor xmm0, xmm0
cvtsi2sd xmm0, rbp
mulsd xmm3, xmm0
movq r9, xmm3
call fcn.140007800
mov rax, qword [r12 + 0x88]
mov rdx, qword [r15 + 8]
movabs rsi, 0x8000000000000000
mov qword [rsp + 0xe0], 0
mov qword [rsp + 0xe8], 0
mov qword [rsp + 0xf0], 0
mov qword [rsp + 0xf8], 0
cmp rax, rsi
je 0x140023a9d
pxor xmm3, xmm3
pxor xmm0, xmm0
lea rsi, [rsp + 0xe0]
cvtsi2sd xmm0, dword [rdx + 0x1c]
lea r8, str._.6g
mov rcx, rsi
cvtsi2sd xmm3, dword [rdx + 0x18]
mov edx, 0x20
divsd xmm3, xmm0
pxor xmm0, xmm0
cvtsi2sd xmm0, rax
mulsd xmm3, xmm0
movq r9, xmm3
call fcn.140007800
mov r9, qword [r12 + 0x88]
movabs rax, 0x8000000000000000
mov qword [rsp + 0xc0], 0
lea rcx, [rsp + 0xc0]
mov qword [rsp + 0xc8], 0
mov qword [rsp + 0xd0], 0
mov qword [rsp + 0xd8], 0
cmp r9, rax
je 0x140023abe
lea r8, str._lld
mov edx, 0x20
mov qword [rsp + 0x80], rcx
call fcn.140007800
mov rcx, qword [rsp + 0x80]
mov edx, dword [rsp + 0x68]
mov rax, qword [r15 + 8]
mov dword [rsp + 0x48], r14d
lea r8, str.decoder____ist_index:_d_type:video_frame_pts:_s_frame_pts_time:_s_best_effort_ts:_lld_best_effort_ts_time:_s_keyframe:_d_frame_type:_d_time_base:_d__d_n
mov qword [rsp + 0x20], rcx
xor ecx, ecx
mov dword [rsp + 0x58], edx
mov edx, dword [rsp + 0x70]
mov qword [rsp + 0x30], rbp
mov dword [rsp + 0x50], edx
mov edx, dword [rsp + 0x78]
mov qword [rsp + 0x28], rsi
mov dword [rsp + 0x40], edx
mov rdx, qword [rsp + 0x88]
mov qword [rsp + 0x38], rdx
mov r9d, dword [rax]
mov edx, 0x20
call sub.avutil_56.dll_av_log
mov r14, qword [r15 + 8]
jmp 0x140022cb7
mov rcx, qword [r15 + 8]
call sub.avformat_58.dll_av_stream_get_parser
test rax, rax
je 0x1400235c0
mov rcx, qword [r15 + 8]
call sub.avformat_58.dll_av_stream_get_parser
mov r8, qword [r15 + 0x20]
mov edx, dword [rax + 0x2c]
movsxd rcx, dword [r8 + 0x6c]
add edx, 1
movsxd rax, dword [r8 + 0x36c]
movsxd rdx, edx
movsxd r8, dword [r8 + 0x368]
imul rax, rdx
imul rax, rax, 0xf4240
cqo
idiv r8
cqo
idiv rcx
jmp 0x140021f35
mov eax, dword [r15 + 0x138]
test eax, eax
je 0x140023bbf
mov rcx, qword [r15 + 0x108]
test rcx, rcx
je 0x140023ce6
call sub.avutil_56.dll_av_fifo_space
test eax, eax
jne 0x140023562
mov rcx, qword [r15 + 0x108]
call sub.avutil_56.dll_av_fifo_size
mov rcx, qword [r15 + 0x108]
lea edx, [rax + rax]
call sub.avutil_56.dll_av_fifo_realloc2
mov r14d, eax
test eax, eax
js 0x1400230df
mov rcx, qword [r15 + 0x108]
xor r9d, r9d
mov rdx, qword [rsp + 0x88]
mov r8d, 0x20
call sub.avutil_56.dll_av_fifo_generic_write
mov eax, dword [rsp + 0x10c]
test eax, eax
je 0x140023cdf
mov rax, qword [0x140048b70]
add qword [r15 + 0x198], 1
xor edi, edi
mov ebp, dword [rax]
mov qword [rsp + 0xa0], rax
test ebp, ebp
jg 0x140022fbf
jmp 0x1400227e5
mov r8, qword [r15 + 0x20]
mov edx, dword [r8 + 0x6c]
movsxd rcx, edx
jmp 0x1400234e9
mov rcx, qword [r15 + 0x38]
xor r13d, r13d
call sub.avutil_56.dll_av_frame_unref
mov rcx, r12
call sub.avutil_56.dll_av_frame_unref
jmp 0x140021ee4
mov edi, dword [rsp + 0xac]
mov r14d, dword [rsp + 0xa8]
mov r15, qword [rsp + 0x190]
test edi, edi
je 0x1400227e5
mov rcx, qword [rsp + 0x88]
xor edi, edi
call sub.avcodec_58.dll_avsubtitle_free
jmp 0x1400227e5
add rsi, 1
cmp dword [r15 + 0x138], esi
jg 0x140022798
jmp 0x1400227e0
mov r13, qword [rsp + 0x118]
movabs rsi, 0x8000000000000000
cmp r13, rsi
je 0x140023b51
mov rsi, qword [0x140048c90]
mov rbp, qword [rbx + 0x58]
mov r15, qword [rsp + 0x80]
cmp qword [rsi], 0
je 0x140023b80
movabs rdi, 0xf424000000001
xor esi, esi
mov rdx, r13
cmp dword [rbp + 0x18], 0x17001
movabs r14, 0x3e800000001
sete sil
sub rdx, rax
add esi, 1
mov dword [rsp + 0x94], esi
movabs rsi, 0x8000000000000000
cmp rax, rsi
cmovne r13, rdx
xor esi, esi
jmp 0x1400236f9
mov qword [r12 + 0x10], r15
mov r8, rbx
mov rdx, r12
add esi, 1
mov rcx, qword [rsp + 0x80]
call fcn.140020630
cmp esi, dword [rsp + 0x94]
je 0x140023088
mov rax, qword [0x140048bb0]
movsxd rdx, dword [rbx]
mov rax, qword [rax]
mov r15, qword [rax + rdx*8]
mov eax, dword [rsp + 0x10c]
mov r8, qword [rbp + 0x64]
mov rcx, r13
mov rdx, rdi
mov dword [rsp + 0x70], eax
call sub.avutil_56.dll_av_rescale_q
mov r8, qword [r15 + 0x18]
movabs rcx, 0x7fffffffffffffff
mov qword [rbx + 0x28], rax
cmp r8, rcx
je 0x140023749
mov rdx, qword [rbx + 0x58]
sub rax, qword [rbx + 0x30]
mov r9, rdi
mov rcx, rax
mov rdx, qword [rdx + 0x64]
call sub.avutil_56.dll_av_compare_ts
test eax, eax
jns 0x1400238b0
mov ecx, dword [rsp + 0x104]
mov rdx, r14
mov r8, rdi
mov r15, rcx
call sub.avutil_56.dll_av_rescale_q
sub dword [rsp + 0x108], r15d
mov dword [rsp + 0x104], 0
add rax, r13
mov qword [rsp + 0x118], rax
mov rax, qword [0x140048c90]
mov rdx, qword [rax]
mov rax, qword [rbx + 0x1e0]
cmp esi, 1
je 0x140023870
add rax, 1
mov r9, qword [rsp + 0x88]
mov r8d, 0x100000
mov rcx, rbp
mov qword [rbx + 0x1e0], rax
call sub.avcodec_58.dll_avcodec_encode_subtitle
mov r15d, eax
test r15d, r15d
js 0x140023d2b
mov rcx, r12
call fcn.14002b190
mov rax, qword [0x140048c90]
mov dword [r12 + 0x20], r15d
mov r8, qword [rbx + 0x40]
mov rcx, qword [rsp + 0x118]
mov rdx, qword [rax]
mov qword [r12 + 0x18], rdx
mov rdx, rdi
call sub.avutil_56.dll_av_rescale_q
mov ecx, dword [rsp + 0x108]
mov r8, qword [rbx + 0x40]
mov rdx, r14
mov qword [r12 + 8], rax
mov r15, rax
mov qword [rsp + 0x78], r8
mov qword [rsp + 0x70], rcx
call sub.avutil_56.dll_av_rescale_q
mov rcx, qword [rsp + 0x70]
mov r8, qword [rsp + 0x78]
cmp dword [rbp + 0x18], 0x17001
mov qword [r12 + 0x40], rax
jne 0x1400236c0
test esi, esi
je 0x140023910
movabs rdx, 0x3e800000001
call sub.avutil_56.dll_av_rescale_q
mov rcx, qword [rsp + 0x80]
mov r8, rbx
mov rdx, r12
add r15, rax
mov qword [r12 + 8], r15
mov qword [r12 + 0x10], r15
call fcn.140020630
jmp 0x140023088
add rax, 1
mov r8d, 0x100000
mov rcx, rbp
mov dword [rsp + 0x10c], 0
mov qword [rbx + 0x1e0], rax
mov r9, qword [rsp + 0x88]
call sub.avcodec_58.dll_avcodec_encode_subtitle
mov r15d, eax
mov eax, dword [rsp + 0x70]
mov dword [rsp + 0x10c], eax
jmp 0x1400237ba
mov rax, qword [0x140048bb0]
movsxd rdx, dword [rbx]
mov rax, qword [rax]
mov rsi, qword [rax + rdx*8]
or dword [rbx + 0x198], 1
mov r9d, dword [rsi + 0x30]
test r9d, r9d
je 0x140023088
mov rax, qword [rbx + 0x58]
mov rcx, qword [rbx + 0x28]
movabs r8, 0xf424000000001
sub rcx, qword [rbx + 0x30]
mov rdx, qword [rax + 0x64]
call sub.avutil_56.dll_av_rescale_q
cmp qword [rsi + 0x18], rax
cmovle rax, qword [rsi + 0x18]
mov qword [rsi + 0x18], rax
jmp 0x140023088
mov ecx, dword [rsp + 0x104]
mov rdx, r14
call sub.avutil_56.dll_av_rescale_q
add r15, rax
mov qword [r12 + 8], r15
jmp 0x1400236c0
mov qword [rsp + 0x190], r15
mov r15d, edi
mov rbp, qword [rsp + 0x198]
mov rdi, qword [rsp + 0x190]
test r15d, r15d
je 0x140022d72
lea rbx, [rsp + 0x100]
mov ecx, r14d
mov r8d, 0x40
mov qword [rsp + 0x100], 0
mov qword [rsp + 0x108], 0
mov rdx, rbx
mov qword [rsp + 0x110], 0
mov qword [rsp + 0x118], 0
mov qword [rsp + 0x120], 0
mov qword [rsp + 0x128], 0
mov qword [rsp + 0x130], 0
mov qword [rsp + 0x138], 0
call sub.avutil_56.dll_av_strerror
mov qword [rsp + 0x28], rbx
mov rax, qword [rdi + 8]
mov edx, 0x10
lea r8, str.Error_while_decoding_stream__d:_d:__s_n
xor ecx, ecx
mov eax, dword [rax]
mov dword [rsp + 0x20], eax
mov r9d, dword [rdi]
call sub.avutil_56.dll_av_log
mov rax, qword [0x1400489b0]
mov r8d, dword [rax]
test r8d, r8d
jne 0x1400230df
mov dword [rsp + 0x90], r15d
mov ebx, dword [rdi + 0x18]
xor r15d, r15d
jmp 0x1400220df
mov rdi, r15
mov rbp, qword [rsp + 0x198]
xor r15d, r15d
mov dword [rsp + 0x90], 1
jmp 0x14002281c
mov rbp, qword [rsp + 0x198]
mov r13, qword [r15 + 0x20]
mov rdi, r15
mov rbx, qword [rdi + 0x50]
mov edx, dword [r13 + 0xc]
mov qword [rdi + 0x58], rbx
test edx, edx
je 0x140023af2
mov rax, rbx
cmp edx, 1
jne 0x140023a90
mov edx, dword [r13 + 0x190]
test edx, edx
je 0x140023bd5
movsxd rax, dword [r13 + 0x19c]
movsxd rcx, edx
imul rax, rax, 0xf4240
cqo
idiv rcx
add rax, rbx
mov qword [rdi + 0x50], rax
nop dword [rax]
mov qword [rdi + 0x68], rbx
mov qword [rdi + 0x60], rax
jmp 0x1400220f0
lea rsi, [rsp + 0xe0]
lea r8, str.NOPTS
mov edx, 0x20
mov rcx, rsi
call fcn.140007800
jmp 0x1400233eb
lea r8, str.NOPTS
mov edx, 0x20
mov qword [rsp + 0x80], rcx
call fcn.140007800
mov rcx, qword [rsp + 0x80]
jmp 0x14002345f
cmp r11d, eax
jne 0x140022b70
jmp 0x140022baf
mov eax, dword [rdi + 0xb8]
test eax, eax
je 0x140023c0c
mov r12d, dword [rdi + 0xbc]
mov rsi, rax
mov rcx, rbx
movabs rdx, 0xf424000000001
shl rsi, 0x20
mov r8, r12
or r8, rsi
call sub.avutil_56.dll_av_rescale_q
mov rdx, r12
movabs r8, 0xf424000000001
or rdx, rsi
lea rcx, [rax + 1]
call sub.avutil_56.dll_av_rescale_q
mov qword [rdi + 0x50], rax
jmp 0x140023a90
mov r13, qword [rdi + 0x20]
jmp 0x140023a41
lea r8, str.Subtitle_packets_must_have_a_pts_n
mov edx, 0x10
xor ecx, ecx
call sub.avutil_56.dll_av_log
mov rax, qword [0x1400489b0]
mov r10d, dword [rax]
test r10d, r10d
je 0x140023088
jmp 0x1400230df
mov ecx, 0x100000
call sub.avutil_56.dll_av_malloc
mov rsi, qword [0x140048c90]
mov qword [rsi], rax
test rax, rax
je 0x140023d37
mov rax, qword [0x140048bb0]
movsxd rdx, dword [rbx]
mov r13, qword [rsp + 0x118]
mov rax, qword [rax]
mov r15, qword [rax + rdx*8]
mov rax, qword [r15 + 0x20]
jmp 0x140023678
mov r13d, dword [rsp + 0x10c]
test r13d, r13d
jne 0x140022f97
jmp 0x140023608
mov rax, qword [rdi + 8]
mov rcx, qword [rbp + 0x40]
movabs r8, 0xf424000000001
mov rdx, qword [rax + 0x18]
call sub.avutil_56.dll_av_rescale_q
add rax, rbx
mov qword [rdi + 0x50], rax
jmp 0x140023a90
mov dword [rsp + 0x90], 1
jmp 0x140023a41
mov rcx, qword [rbp + 0x40]
test rcx, rcx
je 0x140023c6d
movabs r8, 0xf424000000001
mov rax, qword [rdi + 8]
mov rdx, qword [rax + 0x18]
call sub.avutil_56.dll_av_rescale_q
add rax, rbx
mov qword [rdi + 0x50], rax
jmp 0x140023a90
mov dword [rsp + 0x90], 1
jmp 0x1400220f0
mov ebx, dword [r15 + 0x18]
mov rdi, r15
mov dword [rsp + 0x90], 0
mov r15d, 1
mov rbp, qword [rsp + 0x198]
jmp 0x1400220df
mov edx, dword [r13 + 0x368]
mov rax, rbx
test edx, edx
je 0x140023a90
mov rcx, qword [rdi + 8]
call sub.avformat_58.dll_av_stream_get_parser
test rax, rax
je 0x140023d1e
mov rcx, qword [rdi + 8]
call sub.avformat_58.dll_av_stream_get_parser
mov r13, qword [rdi + 0x20]
mov edx, dword [rax + 0x2c]
add edx, 1
movsxd rax, dword [r13 + 0x36c]
movsxd rdx, edx
movsxd rcx, dword [r13 + 0x368]
mov rbx, qword [rdi + 0x58]
imul rax, rdx
imul rax, rax, 0xf4240
cqo
idiv rcx
movsxd rcx, dword [r13 + 0x6c]
cqo
idiv rcx
add rax, qword [rdi + 0x50]
mov qword [rdi + 0x50], rax
jmp 0x140023a90
xor edi, edi
jmp 0x1400227e5
mov ecx, 0x100
call sub.avutil_56.dll_av_fifo_alloc
mov qword [r15 + 0x108], rax
mov rcx, rax
test rax, rax
jne 0x140023533
jmp 0x1400230df
xor r13d, r13d
mov r14d, 0xfffffff4
jmp 0x1400229b7
mov r13, qword [rdi + 0x20]
mov edx, dword [r13 + 0x6c]
jmp 0x140023ca4
lea r8, str.Subtitle_encoding_failed_n
jmp 0x14002292f
lea r8, str.Failed_to_allocate_subtitle_out_n
jmp 0x14002292f
test byte [rsp + 0x90], 1
je 0x140023d60
test bl, bl
jne 0x140023d60
mov rcx, qword [rsp + 0x60]
call fcn.14002b190
jmp 0x140022644
xor r13d, r13d
jmp 0x1400229a8