Function at 0x140001290
Capabilities:
Create thread

Disassembly:
push rbp
push rsi
push r12
lea rbp, [rsp - 0x47]
sub rsp, 0xa0
mov rax, qword [0x140043080]
xor rax, rsp
mov qword [rbp + 0x27], rax
mov r12, qword [rcx + 0x40]
mov rsi, rcx
test r12, r12
jne 0x1400012e8
mov rcx, qword [rcx + 0x38]
mov ecx, dword [rcx + 0x18]
call sub.avcodec_60.dll_avcodec_get_name
mov r9, rax
lea r8, str.Decoding_requested__but_no_decoder_found_for:__s_n
lea edx, [r12 + 0x10]
mov rcx, rsi
call sub.avutil_58.dll_av_log
lea eax, [r12 - 0x16]
jmp 0x140001746
mov qword [rsp + 0xc8], rbx
mov qword [rsp + 0xd0], rdi
xor edi, edi
mov qword [rcx + 0x30], rdi
mov ecx, 0x88
mov qword [rsp + 0xd8], r13
mov qword [rsp + 0x98], r14
mov qword [rsp + 0x90], r15
call sub.avutil_58.dll_av_mallocz
mov qword [rbp - 0x29], rax
test rax, rax
je 0x140001719
call sub.avutil_58.dll_av_frame_alloc
mov rcx, qword [rbp - 0x29]
mov qword [rcx], rax
test rax, rax
je 0x1400016ca
call sub.avcodec_60.dll_av_packet_alloc
mov rcx, qword [rbp - 0x29]
mov qword [rcx + 8], rax
mov rbx, qword [rbp - 0x29]
cmp qword [rbx + 8], rdi
je 0x1400016ce
movabs rcx, 0x8000000000000000
mov dword [rbp - 0x21], 1
mov qword [rbx + 0x30], rcx
mov r15d, 0xffffffff
mov rax, qword [rbp - 0x29]
mov dword [rbp - 0x1d], 1
mov qword [rax + 0x18], rcx
mov rax, qword [rbp - 0x29]
mov rcx, qword [rbp - 0x21]
mov qword [rax + 0x28], rcx
mov rax, qword [rbp - 0x29]
mov dword [rax + 0x10], r15d
mov r13, qword [rbp - 0x29]
mov qword [rsi + 0x30], r13
cmp dword [r12 + 0x10], 3
jne 0x1400013e7
cmp dword [rsi + 0x78], edi
je 0x1400013e7
mov r14d, edi
lea rbx, [r13 + 0x40]
call sub.avutil_58.dll_av_frame_alloc
mov qword [rbx], rax
test rax, rax
je 0x140001719
inc r14d
add rbx, 8
cmp r14d, 2
jb 0x1400013b7
call sub.avutil_58.dll_av_frame_alloc
mov qword [r13 + 0x50], rax
test rax, rax
je 0x140001719
mov rax, qword [rsi + 0x38]
lea rcx, [0x140001ef0]
mov qword [rax + 0x30], rsi
mov rax, qword [rsi + 0x38]
mov qword [rax + 0x98], rcx
mov rax, qword [rsi + 0x38]
cmp dword [rax + 0x18], 0x17001
jne 0x14000144a
test byte [rsi + 0x20], 1
je 0x14000144a
lea rcx, [rsi + 0x60]
mov r9d, 0x10
lea r8, [0x14002e6cc]
lea rdx, str.compute_edt
call sub.avutil_58.dll_av_dict_set
test byte [rsi + 0x20], 2
je 0x14000144a
lea r8, str.Warning_using_DVB_subtitles_for_filtering_and_output_at_the_same_time_is_not_fully_supported__also_see__compute_edt__01__n
mov edx, 0x18
xor ecx, ecx
call sub.avutil_58.dll_av_log
mov rax, qword [rsi + 0x10]
lea rdx, [0x14002e760]
mov rcx, qword [rsi + 0x38]
xor r9d, r9d
xor r8d, r8d
mov rax, qword [rax + 0x20]
mov qword [rcx + 0x2cc], rax
mov rcx, qword [rsi + 0x60]
call sub.avutil_58.dll_av_dict_get
test rax, rax
jne 0x140001492
xor r9d, r9d
lea r8, str.auto
lea rdx, [0x14002e760]
lea rcx, [rsi + 0x60]
call sub.avutil_58.dll_av_dict_set
mov rax, qword [rsi + 0x10]
test dword [rax + 0x40], 0x400
je 0x1400014b9
xor r9d, r9d
lea r8, [0x14002e6cc]
lea rdx, [0x14002e760]
lea rcx, [rsi + 0x60]
call sub.avutil_58.dll_av_dict_set
mov rcx, rsi
call fcn.140001fb0
mov ebx, eax
test eax, eax
jns 0x14000150a
xorps xmm0, xmm0
lea rdx, [rbp - 0x19]
mov r8d, 0x40
mov ecx, eax
movups xmmword [rbp - 0x19], xmm0
movups xmmword [rbp - 9], xmm0
movups xmmword [rbp + 7], xmm0
movups xmmword [rbp + 0x17], xmm0
call sub.avutil_58.dll_av_strerror
lea r9, [rbp - 0x19]
mov edx, 0x10
lea r8, str.Hardware_device_setup_failed_for_decoder:__s_n
mov rcx, rsi
call sub.avutil_58.dll_av_log
mov eax, ebx
jmp 0x14000171e
mov rcx, qword [rsi + 0x38]
lea r8, [rsi + 0x60]
mov rdx, r12
call sub.avcodec_60.dll_avcodec_open2
mov ebx, eax
test eax, eax
jns 0x140001563
xorps xmm0, xmm0
lea rdx, [rbp - 0x19]
mov r8d, 0x40
mov ecx, eax
movups xmmword [rbp - 0x19], xmm0
movups xmmword [rbp - 9], xmm0
movups xmmword [rbp + 7], xmm0
movups xmmword [rbp + 0x17], xmm0
call sub.avutil_58.dll_av_strerror
lea r9, [rbp - 0x19]
mov edx, 0x10
lea r8, str.Error_while_opening_decoder:__s_n
mov rcx, rsi
call sub.avutil_58.dll_av_log
mov eax, ebx
jmp 0x14000171e
mov rcx, qword [rsi + 0x60]
call fcn.140028100
test eax, eax
js 0x14000171e
mov r14, qword [rsi + 0x30]
call fcn.14001fd10
mov qword [rbp - 0x29], rax
test rax, rax
je 0x1400015ae
mov edx, 1
lea r9, [0x140002880]
mov ecx, edx
mov r8, rax
call fcn.140021a20
mov qword [r14 + 0x78], rax
test rax, rax
jne 0x1400015b6
lea rcx, [rbp - 0x29]
call fcn.14001fd60
mov r15d, 0xfffffff4
jmp 0x14000160b
call fcn.14001fcc0
mov qword [rbp - 0x29], rax
test rax, rax
je 0x1400015f0
mov edx, 4
lea r9, [0x140001ee0]
mov r8, rax
lea ecx, [rdx - 3]
call fcn.140021a20
mov qword [r14 + 0x80], rax
test rax, rax
jne 0x140001650
lea rcx, [rbp - 0x29]
call fcn.14001fd60
mov r15d, 0xfffffff4
lea rcx, [r14 + 0x78]
call fcn.140021b60
lea rcx, [r14 + 0x80]
call fcn.140021b60
xorps xmm0, xmm0
lea rdx, [rbp - 0x19]
mov r8d, 0x40
mov ecx, r15d
movups xmmword [rbp - 0x19], xmm0
movups xmmword [rbp - 9], xmm0
movups xmmword [rbp + 7], xmm0
movups xmmword [rbp + 0x17], xmm0
call sub.avutil_58.dll_av_strerror
lea r9, [rbp - 0x19]
mov edx, 0x10
lea r8, str.Error_starting_decoder_thread:__s_n
mov rcx, rsi
call sub.avutil_58.dll_av_log
mov eax, r15d
jmp 0x14000171e
lea rax, [0x140001b30]
mov qword [rsp + 0x28], rdi
lea r9, [r14 + 0x58]
mov qword [r14 + 0x60], rax
lea r8, [0x1400030a0]
mov qword [r14 + 0x68], rsi
xor edx, edx
mov dword [rsp + 0x20], edi
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [r14 + 0x58], rax
test rax, rax
jne 0x1400016c6
xorps xmm0, xmm0
lea r8d, [rax + 0x40]
lea rdx, [rbp - 0x19]
mov ecx, r15d
movups xmmword [rbp - 0x19], xmm0
movups xmmword [rbp - 9], xmm0
movups xmmword [rbp + 7], xmm0
movups xmmword [rbp + 0x17], xmm0
call sub.avutil_58.dll_av_strerror
lea r9, [rbp - 0x19]
mov edx, 0x10
lea r8, str.pthread_create___failed:__s_n
mov rcx, rsi
call sub.avutil_58.dll_av_log
jmp 0x1400015f6
xor eax, eax
jmp 0x14000171e
mov rbx, qword [rbp - 0x29]
test rbx, rbx
je 0x140001719
mov rcx, rbx
call fcn.140001a80
mov rcx, rbx
call sub.avutil_58.dll_av_frame_free
lea rcx, [rbx + 8]
call sub.avcodec_60.dll_av_packet_free
nop dword [rax]
movsxd rax, edi
add rax, 8
lea rcx, [rbx + rax*8]
call sub.avutil_58.dll_av_frame_free
inc edi
cmp edi, 2
jb 0x1400016f0
lea rcx, [rbx + 0x50]
call sub.avutil_58.dll_av_frame_free
lea rcx, [rbp - 0x29]
call sub.avutil_58.dll_av_freep
mov eax, 0xfffffff4
mov r14, qword [rsp + 0x98]
mov r13, qword [rsp + 0xd8]
mov rdi, qword [rsp + 0xd0]
mov rbx, qword [rsp + 0xc8]
mov r15, qword [rsp + 0x90]
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.14002b2c0
add rsp, 0xa0
pop r12
pop rsi
pop rbp
ret