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

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x9c
mov ebx, eax
test byte [eax + 0x10], 1
je 0x4d797b
mov dword [esp + 8], str.Cannot_use_data_referencing_with_MPEG_1_2_files
mov dword [esp + 4], 0xfffffffc
mov dword [esp], eax
call fcn.004d2fb7
jmp 0x4d7c48
movsd xmm2, qword [0x5f0a70]
ucomisd xmm2, qword [eax + 0x20]
jp 0x4d7998
jne 0x4d7998
xor eax, eax
mov dword [ebx + 0x20], eax
mov dword [ebx + 0x24], 0x40390000
mov eax, dword [ebx + 8]
call fcn.0050596d
mov dword [ebp - 0x2c], eax
test eax, eax
jne 0x4d79c3
mov eax, dword [ebx + 8]
mov dword [esp + 0xc], eax
mov dword [esp + 8], str.Failed_to_open_MPEG_file__s
mov dword [esp + 4], 0xfffffff6
jmp 0x4d7c40
mov eax, dword [ebx + 0x10]
and eax, 0x100000
mov dword [ebp - 0x4c], eax
je 0x4d7bcb
xor eax, eax
mov dword [ebx + 0x68], eax
mov eax, dword [ebp - 0x2c]
mov eax, dword [eax + 0xd4]
mov dword [ebp - 0x34], eax
xor eax, eax
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp - 0x34]
cmp dword [ebp - 0x30], ecx
je 0x4d7b00
mov esi, dword [ebx + 0x68]
mov eax, dword [ebp - 0x30]
lea edi, [eax + 1]
imul eax, esi, 0x50
add eax, ebx
mov dword [eax + 0x70], edi
mov dword [eax + 0x74], 0x76696465
mov dword [eax + 0x7c], 0x400000
mov edx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x2c]
call fcn.0050589f
xorps xmm0, xmm0
test eax, eax
jne 0x4d7a36
mov eax, dword [ebp - 0x2c]
mov eax, dword [eax + edi*4 - 4]
movsd xmm0, qword [eax + 0xc0]
imul eax, esi, 0x50
movsd qword [ebx + eax + 0x90], xmm0
mov edx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x2c]
call fcn.0050589f
mov edx, eax
xor eax, eax
test edx, edx
jne 0x4d7a62
mov eax, dword [ebp - 0x2c]
mov eax, dword [eax + edi*4 - 4]
mov eax, dword [eax + 0xb8]
imul edx, esi, 0x50
mov dword [ebx + edx + 0x80], eax
mov edx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x2c]
call fcn.0050589f
mov edx, eax
xor eax, eax
test edx, edx
jne 0x4d7a8c
mov eax, dword [ebp - 0x2c]
mov eax, dword [eax + edi*4 - 4]
mov eax, dword [eax + 0xb4]
imul edx, esi, 0x50
mov dword [ebx + edx + 0x84], eax
mov edx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x2c]
call fcn.0050589f
mov edx, eax
xor eax, eax
test edx, edx
jne 0x4d7ab6
mov eax, dword [ebp - 0x2c]
mov eax, dword [eax + edi*4 - 4]
mov eax, dword [eax + 0xbc]
imul ecx, esi, 0x50
add ecx, ebx
mov dword [ecx + 0x88], eax
mov dword [ecx + 0x78], 0x4d504731
mov dword [ebp - 0x38], ecx
mov edx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x2c]
call fcn.0050589f
test eax, eax
jne 0x4d7af4
mov eax, dword [ebp - 0x2c]
mov eax, dword [eax + edi*4 - 4]
cmp dword [eax + 0xc8], 0
je 0x4d7af4
mov ecx, dword [ebp - 0x38]
mov dword [ecx + 0x78], 0x4d504732
inc esi
mov dword [ebx + 0x68], esi
mov dword [ebp - 0x30], edi
jmp 0x4d79ea
mov eax, dword [ebp - 0x2c]
mov eax, dword [eax + 0xd0]
inc eax
mov dword [ebp - 0x38], eax
mov edi, 1
lea eax, [edi - 1]
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x38], edi
je 0x4d7c04
mov esi, dword [ebx + 0x68]
imul eax, esi, 0x50
add eax, ebx
mov ecx, dword [ebp - 0x34]
lea edx, [ecx + edi]
mov dword [eax + 0x70], edx
mov dword [eax + 0x74], 0x736f756e
mov edx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x2c]
call fcn.005058cc
mov edx, 0x41433320
cmp eax, 1
je 0x4d7b66
mov edx, 0x4c50434d
cmp eax, 2
je 0x4d7b66
mov edx, 0x4d504741
test eax, eax
je 0x4d7b66
mov edx, 0x554e4b20
imul eax, esi, 0x50
mov dword [ebx + eax + 0x78], edx
mov edx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x2c]
call fcn.005058b5
mov edx, eax
xor eax, eax
test edx, edx
jne 0x4d7b8d
mov eax, dword [ebp - 0x2c]
mov eax, dword [eax + edi*4 + 0x3c]
mov eax, dword [eax + 0xa0]
imul edx, esi, 0x50
mov dword [ebx + edx + 0x98], eax
mov edx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x2c]
call fcn.005058b5
mov edx, eax
xor eax, eax
test edx, edx
jne 0x4d7bb7
mov eax, dword [ebp - 0x2c]
mov eax, dword [eax + edi*4 + 0x3c]
mov eax, dword [eax + 0xa4]
imul edx, esi, 0x50
mov dword [ebx + edx + 0x9c], eax
inc esi
mov dword [ebx + 0x68], esi
inc edi
jmp 0x4d7b12
mov eax, dword [ebp - 0x2c]
mov esi, dword [eax + 0xd4]
mov eax, dword [ebx + 4]
mov dword [ebp - 0x34], eax
cmp esi, 1
jbe 0x4d7bfd
test eax, eax
jne 0x4d8131
mov eax, dword [ebp - 0x2c]
call fcn.005058fd
mov dword [esp + 0xc], esi
mov dword [esp + 8], str._d_video_tracks_in_MPEG_file___please_indicate_track_to_import
jmp 0x4d7c38
mov eax, dword [ebp - 0x34]
cmp esi, eax
jae 0x4d7c16
mov eax, dword [ebp - 0x2c]
call fcn.005058fd
xor edi, edi
mov dword [ebp - 0x38], edi
jmp 0x4d8141
cmp dword [ebp - 0x34], 0
je 0x4d7c1f
dec dword [ebp - 0x34]
cmp dword [ebp - 0x34], esi
jb 0x4d7c50
mov eax, dword [ebp - 0x2c]
call fcn.005058fd
mov dword [esp + 0xc], esi
mov dword [esp + 8], str.Desired_video_track_not_found_in_MPEG_file___d_visual_streams_
mov dword [esp + 4], 0xffffffff
mov dword [esp], ebx
call fcn.004d2fb7
mov dword [ebp - 0x38], eax
jmp 0x4d8141
mov edx, dword [ebp - 0x34]
mov eax, dword [ebp - 0x2c]
call fcn.0050589f
test eax, eax
xorps xmm1, xmm1
jne 0x4d7ca0
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x34]
mov eax, dword [eax + ecx*4]
mov edi, dword [eax + 0xb8]
mov dword [ebp - 0x58], edi
mov edi, dword [eax + 0xb4]
mov ecx, dword [eax + 0xbc]
mov dword [ebp - 0x44], ecx
mov esi, 0x6a
cmp dword [eax + 0xc8], 0
je 0x4d7c96
mov esi, 0x61
movsd xmm0, qword [eax + 0xc0]
jmp 0x4d7cb4
xor ecx, ecx
mov dword [ebp - 0x58], ecx
xor edi, edi
xor esi, esi
mov dword [ebp - 0x44], esi
mov esi, 0x6a
movaps xmm0, xmm1
movsd xmm3, qword [ebx + 0x20]
movsd qword [ebp - 0x40], xmm3
ucomisd xmm3, xmm1
jp 0x4d7ccb
jne 0x4d7ccb
movsd qword [ebp - 0x40], xmm0
lea edx, [ebp - 0x28]
lea eax, [ebp - 0x24]
movsd xmm0, qword [ebp - 0x40]
call fcn.004d328f
mov eax, dword [ebx + 0xc]
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x48], eax
mov eax, dword [ebx + 0x28]
xor edx, edx
mov dword [ebp - 0x50], edx
test eax, eax
jne 0x4d7d02
call fcn.004b2799
mov dword [ebx + 0x28], eax
mov dword [ebp - 0x50], 1
movzx edx, word [eax + 2]
mov eax, dword [ebp - 0x48]
mov dword [esp], eax
mov ecx, 0x76696465
mov eax, dword [ebx]
call fcn.004a0bad
mov dword [ebp - 0x30], eax
mov eax, dword [ebx]
cmp dword [ebp - 0x30], 0
jne 0x4d7d2d
call fcn.0049b37e
jmp 0x4d810d
mov ecx, 1
mov edx, dword [ebp - 0x30]
call fcn.004a05bd
mov eax, dword [ebx + 0x28]
cmp word [eax + 2], 0
jne 0x4d7d55
mov edx, dword [ebp - 0x30]
mov eax, dword [ebx]
call fcn.0049c0c2
mov edx, dword [ebx + 0x28]
mov word [edx + 2], ax
mov edx, dword [ebx + 0x28]
movzx eax, word [edx + 2]
mov dword [ebx + 0x34], eax
cmp dword [edx + 0x10], 0
jne 0x4d7d78
mov dword [ebp - 0x38], edx
mov eax, 4
call fcn.004b21c0
mov edx, dword [ebp - 0x38]
mov dword [edx + 0x10], eax
mov edx, dword [ebx + 0x28]
cmp dword [edx + 0x14], 0
jne 0x4d7d94
mov dword [ebp - 0x38], edx
mov eax, 6
call fcn.004b21c0
mov edx, dword [ebp - 0x38]
mov dword [edx + 0x14], eax
mov eax, dword [ebx + 0x28]
mov eax, dword [eax + 0x14]
mov ecx, dword [ebp - 0x48]
mov dword [eax + 0xc], ecx
mov eax, dword [ebx + 0x28]
mov eax, dword [eax + 0x10]
mov eax, dword [eax + 0x18]
test eax, eax
je 0x4d7db2
call fcn.004b23d9
mov eax, dword [ebx + 0x28]
mov eax, dword [eax + 0x10]
xor edx, edx
mov dword [eax + 0x18], edx
mov eax, dword [ebx + 0x28]
mov eax, dword [eax + 0x10]
mov byte [eax + 8], 4
mov eax, dword [ebx + 0x28]
mov eax, dword [eax + 0x10]
mov dword [eax + 4], esi
mov ecx, dword [ebx + 0x28]
lea eax, [ebp - 0x20]
mov dword [esp + 4], eax
xor eax, eax
mov dword [esp], eax
mov edx, dword [ebp - 0x30]
mov eax, dword [ebx]
call fcn.00578daa
mov dword [ebp - 0x38], eax
test eax, eax
jne 0x4d8110
mov eax, 0x5efb6c
cmp esi, 0x6a
jne 0x4d7e03
mov eax, 0x5efb65
movsd xmm5, qword [ebp - 0x40]
movsd qword [esp + 0x18], xmm5
mov dword [esp + 0x14], edi
mov ecx, dword [ebp - 0x58]
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], eax
mov dword [esp + 8], str._s_Video_import___Resolution__d_x__d____02.4f_FPS
xor eax, eax
mov dword [esp + 4], eax
mov dword [esp], ebx
call fcn.004d2fb7
mov dword [esp + 4], edi
mov eax, dword [ebp - 0x58]
mov dword [esp], eax
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x30]
mov eax, dword [ebx]
call fcn.00597724
mov edx, dword [ebp - 0x30]
mov eax, dword [ebx]
call fcn.0049c434
test eax, eax
je 0x4d7ec7
mov eax, dword [ebp - 0x60]
mul dword [ebp - 0x48]
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x54], edx
mov dword [esp + 8], 0x3e8
xor ecx, ecx
mov dword [esp + 0xc], ecx
mov dword [esp], eax
mov dword [esp + 4], edx
call fcn.005a82a0
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x74], edx
mov ecx, 1
mov edx, dword [ebp - 0x30]
mov eax, dword [ebx]
call fcn.00597259
mov eax, dword [ebp - 0x2c]
mov eax, dword [eax + 0xc4]
call fcn.00505457
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x5c], edx
mov dword [ebp - 0x48], 1
mov dword [ebp - 0x40], 1
shrd eax, edx, 0xa
shr edx, 0xa
mov dword [ebp - 0x80], eax
mov dword [ebp - 0x7c], edx
jmp 0x4d7f8e
mov dword [esp + 8], str.No_timescale_for_imported_track___ignoring
mov dword [esp + 4], 0xffffffff
mov dword [esp], ebx
call fcn.004d2fb7
test eax, eax
je 0x4d7e58
jmp 0x4d810d
mov edx, dword [ebp - 0x34]
mov eax, dword [ebp - 0x2c]
call fcn.0050589f
mov edx, eax
xor eax, eax
test edx, edx
jne 0x4d7f14
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x34]
mov eax, dword [eax + ecx*4]
mov eax, dword [eax + 8]
mov dword [esp], eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__ftelli64]
mov dword [ebp - 0x4c], eax
shr eax, 0xa
mov dword [ebp - 0x70], eax
xor edx, edx
mov dword [ebp - 0x6c], edx
mov eax, dword [ebp - 0x80]
mov edx, dword [ebp - 0x7c]
mov dword [esp], eax
mov dword [esp + 4], edx
mov edx, dword [ebp - 0x70]
mov ecx, dword [ebp - 0x6c]
mov eax, str.Importing_MPEG_PS_Video
call fcn.004266f7
cmp byte [ebp - 0x61], 3
je 0x4d7f63
mov eax, dword [ebp - 0x40]
mov ecx, dword [ebp - 0x48]
sub eax, ecx
imul eax, edi
mov dword [esp], eax
mov edx, dword [ebp - 0x30]
mov eax, dword [ebx]
call fcn.0059735e
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x40]
lea esi, [eax + 1]
mov eax, 0x3e7
mov ecx, dword [ebp - 0x58]
cmp eax, ecx
mov eax, 0
sbb eax, dword [ebp - 0x54]
jb 0x4d8077
cmp dword [ebx + 0x10], 0
js 0x4d80a3
mov dword [ebp - 0x40], esi
mov edx, dword [ebp - 0x34]
mov eax, dword [ebp - 0x2c]
call fcn.0050589f
test eax, eax
jne 0x4d80a0
mov eax, dword [ebp - 0x2c]
mov edi, dword [ebp - 0x34]
mov esi, dword [eax + edi*4]
cmp dword [esi + 8], 0
jne 0x4d7fc3
mov eax, dword [eax + 0xc0]
mov edx, 0x5efb73
call fcn.00427968
mov dword [esi + 8], eax
cmp dword [esi + 0x58], 0
je 0x4d8091
mov eax, dword [esi + 0x5c]
mov edx, dword [esi + 0x68]
add edx, eax
mov dword [ebp - 0x4c], edx
mov edi, dword [esi + 0x6c]
mov ecx, dword [esi + 0x70]
mov al, byte [eax + ecx + 5]
shr al, 3
and eax, 7
mov byte [ebp - 0x61], al
mov eax, esi
call fcn.00505860
lea eax, [edi - 4]
mov edx, dword [ebp - 0x4c]
cmp byte [edx + edi - 4], 0
jne 0x4d800f
cmp byte [edx + edi - 3], 0
jne 0x4d800f
cmp byte [edx + edi - 2], 1
jne 0x4d800f
mov edi, eax
mov dword [ebp - 0x4c], edx
call fcn.0049b3af
mov esi, eax
mov dword [ebp - 0x1c], eax
mov edx, dword [ebp - 0x4c]
mov dword [eax + 4], edx
mov dword [eax], edi
mov edi, dword [ebp - 0x28]
mov eax, dword [ebp - 0x40]
dec eax
mul edi
mov dword [esi + 8], eax
mov dword [esi + 0xc], edx
xor eax, eax
cmp byte [ebp - 0x61], 1
sete al
mov dword [esi + 0x14], eax
xor ecx, ecx
mov dword [esi + 0x10], ecx
mov dword [esp], esi
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x30]
mov eax, dword [ebx]
call fcn.004a7935
mov dword [ebp - 0x4c], eax
xor eax, eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x1c]
call fcn.0049b3db
mov edx, dword [ebp - 0x4c]
test edx, edx
je 0x4d7eec
mov dword [ebp - 0x38], edx
jmp 0x4d8110
mov eax, dword [ebp - 0x40]
imul edi, eax
xor edx, edx
mov ecx, dword [ebp - 0x68]
cmp edi, ecx
mov eax, edx
sbb eax, dword [ebp - 0x74]
jb 0x4d7f81
jmp 0x4d80a3
mov eax, esi
call fcn.0050549b
test eax, eax
jne 0x4d7fcd
mov esi, dword [ebp - 0x40]
xor ecx, ecx
mov edx, dword [ebp - 0x30]
mov eax, dword [ebx]
call fcn.00597259
test byte [ebx + 0x12], 8
jne 0x4d80bf
mov edx, dword [ebp - 0x30]
mov eax, dword [ebx]
call fcn.004d2a81
cmp dword [ebp - 0x5c], 0
jne 0x4d80cd
mov edi, dword [ebp - 0x60]
cmp dword [ebp - 0x4c], edi
je 0x4d80e4
xor edi, edi
mov dword [esp], esi
mov dword [esp + 4], edi
mov edx, esi
mov ecx, edi
mov eax, str.Importing_MPEG_PS_Video
call fcn.004266f7
mov edx, dword [ebp - 0x30]
mov eax, dword [ebx]
call fcn.004d3031
cmp dword [ebp - 0x44], 0
je 0x4d8110
mov ecx, dword [ebp - 0x44]
shr ecx, 0x10
movzx eax, word [ebp - 0x44]
mov dword [esp], eax
mov edx, dword [ebp - 0x30]
mov eax, dword [ebx]
call fcn.004b806d
jmp 0x4d8110
mov dword [ebp - 0x38], eax
mov eax, dword [ebx + 0x28]
test eax, eax
je 0x4d8127
cmp dword [ebp - 0x50], 0
je 0x4d8127
call fcn.004b23d9
xor eax, eax
mov dword [ebx + 0x28], eax
mov eax, dword [ebp - 0x2c]
call fcn.005058fd
jmp 0x4d8141
mov eax, dword [ebp - 0x34]
cmp esi, eax
jae 0x4d7c1c
jmp 0x4d7c04
mov eax, dword [ebp - 0x38]
add esp, 0x9c
pop ebx
pop esi
pop edi
pop ebp
ret