Function at 0x454650
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 ebx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov ecx, dword [ebx + 0x18]
mov edx, dword [ebx]
mov dword [esp + 0x3c], ecx
mov ecx, dword [ebx + 0x34]
mov dword [esp + 0x30], edx
mov edi, dword [esp + 0x3c]
mov edx, dword [ebx + 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 [esi + 0x59], 2
mov dword [esp + 0x38], edx
je 0x4546a8
mov eax, dword [esi + 0x29c]
test eax, eax
je 0x4546a8
mov byte [eax], 0
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4547b7
mov dword [esp + 0xc], esi
mov dword [esp + 8], 0
mov eax, dword [esi + 0x7c]
mov dword [esp + 4], eax
mov eax, dword [esi + 0x78]
mov dword [esp], eax
call fcn.00548920
test eax, eax
jne 0x454882
mov eax, dword [esi + 0xc]
mov eax, dword [eax + 0x54]
test eax, eax
je 0x4548af
mov edx, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov dword [esp + 4], ebx
mov dword [esp], esi
mov dword [esp + 0xc], edx
mov dword [esp + 8], ecx
call eax
test eax, eax
mov edi, eax
jg 0x4548e8
mov eax, dword [ebx + 0x18]
test eax, eax
je 0x45471e
mov edx, dword [esi + 0x40]
cmp eax, dword [edx + 0x1ec]
je 0x4547f3
test edi, edi
jne 0x45479a
mov ecx, dword [ebp + 0x14]
mov eax, dword [ecx]
test eax, eax
je 0x4547e7
mov eax, dword [esi + 0xc]
test byte [eax + 0x10], 0x20
jne 0x454753
mov ecx, dword [ebp + 0x10]
mov eax, dword [ecx + 0x88]
mov edx, dword [ecx + 0x8c]
mov dword [ebx + 0x10], eax
mov dword [ebx + 0x14], edx
mov dword [ebx + 8], eax
mov dword [ebx + 0xc], edx
mov eax, dword [esp + 0x38]
test eax, eax
je 0x454786
mov eax, dword [ebx + 0x18]
test eax, eax
je 0x454786
mov eax, dword [ebx + 0x1c]
mov dword [esp], ebx
add eax, 0x10
mov dword [esp + 4], eax
call fcn.00541830
test eax, eax
mov edi, eax
js 0x454876
mov eax, dword [ebx]
mov eax, dword [eax + 4]
mov dword [ebx + 0x18], eax
mov edx, dword [ebp + 0x14]
add dword [esi + 0x1ac], 1
mov eax, dword [edx]
test eax, eax
jne 0x454851
mov dword [esp], ebx
call fcn.00459dd0
call fcn.005491f0
test al, 1
je 0x4547ad
emms
lea esp, [ebp - 0xc]
mov eax, edi
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esi + 0xc]
test byte [eax + 0x10], 0x20
jne 0x4546b3
mov dword [esp], ebx
xor edi, edi
call fcn.00459dd0
mov dword [esp], ebx
call fcn.00459640
mov eax, edi
mov dword [ebx + 0x1c], 0
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [ebx + 0x1c], 0
jmp 0x454753
mov edx, dword [esp + 0x3c]
test edx, edx
je 0x45488c
mov edx, dword [ebx + 0x1c]
cmp edx, dword [esp + 0x34]
jle 0x454860
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], esi
call fcn.00539bd0
mov ecx, dword [esp + 0x34]
mov dword [ebx + 0x1c], ecx
mov edx, dword [esp + 0x30]
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x38], 0
mov dword [ebx], edx
mov edx, dword [esp + 0x2c]
mov dword [ebx + 0x18], ecx
mov dword [ebx + 0x34], edx
jmp 0x45471e
mov dword [esp], ebx
call fcn.00459f50
jmp 0x4547a2
mov dword [esp + 8], edx
mov edx, dword [esp + 0x3c]
mov dword [esp + 4], eax
mov dword [esp], edx
call sub.msvcrt.dll_memcpy
jmp 0x454830
add dword [esi + 0x1ac], 1
jmp 0x45479a
mov edi, 0xffffffea
jmp 0x4547ad
mov dword [esp], ebx
call fcn.00459cf0
test eax, eax
js 0x4548a5
mov dword [esp + 0x38], 0
jmp 0x45471e
mov edi, 0xfffffff4
jmp 0x45479a
mov dword [esp + 0x14], 0x746
mov dword [esp + 0x10], str.libavcodec_utils.c
mov dword [esp + 0xc], str.avctx__codec__encode2
mov dword [esp + 8], 0x59f88f
mov dword [esp + 4], 0
mov dword [esp], 0
call fcn.00539bd0
call sub.msvcrt.dll_abort
mov dword [esp + 0x14], 0x749
mov dword [esp + 0x10], str.libavcodec_utils.c
mov dword [esp + 0xc], 0x59fcd4
jmp 0x4548c7