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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x24
mov esi, dword [ebp + 0x14]
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x1c]
mov edi, dword [eax + 0x10]
mov ebx, dword [edi + 0x24]
mov ecx, edi
call fcn.101690b0
mov ecx, dword [edi]
mov eax, dword [edi + 0x20]
imul edx, eax, 0x74
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x24], edx
add ecx, edx
add ecx, 0x30
mov edx, dword [ecx - 0x30]
cmp dword [esi + 0x1c], 0
mov esi, ecx
mov ecx, dword [edx + 4]
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x28], edi
jne 0x10168bc5
mov ecx, dword [esi]
mov ecx, dword [ecx + 0xc]
test byte [ecx + 0x10], 0x20
je 0x10168e48
mov dword [ebp - 0x2c], edx
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x24]
add eax, ecx
add eax, 0x28
mov dword [ebp - 0x20], eax
push eax
call dword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
mov edx, esi
mov esi, dword [esi]
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x3c]
mov dword [esi + 0x3c], eax
mov eax, dword [ecx + 0x74]
mov dword [esi + 0x74], eax
mov eax, dword [ecx + 0x168]
mov dword [esi + 0x168], eax
mov eax, dword [ecx + 0x20]
mov dword [esi + 0x20], eax
mov eax, dword [ecx + 0x1c4]
mov dword [esi + 0x1c4], eax
mov eax, dword [ecx + 0xe0]
mov dword [esi + 0xe0], eax
mov eax, dword [ecx + 0x40]
mov dword [esi + 0x40], eax
mov eax, dword [ecx + 0x308]
mov dword [esi + 0x308], eax
mov eax, dword [ecx + 0x258]
mov dword [esi + 0x258], eax
mov eax, dword [ecx + 0x25c]
mov dword [esi + 0x25c], eax
mov eax, dword [ecx + 0x260]
mov dword [esi + 0x260], eax
mov eax, dword [ecx + 0x140]
mov dword [esi + 0x140], eax
movsd xmm0, qword [ecx + 0x1d0]
movsd qword [esi + 0x1d0], xmm0
mov eax, dword [ecx + 0x240]
mov dword [esi + 0x240], eax
mov eax, dword [ecx + 0xa8]
xor ecx, ecx
test eax, eax
mov dword [ebp - 0x10], edx
jne 0x10168d00
mov dword [esi + 0xa8], ecx
mov eax, dword [edx]
mov eax, dword [eax + 0x1c4]
shr eax, 0x10
and eax, 1
mov ecx, dword [ebp - 0x18]
mov esi, edx
mov edx, dword [ebp - 0x24]
mov dword [ecx + edx + 0x70], eax
add ecx, edx
mov dword [ebp - 0x30], ecx
call fcn.10169780
mov ecx, dword [ebp - 0x14]
test ecx, ecx
jne 0x10168d1b
mov esi, dword [ebp - 0x24]
mov eax, dword [ebp - 0x18]
push dword [eax + esi + 0x34]
call sym.ffmpeg.dll_av_packet_unref
add esp, 4
push dword [ebp + 0x14]
mov eax, dword [ebp - 0x18]
push dword [eax + esi + 0x34]
call sym.ffmpeg.dll_av_packet_ref
add esp, 8
test eax, eax
jns 0x10168dd6
push dword [ebp - 0x20]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov ecx, edi
call fcn.10169310
mov eax, esi
add esp, 0x24
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx + 0xac]
test ecx, ecx
jne 0x10168fac
mov ecx, eax
mov edx, dword [ebp - 0x10]
jmp 0x10168c87
mov eax, dword [ecx + 0x44]
cmp eax, 1
jne 0x10168d6a
mov dword [ebp - 0x1c], ebx
lea esi, [ecx + 0x2c]
push esi
call dword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
mov ecx, dword [ebp - 0x14]
mov eax, dword [ecx + 0x44]
cmp eax, 1
jne 0x10168d57
lea edi, [ecx + 0x20]
mov ebx, dword [sym.imp.KERNEL32.dll_SleepConditionVariableSRW]
push 0
push 0xffffffffffffffff
push esi
push edi
call ebx
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x44]
cmp eax, 1
je 0x10168d44
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov ecx, dword [ebp - 0x14]
mov edi, dword [ebp - 0x28]
mov ebx, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x10]
mov edx, dword [ecx + 0x30]
mov ecx, dword [esi]
push 0
call fcn.101690f0
add esp, 4
test eax, eax
jne 0x10168ce4
mov eax, dword [esi]
cmp dword [eax + 0x1d8], 0
jne 0x101690a8
mov edx, dword [ebp - 0x2c]
mov eax, dword [edx + 0x2c]
mov dword [edx + 0x2c], 0
mov ecx, dword [esi]
mov dword [ecx + 0x1d8], eax
mov eax, dword [edx + 0x30]
mov ecx, dword [esi]
mov ecx, dword [ecx + 0x1dc]
mov dword [edx + 0x30], ecx
mov ecx, dword [esi]
mov dword [ecx + 0x1dc], eax
mov eax, dword [edx + 0x34]
mov ecx, dword [esi]
mov ecx, dword [ecx + 0x1c]
mov ecx, dword [ecx + 0x44]
mov dword [edx + 0x34], ecx
mov ecx, dword [esi]
mov ecx, dword [ecx + 0x1c]
mov dword [ecx + 0x44], eax
jmp 0x10168cb8
mov dword [ebp - 0x1c], ebx
xor ecx, ecx
inc ecx
mov edi, dword [ebp - 0x18]
mov esi, dword [ebp - 0x24]
lea eax, [edi + esi]
add eax, 0x1c
xchg dword [eax + 0x28], ecx
push eax
call dword [sym.imp.KERNEL32.dll_WakeConditionVariable]
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov eax, dword [ebp - 0x10]
mov eax, dword [eax]
cmp dword [eax + 0x240], 0
jne 0x10168e33
mov ecx, edi
mov edx, esi
cmp dword [eax + 0x78], 0x1003d620
jne 0x10168e22
cmp dword [eax + 0x168], 0x1003e140
je 0x10168e33
lea ebx, [ecx + edx]
add ebx, 0x44
mov eax, dword [ebx]
cmp eax, 4
jne 0x10168ffe
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x30]
mov dword [eax + 4], ecx
inc dword [eax + 0x20]
mov edi, dword [ebp - 0x28]
mov eax, dword [edi + 0x20]
mov ebx, dword [ebp - 0x1c]
xor ecx, ecx
mov edx, dword [ebp + 8]
cmp dword [edx + 0x10], 0x21
sete cl
not ecx
add ecx, dword [edx + 0x234]
cmp eax, ecx
jle 0x10168f86
mov dword [edi + 0x28], 0
mov ecx, dword [edi]
imul edx, ebx, 0x74
inc ebx
mov eax, dword [ecx + edx + 0x44]
test eax, eax
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x1c], ebx
je 0x10168ed7
lea esi, [ecx + edx]
add esi, 0x44
lea ebx, [ecx + edx]
add ebx, 0x2c
push ebx
call dword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
mov eax, dword [esi]
test eax, eax
mov edx, dword [sym.imp.KERNEL32.dll_SleepConditionVariableSRW]
je 0x10168ec7
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x18]
add eax, ecx
add eax, 0x24
mov dword [ebp - 0x14], eax
push 0
push 0xffffffffffffffff
push ebx
push dword [ebp - 0x14]
mov edi, esi
mov esi, edx
call edx
mov edx, esi
mov esi, edi
mov eax, dword [edi]
test eax, eax
jne 0x10168eaf
push ebx
call dword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov edi, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x18]
push dword [ecx + edx + 0x38]
mov eax, dword [ebp + 0xc]
push eax
mov ebx, ecx
mov esi, edx
call fcn.1005ebc0
add esp, 8
mov eax, dword [ebx + esi + 0x3c]
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
mov eax, dword [ebx + esi + 0x34]
movsd xmm0, qword [eax + 0x10]
mov eax, dword [ebp + 0xc]
movsd qword [eax + 0x70], xmm0
mov ecx, dword [ebx + esi + 0x40]
xor edx, edx
mov dword [ebx + esi + 0x3c], edx
mov dword [ebx + esi + 0x40], edx
mov ebx, dword [ebp - 0x1c]
mov eax, dword [ebp + 8]
cmp ebx, dword [eax + 0x234]
cmovge ebx, edx
mov eax, dword [ebp + 0x14]
cmp dword [eax + 0x1c], edx
jne 0x10168f3f
mov eax, dword [ebp + 0x10]
cmp dword [eax], 0
jne 0x10168f3f
test ecx, ecx
js 0x10168f3f
cmp ebx, dword [edi + 0x24]
jne 0x10168e6b
mov dword [ebp - 0x14], ecx
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x18]
mov edx, dword [eax + ecx + 0x30]
mov esi, dword [ebp + 8]
mov ecx, esi
push 1
call fcn.101690f0
add esp, 4
mov eax, dword [edi + 0x20]
cmp eax, dword [esi + 0x234]
jl 0x10168f6d
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], ebx
mov esi, dword [ebp - 0x14]
test esi, esi
js 0x10168cef
mov eax, dword [ebp + 0x14]
mov esi, dword [eax + 0x1c]
jmp 0x10168cef
cmp dword [edi + 0x28], 0
je 0x10168e6b
mov eax, dword [ebp + 0x10]
mov dword [eax], 0
mov eax, dword [ebp + 0x14]
mov esi, dword [eax + 0x1c]
test esi, esi
je 0x10168e6b
jmp 0x10168cef
cmp dword [esi + 0xa8], eax
jge 0x10168fdd
lea ecx, [esi + 0xac]
push 4
push eax
push ecx
call fcn.10060390
add esp, 0xc
test eax, eax
js 0x10168ce4
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0xa8]
mov ecx, dword [ecx + 0xac]
shl eax, 2
push eax
push ecx
push dword [esi + 0xac]
call fcn.10132610
add esp, 0xc
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0xa8]
jmp 0x10168d13
lea esi, [ecx + edx]
add esi, 0x2c
lea edi, [ecx + edx]
add edi, 0x20
mov dword [ebp - 0x14], edi
mov eax, dword [ebx]
test eax, eax
je 0x10168e33
push esi
call dword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
mov eax, dword [ebx]
cmp eax, 1
mov ecx, esi
mov esi, edi
mov eax, dword [sym.imp.KERNEL32.dll_SleepConditionVariableSRW]
jne 0x10169048
push 0
push 0xffffffffffffffff
push ecx
push esi
mov edi, ecx
mov esi, eax
call eax
mov ecx, edi
mov eax, dword [ebx]
cmp eax, 1
mov eax, esi
mov esi, dword [ebp - 0x14]
je 0x1016902e
mov edi, esi
mov eax, dword [ebx]
cmp eax, 3
je 0x10169070
cmp eax, 2
mov esi, ecx
jne 0x10169091
push dword [esi + 0x2c]
push dword [esi + 0x28]
mov eax, dword [ebp - 0x10]
push dword [eax]
call fcn.1003da00
add esp, 0xc
mov dword [esi + 0x14], eax
jmp 0x10169085
mov esi, ecx
push dword [ecx + 0x30]
mov eax, dword [ebp - 0x10]
push dword [eax]
call fcn.1003d720
add esp, 8
mov dword [esi + 0x34], eax
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 0x1016900d
jmp 0x10168e33
call fcn.1014029d
int3