Function at 0x140005650
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, 0x58
movups xmmword [rsp + 0x40], xmm6
cmp qword [rcx + 0xa0], 0
mov qword [rsp + 0xa8], rdx
mov r14, rcx
je 0x140005850
movss xmm6, dword [r14 + 0x68]
pxor xmm0, xmm0
mov edx, dword [r14 + 0x64]
ucomiss xmm6, xmm0
jp 0x140005710
jne 0x140005710
test edx, edx
jne 0x140005710
mov r9d, dword [r14 + 0xb8]
xor r8d, r8d
lea rdx, [rsp + 0x30]
mov rcx, qword [r14 + 0xa0]
test r9d, r9d
setne r8b
call sub.avutil_58.dll_av_thread_message_queue_recv
test eax, eax
js 0x1400056f1
mov eax, dword [rsp + 0x38]
test eax, eax
jne 0x140005840
mov rdx, qword [rsp + 0x30]
mov rcx, qword [r14 + 0x58]
mov rdi, qword [rsp + 0xa8]
movsxd r8, dword [rdx + 0x24]
mov rcx, qword [rcx + r8*8]
mov r8d, dword [rsp + 0x3c]
mov dword [rcx + 0x94], r8d
mov qword [rdi], rdx
movups xmm6, xmmword [rsp + 0x40]
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov rax, qword [0x140054810]
mov rcx, qword [r14 + 0x28]
movabs r8, 0x8000000000000000
movsxd rsi, dword [rax]
xor eax, eax
cmp rcx, r8
je 0x140005745
mov rax, qword [0x140054ac0]
mov r8d, dword [rax]
xor eax, eax
test r8d, r8d
sete al
imul rax, rcx
movabs r9, 0x8000000000000000
mov rcx, qword [r14 + 0x48]
cmp rcx, r9
lea r8, [rax + rcx]
cmovne rax, r8
imul rsi, rax
test edx, edx
jne 0x140005820
mov edx, dword [r14 + 0x60]
test edx, edx
jle 0x140005697
movabs rbp, 0x8000000000000000
xor r15d, r15d
xor edi, edi
nop dword [rax]
mov rax, qword [r14 + 0x58]
mov rbx, qword [rax + r15*8]
cmp qword [rbx + 0x188], 0
je 0x140005808
mov ecx, dword [rbx + 0x18]
test ecx, ecx
je 0x1400057ab
mov eax, dword [rbx + 0x1ac]
test eax, eax
je 0x140005808
mov rax, qword [rbx + 0x70]
mov rcx, qword [rbx + 0x78]
mov r8d, 0xf4240
mov edx, 0xf4240
cmp rax, rbp
cmove rax, rdi
cmp rax, rsi
cmovl rax, rsi
mov r12, rax
call sub.avutil_58.dll_av_rescale
mov r13, rax
call sub.avutil_58.dll_av_gettime_relative
pxor xmm0, xmm0
sub rax, qword [rbx + 0x60]
pxor xmm1, xmm1
cvtsi2ss xmm0, rax
cvtsi2ss xmm1, r12
mulss xmm0, xmm6
addss xmm0, xmm1
cvttss2si rax, xmm0
cmp r13, rax
jg 0x140005830
mov edx, dword [r14 + 0x60]
add r15, 1
cmp edx, r15d
jg 0x140005788
jmp 0x140005697
movss xmm6, dword [0x140046c70]
jmp 0x14000576a
mov eax, 0xfffffff5
jmp 0x1400056f1
mov eax, 1
jmp 0x1400056f1
mov rdx, qword [0x1400549b0]
mov eax, dword [rcx + 0xa8]
mov edx, dword [rdx]
test eax, eax
jle 0x14000598b
mov ebx, eax
cmp edx, 1
jle 0x14000588d
mov rdx, qword [r14 + 8]
mov rax, qword [rdx + 0x20]
test rax, rax
je 0x140005960
mov esi, dword [rax + 0x88]
test esi, esi
je 0x14000597b
lea rsi, [r14 + 0xa0]
mov r8d, 0x10
mov edx, ebx
mov rcx, rsi
call sub.avutil_58.dll_av_thread_message_queue_alloc
test eax, eax
js 0x1400056f1
mov r11d, dword [r14 + 0x80]
test r11d, r11d
je 0x140005900
movsxd rdx, dword [r14 + 0x60]
test edx, edx
jle 0x140005900
mov rax, qword [r14 + 0x58]
xor ebx, ebx
lea rcx, [rax + rdx*8]
nop word [rax + rax]
mov rdx, qword [rax]
mov r10d, dword [rdx + 0x18]
test r10d, r10d
je 0x1400058ef
mov rdx, qword [rdx + 8]
mov rdx, qword [rdx + 0x10]
cmp dword [rdx], 1
sete dl
movzx edx, dl
add ebx, edx
add rax, 8
cmp rcx, rax
jne 0x1400058d0
test ebx, ebx
jne 0x1400059b8
lea rcx, [r14 + 0xb0]
mov r9, r14
lea r8, [0x140004880]
xor edx, edx
call fcn.140035b30
mov ebx, eax
test eax, eax
je 0x14000567e
mov ecx, eax
call sub.msvcrt.dll_strerror
lea r8, str.pthread_create_failed:__s._Try_to_increase__ulimit__v__or_decrease__ulimit__s_._n
mov edx, 0x10
xor ecx, ecx
mov r9, rax
call sub.avutil_58.dll_av_log
mov rcx, rsi
call sub.avutil_58.dll_av_thread_message_queue_free
mov eax, ebx
neg eax
test ebx, ebx
jle 0x14000567e
jmp 0x1400056f1
mov rax, qword [rdx + 8]
lea rdx, [0x140046747]
mov rcx, qword [rax]
call sub.msvcrt.dll_strcmp
test eax, eax
je 0x14000588d
mov dword [r14 + 0xb8], 1
jmp 0x14000588d
cmp edx, 1
jle 0x1400059a4
mov dword [rcx + 0xa8], 8
mov ebx, 8
jmp 0x14000586e
mov dword [rcx + 0xa8], 1
mov ebx, 1
jmp 0x14000588d
lea rcx, [r14 + 0x70]
mov r8d, 0x10
mov edx, ebx
call sub.avutil_58.dll_av_thread_message_queue_alloc
test eax, eax
js 0x1400059d6
mov dword [r14 + 0x78], ebx
jmp 0x140005900
mov rcx, rsi
mov dword [rsp + 0x2c], eax
call sub.avutil_58.dll_av_thread_message_queue_free
mov eax, dword [rsp + 0x2c]
jmp 0x1400056f1