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

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x5c
mov edi, dword [esp + 0x70]
mov eax, dword [edi + 0x1c]
mov ebp, dword [eax + 0x14]
mov eax, dword [ebp + 0x20]
mov dword [esp + 0x30], eax
lea eax, [ebp + 0x10]
mov dword [esp], eax
mov dword [esp + 0x2c], eax
call sub.KERNEL32.dll_AcquireSRWLockExclusive
mov eax, dword [ebp + 0x18]
sub esp, 4
test eax, eax
je 0x4d5c91
lea eax, [ebp + 0x14]
mov dword [ebp + 0x18], 0
mov dword [esp + 0x34], eax
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_WakeAllConditionVariable]
sub esp, 4
mov eax, dword [esp + 0x2c]
mov dword [esp], eax
call sub.KERNEL32.dll_ReleaseSRWLockExclusive
sub esp, 4
mov edx, dword [ebp + 0x1c]
mov eax, dword [esp + 0x7c]
imul ebx, edx, 0xb8
add ebx, dword [ebp]
mov eax, dword [eax + 0x1c]
test eax, eax
jne 0x4d5575
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax + 0xc]
test byte [eax + 0x10], 0x20
je 0x4d5838
mov eax, dword [ebx]
mov dword [esp + 0x40], eax
mov eax, dword [eax + 4]
mov dword [esp + 0x38], eax
lea eax, [ebx + 0x24]
mov dword [esp], eax
mov dword [esp + 0x3c], eax
call sub.KERNEL32.dll_AcquireSRWLockExclusive
mov eax, dword [edi + 0x3c]
mov ecx, dword [ebx + 0x2c]
sub esp, 4
mov dword [ecx + 0x3c], eax
mov eax, dword [edi + 0x74]
mov dword [ecx + 0x74], eax
mov eax, dword [edi + 0x190]
mov dword [ecx + 0x190], eax
mov eax, dword [edi + 0x20]
mov dword [ecx + 0x20], eax
mov eax, dword [edi + 0x240]
mov dword [ecx + 0x240], eax
mov eax, dword [edi + 0x340]
mov dword [ecx + 0x340], eax
mov eax, dword [edi + 0xf0]
mov dword [ecx + 0xf0], eax
mov eax, dword [edi + 0x40]
mov dword [ecx + 0x40], eax
mov esi, dword [edi + 0x2d4]
mov dword [ecx + 0x2d4], esi
mov esi, dword [edi + 0x2d8]
mov dword [ecx + 0x2d8], esi
mov edx, dword [edi + 0x2dc]
mov dword [ecx + 0x2dc], edx
mov eax, dword [edi + 0x168]
mov edx, dword [edi + 0x24c]
mov dword [ecx + 0x168], eax
mov eax, dword [edi + 0x248]
mov dword [ecx + 0x24c], edx
mov dword [ecx + 0x248], eax
mov eax, dword [edi + 0x2bc]
mov dword [ecx + 0x2bc], eax
mov eax, dword [edi + 0xb0]
test eax, eax
jne 0x4d5982
mov dword [ecx + 0xb0], eax
mov eax, dword [ebx + 0x2c]
movzx eax, word [eax + 0x242]
and eax, 1
mov dword [ebx + 0xb0], eax
mov eax, dword [ebx]
lea esi, [eax + 8]
mov eax, dword [ebx + 0x8c]
test eax, eax
jle 0x4d56c3
lea esi, [esi]
mov dword [esp], esi
call sub.KERNEL32.dll_AcquireSRWLockExclusive
mov eax, dword [ebx + 0x2c]
sub esp, 4
cmp dword [eax + 8], 1
ja 0x4d5c58
mov eax, dword [ebx + 0x8c]
sub eax, 1
mov dword [ebx + 0x8c], eax
imul eax, eax, 0x198
add eax, dword [ebx + 0x88]
mov dword [eax + 0x40], eax
mov dword [esp], eax
call fcn.00562860
mov dword [esp], esi
call sub.KERNEL32.dll_ReleaseSRWLockExclusive
mov ecx, dword [ebx + 0x8c]
sub esp, 4
test ecx, ecx
jg 0x4d5670
mov eax, dword [esp + 0x38]
test eax, eax
je 0x4d56fb
lea esi, [eax + 0x84]
mov eax, dword [eax + 0x84]
cmp eax, 1
je 0x4d5bcf
mov eax, dword [esp + 0x38]
xor ecx, ecx
mov edx, dword [eax + 0x2c]
mov eax, dword [ebx + 0x2c]
call fcn.004d5130
test eax, eax
mov esi, eax
jne 0x4d5aa0
lea esi, [ebx + 0x30]
mov dword [esp], esi
call fcn.00498ad0
mov eax, dword [esp + 0x7c]
mov dword [esp], esi
mov dword [esp + 4], eax
call reloc.msvcrt.dll___set_app_type
test eax, eax
mov esi, eax
js 0x4d5ba0
lea esi, [ebx + 0x84]
mov eax, 1
xchg dword [esi], eax
lea eax, [ebx + 0x18]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_WakeConditionVariable]
mov dword [esp + 0x38], eax
call eax
sub esp, 4
mov eax, dword [esp + 0x3c]
mov dword [esp], eax
call sub.KERNEL32.dll_ReleaseSRWLockExclusive
mov eax, dword [ebx + 0x2c]
sub esp, 4
mov edx, dword [eax + 0x2bc]
test edx, edx
jne 0x4d582a
cmp dword [eax + 0x78], 0x4a0da0
je 0x4d5c43
lea eax, [ebx + 0x1c]
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x70], edi
mov edi, ebx
mov ebp, eax
lea esi, [esi]
mov eax, dword [esi]
cmp eax, 4
je 0x4d5820
mov eax, dword [esi]
test eax, eax
je 0x4d5820
lea ebx, [edi + 0x28]
mov dword [esp], ebx
call sub.KERNEL32.dll_AcquireSRWLockExclusive
sub esp, 4
jmp 0x4d57c5
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0xffffffff
mov dword [esp + 4], ebx
mov dword [esp], ebp
call dword [sym.imp.KERNEL32.dll_SleepConditionVariableSRW]
sub esp, 0x10
mov eax, dword [esi]
cmp eax, 1
je 0x4d57a5
mov eax, dword [esi]
cmp eax, 2
je 0x4d5b00
cmp eax, 3
jne 0x4d580a
mov eax, dword [edi + 0x9c]
mov dword [esp + 4], eax
mov eax, dword [edi + 0x2c]
mov dword [esp], eax
call fcn.004a11a0
mov dword [edi + 0xa0], eax
mov eax, 1
xchg dword [esi], eax
mov eax, dword [esp + 0x38]
mov dword [esp], ebp
call eax
sub esp, 4
mov dword [esp], ebx
call sub.KERNEL32.dll_ReleaseSRWLockExclusive
sub esp, 4
jmp 0x4d5780
mov ebx, edi
mov ebp, dword [esp + 0x3c]
mov edi, dword [esp + 0x70]
mov eax, dword [esp + 0x40]
add dword [eax + 0x1c], 1
mov dword [eax + 4], ebx
mov edx, dword [ebp + 0x1c]
mov eax, dword [edi + 0x2b0]
xor ecx, ecx
sub eax, 1
cmp dword [edi + 0x10], 0x21
sete cl
sub eax, ecx
cmp eax, edx
jge 0x4d5a00
mov dword [ebp + 0x24], 0
mov eax, dword [esp + 0x30]
mov ebx, ebp
mov dword [esp + 0x70], edi
jmp 0x4d58f5
mov eax, dword [ebp + 0x78]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x74]
mov dword [esp], eax
call fcn.00562880
mov eax, dword [ebp + 0x7c]
mov ecx, dword [esp + 0x78]
mov edx, dword [ebp + 0x44]
mov dword [ecx], eax
mov eax, dword [ebp + 0x40]
mov ecx, dword [esp + 0x74]
mov esi, dword [ebp + 0x80]
mov dword [ecx + 0x78], eax
mov eax, dword [esp + 0x70]
mov dword [ecx + 0x7c], edx
mov edx, dword [esp + 0x7c]
mov dword [ebp + 0x7c], 0
mov dword [ebp + 0x80], 0
cmp dword [eax + 0x2b0], edi
mov eax, 0
cmovg eax, edi
mov edi, dword [edx + 0x1c]
test edi, edi
jne 0x4d5ab4
mov edx, dword [esp + 0x78]
mov ecx, dword [edx]
test ecx, ecx
jne 0x4d5ab4
test esi, esi
js 0x4d5b30
mov ecx, dword [ebx + 0x20]
cmp ecx, eax
je 0x4d5b62
imul edx, eax, 0xb8
add edx, dword [ebx]
lea edi, [eax + 1]
mov eax, dword [edx + 0x84]
mov ebp, edx
lea esi, [edx + 0x84]
test eax, eax
je 0x4d5870
lea eax, [edx + 0x28]
mov dword [esp], eax
mov dword [esp + 0x30], eax
call sub.KERNEL32.dll_AcquireSRWLockExclusive
lea ecx, [ebp + 0x20]
sub esp, 4
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], edi
mov ebx, dword [esp + 0x30]
mov edi, ecx
jmp 0x4d5960
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0xffffffff
mov dword [esp + 4], ebx
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_SleepConditionVariableSRW]
sub esp, 0x10
mov eax, dword [esi]
test eax, eax
jne 0x4d5940
mov eax, dword [esp + 0x30]
mov ebx, dword [esp + 0x38]
mov edi, dword [esp + 0x3c]
mov dword [esp], eax
call sub.KERNEL32.dll_ReleaseSRWLockExclusive
sub esp, 4
jmp 0x4d5870
mov edx, dword [edi + 0xb8]
test edx, edx
je 0x4d5641
cmp eax, dword [ecx + 0xb0]
jle 0x4d59d0
mov dword [esp + 4], eax
lea eax, [ecx + 0xb8]
mov dword [esp + 8], 4
mov dword [esp + 0x44], ecx
mov dword [esp], eax
call fcn.0056e330
test eax, eax
mov esi, eax
js 0x4d5aa0
mov eax, dword [edi + 0xb0]
mov edx, dword [edi + 0xb8]
mov ecx, dword [esp + 0x44]
mov esi, dword [ecx + 0xb8]
shl eax, 2
mov dword [esp + 4], edx
mov dword [esp + 8], eax
mov dword [esp + 0x44], ecx
mov dword [esp], esi
call sub.msvcrt.dll_memcpy
mov eax, dword [edi + 0xb0]
mov ecx, dword [esp + 0x44]
jmp 0x4d5641
mov eax, dword [ebp + 0x24]
test eax, eax
je 0x4d585b
mov eax, dword [esp + 0x78]
mov dword [eax], 0
mov eax, dword [esp + 0x7c]
mov esi, dword [eax + 0x1c]
test esi, esi
je 0x4d585b
mov eax, dword [esp + 0x2c]
mov dword [esp], eax
call sub.KERNEL32.dll_AcquireSRWLockExclusive
mov edx, dword [ebp + 0x18]
sub esp, 4
test edx, edx
je 0x4d5a77
mov dword [esp + 0x30], esi
mov ebx, dword [sym.imp.KERNEL32.dll_SleepConditionVariableSRW]
mov edi, dword [esp + 0x34]
mov esi, dword [esp + 0x2c]
lea esi, [esi]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0xffffffff
mov dword [esp + 4], esi
mov dword [esp], edi
call ebx
mov eax, dword [ebp + 0x18]
sub esp, 0x10
test eax, eax
jne 0x4d5a50
mov esi, dword [esp + 0x30]
mov eax, dword [esp + 0x2c]
mov dword [ebp + 0x18], 1
mov dword [esp], eax
call sub.KERNEL32.dll_ReleaseSRWLockExclusive
sub esp, 4
mov eax, esi
add esp, 0x5c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x3c]
mov dword [esp], eax
call sub.KERNEL32.dll_ReleaseSRWLockExclusive
sub esp, 4
jmp 0x4d5a24
mov edi, dword [esp + 0x70]
mov dword [esp + 0x30], eax
mov eax, ebp
mov edx, dword [eax + 0x2c]
mov ebp, ebx
mov ecx, 1
mov eax, edi
call fcn.004d5130
mov eax, dword [edi + 0x2b0]
cmp dword [ebp + 0x1c], eax
jl 0x4d5ae1
mov dword [ebp + 0x1c], 0
mov eax, dword [esp + 0x30]
test esi, esi
mov dword [ebp + 0x20], eax
js 0x4d5a24
mov eax, dword [esp + 0x7c]
mov esi, dword [eax + 0x1c]
jmp 0x4d5a24
mov eax, dword [edi + 0x98]
mov dword [esp + 8], eax
mov eax, dword [edi + 0x94]
mov dword [esp + 4], eax
mov eax, dword [edi + 0x2c]
mov dword [esp], eax
call fcn.004a2190
mov dword [edi + 0x80], eax
jmp 0x4d57f7
mov edi, dword [esp + 0x70]
mov dword [esp + 0x30], eax
mov eax, ebp
mov edx, dword [eax + 0x2c]
mov ebp, ebx
mov ecx, 1
mov eax, edi
call fcn.004d5130
mov eax, dword [edi + 0x2b0]
cmp dword [ebp + 0x1c], eax
jge 0x4d5ada
mov eax, dword [esp + 0x30]
mov dword [ebp + 0x20], eax
jmp 0x4d5a24
mov edi, dword [esp + 0x70]
mov dword [esp + 0x30], eax
mov eax, ebp
mov edx, dword [eax + 0x2c]
mov dword [esp + 0x38], ecx
mov ebp, ebx
mov ecx, 1
mov eax, edi
call fcn.004d5130
mov eax, dword [edi + 0x2b0]
cmp dword [ebp + 0x1c], eax
jge 0x4d5ada
mov eax, dword [esp + 0x38]
mov dword [ebp + 0x20], eax
jmp 0x4d5af0
mov eax, dword [esp + 0x3c]
mov dword [esp], eax
call sub.KERNEL32.dll_ReleaseSRWLockExclusive
sub esp, 4
mov dword [esp + 8], str.av_packet_ref___failed_in_submit_packet___n
mov dword [esp + 4], 0x10
mov eax, dword [ebx + 0x2c]
mov dword [esp], eax
call fcn.0056b9c0
jmp 0x4d5a24
mov eax, dword [esp + 0x38]
add eax, 0x28
mov dword [esp], eax
mov dword [esp + 0x44], eax
call sub.KERNEL32.dll_AcquireSRWLockExclusive
sub esp, 4
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x48], ebp
mov dword [esp + 0x4c], ebx
mov ebx, dword [esp + 0x44]
add ecx, 0x1c
mov ebp, ecx
jmp 0x4d5c20
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0xffffffff
mov dword [esp + 4], ebx
mov dword [esp], ebp
call dword [sym.imp.KERNEL32.dll_SleepConditionVariableSRW]
sub esp, 0x10
mov eax, dword [esi]
cmp eax, 1
je 0x4d5c00
mov eax, dword [esp + 0x44]
mov ebp, dword [esp + 0x48]
mov ebx, dword [esp + 0x4c]
mov dword [esp], eax
call sub.KERNEL32.dll_ReleaseSRWLockExclusive
sub esp, 4
jmp 0x4d56e0
cmp dword [eax + 0x190], 0x4a1610
jne 0x4d576e
jmp 0x4d582a
mov dword [esp + 0x14], 0x173
mov dword [esp + 0x10], str.libavcodec_pthread_frame.c
mov dword [esp + 0xc], str.p__avctx__codec_type__AVMEDIA_TYPE_VIDEO__p__avctx__codec_type__AVMEDIA_TYPE_AUDIO
mov dword [esp + 8], 0x6acecc
mov dword [esp + 4], 0
mov dword [esp], 0
call fcn.0056b9c0
call sub.msvcrt.dll_abort
call fcn.0065c4cc
lea esi, [esi]
lea edi, [edi]
push edi
push esi
push ebx
sub esp, 0x20
mov edx, dword [esp + 0x30]
mov eax, dword [edx + 0xc]
test eax, eax
je 0x4d5cce
mov eax, dword [eax + 4]
test eax, eax
je 0x4d5cce
mov edi, dword [esp + 0x38]
lea ecx, [edi*4]
lea ebx, [eax + ecx]
mov esi, dword [ebx]
cmp esi, dword [esp + 0x34]
jl 0x4d5cd5
add esp, 0x20
pop ebx
pop esi
pop edi
ret
mov edx, dword [edx + ecx + 4]
mov ecx, dword [edx + 0x1c]
mov esi, dword [ecx + 0x14]
mov ecx, dword [esi + 0xb0]
test ecx, ecx
jne 0x4d5d20
lea edi, [esi + 0x28]
add esi, 0x1c
mov dword [esp], edi
call sub.KERNEL32.dll_AcquireSRWLockExclusive
sub esp, 4
mov eax, dword [esp + 0x34]
mov dword [ebx], eax
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_WakeAllConditionVariable]
sub esp, 4
mov dword [esp], edi
call sub.KERNEL32.dll_ReleaseSRWLockExclusive
sub esp, 4
add esp, 0x20
pop ebx
pop esi
pop edi
ret
mov dword [esp + 0x14], edi
mov edi, dword [esp + 0x34]
mov dword [esp + 0xc], eax
mov dword [esp + 8], str._p_finished__d_field__d_n
mov dword [esp + 4], 0x30
mov dword [esp], edx
mov dword [esp + 0x10], edi
call fcn.0056b9c0
jmp 0x4d5ce9