Function at 0x14002aee0
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x80
mov rax, qword [0x140056038]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov rbp, rdx
mov rdi, rcx
xor r12d, r12d
mov dword [rsp + 0x30], r12d
mov rbx, qword [rcx + 0x2048]
cmp qword [rcx + 0x2028], r12
jne 0x14002af2f
cmp qword [rcx + 0x2040], r12
je 0x14002af38
cmp qword [rcx + 0x100], r12
jne 0x14002af42
mov eax, 0xffffffea
jmp 0x14002b272
cmp qword [rbx + 0xc8], r12
jne 0x14002af6e
movzx eax, byte [rcx + 0x20]
nop
test al, al
jne 0x14002af6e
mov rdx, qword [rcx + 0x10]
cmp qword [rdx + 0xc8], r12
je 0x14002b143
mov rcx, rbx
call qword [sym.imp.avutil_59.dll_av_frame_move_ref]
mov rdx, rbx
mov rcx, rdi
call fcn.14002ab90
test eax, eax
jns 0x14002af87
cmp eax, 0xfffffff5
je 0x14002af90
jmp 0x14002b272
mov rcx, rbx
call qword [sym.imp.avutil_59.dll_av_frame_unref]
cmp byte [rdi + 0x1ac2c], r12b
je 0x14002b14d
lea r14, [rdi + 0x1acc8]
cmp qword [r14], r12
jne 0x14002b081
mov ecx, 0x10
call fcn.140038010
mov r15, rax
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x58], r12
mov ecx, 8
call fcn.140038010
mov qword [rax], rdi
mov qword [rsp + 0x58], rax
mov esi, 2
mov dword [rsp + 0x30], esi
lea rbx, [r15 + 8]
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x20], r12d
mov r9, rax
lea r8, [0x14002cf40]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [r15], rax
test rax, rax
je 0x14002b0a3
mov qword [rsp + 0x58], r12
and esi, 0xfffffffd
mov dword [rsp + 0x30], esi
mov rbx, r15
mov qword [rsp + 0x38], rbx
or esi, 1
mov dword [rsp + 0x30], esi
lea rax, [rsp + 0x38]
cmp r14, rax
je 0x14002b05b
mov rbx, r12
mov qword [rsp + 0x38], rbx
mov rcx, qword [r14]
mov qword [r14], r15
test rcx, rcx
je 0x14002b05b
cmp dword [rcx + 8], ebx
je 0x14002b051
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_terminate]
int3
mov edx, 0x10
call fcn.140038000
and esi, 0xfffffffe
mov dword [rsp + 0x30], esi
test rbx, rbx
je 0x14002b081
cmp dword [rbx + 8], 0
je 0x14002b074
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_terminate]
int3
mov edx, 0x10
mov rcx, rbx
call fcn.140038000
lea rsi, [rdi + 0x1acd0]
mov qword [rsp + 0x48], rsi
mov rcx, rsi
call qword [sym.imp.MSVCP140.dll__Mtx_lock]
test eax, eax
je 0x14002b0b2
mov ecx, eax
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_C_error_int_]
nop
mov dword [rbx], r12d
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
nop
mov rbx, qword [rsi + 0x70]
mov rcx, rsi
call qword [sym.imp.MSVCP140.dll__Mtx_unlock]
test rbx, rbx
je 0x14002b126
xorps xmm0, xmm0
movups xmmword [rsp + 0x60], xmm0
lea rdx, [rsp + 0x60]
mov rcx, rsi
call fcn.14002bc90
nop
mov rdx, qword [rsp + 0x60]
mov rcx, rbp
call qword [sym.imp.avcodec_61.dll_av_packet_move_ref]
nop
mov rbx, qword [rsp + 0x68]
test rbx, rbx
je 0x14002b11f
mov edi, 0xffffffff
mov eax, edi
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x14002b11f
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
lock xadd dword [rbx + 0xc], edi
cmp edi, 1
jne 0x14002b11f
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
xor eax, eax
jmp 0x14002b272
movzx eax, byte [rdi + 0x20]
nop
test al, al
je 0x14002b143
cmp qword [rdi + 0x2160], 0
jne 0x14002b143
mov eax, 0xdfb9b0bb
jmp 0x14002b272
mov eax, 0xfffffff5
jmp 0x14002b272
movzx eax, byte [rdi + 0x20]
nop
mov rcx, qword [rdi + 0x2160]
test al, al
jne 0x14002b186
test rcx, rcx
je 0x14002b25c
add rcx, qword [rdi + 0x20f8]
movsxd rax, dword [rdi + 0x1ac14]
cmp rcx, rax
jb 0x14002b25c
mov r8, qword [rdi + 0x2160]
jmp 0x14002b192
test rcx, rcx
je 0x14002b25c
mov r8, rcx
mov r10, qword [rdi + 0x2158]
mov rdx, qword [rdi + 0x2150]
dec rdx
mov rax, r10
shr rax, 1
and rdx, rax
mov rax, qword [rdi + 0x2148]
mov rcx, r10
and ecx, 1
mov rax, qword [rax + rdx*8]
mov rsi, qword [rax + rcx*8]
lea rax, [r8 - 1]
mov qword [rdi + 0x2160], rax
test rax, rax
mov rax, r12
je 0x14002b1d8
lea rax, [r10 + 1]
mov qword [rdi + 0x2158], rax
cmp qword [rdi + 0x2040], r12
jne 0x14002b206
mov rax, qword [rdi + 0x108]
mov rdx, qword [rax + 0x50]
mov rcx, qword [rdi + 0x2028]
call rdx
mov ecx, eax
neg ecx
sbb edx, edx
test eax, eax
jne 0x14002b270
mov r8, rsi
mov rdx, rbp
mov rcx, rdi
call fcn.14002a580
mov ebx, eax
cmp qword [rdi + 0x2040], r12
jne 0x14002b240
mov qword [rsp + 0x50], r12
mov rcx, qword [rdi + 0x108]
mov rdx, qword [rcx + 0x58]
lea rcx, [rsp + 0x50]
call rdx
mov ecx, eax
neg ecx
sbb edx, edx
test eax, eax
jne 0x14002b270
test ebx, ebx
je 0x14002b248
mov edx, ebx
jmp 0x14002b270
lea rcx, [rdi + 0x2070]
mov rdx, rsi
call fcn.140027040
mov edx, r12d
jmp 0x14002b270
movzx ecx, byte [rdi + 0x20]
nop
mov edx, 0xfffffff5
mov eax, 0xdfb9b0bb
test cl, cl
cmovne edx, eax
mov eax, edx
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.140037fe0
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x40]
mov rbp, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret