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

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x4c
mov ebp, dword [esp + 0x60]
mov eax, dword [ebp + 0x40]
mov eax, dword [eax + 0x1c]
mov dword [esp + 0x30], eax
mov edx, dword [esp + 0x30]
mov eax, dword [eax + 0x24]
imul ebx, dword [edx + 0x20], 0xe0
add ebx, dword [edx]
mov dword [esp + 0x38], eax
mov eax, dword [ebp + 0x58]
mov esi, dword [ebx + 0x54]
mov dword [esi + 0x58], eax
mov eax, dword [ebp + 0x94]
mov dword [esi + 0x94], eax
mov eax, dword [ebp + 0x1e4]
mov dword [esi + 0x1e4], eax
mov eax, dword [ebp + 0x1d8]
mov dword [esi + 0x1d8], eax
mov eax, dword [ebp + 0x1dc]
mov dword [esi + 0x1dc], eax
mov eax, dword [ebp + 0x44]
mov dword [esi + 0x44], eax
mov eax, dword [ebp + 0x2b0]
mov dword [esi + 0x2b0], eax
mov eax, dword [ebp + 0x2b4]
mov dword [esi + 0x2b4], eax
mov eax, dword [ebp + 0x120]
mov dword [esi + 0x120], eax
mov eax, dword [ebp + 0x5c]
mov dword [esi + 0x5c], eax
mov ecx, dword [ebp + 0x350]
mov dword [esi + 0x350], ecx
mov ecx, dword [ebp + 0x354]
mov dword [esi + 0x354], ecx
mov edx, dword [ebp + 0x358]
mov dword [esi + 0x358], edx
mov eax, dword [ebp + 0x1ac]
mov edx, dword [ebp + 0x2c4]
mov dword [esi + 0x1ac], eax
mov eax, dword [ebp + 0x2c0]
mov dword [esi + 0x2c4], edx
mov edx, dword [ebp + 0xd4]
mov dword [esi + 0x2c0], eax
mov eax, dword [ebp + 0x334]
test edx, edx
mov dword [esi + 0x334], eax
je 0x6c5079f5
mov ecx, dword [ebp + 0xdc]
test ecx, ecx
je 0x6c5079f5
cmp edx, dword [esi + 0xd4]
jg 0x6c507e53
mov eax, dword [esi + 0xdc]
shl edx, 2
mov dword [esp + 8], edx
mov dword [esp + 4], ecx
mov dword [esp], eax
call sub.msvcrt.dll_memcpy
mov edx, dword [ebp + 0xd4]
mov dword [esi + 0xd4], edx
mov edx, dword [esp + 0x6c]
mov ecx, dword [ebx]
mov eax, dword [ebx + 0x54]
mov edx, dword [edx + 0x1c]
mov dword [esp + 0x34], ecx
mov esi, dword [ecx + 4]
mov eax, dword [eax + 0xc]
test edx, edx
jne 0x6c507a1f
test byte [eax + 0x10], 0x20
je 0x6c507d24
lea ecx, [ebx + 0x24]
mov dword [esp], ecx
mov dword [esp + 0x3c], ecx
call sub.KERNEL32.dll_EnterCriticalSection
mov eax, dword [ebx]
lea edi, [eax + 8]
mov eax, dword [ebx + 0xc4]
sub esp, 4
test eax, eax
jle 0x6c507a93
mov dword [esp], edi
call sub.KERNEL32.dll_EnterCriticalSection
mov eax, dword [ebx + 0x54]
sub esp, 4
cmp dword [eax + 8], 1
ja 0x6c5082d0
mov eax, dword [ebx + 0xc4]
sub eax, 1
mov dword [ebx + 0xc4], eax
imul eax, eax, 0x1d8
add eax, dword [ebx + 0xc0]
mov dword [eax + 0x40], eax
mov dword [esp], eax
call sub.avutil_52.dll_av_frame_unref
mov dword [esp], edi
call sub.KERNEL32.dll_LeaveCriticalSection
mov eax, dword [ebx + 0xc4]
sub esp, 4
test eax, eax
jg 0x6c507a40
test esi, esi
je 0x6c507c1b
cmp dword [esi + 0xbc], 1
je 0x6c50821a
mov esi, dword [esi + 0x54]
mov ecx, dword [ebx + 0x54]
cmp esi, ecx
je 0x6c507c00
mov eax, dword [esi + 0x68]
mov edx, dword [esi + 0x6c]
mov dword [ecx + 0x68], eax
mov eax, dword [esi + 0x78]
mov dword [ecx + 0x6c], edx
mov edx, dword [esi + 0xe4]
mov dword [ecx + 0x78], eax
mov eax, dword [esi + 0x7c]
mov dword [ecx + 0x7c], eax
mov eax, dword [esi + 0x8c]
mov dword [ecx + 0x8c], eax
mov eax, dword [esi + 0x80]
mov dword [ecx + 0x80], eax
mov eax, dword [esi + 0x84]
mov dword [ecx + 0x84], eax
mov eax, dword [esi + 0xb0]
mov dword [ecx + 0xb0], eax
mov eax, dword [esi + 0x314]
mov dword [ecx + 0x314], eax
mov eax, dword [esi + 0x318]
mov dword [ecx + 0x318], eax
mov eax, dword [esi + 0xe0]
mov dword [ecx + 0xe4], edx
mov dword [ecx + 0xe0], eax
mov eax, dword [esi + 0x110]
mov dword [ecx + 0x110], eax
mov eax, dword [esi + 0x348]
mov dword [ecx + 0x348], eax
mov eax, dword [esi + 0x34c]
mov dword [ecx + 0x34c], eax
mov eax, dword [esi + 0x31c]
mov dword [ecx + 0x31c], eax
mov eax, dword [esi + 0x70]
mov dword [ecx + 0x70], eax
mov eax, dword [esi + 0x180]
mov edx, dword [esi + 0x1c4]
mov dword [ecx + 0x180], eax
mov eax, dword [esi + 0x184]
mov dword [ecx + 0x184], eax
mov eax, dword [esi + 0x188]
mov dword [ecx + 0x188], eax
mov eax, dword [esi + 0x18c]
mov dword [ecx + 0x18c], eax
mov eax, dword [esi + 0x190]
mov dword [ecx + 0x190], eax
mov eax, dword [esi + 0x2c8]
mov dword [ecx + 0x2c8], eax
mov eax, dword [esi + 0x2cc]
mov dword [ecx + 0x2cc], eax
mov eax, dword [esi + 0x1a0]
mov dword [ecx + 0x1a0], eax
mov eax, dword [esi + 0x19c]
mov dword [ecx + 0x19c], eax
mov eax, dword [esi + 0x1a4]
mov dword [ecx + 0x1a4], eax
mov eax, dword [esi + 0x1c0]
mov dword [ecx + 0x1c4], edx
mov dword [ecx + 0x1c0], eax
mov eax, dword [esi + 0x3bc]
mov dword [ecx + 0x3bc], eax
mov eax, dword [ecx + 0xc]
mov eax, dword [eax + 0x40]
test eax, eax
je 0x6c507c1b
mov dword [esp + 4], esi
mov dword [esp], ecx
call eax
test eax, eax
jne 0x6c507e93
lea eax, [ebx + 0x58]
mov dword [esp], eax
mov dword [esp + 0x24], eax
call sub.avutil_52.dll_av_buffer_unref
mov eax, dword [esp + 0x24]
mov ecx, 0x14
mov esi, dword [esp + 0x6c]
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov esi, dword [esp + 0x6c]
mov eax, dword [esi]
test eax, eax
je 0x6c50815b
mov dword [esp], eax
call sub.avutil_52.dll_av_buffer_ref
mov dword [ebx + 0x58], eax
mov eax, dword [0x6c63e3e4]
lea edx, [ebx + 0x18]
mov dword [ebx + 0xbc], 1
mov esi, dword [ebx + 0x18]
test eax, eax
je 0x6c508114
mov dword [esp], edx
call eax
sub esp, 4
mov eax, dword [esp + 0x3c]
mov dword [esp], eax
call sub.KERNEL32.dll_LeaveCriticalSection
mov eax, dword [ebx + 0x54]
mov ecx, dword [eax + 0x334]
sub esp, 4
test ecx, ecx
jne 0x6c507d19
cmp dword [eax + 0x98], sym.avcodec_55.dll_avcodec_default_get_format
je 0x6c5082ad
test dword [ebx + 0xbc], 0xfffffffb
lea esi, [ebx + 0x3c]
lea edi, [ebx + 0x1c]
je 0x6c507d19
mov dword [esp + 0x2c], ebp
nop
mov dword [esp], esi
call sub.KERNEL32.dll_EnterCriticalSection
mov eax, dword [ebx + 0xbc]
sub esp, 4
cmp eax, 1
jne 0x6c507cec
mov edx, esi
mov eax, edi
call fcn.6c5071f0
mov ecx, dword [ebx + 0xbc]
cmp ecx, 1
je 0x6c507cd6
mov eax, ecx
cmp eax, 2
je 0x6c507ef5
cmp eax, 3
je 0x6c507eb2
mov dword [esp], esi
call sub.KERNEL32.dll_LeaveCriticalSection
sub esp, 4
test dword [ebx + 0xbc], 0xfffffffb
jne 0x6c507cc0
mov ebp, dword [esp + 0x2c]
mov edx, dword [esp + 0x34]
add dword [edx + 0x20], 1
mov dword [edx + 4], ebx
mov eax, dword [ebp + 0x328]
xor edx, edx
mov ecx, dword [esp + 0x30]
sub eax, 1
cmp dword [ebp + 0x30], 0x22
sete dl
sub eax, edx
cmp dword [ecx + 0x20], eax
jg 0x6c507e87
mov esi, dword [esp + 0x30]
mov eax, dword [esi + 0x28]
test eax, eax
je 0x6c507d69
mov eax, dword [esp + 0x68]
mov esi, dword [esp + 0x6c]
mov dword [eax], 0
mov eax, dword [esi + 0x1c]
test eax, eax
jne 0x6c507eaa
mov ebx, dword [esp + 0x38]
mov dword [esp + 0x2c], ebp
jmp 0x6c507df6
mov eax, dword [ebp + 0xb0]
mov edx, dword [esp + 0x64]
mov dword [esp + 4], eax
mov dword [esp], edx
call sub.avutil_52.dll_av_frame_move_ref
mov eax, dword [ebp + 0xb4]
mov ecx, dword [esp + 0x68]
mov edx, dword [ebp + 0x6c]
mov esi, dword [esp + 0x64]
mov dword [ecx], eax
mov ecx, dword [esp + 0x2c]
mov eax, dword [ebp + 0x68]
mov dword [esi + 0x9c], edx
mov edx, dword [ecx + 0x328]
mov dword [esi + 0x98], eax
mov esi, 0
mov dword [ebp + 0xb4], 0
cmp ebx, edx
cmovge ebx, esi
mov esi, dword [esp + 0x6c]
mov eax, dword [esi + 0x1c]
test eax, eax
jne 0x6c507f20
mov ecx, dword [esp + 0x68]
mov ecx, dword [ecx]
test ecx, ecx
jne 0x6c507f20
mov esi, dword [esp + 0x30]
cmp dword [esi + 0x24], ebx
je 0x6c507f20
mov eax, dword [esp + 0x30]
imul ebp, ebx, 0xe0
add ebx, 1
add ebp, dword [eax]
mov eax, dword [ebp + 0xbc]
test eax, eax
je 0x6c507d76
lea esi, [ebp + 0x3c]
mov dword [esp], esi
lea edi, [ebp + 0x20]
call sub.KERNEL32.dll_EnterCriticalSection
mov eax, dword [ebp + 0xbc]
sub esp, 4
test eax, eax
je 0x6c507e43
nop
mov edx, esi
mov eax, edi
call fcn.6c5071f0
mov eax, dword [ebp + 0xbc]
test eax, eax
jne 0x6c507e30
mov dword [esp], esi
call sub.KERNEL32.dll_LeaveCriticalSection
sub esp, 4
jmp 0x6c507d76
shl edx, 2
mov dword [esp + 4], edx
mov eax, dword [esi + 0xdc]
mov dword [esp], eax
call sub.avutil_52.dll_av_realloc
test eax, eax
je 0x6c508309
mov dword [esi + 0xdc], eax
mov edx, dword [ebp + 0xd4]
mov ecx, dword [ebp + 0xdc]
jmp 0x6c5079dc
mov dword [ecx + 0x28], 0
jmp 0x6c507d69
mov esi, dword [esp + 0x3c]
mov dword [esp + 0x24], eax
mov dword [esp], esi
call sub.KERNEL32.dll_LeaveCriticalSection
sub esp, 4
mov eax, dword [esp + 0x24]
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebx + 0x54]
mov edx, dword [ebx + 0xd4]
mov dword [esp], eax
mov dword [esp + 4], edx
call dword [eax + 0x98]
mov dword [ebx + 0xd8], eax
mov eax, dword [0x6c63e3e4]
mov dword [ebx + 0xbc], 1
mov ebp, dword [ebx + 0x1c]
test eax, eax
je 0x6c5080c5
mov dword [esp], edi
call eax
sub esp, 4
jmp 0x6c507cfe
mov eax, dword [ebx + 0xd0]
mov dword [esp + 8], eax
mov eax, dword [ebx + 0xcc]
mov dword [esp + 4], eax
mov eax, dword [ebx + 0x54]
mov dword [esp], eax
call fcn.6c514aa0
mov dword [ebx + 0xb8], eax
jmp 0x6c507ece
mov edi, ebp
mov ebp, dword [esp + 0x2c]
mov esi, dword [edi + 0x54]
mov dword [esp + 0x38], ebx
cmp ebp, esi
je 0x6c50807f
mov ecx, dword [esi + 0x68]
mov ebx, dword [esi + 0x6c]
mov dword [ebp + 0x68], ecx
mov ecx, dword [esi + 0x78]
mov dword [ebp + 0x6c], ebx
mov ebx, dword [esi + 0xe4]
mov dword [ebp + 0x78], ecx
mov ecx, dword [esi + 0x7c]
mov dword [ebp + 0x7c], ecx
mov ecx, dword [esi + 0x8c]
mov dword [ebp + 0x8c], ecx
mov ecx, dword [esi + 0x80]
mov dword [ebp + 0x80], ecx
mov ecx, dword [esi + 0x84]
mov dword [ebp + 0x84], ecx
mov ecx, dword [esi + 0xb0]
mov dword [ebp + 0xb0], ecx
mov ecx, dword [esi + 0x314]
mov dword [ebp + 0x314], ecx
mov ecx, dword [esi + 0x318]
mov dword [ebp + 0x318], ecx
mov ecx, dword [esi + 0xe0]
mov dword [ebp + 0xe4], ebx
mov dword [ebp + 0xe0], ecx
mov ecx, dword [esi + 0x110]
mov dword [ebp + 0x110], ecx
mov ecx, dword [esi + 0x348]
mov dword [ebp + 0x348], ecx
mov ecx, dword [esi + 0x34c]
mov dword [ebp + 0x34c], ecx
mov ecx, dword [esi + 0x31c]
mov dword [ebp + 0x31c], ecx
mov ecx, dword [esi + 0x70]
mov dword [ebp + 0x70], ecx
mov ecx, dword [esi + 0x180]
mov ebx, dword [esi + 0x1c4]
mov dword [ebp + 0x180], ecx
mov ecx, dword [esi + 0x184]
mov dword [ebp + 0x184], ecx
mov ecx, dword [esi + 0x188]
mov dword [ebp + 0x188], ecx
mov ecx, dword [esi + 0x18c]
mov dword [ebp + 0x18c], ecx
mov ecx, dword [esi + 0x190]
mov dword [ebp + 0x190], ecx
mov ecx, dword [esi + 0x2c8]
mov dword [ebp + 0x2c8], ecx
mov ecx, dword [esi + 0x2cc]
mov dword [ebp + 0x2cc], ecx
mov ecx, dword [esi + 0x1a0]
mov dword [ebp + 0x1a0], ecx
mov ecx, dword [esi + 0x19c]
mov dword [ebp + 0x19c], ecx
mov ecx, dword [esi + 0x1a4]
mov dword [ebp + 0x1a4], ecx
mov ecx, dword [esi + 0x1c0]
mov dword [ebp + 0x1c4], ebx
mov dword [ebp + 0x1c0], ecx
mov ecx, dword [esi + 0x3bc]
mov dword [ebp + 0x3bc], ecx
mov ecx, dword [esi + 0x328]
sub ecx, 1
mov dword [ebp + 0x74], ecx
mov ecx, dword [esi + 0x324]
mov dword [ebp + 0x324], ecx
mov ecx, dword [esp + 0x30]
cmp dword [ecx + 0x20], edx
jl 0x6c5080a7
mov dword [ecx + 0x20], 0
mov edx, dword [esp + 0x38]
mov esi, dword [esp + 0x30]
mov dword [esi + 0x24], edx
mov edx, dword [edi + 0xb8]
test edx, edx
cmovs eax, edx
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], ebp
call sub.KERNEL32.dll_EnterCriticalSection
lea eax, [ebp + 0x18]
sub esp, 4
mov dword [esp], eax
mov dword [esp + 0x24], eax
call sub.KERNEL32.dll_EnterCriticalSection
mov ecx, dword [ebp + 0x30]
sub esp, 4
mov eax, dword [esp + 0x24]
mov dword [esp + 0x24], ecx
mov dword [esp], eax
call sub.KERNEL32.dll_LeaveCriticalSection
sub esp, 4
mov ecx, dword [esp + 0x24]
test ecx, ecx
jne 0x6c508266
mov dword [esp], ebp
call sub.KERNEL32.dll_LeaveCriticalSection
sub esp, 4
jmp 0x6c507cfe
mov dword [esp], esi
lea edi, [esi + 0x18]
call sub.KERNEL32.dll_EnterCriticalSection
sub esp, 4
mov dword [esp], edi
call sub.KERNEL32.dll_EnterCriticalSection
mov eax, dword [esi + 0x30]
sub esp, 4
mov dword [esp], edi
mov dword [esp + 0x24], eax
call sub.KERNEL32.dll_LeaveCriticalSection
sub esp, 4
mov eax, dword [esp + 0x24]
test eax, eax
jne 0x6c5081d3
mov dword [esp], esi
call sub.KERNEL32.dll_LeaveCriticalSection
sub esp, 4
jmp 0x6c507c79
mov esi, dword [esi + 0x1c]
mov eax, esi
add eax, 0x10
mov dword [esp + 8], eax
lea eax, [ebx + 0xac]
mov dword [esp + 4], eax
lea eax, [ebx + 0xa8]
mov dword [esp], eax
call fcn.6c55dfa8
mov eax, dword [ebx + 0xa8]
test eax, eax
je 0x6c508321
mov esi, dword [esp + 0x6c]
mov dword [ebx + 0x70], eax
mov ecx, dword [esi + 0x1c]
mov edx, dword [esi + 0x18]
mov dword [esp], eax
mov dword [esp + 8], ecx
mov dword [esp + 4], edx
call sub.msvcrt.dll_memcpy
mov eax, dword [ebx + 0xa8]
add eax, dword [esi + 0x1c]
mov dword [eax], 0
mov dword [eax + 4], 0
mov dword [eax + 8], 0
mov dword [eax + 0xc], 0
jmp 0x6c507c54
mov dword [esp + 8], 0
mov dword [esp + 4], 1
mov eax, dword [esi + 0x34]
mov dword [esp], eax
call sub.KERNEL32.dll_ReleaseSemaphore
sub esp, 0xc
mov dword [esp + 4], 0xffffffff
mov eax, dword [esi + 0x38]
mov dword [esp], eax
call sub.KERNEL32.dll_WaitForSingleObject
mov eax, dword [esi + 0x38]
sub esp, 8
mov dword [esp], eax
call sub.KERNEL32.dll_ResetEvent
sub esp, 4
jmp 0x6c50814b
lea edi, [esi + 0x3c]
mov dword [esp], edi
call sub.KERNEL32.dll_EnterCriticalSection
lea ecx, [esi + 0x1c]
sub esp, 4
cmp dword [esi + 0xbc], 1
jne 0x6c508256
mov dword [esp + 0x2c], ebx
mov ebx, ecx
lea esi, [esi]
mov edx, edi
mov eax, ebx
call fcn.6c5071f0
cmp dword [esi + 0xbc], 1
je 0x6c508240
mov ebx, dword [esp + 0x2c]
mov dword [esp], edi
call sub.KERNEL32.dll_LeaveCriticalSection
sub esp, 4
jmp 0x6c507aa8
mov dword [esp + 8], 0
mov dword [esp + 4], 1
mov eax, dword [ebp + 0x34]
mov dword [esp], eax
call sub.KERNEL32.dll_ReleaseSemaphore
sub esp, 0xc
mov dword [esp + 4], 0xffffffff
mov eax, dword [ebp + 0x38]
mov dword [esp], eax
call sub.KERNEL32.dll_WaitForSingleObject
mov eax, dword [ebp + 0x38]
sub esp, 8
mov dword [esp], eax
call sub.KERNEL32.dll_ResetEvent
sub esp, 4
jmp 0x6c508104
mov edx, dword [eax + 0x1d8]
test edx, edx
jne 0x6c507ca9
cmp dword [eax + 0x1e4], sym.avcodec_55.dll_avcodec_default_get_buffer2
jne 0x6c507ca9
jmp 0x6c507d19
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
mov eax, dword [esi + 0xdc]
mov dword [esp], eax
call fcn.6c55de18
mov eax, 0xfffffff4
jmp 0x6c507eaa
mov eax, dword [esp + 0x3c]
mov dword [esp], eax
call sub.KERNEL32.dll_LeaveCriticalSection
mov eax, 0xfffffff4
sub esp, 4
jmp 0x6c507eaa