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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x20
mov edi, dword [ebp + 8]
mov ebx, dword [ebp + 0x14]
mov eax, dword [edi + 0x1c]
mov esi, dword [eax + 0x14]
mov eax, dword [esi + 0x20]
mov ecx, esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x24], eax
call fcn.1001bdbd
mov ecx, dword [esi + 0x1c]
mov eax, dword [esi]
mov dword [ebp - 0x10], ecx
imul ecx, ecx, 0xb8
cmp dword [ebx + 0x1c], 0
lea esi, [eax + ecx + 0x2c]
mov dword [ebp - 0x14], ecx
mov edx, dword [esi - 0x2c]
mov ebx, dword [edx + 4]
mov dword [ebp - 0x20], ebx
jne 0x1001b94b
mov ecx, dword [esi]
mov ecx, dword [ecx + 0xc]
test byte [ecx + 0x10], 0x20
mov ecx, dword [ebp - 0x14]
je 0x1001bc31
mov dword [ebp - 0x28], eax
lea eax, [eax + ecx + 0x24]
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x10], eax
push eax
call dword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
mov dword [ebp - 0x18], esi
mov esi, dword [esi]
mov eax, dword [edi + 0x3c]
mov dword [esi + 0x3c], eax
mov eax, dword [edi + 0x74]
mov dword [esi + 0x74], eax
mov eax, dword [edi + 0x190]
mov dword [esi + 0x190], eax
mov eax, dword [edi + 0x20]
mov dword [esi + 0x20], eax
mov eax, dword [edi + 0x240]
mov dword [esi + 0x240], eax
mov eax, dword [edi + 0x340]
mov dword [esi + 0x340], eax
mov eax, dword [edi + 0xf0]
mov dword [esi + 0xf0], eax
mov eax, dword [edi + 0x40]
mov dword [esi + 0x40], eax
mov eax, dword [edi + 0x2dc]
mov dword [esi + 0x2dc], eax
movsd xmm0, qword [edi + 0x2d4]
movsd qword [esi + 0x2d4], xmm0
mov eax, dword [edi + 0x168]
mov dword [esi + 0x168], eax
movsd xmm0, qword [edi + 0x248]
movsd qword [esi + 0x248], xmm0
mov eax, dword [edi + 0x2bc]
mov dword [esi + 0x2bc], eax
mov eax, dword [edi + 0xb0]
test eax, eax
je 0x1001ba37
mov ecx, dword [edi + 0xb8]
test ecx, ecx
je 0x1001ba53
cmp dword [esi + 0xb0], eax
lea ebx, [esi + 0xb8]
jge 0x1001ba3b
push 4
push eax
push ebx
call fcn.10053a65
add esp, 0xc
test eax, eax
js 0x1001bc57
mov edi, dword [ebp + 8]
mov eax, dword [edi + 0xb0]
mov ecx, dword [edi + 0xb8]
jmp 0x1001ba3e
xor eax, eax
jmp 0x1001ba53
mov edi, dword [ebp + 8]
shl eax, 2
push eax
push ecx
push dword [ebx]
call fcn.101613e0
add esp, 0xc
mov eax, dword [edi + 0xb0]
mov ebx, dword [ebp - 0x18]
mov dword [esi + 0xb0], eax
mov ecx, dword [ebp - 0x14]
mov esi, dword [ebp - 0x28]
mov edi, dword [ebp - 0x20]
mov eax, dword [ebx]
mov eax, dword [eax + 0x240]
shr eax, 0x10
and eax, 1
mov dword [esi + ecx + 0xb0], eax
lea ecx, [esi + ecx]
mov dword [ebp - 0x20], ecx
call fcn.1001c438
test edi, edi
je 0x1001baed
mov eax, dword [edi + 0x84]
cmp eax, 1
jne 0x1001bad6
lea esi, [edi + 0x28]
push esi
call dword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
mov eax, dword [edi + 0x84]
mov ebx, edi
cmp eax, 1
jne 0x1001bac5
lea edi, [ebx + 0x1c]
push 0
push 0xffffffffffffffff
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SleepConditionVariableSRW]
mov eax, dword [ebx + 0x84]
cmp eax, 1
je 0x1001baae
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov eax, dword [ebp - 0x18]
mov esi, dword [ebp - 0x28]
mov edi, ebx
mov ebx, eax
mov edx, dword [edi + 0x2c]
mov ecx, dword [ebx]
push 0
call fcn.1001bdf5
add esp, 4
test eax, eax
jne 0x1001bc57
mov edi, dword [ebp - 0x14]
lea esi, [esi + edi + 0x30]
push esi
call sym.ffmpeg.dll_av_packet_unref
add esp, 4
push dword [ebp + 0x14]
push esi
call fcn.10009126
add esp, 8
test eax, eax
js 0x1001bc57
mov esi, dword [ebp - 0x28]
xor ecx, ecx
inc ecx
lea eax, [esi + edi + 0x18]
xchg dword [eax + 0x6c], ecx
push eax
call dword [sym.imp.KERNEL32.dll_WakeConditionVariable]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov eax, dword [ebx]
cmp dword [eax + 0x2bc], 0
jne 0x1001bc19
cmp dword [eax + 0x78], 0x1000d3a9
mov edi, esi
jne 0x1001bb58
cmp dword [eax + 0x190], 0x1000d71b
je 0x1001bc19
mov eax, dword [ebp - 0x14]
lea ebx, [edi + eax + 0x84]
mov eax, dword [ebx]
cmp eax, 4
je 0x1001bc19
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x10], ebx
lea esi, [edi + eax + 0x28]
lea edi, [edi + eax + 0x1c]
mov eax, dword [ebx]
test eax, eax
je 0x1001bc19
push esi
call dword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
mov eax, dword [ebx]
mov ebx, esi
mov esi, dword [sym.imp.KERNEL32.dll_SleepConditionVariableSRW]
cmp eax, 1
jne 0x1001bbad
push 0
push 0xffffffffffffffff
push ebx
push edi
call esi
mov eax, dword [ebp - 0x10]
mov eax, dword [eax]
cmp eax, 1
je 0x1001bb9b
mov eax, dword [ebp - 0x10]
mov esi, edi
mov edi, eax
mov eax, dword [eax]
cmp eax, 3
je 0x1001bbe0
mov ecx, esi
mov esi, ebx
mov ebx, edi
cmp eax, 2
mov edi, ecx
jne 0x1001bc07
push dword [esi + 0x70]
push dword [esi + 0x6c]
mov eax, dword [ebp - 0x18]
push dword [eax]
call fcn.1000df52
add esp, 0xc
mov dword [esi + 0x58], eax
jmp 0x1001bbfb
push dword [ebx + 0x74]
mov eax, dword [ebp - 0x18]
push dword [eax]
call fcn.1000d49e
add esp, 8
mov ecx, esi
mov dword [ebx + 0x78], eax
mov esi, ebx
mov ebx, edi
mov edi, ecx
xor eax, eax
inc eax
xchg dword [ebx], eax
push edi
call dword [sym.imp.KERNEL32.dll_WakeConditionVariable]
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov eax, dword [ebx]
cmp eax, 4
jne 0x1001bb7b
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x20]
mov edi, dword [ebp + 8]
mov dword [eax + 4], ecx
inc dword [eax + 0x1c]
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0x1c]
mov dword [ebp - 0x10], eax
xor edx, edx
cmp dword [edi + 0x10], 0x21
mov ecx, dword [edi + 0x2b0]
sete dl
sub ecx, edx
dec ecx
cmp dword [ebp - 0x10], ecx
jle 0x1001bc67
mov eax, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x24]
mov dword [eax + 0x24], 0
jmp 0x1001bc8a
push dword [ebp - 0x10]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
jmp 0x1001bdab
mov eax, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x24]
cmp dword [eax + 0x24], 0
je 0x1001bc8a
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x14]
mov dword [eax], 0
mov edi, dword [ecx + 0x1c]
test edi, edi
jne 0x1001bdab
mov eax, dword [ebp - 0x1c]
imul edi, esi, 0xb8
inc esi
mov ecx, dword [eax]
mov eax, dword [ecx + edi + 0x84]
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edi
test eax, eax
je 0x1001bcf9
mov dword [ebp - 0x24], esi
lea eax, [ecx + edi + 0x28]
lea esi, [ecx + edi + 0x84]
mov dword [ebp - 0x10], eax
push eax
call dword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
mov eax, dword [esi]
mov edi, esi
mov esi, dword [sym.imp.KERNEL32.dll_SleepConditionVariableSRW]
test eax, eax
je 0x1001bce7
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x18]
lea ebx, [eax + ecx + 0x20]
push 0
push 0xffffffffffffffff
push dword [ebp - 0x10]
push ebx
call esi
mov eax, dword [edi]
test eax, eax
jne 0x1001bcd7
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov esi, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x14]
mov edi, dword [ebp - 0x18]
push dword [ecx + edi + 0x78]
mov ebx, dword [ebp + 0xc]
push ebx
call fcn.10052af9
add esp, 8
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp + 0x10]
xor edx, edx
mov eax, dword [eax + edi + 0x7c]
mov dword [ecx], eax
mov eax, dword [ebp - 0x14]
movsd xmm0, qword [eax + edi + 0x40]
mov eax, dword [ebp + 8]
movsd qword [ebx + 0x78], xmm0
mov ebx, dword [ebp - 0x14]
mov ecx, dword [ebx + edi + 0x80]
mov dword [ebx + edi + 0x7c], edx
mov dword [ebx + edi + 0x80], edx
cmp esi, dword [eax + 0x2b0]
mov eax, dword [ebp + 0x14]
cmovge esi, edx
cmp dword [eax + 0x1c], edx
jne 0x1001bd67
test ecx, ecx
js 0x1001bd67
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
test eax, eax
jne 0x1001bd67
mov eax, dword [ebp - 0x1c]
cmp esi, dword [eax + 0x20]
jne 0x1001bc8a
mov eax, dword [ebp - 0x18]
mov edi, dword [ebp + 8]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebx + eax + 0x2c]
mov ecx, edi
push 1
call fcn.1001bdf5
add esp, 4
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0x1c]
cmp eax, dword [edi + 0x2b0]
jl 0x1001bd98
mov eax, dword [ebp - 0x1c]
mov dword [eax + 0x1c], 0
mov edi, dword [ebp - 0x10]
mov eax, dword [ebp - 0x1c]
test edi, edi
mov dword [eax + 0x20], esi
js 0x1001bdab
mov eax, dword [ebp + 0x14]
mov edi, dword [eax + 0x1c]
mov ecx, dword [ebp - 0x1c]
call fcn.1001bfee
mov eax, edi
add esp, 0x20
pop esi
pop edi
pop ebx
pop ebp
ret