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

Disassembly:
mov qword [rsp + 8], rcx
push rbx
push rbp
push rsi
push rdi
sub rsp, 0x78
mov rbp, qword [rdx + 0x88]
movabs rbx, 0x8000000000000000
mov rdi, r8
mov rsi, rdx
cmp qword [r8 + 0x18], rbx
jne 0x14000bbfc
lea r8, str.Subtitle_packets_must_have_a_pts_n
mov edx, 0x10
xor ecx, ecx
call sub.avutil_56.dll_av_log
cmp dword [0x1401076a8], 0
je 0x14000bec8
mov ecx, 1
add rsp, 0x78
pop rdi
pop rsi
pop rbp
pop rbx
jmp fcn.140001974
cmp qword [0x1401074c0], 0
mov qword [rsp + 0x70], r12
mov qword [rsp + 0x68], r13
mov r13, qword [rdx + 0x58]
mov qword [rsp + 0x60], r14
mov qword [rsp + 0x58], r15
jne 0x14000bc4f
mov ecx, 0x100000
call sub.avutil_56.dll_av_malloc
mov qword [0x1401074c0], rax
test rax, rax
jne 0x14000bc4f
lea r8, str.Failed_to_allocate_subtitle_out_n
xor ecx, ecx
lea edx, [rax + 8]
call sub.avutil_56.dll_av_log
mov ecx, 1
call fcn.140001974
movsxd rcx, dword [rsi]
xor eax, eax
cmp dword [r13 + 0x18], 0x17001
mov r15, qword [rdi + 0x18]
sete al
mov dword [rsp + 0xb0], 1
inc eax
mov dword [rsp + 0xb4], 0xf4240
mov dword [rsp + 0xa8], eax
mov rax, qword [0x140107468]
mov rcx, qword [rax + rcx*8]
sub r15, qword [rcx + 0x20]
cmp qword [rcx + 0x20], rbx
mov rbx, qword [rsp + 0xb0]
cmove r15, qword [rdi + 0x18]
xor r14d, r14d
mov qword [rsp + 0x48], r15
nop word [rax + rax]
mov r8, qword [r13 + 0x64]
mov rdx, rbx
mov r12d, dword [rdi + 0xc]
mov rcx, r15
call sub.avutil_56.dll_av_rescale_q
movsxd rdx, dword [rsi]
mov rcx, rax
mov qword [rsi + 0x28], rax
mov rax, qword [0x140107468]
mov rdx, qword [rax + rdx*8]
movabs rax, 0x7fffffffffffffff
mov r8, qword [rdx + 0x18]
cmp r8, rax
je 0x14000bd22
mov rdx, qword [rsi + 0x58]
sub rcx, qword [rsi + 0x30]
mov dword [rsp + 0xb0], 1
mov dword [rsp + 0xb4], 0xf4240
mov rdx, qword [rdx + 0x64]
mov r9, qword [rsp + 0xb0]
call sub.avutil_56.dll_av_compare_ts
test eax, eax
jns 0x14000beac
mov ecx, dword [rdi + 4]
mov dword [rsp + 0xb8], 1
mov dword [rsp + 0xbc], 0xf4240
mov r8, qword [rsp + 0xb8]
mov dword [rsp + 0x20], 1
mov dword [rsp + 0x24], 0x3e8
mov rdx, qword [rsp + 0x20]
mov qword [rdi + 0x18], r15
call sub.avutil_56.dll_av_rescale_q
add qword [rdi + 0x18], rax
mov eax, dword [rdi + 4]
sub dword [rdi + 8], eax
xor eax, eax
mov dword [rdi + 4], eax
cmp r14d, 1
jne 0x14000bd79
mov dword [rdi + 0xc], eax
inc qword [rsi + 0x1e0]
mov r9, rdi
mov rdx, qword [0x1401074c0]
mov r8d, 0x100000
mov rcx, r13
call sub.avcodec_58.dll_avcodec_encode_subtitle
mov r15d, eax
cmp r14d, 1
jne 0x14000bda5
mov dword [rdi + 0xc], r12d
test r15d, r15d
jns 0x14000bdc7
lea r8, str.Subtitle_encoding_failed_n
mov edx, 8
xor ecx, ecx
call sub.avutil_56.dll_av_log
mov ecx, 1
call fcn.140001974
mov rcx, rbp
call sub.avcodec_58.dll_av_packet_unref
mov rax, qword [0x1401074c0]
mov qword [rbp + 0x18], rax
mov dword [rbp + 0x20], r15d
mov r8, qword [rsi + 0x40]
mov rcx, qword [rdi + 0x18]
mov dword [rsp + 0x28], 1
mov dword [rsp + 0x2c], 0xf4240
mov rdx, qword [rsp + 0x28]
call sub.avutil_56.dll_av_rescale_q
mov qword [rbp + 8], rax
mov ecx, dword [rdi + 8]
mov r8, qword [rsi + 0x40]
mov dword [rsp + 0x30], 1
mov dword [rsp + 0x34], 0x3e8
mov rdx, qword [rsp + 0x30]
call sub.avutil_56.dll_av_rescale_q
mov qword [rbp + 0x40], rax
cmp dword [r13 + 0x18], 0x17001
jne 0x14000be77
mov r8, qword [rsi + 0x40]
test r14d, r14d
jne 0x14000be56
mov ecx, dword [rdi + 4]
mov dword [rsp + 0x38], 1
mov dword [rsp + 0x3c], 0x3e8
mov rdx, qword [rsp + 0x38]
jmp 0x14000be6e
mov ecx, dword [rdi + 8]
mov dword [rsp + 0x40], 1
mov dword [rsp + 0x44], 0x3e8
mov rdx, qword [rsp + 0x40]
call sub.avutil_56.dll_av_rescale_q
add qword [rbp + 8], rax
mov rax, qword [rbp + 8]
xor r9d, r9d
mov rcx, qword [rsp + 0xa0]
mov r8, rsi
mov rdx, rbp
mov qword [rbp + 0x10], rax
call fcn.140011df0
inc r14d
cmp r14d, dword [rsp + 0xa8]
jge 0x14000beb4
mov r15, qword [rsp + 0x48]
jmp 0x14000bcb0
mov rcx, rsi
call fcn.14000a530
mov r14, qword [rsp + 0x60]
mov r13, qword [rsp + 0x68]
mov r12, qword [rsp + 0x70]
mov r15, qword [rsp + 0x58]
add rsp, 0x78
pop rdi
pop rsi
pop rbp
pop rbx
ret