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

Disassembly:
push ebp
push edi
push esi
push ebx
mov esi, eax
sub esp, 0x5c
mov edi, dword [eax + 0x1c]
mov dword [esp + 0x38], ecx
mov eax, dword [edi + 0x5c]
test eax, eax
mov dword [esp + 0x4c], eax
jne 0x4a32c1
mov eax, dword [edi + 0x50]
mov ebp, edx
test eax, eax
je 0x4a2c7f
mov ebx, dword [esp + 0x70]
test ebx, ebx
je 0x4a2c7f
mov eax, dword [esp + 0x70]
mov ecx, dword [eax + 0x1c]
test ecx, ecx
jne 0x4a3250
mov eax, dword [esp + 0x38]
mov dword [eax], 0
mov eax, dword [edi + 0x60]
mov dword [edi + 0x54], 1
test eax, eax
jne 0x4a31f0
mov eax, dword [esp + 0x70]
mov dword [esp], esi
mov dword [esp + 4], eax
call fcn.004a0350
cmp eax, 0xdfb9b0bb
je 0x4a2cc3
cmp eax, 0xfffffff5
je 0x4a32a8
test eax, eax
js 0x4a2dc0
mov dword [esp], ebp
mov ebx, dword [esi + 0x1c]
call fcn.00562860
mov dword [esp], esi
call fcn.004e86c0
test eax, eax
je 0x4a31e1
mov eax, dword [esi + 0xc]
mov dword [esp], eax
call fcn.004e3510
test eax, eax
je 0x4a31e1
mov eax, dword [ebx + 0x4c]
mov edx, dword [eax + 0xf8]
test edx, edx
je 0x4a2eb0
mov dword [esp + 4], eax
mov dword [esp], ebp
call fcn.00562880
mov eax, dword [esi + 8]
test eax, eax
je 0x4a2f10
mov edx, dword [esi + 0x3c]
mov eax, dword [esi + 0x168]
add eax, 1
and edx, 0x20
mov dword [esi + 0x168], eax
je 0x4a2e30
cmp eax, 1
je 0x4a2de0
jle 0x4a2e30
mov edx, dword [ebp + 0x50]
cmp dword [ebx + 0x78], edx
mov edx, dword [esi + 8]
setne byte [esp + 0x34]
test edx, edx
movzx ecx, byte [esp + 0x34]
je 0x4a31b2
cmp edx, 1
jne 0x4a31a5
mov edx, dword [ebx + 0x84]
cmp edx, dword [ebp + 0xe8]
je 0x4a3160
mov edx, dword [ebx + 0x74]
add edx, 1
mov dword [ebx + 0x74], edx
mov dword [esp + 0x18], edx
mov ecx, dword [ebp + 0x68]
mov ebx, dword [ebp + 0x6c]
mov dword [esp + 0xc], eax
mov dword [esp + 8], str.dropped_changed_frame__d_pts__lld_drop_count:__d__n
mov dword [esp + 4], 0x20
mov dword [esp], esi
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], ebx
call fcn.0056b9c0
mov dword [esp], ebp
call fcn.00562860
mov eax, 0x9c9198ff
lea esi, [esi]
mov dword [edi + 0x5c], 0
mov ebx, dword [esp + 0x4c]
mov dword [edi + 0x60], ebx
add esp, 0x5c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebp + 0x50]
mov dword [ebx + 0x78], eax
mov eax, dword [esi + 8]
test eax, eax
je 0x4a3230
cmp eax, 1
jne 0x4a2e30
mov eax, dword [ebp + 0xe8]
test eax, eax
jne 0x4a2e06
mov eax, dword [esi + 0x158]
mov dword [ebx + 0x84], eax
mov eax, dword [ebp + 0x160]
mov edx, dword [ebp + 0xf4]
mov dword [ebx + 0x88], eax
mov eax, dword [ebp + 0xf0]
mov dword [ebx + 0x94], edx
mov dword [ebx + 0x90], eax
mov eax, dword [edi + 0x64]
cmp eax, ebp
je 0x4a2e80
mov ecx, dword [esi + 0x194]
test ecx, ecx
je 0x4a3030
mov ebx, dword [esp + 0x38]
mov ebp, eax
mov dword [ebx], 1
mov eax, dword [esi + 0xc]
mov ecx, dword [eax + 0x78]
mov eax, dword [edi + 0x40]
test eax, eax
jne 0x4a2ed7
test ecx, ecx
jne 0x4a2cc3
mov ebx, dword [esp + 0x70]
mov eax, dword [edi + 0x5c]
mov edx, dword [ebx + 0x1c]
cmp eax, edx
mov ecx, edx
jae 0x4a2cc3
jmp 0x4a327a
mov edx, dword [edi + 0x58]
test edx, edx
jne 0x4a2e51
mov dword [esp + 8], str.The_deprecated_avcodec_decode__API_cannot_return_all_the_frames_for_this_decoder._Some_frames_will_be_dropped._Update_your_code_to_the_new_decoding_API_to_fix_this._n
mov dword [esp + 4], 0x18
mov dword [esp], esi
call fcn.0056b9c0
mov dword [edi + 0x58], 1
jmp 0x4a2e51
mov edx, ebp
mov eax, esi
call fcn.0049f3f0
test eax, eax
jns 0x4a2d0e
cmp eax, 0xfffffff5
je 0x4a2ed1
cmp eax, 0xdfb9b0bb
jne 0x4a2dc0
mov eax, dword [esi + 0xc]
mov ecx, dword [eax + 0x78]
mov eax, dword [esp + 0x70]
test ecx, ecx
mov edx, dword [eax + 0x1c]
mov eax, edx
je 0x4a3275
test eax, eax
mov dword [edi + 0x5c], 0
js 0x4a2dc7
sub edx, eax
mov dword [esp + 0x4c], edx
mov ebx, dword [esp + 0x4c]
mov dword [edi + 0x60], ebx
add esp, 0x5c
pop ebx
pop esi
pop edi
pop ebp
ret
mov ecx, dword [ebp + 0x184]
mov eax, dword [ebp + 0x18c]
mov edx, dword [ebp + 0x188]
mov dword [esp + 0x34], ecx
mov ecx, dword [ebp + 0x180]
mov dword [esp + 0x40], eax
mov dword [esp + 0x3c], ecx
mov ecx, dword [ebp + 0x48]
mov dword [esp + 0x48], ecx
mov ecx, dword [ebp + 0x44]
mov dword [esp + 0x44], ecx
mov ecx, 0x7fffffff
sub ecx, eax
cmp edx, ecx
jae 0x4a2fb3
mov eax, 0x7fffffff
sub eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x3c]
cmp eax, ecx
jbe 0x4a2fb3
mov eax, dword [esp + 0x40]
add eax, edx
cmp eax, dword [esp + 0x44]
jae 0x4a2fb3
mov eax, dword [esp + 0x34]
add eax, ecx
cmp eax, dword [esp + 0x48]
jae 0x4a2fb3
mov eax, dword [esi + 0x378]
mov edx, dword [esi + 0x3c]
test eax, eax
je 0x4a2d1c
and edx, 1
mov dword [esp], ebp
mov dword [esp + 4], edx
call fcn.005644a0
test eax, eax
jns 0x4a2d19
mov dword [esp], ebp
mov dword [esp + 0x34], eax
call fcn.00562860
mov eax, dword [esp + 0x34]
jmp 0x4a2ec1
mov eax, dword [esp + 0x48]
mov dword [esp + 0xc], edx
mov dword [esp + 8], str.Invalid_cropping_information_set_by_a_decoder:__zu__zu__zu__zu__frame_size__dx_d_._This_is_a_bug__please_report_it_n
mov dword [esp + 4], 0x18
mov dword [esp], esi
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x44]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x40]
mov dword [esp + 0x10], eax
call fcn.0056b9c0
mov dword [ebp + 0x188], 0
mov dword [ebp + 0x18c], 0
mov dword [ebp + 0x180], 0
mov dword [ebp + 0x184], 0
mov edx, dword [esi + 0x3c]
jmp 0x4a2d1c
mov eax, dword [edi + 0xc]
mov dword [esp], eax
call fcn.00562860
mov dword [esp + 4], ebp
mov eax, dword [edi + 0xc]
mov dword [esp], eax
call fcn.00562880
mov eax, dword [edi + 0xc]
mov dword [esp], ebp
mov dword [esp + 4], eax
call fcn.00562a70
test eax, eax
js 0x4a2dc0
mov eax, dword [edi + 0xc]
mov edx, dword [eax]
mov dword [ebp], edx
mov edx, dword [eax + 4]
mov dword [ebp + 4], edx
mov edx, dword [eax + 8]
mov dword [ebp + 8], edx
mov edx, dword [eax + 0xc]
mov dword [ebp + 0xc], edx
mov edx, dword [eax + 0x10]
mov dword [ebp + 0x10], edx
mov edx, dword [eax + 0x14]
mov dword [ebp + 0x14], edx
mov edx, dword [eax + 0x18]
mov dword [ebp + 0x18], edx
mov eax, dword [eax + 0x1c]
mov dword [ebp + 0x1c], eax
mov ecx, dword [edi + 0xc]
lea edx, [ecx + 0x20]
mov ecx, dword [ecx + 0x20]
mov dword [ebp + 0x20], ecx
mov ecx, dword [edx + 4]
mov dword [ebp + 0x24], ecx
mov ecx, dword [edx + 8]
mov dword [ebp + 0x28], ecx
mov ecx, dword [edx + 0xc]
mov dword [ebp + 0x2c], ecx
mov ecx, dword [edx + 0x10]
mov dword [ebp + 0x30], ecx
mov ecx, dword [edx + 0x14]
mov dword [ebp + 0x34], ecx
mov ecx, dword [edx + 0x18]
mov dword [ebp + 0x38], ecx
mov edx, dword [edx + 0x1c]
mov dword [ebp + 0x3c], edx
mov ecx, dword [edi + 0xc]
cmp dword [ecx + 0x40], ecx
je 0x4a3244
mov ebx, dword [ecx + 0x160]
shl ebx, 2
test ebx, ebx
je 0x4a3284
mov dword [esp], ebx
call fcn.0056e030
test eax, eax
mov dword [ebp + 0x40], eax
je 0x4a3296
mov edx, dword [edi + 0xc]
mov edx, dword [edx + 0x40]
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], edx
call sub.msvcrt.dll_memcpy
mov ecx, dword [edi + 0xc]
mov eax, dword [ecx + 0x50]
mov edx, dword [ecx + 0xf4]
mov dword [ebp + 0x50], eax
mov eax, dword [ecx + 0x44]
mov dword [ebp + 0x44], eax
mov eax, dword [ecx + 0x48]
mov dword [ebp + 0x48], eax
mov eax, dword [ecx + 0xf0]
mov dword [ebp + 0xf4], edx
mov dword [ebp + 0xf0], eax
mov eax, dword [ecx + 0x4c]
mov dword [ebp + 0x4c], eax
mov eax, dword [ecx + 0x160]
mov dword [ebp + 0x160], eax
mov eax, dword [edi + 0x64]
jmp 0x4a2e45
cmp edx, dword [esi + 0x158]
jne 0x4a2d79
mov edx, dword [ebp + 0x160]
cmp dword [ebx + 0x88], edx
jne 0x4a2d79
mov ecx, dword [ebx + 0x90]
mov edx, dword [ebx + 0x94]
xor ecx, dword [ebp + 0xf0]
xor edx, dword [ebp + 0xf4]
or ecx, edx
movzx edx, byte [esp + 0x34]
setne cl
or edx, ecx
movzx ecx, dl
test ecx, ecx
je 0x4a2e30
jmp 0x4a2d79
mov edx, dword [ebp + 0x44]
cmp dword [ebx + 0x7c], edx
jne 0x4a2d79
mov edx, dword [ebp + 0x48]
cmp dword [ebx + 0x80], edx
movzx edx, byte [esp + 0x34]
setne cl
or edx, ecx
movzx ecx, dl
test ecx, ecx
je 0x4a2e30
jmp 0x4a2d79
mov eax, 0xffffffea
jmp 0x4a2dc0
mov ebx, dword [esp + 0x70]
cmp eax, dword [ebx + 0x1c]
je 0x4a2cc3
mov dword [esp + 8], str.Got_unexpected_packet_size_after_a_partial_decode_n
mov dword [esp + 4], 0x10
mov dword [esp], esi
call fcn.0056b9c0
mov dword [edi + 0x5c], 0
mov eax, 0xffffffea
jmp 0x4a2dc7
mov eax, dword [ebp + 0x44]
mov dword [ebx + 0x7c], eax
mov eax, dword [ebp + 0x48]
mov dword [ebx + 0x80], eax
jmp 0x4a2e30
mov dword [ebp + 0x40], ebp
jmp 0x4a3112
mov dword [esp + 8], str.Got_unexpected_packet_after_EOF_n
mov dword [esp + 4], 0x18
mov dword [esp], esi
call fcn.0056b9c0
mov dword [esp], esi
call fcn.004a2b30
jmp 0x4a2c7f
mov eax, dword [edi + 0x5c]
mov ecx, edx
cmp eax, ecx
cmova eax, ecx
jmp 0x4a2ee8
mov dword [esp], ebp
call fcn.00562860
mov eax, 0xdeb8aabe
jmp 0x4a2dc0
mov dword [esp], ebp
call fcn.00562860
mov eax, 0xfffffff4
jmp 0x4a2dc0
mov dword [edi + 0x5c], 0
mov dword [esp + 0x4c], 0
mov eax, 0xdeb8aabe
jmp 0x4a2dc7
mov dword [esp + 0x14], 0x336
mov dword [esp + 0x10], str.libavcodec_decode.c
mov dword [esp + 0xc], str.avci__compat_decode_consumed__0
mov dword [esp + 8], 0x6958ce
mov dword [esp + 4], 0
mov dword [esp], 0
call fcn.0056b9c0
call sub.msvcrt.dll_abort
lea esi, [esi]