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

Disassembly:
push ebp
xor ebp, ebp
push edi
push esi
push ebx
sub esp, 0x4c
mov ecx, dword [esp + 0x60]
mov edx, dword [esp + 0x64]
mov dword [esp + 0x24], 0
mov eax, dword [ecx + 0x40]
mov ebx, dword [ecx + 0xc]
test edx, edx
mov eax, dword [eax + 0x1c]
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x28], eax
jg 0x6c5086df
jmp 0x6c508730
mov dword [ebx + 0xb4], 0
mov ebx, dword [esp + 0x64]
add ebp, 0xe0
add dword [esp + 0x24], 1
cmp dword [esp + 0x24], ebx
je 0x6c508730
mov ecx, dword [esp + 0x28]
mov ebx, dword [ecx]
add ebx, ebp
mov eax, dword [ebx + 0xbc]
test eax, eax
je 0x6c5086c0
lea esi, [ebx + 0x3c]
mov dword [esp], esi
lea edi, [ebx + 0x20]
call sub.KERNEL32.dll_EnterCriticalSection
mov eax, dword [ebx + 0xbc]
sub esp, 4
test eax, eax
je 0x6c508723
lea esi, [esi]
mov edx, esi
mov eax, edi
call fcn.6c5071f0
mov eax, dword [ebx + 0xbc]
test eax, eax
jne 0x6c508710
mov dword [esp], esi
call sub.KERNEL32.dll_LeaveCriticalSection
sub esp, 4
jmp 0x6c5086c0
mov ecx, dword [esp + 0x28]
mov eax, dword [ecx + 4]
test eax, eax
je 0x6c5088bc
mov edx, dword [ecx]
cmp eax, edx
je 0x6c5088bc
mov ebx, dword [eax + 0x54]
mov ecx, dword [edx + 0x54]
cmp ebx, ecx
je 0x6c5088a1
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 0x6c5088bc
mov dword [esp + 4], ebx
mov dword [esp], ecx
call eax
test eax, eax
js 0x6c508c9c
mov eax, dword [esp + 0x64]
xor edi, edi
mov ecx, dword [esp + 0x28]
test eax, eax
mov dword [ecx + 0x2c], 1
jle 0x6c508b00
mov ecx, dword [esp + 0x28]
imul ebx, edi, 0xe0
add ebx, dword [ecx]
lea esi, [ebx + 0x24]
mov dword [esp], esi
call sub.KERNEL32.dll_EnterCriticalSection
mov eax, dword [0x6c63e3e4]
lea ecx, [ebx + 0x18]
mov ebp, dword [ebx + 0x18]
sub esp, 4
test eax, eax
je 0x6c508ab5
mov dword [esp], ecx
call eax
sub esp, 4
mov dword [esp], esi
call sub.KERNEL32.dll_LeaveCriticalSection
mov eax, dword [ebx + 0x14]
sub esp, 4
test eax, eax
jne 0x6c508a87
mov ecx, dword [esp + 0x2c]
mov dword [ebx + 0x14], 0
mov eax, dword [ecx + 0x5c]
test eax, eax
je 0x6c50893a
mov edx, dword [ebx + 0x54]
mov dword [esp], edx
call eax
mov eax, dword [ebx]
mov ecx, dword [esp + 0x60]
lea esi, [eax + 8]
mov eax, dword [ebx + 0xc4]
mov dword [ecx + 0xc], 0
test eax, eax
jle 0x6c5089a7
mov dword [esp], esi
call sub.KERNEL32.dll_EnterCriticalSection
mov eax, dword [ebx + 0x54]
sub esp, 4
cmp dword [eax + 8], 1
ja 0x6c508ce0
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], esi
call sub.KERNEL32.dll_LeaveCriticalSection
mov ebp, dword [ebx + 0xc4]
sub esp, 4
test ebp, ebp
jg 0x6c508954
add ebx, 0xb0
add edi, 1
mov dword [esp], ebx
call fcn.6c55df90
cmp edi, dword [esp + 0x64]
jne 0x6c5088d5
xor edi, edi
xor esi, esi
lea ebp, [esp + 0x3c]
jmp 0x6c5089fc
mov eax, dword [ebx + 0x54]
add ebx, 0x54
add esi, 1
add edi, 0xe0
add eax, 0x40
mov dword [esp], eax
call sub.avutil_52.dll_av_freep
mov dword [esp], ebx
call sub.avutil_52.dll_av_freep
cmp esi, dword [esp + 0x64]
je 0x6c508b00
mov ecx, dword [esp + 0x28]
mov ebx, dword [ecx]
add ebx, edi
lea eax, [ebx + 0x24]
mov dword [esp], eax
call sub.KERNEL32.dll_DeleteCriticalSection
lea eax, [ebx + 0x3c]
sub esp, 4
mov dword [esp], eax
call sub.KERNEL32.dll_DeleteCriticalSection
mov ecx, dword [0x6c63e3f0]
mov eax, dword [ebx + 0x18]
sub esp, 4
test ecx, ecx
mov dword [esp + 0x3c], eax
je 0x6c508b7d
lea eax, [ebx + 0x58]
mov dword [esp], eax
call sub.avutil_52.dll_av_buffer_unref
lea eax, [ebx + 0xa8]
mov dword [esp], eax
call sub.avutil_52.dll_av_freep
lea eax, [ebx + 0xc0]
mov dword [esp], eax
call sub.avutil_52.dll_av_freep
test esi, esi
je 0x6c5089d0
mov eax, dword [ebx + 0x54]
add eax, 0x3c
mov dword [esp], eax
call sub.avutil_52.dll_av_freep
mov eax, dword [ebx + 0x54]
add eax, 0xdc
mov dword [esp], eax
call sub.avutil_52.dll_av_freep
jmp 0x6c5089d0
mov esi, dword [ebx + 4]
mov dword [esp + 4], 0xffffffff
mov dword [esp], esi
call sub.KERNEL32.dll_WaitForSingleObject
sub esp, 8
test eax, eax
jne 0x6c508920
mov dword [esp], esi
call sub.KERNEL32.dll_CloseHandle
sub esp, 4
jmp 0x6c508920
mov dword [esp], ebp
call sub.KERNEL32.dll_EnterCriticalSection
lea eax, [ebp + 0x18]
sub esp, 4
mov dword [esp], eax
mov dword [esp + 0x20], eax
call sub.KERNEL32.dll_EnterCriticalSection
mov ecx, dword [ebp + 0x30]
sub esp, 4
mov eax, dword [esp + 0x20]
mov dword [esp + 0x20], ecx
mov dword [esp], eax
call sub.KERNEL32.dll_LeaveCriticalSection
sub esp, 4
mov ecx, dword [esp + 0x20]
test ecx, ecx
jne 0x6c508b36
mov dword [esp], ebp
call sub.KERNEL32.dll_LeaveCriticalSection
sub esp, 4
jmp 0x6c50890a
mov ebx, dword [esp + 0x28]
mov dword [esp], ebx
call sub.avutil_52.dll_av_freep
mov eax, ebx
add eax, 8
mov dword [esp], eax
call sub.KERNEL32.dll_DeleteCriticalSection
sub esp, 4
mov ecx, dword [esp + 0x60]
mov eax, dword [ecx + 0x40]
add eax, 0x1c
mov dword [esp], eax
call sub.avutil_52.dll_av_freep
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
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 0x6c508af0
mov eax, dword [eax + 0x34]
mov dword [esp], eax
call sub.KERNEL32.dll_CloseHandle
sub esp, 4
mov eax, dword [esp + 0x3c]
mov eax, dword [eax + 0x38]
mov dword [esp], eax
call sub.KERNEL32.dll_CloseHandle
sub esp, 4
mov eax, dword [esp + 0x3c]
add eax, 0x18
mov dword [esp], eax
call sub.KERNEL32.dll_DeleteCriticalSection
sub esp, 4
mov eax, dword [esp + 0x3c]
mov dword [esp], eax
call sub.KERNEL32.dll_DeleteCriticalSection
sub esp, 4
mov dword [esp], ebp
call sub.avutil_52.dll_av_freep
mov edx, dword [0x6c63e3f0]
mov eax, dword [ebx + 0x1c]
mov dword [ebx + 0x18], 0
test edx, edx
mov dword [esp + 0x3c], eax
jne 0x6c508a35
mov eax, dword [eax + 0x34]
mov dword [esp], eax
call sub.KERNEL32.dll_CloseHandle
sub esp, 4
mov eax, dword [esp + 0x3c]
mov eax, dword [eax + 0x38]
mov dword [esp], eax
call sub.KERNEL32.dll_CloseHandle
sub esp, 4
mov eax, dword [esp + 0x3c]
add eax, 0x18
mov dword [esp], eax
call sub.KERNEL32.dll_DeleteCriticalSection
sub esp, 4
mov eax, dword [esp + 0x3c]
mov dword [esp], eax
call sub.KERNEL32.dll_DeleteCriticalSection
sub esp, 4
mov dword [esp], ebp
call sub.avutil_52.dll_av_freep
mov ecx, dword [0x6c63e3f0]
mov eax, dword [ebx + 0x20]
mov dword [ebx + 0x1c], 0
test ecx, ecx
mov dword [esp + 0x3c], eax
jne 0x6c508a35
mov eax, dword [eax + 0x34]
mov dword [esp], eax
call sub.KERNEL32.dll_CloseHandle
sub esp, 4
mov eax, dword [esp + 0x3c]
mov eax, dword [eax + 0x38]
mov dword [esp], eax
call sub.KERNEL32.dll_CloseHandle
sub esp, 4
mov eax, dword [esp + 0x3c]
add eax, 0x18
mov dword [esp], eax
call sub.KERNEL32.dll_DeleteCriticalSection
sub esp, 4
mov eax, dword [esp + 0x3c]
mov dword [esp], eax
call sub.KERNEL32.dll_DeleteCriticalSection
sub esp, 4
mov dword [esp], ebp
call sub.avutil_52.dll_av_freep
mov dword [ebx + 0x20], 0
jmp 0x6c508a35
mov ebx, dword [esp + 0x60]
mov dword [esp + 8], str.Final_thread_update_failed_n
mov dword [esp + 4], 0x10
mov dword [esp], ebx
call sub.avutil_52.dll_av_log
mov ecx, dword [esp + 0x28]
mov ebx, dword [esp + 0x28]
mov eax, dword [ecx]
mov edx, dword [ebx + 4]
mov eax, dword [eax + 0x54]
mov edx, dword [edx + 0x54]
mov eax, dword [eax + 0x40]
mov edx, dword [edx + 0x40]
mov ecx, dword [eax]
mov dword [edx], ecx
mov dword [eax], 1
jmp 0x6c5088bc
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]