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

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
and esp, 0xfffffff0
sub esp, 0x40
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
mov ecx, dword [esi + 0x18]
mov edx, dword [esi]
mov dword [esp + 0x3c], ecx
mov ecx, dword [esi + 0x34]
mov dword [esp + 0x30], edx
mov edi, dword [esp + 0x3c]
mov edx, dword [esi + 0x1c]
mov dword [esp + 0x2c], ecx
mov ecx, dword [ebp + 0x14]
mov dword [esp + 0x34], edx
xor edx, edx
test edi, edi
sete dl
mov dword [ecx], 0
test byte [ebx + 0x59], 2
mov dword [esp + 0x38], edx
je 0x6c515dc8
mov eax, dword [ebx + 0x29c]
test eax, eax
je 0x6c515dc8
mov byte [eax], 0
mov eax, dword [ebx + 0xc]
test byte [eax + 0x10], 0x20
jne 0x6c515ddc
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x6c515f90
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 0
mov eax, dword [ebx + 0x7c]
mov dword [esp + 4], eax
mov eax, dword [ebx + 0x78]
mov dword [esp], eax
call sub.avutil_52.dll_av_image_check_size
test eax, eax
jne 0x6c515f80
mov eax, dword [ebx + 0xc]
mov eax, dword [eax + 0x54]
test eax, eax
je 0x6c51600a
mov edx, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov dword [esp + 4], esi
mov dword [esp], ebx
mov dword [esp + 0xc], edx
mov dword [esp + 8], ecx
call eax
test eax, eax
mov edi, eax
jg 0x6c515fd1
mov eax, dword [esi + 0x18]
test eax, eax
je 0x6c515e44
mov edx, dword [ebx + 0x40]
cmp eax, dword [edx + 0x24]
je 0x6c515ef0
test edi, edi
jne 0x6c515e9b
mov ecx, dword [ebp + 0x14]
mov eax, dword [ecx]
test eax, eax
jne 0x6c515ec2
mov dword [esi + 0x1c], 0
mov eax, dword [esp + 0x38]
test eax, eax
je 0x6c515e8b
mov ecx, dword [esi + 0x18]
test ecx, ecx
je 0x6c515e8b
mov eax, dword [esi + 0x1c]
mov dword [esp], esi
add eax, 0x10
mov dword [esp + 4], eax
call sub.avutil_52.dll_av_buffer_realloc
test eax, eax
mov edi, eax
js 0x6c515f70
mov eax, dword [esi]
mov eax, dword [eax + 4]
mov dword [esi + 0x18], eax
mov edx, dword [ebp + 0x14]
add dword [ebx + 0x1ac], 1
mov edx, dword [edx]
test edx, edx
jne 0x6c515eb8
mov dword [esp], esi
call sym.avcodec_55.dll_av_free_packet
call sub.avutil_52.dll_av_get_cpu_flags
test al, 1
je 0x6c515eae
emms
lea esp, [ebp - 0xc]
mov eax, edi
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], esi
call sym.avcodec_55.dll_av_packet_merge_side_data
jmp 0x6c515ea3
mov eax, dword [ebx + 0xc]
test byte [eax + 0x10], 0x20
jne 0x6c515e58
mov ecx, dword [ebp + 0x10]
mov eax, dword [ecx + 0x88]
mov edx, dword [ecx + 0x8c]
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], edx
mov dword [esi + 8], eax
mov dword [esi + 0xc], edx
jmp 0x6c515e58
mov edx, dword [esp + 0x3c]
test edx, edx
je 0x6c515fae
mov edx, dword [esi + 0x1c]
cmp edx, dword [esp + 0x34]
jg 0x6c515f40
mov dword [esp + 8], edx
mov edx, dword [esp + 0x3c]
mov dword [esp + 4], eax
mov dword [esp], edx
call sub.msvcrt.dll_memcpy
mov edx, dword [esp + 0x30]
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x38], 0
mov dword [esi], edx
mov edx, dword [esp + 0x2c]
mov dword [esi + 0x18], ecx
mov dword [esi + 0x34], edx
jmp 0x6c515e44
mov dword [esp + 0xc], edx
mov edi, 0xffffffff
mov dword [esp + 8], str.Provided_packet_is_too_small__needs_to_be__d_n
mov dword [esp + 4], 0x10
mov dword [esp], ebx
call sub.avutil_52.dll_av_log
mov ecx, dword [esp + 0x34]
mov dword [esi + 0x1c], ecx
jmp 0x6c515f19
add dword [ebx + 0x1ac], 1
jmp 0x6c515e9b
mov edi, 0xffffffea
jmp 0x6c515eae
mov dword [esp], esi
xor edi, edi
call sym.avcodec_55.dll_av_free_packet
mov dword [esp], esi
call sym.avcodec_55.dll_av_init_packet
mov dword [esi + 0x1c], 0
jmp 0x6c515eae
mov dword [esp], esi
call sym.avcodec_55.dll_av_dup_packet
test eax, eax
js 0x6c515fc7
mov dword [esp + 0x38], 0
jmp 0x6c515e44
mov edi, 0xfffffff4
jmp 0x6c515e9b
mov dword [esp + 0x14], 0x765
mov dword [esp + 0x10], str.libavcodec_utils.c
mov dword [esp + 0xc], str.ret___0
mov dword [esp + 8], 0x6c592c0f
mov dword [esp + 4], 0
mov dword [esp], 0
call sub.avutil_52.dll_av_log
call sub.msvcrt.dll_abort
mov dword [esp + 0x14], 0x762
mov dword [esp + 0x10], str.libavcodec_utils.c
mov dword [esp + 0xc], str.avctx__codec__encode2
jmp 0x6c515fe9