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

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x3c
mov ebp, dword [esp + 0x50]
mov eax, dword [ebp + 0x40]
mov eax, dword [eax + 0x1c]
test eax, eax
mov dword [esp + 0x2c], eax
je 0x6c50977c
mov ecx, dword [ebp + 0x328]
xor edi, edi
mov dword [esp + 0x20], 0
test ecx, ecx
mov dword [esp + 0x24], ecx
jle 0x6c509514
mov dword [esp + 0x28], ebp
jmp 0x6c5094bf
add dword [esp + 0x20], 1
add edi, 0xe0
mov ecx, dword [esp + 0x24]
cmp dword [esp + 0x20], ecx
mov dword [ebx + 0xb4], 0
je 0x6c509510
mov ecx, dword [esp + 0x2c]
mov ebx, dword [ecx]
add ebx, edi
mov eax, dword [ebx + 0xbc]
test eax, eax
je 0x6c5094a0
lea esi, [ebx + 0x3c]
mov dword [esp], esi
lea ebp, [ebx + 0x20]
call sub.KERNEL32.dll_EnterCriticalSection
mov eax, dword [ebx + 0xbc]
sub esp, 4
test eax, eax
je 0x6c509503
lea esi, [esi]
mov edx, esi
mov eax, ebp
call fcn.6c5071f0
mov eax, dword [ebx + 0xbc]
test eax, eax
jne 0x6c5094f0
mov dword [esp], esi
call sub.KERNEL32.dll_LeaveCriticalSection
sub esp, 4
jmp 0x6c5094a0
mov ebp, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
mov eax, dword [ecx + 4]
test eax, eax
je 0x6c509698
mov edx, dword [ecx]
cmp eax, edx
je 0x6c509698
mov ebx, dword [eax + 0x54]
mov ecx, dword [edx + 0x54]
cmp ebx, ecx
je 0x6c509685
mov eax, dword [ebx + 0x68]
mov edx, dword [ebx + 0x6c]
mov dword [ecx + 0x68], eax
mov eax, dword [ebx + 0x78]
mov dword [ecx + 0x6c], edx
mov edx, dword [ebx + 0xe4]
mov dword [ecx + 0x78], eax
mov eax, dword [ebx + 0x7c]
mov dword [ecx + 0x7c], eax
mov eax, dword [ebx + 0x8c]
mov dword [ecx + 0x8c], eax
mov eax, dword [ebx + 0x80]
mov dword [ecx + 0x80], eax
mov eax, dword [ebx + 0x84]
mov dword [ecx + 0x84], eax
mov eax, dword [ebx + 0xb0]
mov dword [ecx + 0xb0], eax
mov eax, dword [ebx + 0x314]
mov dword [ecx + 0x314], eax
mov eax, dword [ebx + 0x318]
mov dword [ecx + 0x318], eax
mov eax, dword [ebx + 0xe0]
mov dword [ecx + 0xe4], edx
mov dword [ecx + 0xe0], eax
mov eax, dword [ebx + 0x110]
mov dword [ecx + 0x110], eax
mov eax, dword [ebx + 0x348]
mov dword [ecx + 0x348], eax
mov eax, dword [ebx + 0x34c]
mov dword [ecx + 0x34c], eax
mov eax, dword [ebx + 0x31c]
mov dword [ecx + 0x31c], eax
mov eax, dword [ebx + 0x70]
mov dword [ecx + 0x70], eax
mov eax, dword [ebx + 0x180]
mov edx, dword [ebx + 0x1c4]
mov dword [ecx + 0x180], eax
mov eax, dword [ebx + 0x184]
mov dword [ecx + 0x184], eax
mov eax, dword [ebx + 0x188]
mov dword [ecx + 0x188], eax
mov eax, dword [ebx + 0x18c]
mov dword [ecx + 0x18c], eax
mov eax, dword [ebx + 0x190]
mov dword [ecx + 0x190], eax
mov eax, dword [ebx + 0x2c8]
mov dword [ecx + 0x2c8], eax
mov eax, dword [ebx + 0x2cc]
mov dword [ecx + 0x2cc], eax
mov eax, dword [ebx + 0x1a0]
mov dword [ecx + 0x1a0], eax
mov eax, dword [ebx + 0x19c]
mov dword [ecx + 0x19c], eax
mov eax, dword [ebx + 0x1a4]
mov dword [ecx + 0x1a4], eax
mov eax, dword [ebx + 0x1c0]
mov dword [ecx + 0x1c4], edx
mov dword [ecx + 0x1c0], eax
mov eax, dword [ebx + 0x3bc]
mov dword [ecx + 0x3bc], eax
mov eax, dword [ecx + 0xc]
mov eax, dword [eax + 0x40]
test eax, eax
je 0x6c509698
mov dword [esp + 4], ebx
mov dword [esp], ecx
call eax
mov eax, dword [ebp + 0x328]
mov ecx, dword [esp + 0x2c]
test eax, eax
mov dword [ecx + 0x24], 0
mov dword [ecx + 0x20], 0
mov dword [ecx + 0x28], 1
mov dword [ecx + 4], 0
jle 0x6c50977c
xor edi, edi
mov dword [esp + 0x28], 0
mov ecx, dword [esp + 0x2c]
mov esi, dword [ecx]
add esi, edi
mov edx, dword [esi + 0xb0]
mov dword [esi + 0xb4], 0
mov dword [esp], edx
call sub.avutil_52.dll_av_frame_unref
mov eax, dword [esi + 0xc4]
mov edx, dword [esi]
test eax, eax
lea ebx, [edx + 8]
jle 0x6c50974f
nop
mov dword [esp], ebx
call sub.KERNEL32.dll_EnterCriticalSection
mov edx, dword [esi + 0x54]
sub esp, 4
cmp dword [edx + 8], 1
ja 0x6c509784
mov edx, dword [esi + 0xc4]
sub edx, 1
mov dword [esi + 0xc4], edx
imul edx, edx, 0x1d8
add edx, dword [esi + 0xc0]
mov dword [edx + 0x40], edx
mov dword [esp], edx
call sub.avutil_52.dll_av_frame_unref
mov dword [esp], ebx
call sub.KERNEL32.dll_LeaveCriticalSection
mov eax, dword [esi + 0xc4]
sub esp, 4
test eax, eax
jg 0x6c509700
mov edx, dword [ebp + 0xc]
mov edx, dword [edx + 0x60]
test edx, edx
je 0x6c509761
mov eax, dword [esi + 0x54]
mov dword [esp], eax
call edx
add dword [esp + 0x28], 1
add edi, 0xe0
mov eax, dword [esp + 0x28]
cmp dword [ebp + 0x328], eax
jg 0x6c5096d0
add esp, 0x3c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 0x14], 0x134
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], 0x6c591e25
mov dword [esp + 4], 0
mov dword [esp], 0
call sub.avutil_52.dll_av_log
call sub.msvcrt.dll_abort
lea esi, [esi]