Function at 0x14001a710
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x30
mov rbp, rdx
mov rsi, rcx
mov rbx, qword [rcx + 0x2038]
cmp qword [rcx + 0x2018], 0
jne 0x14001a741
cmp qword [rcx + 0x2030], 0
je 0x14001a74b
cmp qword [rcx + 0xf0], 0
jne 0x14001a761
mov eax, 0xffffffea
mov rbx, qword [rsp + 0x68]
add rsp, 0x30
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
mov r15d, 0xdfb9b0bb
cmp qword [rbx + 0x120], 0
jne 0x14001a78e
mov rdx, rbx
call fcn.140015040
mov edx, 0x80000000
lea ecx, [rax + rdx]
test edx, ecx
jne 0x14001a78e
cmp eax, r15d
jne 0x14001a9d7
mov rdx, rbx
mov rcx, rsi
call fcn.14001a2f0
test eax, eax
jns 0x14001a7b3
cmp eax, 0xfffffff5
je 0x14001a7bb
mov rbx, qword [rsp + 0x68]
add rsp, 0x30
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
mov rcx, rbx
call sub.avutil_56.dll_av_frame_unref
cmp byte [rsi + 0x1ac15], 0
je 0x14001a9a4
lea rdi, [rsi + 0x1acb0]
cmp qword [rdi], 0
jne 0x14001a878
mov ecx, 0x10
call fcn.140029408
mov rbx, rax
mov qword [rsp + 0x60], rax
test rax, rax
je 0x14001a83a
mov ecx, 8
call fcn.140029408
test rax, rax
je 0x14001a802
mov qword [rax], rsi
mov qword [rsp + 0x70], rax
lea r14, [rbx + 8]
mov qword [rsp + 0x28], r14
mov dword [rsp + 0x20], 0
mov r9, rax
lea r8, [0x1400181f0]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rbx], rax
test rax, rax
je 0x14001aade
jmp 0x14001a83c
xor ebx, ebx
lea rax, [rsp + 0x60]
cmp rdi, rax
je 0x14001a859
mov rcx, qword [rdi]
mov qword [rdi], rbx
test rcx, rcx
je 0x14001a878
cmp dword [rcx + 8], 0
jne 0x14001a864
jmp 0x14001a86e
test rbx, rbx
je 0x14001a878
cmp dword [rbx + 8], 0
je 0x14001a86b
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_terminate]
int3
mov rcx, rbx
mov edx, 0x10
call fcn.140029444
lea rbx, [rsi + 0x1acb8]
mov rcx, rbx
call sub.MSVCP140.dll__Mtx_lock
test eax, eax
jne 0x14001aaf0
mov rdi, qword [rbx + 0x70]
mov rcx, rbx
call sub.MSVCP140.dll__Mtx_unlock
test rdi, rdi
je 0x14001a967
mov rcx, rbx
call sub.MSVCP140.dll__Mtx_lock
test eax, eax
jne 0x14001aad6
lea rcx, [rbx + 0x50]
cmp qword [rcx + 0x20], 0
jne 0x14001a8e4
mov rcx, rbx
call sub.MSVCP140.dll__Mtx_unlock
xor edx, edx
mov rcx, rbp
call sub.avcodec_58.dll_av_packet_move_ref
xor eax, eax
mov rbx, qword [rsp + 0x68]
add rsp, 0x30
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
mov rdx, qword [rbx + 0x60]
dec rdx
and rdx, qword [rbx + 0x68]
mov rax, qword [rbx + 0x58]
mov rdi, qword [rax + rdx*8]
mov rsi, qword [rdi + 8]
test rsi, rsi
je 0x14001a908
lock inc dword [rsi + 8]
mov rsi, qword [rdi + 8]
mov rdi, qword [rdi]
call fcn.14001d0c0
mov rcx, rbx
call sub.MSVCP140.dll__Mtx_unlock
mov rdx, rdi
mov rcx, rbp
call sub.avcodec_58.dll_av_packet_move_ref
test rsi, rsi
je 0x14001a954
mov ebx, 0xffffffff
mov eax, ebx
lock xadd dword [rsi + 8], eax
cmp eax, 1
jne 0x14001a954
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax]
lock xadd dword [rsi + 0xc], ebx
cmp ebx, 1
jne 0x14001a954
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
xor eax, eax
mov rbx, qword [rsp + 0x68]
add rsp, 0x30
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
movzx ecx, byte [rsi + 0x20]
nop
test cl, cl
je 0x14001a98e
cmp qword [rsi + 0x2150], 0
jne 0x14001a98e
mov eax, r15d
mov rbx, qword [rsp + 0x68]
add rsp, 0x30
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
mov eax, 0xfffffff5
mov rbx, qword [rsp + 0x68]
add rsp, 0x30
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
movzx eax, byte [rsi + 0x20]
nop
mov ecx, dword [rsi + 0x2150]
test al, al
jne 0x14001a9e8
test ecx, ecx
jle 0x14001a9c5
add ecx, dword [rsi + 0x20e8]
cmp ecx, dword [rsi + 0x1ac04]
jge 0x14001a9ec
movzx ecx, byte [rsi + 0x20]
nop
mov edx, 0xfffffff5
test cl, cl
cmovne edx, r15d
mov eax, edx
mov rbx, qword [rsp + 0x68]
add rsp, 0x30
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
test ecx, ecx
jle 0x14001a9c5
mov r9, qword [rsi + 0x2150]
test r9, r9
jne 0x14001a9fc
xor edi, edi
jmp 0x14001aa46
mov r10, qword [rsi + 0x2148]
mov rdx, r10
shr rdx, 1
mov rax, qword [rsi + 0x2140]
dec rax
and rdx, rax
mov rax, qword [rsi + 0x2138]
mov rcx, r10
and ecx, 1
mov rax, qword [rax + rdx*8]
mov rdi, qword [rax + rcx*8]
lea rax, [r9 - 1]
mov qword [rsi + 0x2150], rax
test rax, rax
je 0x14001aa3f
lea rax, [r10 + 1]
mov qword [rsi + 0x2148], rax
cmp qword [rsi + 0x2030], 0
jne 0x14001aa72
mov rax, qword [rsi + 0xf8]
mov rdx, qword [rax + 0x50]
mov rcx, qword [rsi + 0x2018]
call rdx
mov ecx, eax
neg ecx
sbb edx, edx
test eax, eax
jne 0x14001a9d5
mov r8, rdi
mov rdx, rbp
mov rcx, rsi
call fcn.14001ae00
mov ebx, eax
cmp qword [rsi + 0x2030], 0
jne 0x14001aab5
mov qword [rsp + 0x60], 0
mov rcx, qword [rsi + 0xf8]
mov rdx, qword [rcx + 0x58]
lea rcx, [rsp + 0x60]
call rdx
mov ecx, eax
neg ecx
sbb edx, edx
test eax, eax
jne 0x14001a9d5
test ebx, ebx
je 0x14001aac0
mov edx, ebx
jmp 0x14001a9d5
lea rcx, [rsi + 0x2060]
mov rdx, rdi
call fcn.140017dd0
xor edx, edx
jmp 0x14001a9d5
mov ecx, eax
call sub.MSVCP140.dll_void___cdecl_std::_Throw_C_error_int_
nop
mov dword [r14], 0
mov ecx, 6
call sub.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_
nop
mov ecx, eax
call sub.MSVCP140.dll_void___cdecl_std::_Throw_C_error_int_
int3