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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x30
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x1c]
mov ebx, dword [eax + 0x10]
mov edi, dword [ebx + 0x20]
lea esi, [ebx + 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
cmp dword [ebx + 0x18], 0
je 0x10022bec
mov dword [ebx + 0x18], 0
mov dword [ebp - 0x1c], ebx
lea eax, [ebx + 0x14]
mov dword [ebp - 0x38], eax
push eax
call dword [sym.imp.KERNEL32.dll_WakeAllConditionVariable]
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov eax, dword [ebx]
mov ecx, dword [ebx + 0x1c]
mov ebx, eax
mov dword [ebp - 0x10], ecx
imul ecx, ecx, 0xb8
mov edx, dword [eax + ecx]
mov eax, dword [edx + 4]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp + 0x14]
cmp dword [eax + 0x1c], 0
lea eax, [ebx + ecx + 0x2c]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x18], ecx
jne 0x100226cb
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov ecx, dword [ecx + 0xc]
test byte [ecx + 0x10], 0x20
mov ecx, dword [ebp - 0x18]
je 0x10022938
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x28], edi
lea eax, [ebx + ecx]
add eax, 0x24
mov dword [ebp - 0x20], eax
push eax
call dword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
mov eax, dword [ebp - 0x14]
mov esi, eax
mov edi, dword [eax]
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x3c]
mov dword [edi + 0x3c], eax
mov eax, dword [edx + 0x74]
mov dword [edi + 0x74], eax
mov eax, dword [edx + 0x190]
mov dword [edi + 0x190], eax
mov eax, dword [edx + 0x20]
mov dword [edi + 0x20], eax
mov eax, dword [edx + 0x240]
mov dword [edi + 0x240], eax
mov eax, dword [edx + 0x340]
mov dword [edi + 0x340], eax
mov eax, dword [edx + 0xf0]
mov dword [edi + 0xf0], eax
mov eax, dword [edx + 0x40]
mov dword [edi + 0x40], eax
mov eax, dword [edx + 0x390]
mov dword [edi + 0x390], eax
mov eax, dword [edx + 0x2d4]
mov dword [edi + 0x2d4], eax
mov eax, dword [edx + 0x2d8]
mov dword [edi + 0x2d8], eax
mov eax, dword [edx + 0x2dc]
mov dword [edi + 0x2dc], eax
mov eax, dword [edx + 0x168]
mov dword [edi + 0x168], eax
movsd xmm0, qword [edx + 0x248]
movsd qword [edi + 0x248], xmm0
mov eax, dword [edx + 0x2bc]
mov dword [edi + 0x2bc], eax
mov eax, dword [edx + 0xb0]
test eax, eax
mov dword [ebp - 0x24], ebx
je 0x100227d5
mov ecx, dword [edx + 0xb8]
test ecx, ecx
je 0x100227f4
cmp dword [edi + 0xb0], eax
jge 0x100227d9
lea ecx, [edi + 0xb8]
push 4
push eax
push ecx
call fcn.10070ba0
add esp, 0xc
test eax, eax
js 0x10022884
mov ebx, dword [ebp + 8]
mov eax, dword [ebx + 0xb0]
mov ecx, dword [ebx + 0xb8]
jmp 0x100227db
xor eax, eax
jmp 0x100227f4
mov ebx, edx
shl eax, 2
push eax
push ecx
push dword [edi + 0xb8]
call fcn.101053c0
add esp, 0xc
mov eax, dword [ebx + 0xb0]
mov dword [edi + 0xb0], eax
mov edi, esi
mov eax, dword [esi]
mov eax, dword [eax + 0x240]
shr eax, 0x10
and eax, 1
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x24]
mov dword [edx + ecx + 0xb0], eax
add ecx, edx
mov dword [ebp - 0x2c], ecx
call fcn.100234c0
mov esi, dword [ebp - 0x34]
test esi, esi
je 0x10022895
mov eax, dword [esi + 0x84]
cmp eax, 1
jne 0x10022871
lea ebx, [esi + 0x28]
push ebx
call dword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
mov eax, dword [esi + 0x84]
cmp eax, 1
jne 0x10022867
lea edi, [esi + 0x1c]
nop dword [eax + eax]
push 0
push 0xffffffffffffffff
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_SleepConditionVariableSRW]
mov eax, dword [esi + 0x84]
cmp eax, 1
je 0x10022850
push ebx
call dword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov edi, dword [ebp - 0x14]
mov edx, dword [esi + 0x2c]
mov ecx, dword [edi]
push 0
call fcn.10022c20
add esp, 4
test eax, eax
je 0x10022895
mov dword [ebp - 0x10], eax
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
jmp 0x10022add
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x24]
lea esi, [eax + edi]
add esi, 0x30
push esi
call sym.ffmpeg.dll_av_packet_unref
add esp, 4
push dword [ebp + 0x14]
push esi
call fcn.1000a9f0
add esp, 8
test eax, eax
js 0x10022abd
mov eax, 1
mov esi, dword [ebp - 0x24]
xchg dword [esi + edi + 0x84], eax
lea eax, [esi + edi]
add eax, 0x18
push eax
call dword [sym.imp.KERNEL32.dll_WakeConditionVariable]
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
cmp dword [eax + 0x2bc], 0
jne 0x1002291f
mov ecx, esi
cmp dword [eax + 0x78], 0x10010070
jne 0x10022908
cmp dword [eax + 0x190], 0x10010540
je 0x1002291f
mov eax, dword [ebp - 0x18]
lea edi, [ecx + eax]
add edi, 0x84
mov eax, dword [edi]
cmp eax, 4
jne 0x10022b2b
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x2c]
mov dword [eax + 4], ecx
add dword [eax + 0x1c], 1
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0x1c]
mov dword [ebp - 0x10], eax
mov edi, dword [ebp - 0x28]
xor ecx, ecx
mov edx, dword [ebp + 8]
cmp dword [edx + 0x10], 0x21
sete cl
not ecx
add ecx, dword [edx + 0x2b0]
cmp dword [ebp - 0x10], ecx
jle 0x1002295d
mov eax, dword [ebp - 0x1c]
mov dword [eax + 0x24], 0
jmp 0x10022980
mov eax, dword [ebp - 0x1c]
cmp dword [eax + 0x24], 0
je 0x10022980
mov eax, dword [ebp + 0x10]
mov dword [eax], 0
mov eax, dword [ebp + 0x14]
mov eax, dword [eax + 0x1c]
mov dword [ebp - 0x10], eax
test eax, eax
jne 0x10022add
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax]
imul esi, edi, 0xb8
add edi, 1
mov eax, dword [ecx + esi + 0x84]
test eax, eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], esi
je 0x10022a02
mov dword [ebp - 0x28], edi
lea edi, [ecx + esi]
add edi, 0x84
lea eax, [ecx + esi]
add eax, 0x28
mov dword [ebp - 0x10], eax
push eax
call dword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
mov esi, edi
mov eax, dword [edi]
test eax, eax
mov edi, dword [sym.imp.KERNEL32.dll_SleepConditionVariableSRW]
je 0x100229f0
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x18]
lea ebx, [eax + ecx]
add ebx, 0x20
nop word cs:[eax + eax]
nop
push 0
push 0xffffffffffffffff
push dword [ebp - 0x10]
push ebx
call edi
mov eax, dword [esi]
test eax, eax
jne 0x100229e0
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov edi, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x14]
mov esi, dword [ebp - 0x18]
push dword [ecx + esi + 0x78]
mov ebx, dword [ebp + 0xc]
push ebx
call fcn.1006ebc0
mov edx, dword [ebp - 0x14]
add esp, 8
mov eax, dword [edx + esi + 0x7c]
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
movsd xmm0, qword [edx + esi + 0x40]
movsd qword [ebx + 0x78], xmm0
mov ecx, dword [edx + esi + 0x80]
mov dword [edx + esi + 0x7c], 0
mov dword [edx + esi + 0x80], 0
mov eax, dword [ebp + 8]
cmp edi, dword [eax + 0x2b0]
mov eax, 0
cmovge edi, eax
mov eax, dword [ebp + 0x14]
cmp dword [eax + 0x1c], 0
jne 0x10022a75
test ecx, ecx
js 0x10022a75
mov eax, dword [ebp + 0x10]
cmp dword [eax], 0
jne 0x10022a75
mov eax, dword [ebp - 0x1c]
cmp edi, dword [eax + 0x20]
jne 0x10022980
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp - 0x18]
mov edx, dword [edx + eax + 0x2c]
mov esi, dword [ebp + 8]
mov ecx, esi
push 1
call fcn.10022c20
add esp, 4
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0x1c]
cmp eax, dword [esi + 0x2b0]
jl 0x10022aa6
mov eax, dword [ebp - 0x1c]
mov dword [eax + 0x1c], 0
mov eax, dword [ebp - 0x1c]
mov dword [eax + 0x20], edi
cmp dword [ebp - 0x10], 0
js 0x10022add
mov eax, dword [ebp + 0x14]
mov eax, dword [eax + 0x1c]
mov dword [ebp - 0x10], eax
jmp 0x10022add
mov dword [ebp - 0x10], eax
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
push str.av_packet_ref___failed_in_submit_packet___n
push 0x10
mov eax, dword [ebp - 0x14]
push dword [eax]
call fcn.1006fc50
add esp, 0xc
mov ebx, dword [ebp - 0x1c]
mov edi, dword [ebp - 0x3c]
push edi
call dword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
cmp dword [ebx + 0x18], 0
mov esi, dword [ebp - 0x38]
je 0x10022b12
nop word cs:[eax + eax]
nop dword [eax]
push 0
push 0xffffffffffffffff
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SleepConditionVariableSRW]
cmp dword [ebx + 0x18], 0
jne 0x10022b00
mov dword [ebx + 0x18], 1
push edi
call dword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov eax, dword [ebp - 0x10]
add esp, 0x30
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [ebp - 0x18]
lea ebx, [ecx + eax]
add ebx, 0x28
lea esi, [ecx + eax]
add esi, 0x1c
mov dword [ebp - 0x10], edi
jmp 0x10022b78
mov ebx, ecx
push dword [ecx + 0x74]
mov eax, dword [ebp - 0x14]
push dword [eax]
call fcn.10010190
add esp, 8
mov dword [ebx + 0x78], eax
mov edi, dword [ebp - 0x10]
mov eax, 1
xchg dword [edi], eax
push esi
call dword [sym.imp.KERNEL32.dll_WakeConditionVariable]
push ebx
call dword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov eax, dword [edi]
cmp eax, 4
je 0x1002291f
mov eax, dword [edi]
test eax, eax
je 0x1002291f
push ebx
call dword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
mov eax, dword [edi]
cmp eax, 1
mov ecx, ebx
mov edx, esi
mov ebx, dword [sym.imp.KERNEL32.dll_SleepConditionVariableSRW]
jne 0x10022bba
nop word [eax + eax]
push 0
push 0xffffffffffffffff
push ecx
push edx
mov esi, ecx
mov edi, edx
call ebx
mov edx, edi
mov edi, dword [ebp - 0x10]
mov ecx, esi
mov eax, dword [edi]
cmp eax, 1
je 0x10022ba0
mov esi, edx
mov eax, dword [edi]
cmp eax, 3
je 0x10022b40
cmp eax, 2
mov ebx, ecx
mov edi, dword [ebp - 0x10]
jne 0x10022b66
push dword [ebx + 0x70]
push dword [ebx + 0x6c]
mov eax, dword [ebp - 0x14]
push dword [eax]
call fcn.10011080
add esp, 0xc
mov dword [ebx + 0x58], eax
jmp 0x10022b58
push 0x9b
push str..._.._third_party_ffmpeg_libavcodec_pthread_frame.c
push str.fctx__async_lock
push str.Assertion__s_failed_at__s:_d_n
push 0
push 0
call fcn.1006fc50
add esp, 0x18
call fcn.10112c55
int3