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

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x10c
mov ebp, dword [esp + 0x120]
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x3c]
test eax, eax
je 0x5038d3
lea edi, [esp + 0xb8]
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0
mov dword [esp], ebp
mov dword [esp + 4], edi
call eax
mov ebx, eax
test ebx, ebx
js 0x503580
je 0x503910
mov eax, dword [esp + 0xc0]
mov edx, dword [esp + 0xc4]
mov esi, eax
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0xc8]
mov edi, edx
mov dword [esp + 0x34], edx
mov edx, dword [esp + 0xcc]
mov dword [esp + 0x48], eax
mov eax, dword [ebp + 0x52c]
mov dword [esp + 0x4c], edx
mov edx, dword [ebp + 0x528]
mov ecx, eax
or ecx, edx
je 0x503328
mov ecx, dword [ebp + 0x1c]
mov ebx, dword [esp + 0xd8]
mov ecx, dword [ecx + ebx*4]
mov ebx, dword [ecx + 0x2c]
mov ecx, dword [ecx + 0x28]
mov dword [esp + 8], 1
mov dword [esp + 0xc], 0xf4240
mov dword [esp], edx
mov dword [esp + 4], eax
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], ecx
call fcn.00892710
mov edi, dword [esp + 0x4c]
mov esi, dword [esp + 0x48]
mov ebx, edi
add ebx, 0x80000000
or ebx, esi
je 0x5032f6
mov ecx, esi
mov ebx, edi
add ecx, eax
adc ebx, edx
mov dword [esp + 0xc8], ecx
mov dword [esp + 0xcc], ebx
mov edi, dword [esp + 0x34]
mov esi, dword [esp + 0x30]
mov ebx, edi
add ebx, 0x80000000
or ebx, esi
je 0x503328
mov ebx, eax
add ebx, dword [esp + 0x30]
mov esi, edx
adc esi, dword [esp + 0x34]
mov dword [esp + 0xc0], ebx
mov edi, esi
mov esi, ebx
mov dword [esp + 0xc4], edi
mov eax, dword [ebp + 0x4bc]
test eax, eax
mov dword [esp + 0x64], eax
jle 0x503480
mov edx, dword [esp + 0xd8]
mov eax, dword [ebp + 0x1c]
mov eax, dword [eax + edx*4]
mov dword [esp + 0x6c], edx
mov dword [esp + 0x68], eax
mov edx, dword [eax + 0x1ec]
mov eax, dword [eax + 0x1e8]
mov dword [esp + 0x3c], edx
mov edx, dword [esp + 0xcc]
mov dword [esp + 0x38], eax
mov eax, dword [ebp + 0x504]
mov dword [esp + 0x54], eax
mov eax, dword [eax + 0x48]
test eax, eax
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0xc8]
je 0x503890
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], edx
mov dword [esp + 0x58], esi
mov dword [esp + 0x5c], edi
mov eax, dword [esp + 0x54]
mov edx, dword [eax + 0x34]
mov eax, dword [eax + 0x30]
lea ebx, [edx - 0x80000000]
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], edx
or eax, ebx
jne 0x5036ea
mov edx, dword [esp + 0x5c]
mov eax, dword [esp + 0x58]
mov ecx, edx
add ecx, 0x80000000
or ecx, eax
je 0x5036ea
mov ebx, edx
shr ebx, 0x1f
test bl, bl
jne 0x5036c1
cmp dword [esp + 0x64], 2
je 0x5036c1
lea esi, [esi]
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x28]
lea ebx, [edx - 0x80000000]
mov ecx, eax
or ebx, ecx
je 0x50342a
mov eax, dword [esp + 0x38]
add dword [esp + 0x28], eax
mov edx, dword [esp + 0x3c]
adc dword [esp + 0x2c], edx
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x2c]
mov dword [esp + 0xc8], eax
mov dword [esp + 0xcc], edx
lea ebx, [edi - 0x80000000]
or ebx, esi
je 0x5037e0
mov eax, dword [esp + 0x38]
mov edx, dword [esp + 0x3c]
add eax, esi
mov esi, dword [esp + 0x60]
adc edx, edi
mov dword [esp + 0xc0], eax
mov dword [esp + 0xc4], edx
test esi, esi
je 0x5037ec
add eax, 0xffffffff
adc edx, 0x7fffffff
cmp edx, 0x7fffffff
ja 0x503480
jb 0x503640
cmp eax, 0xfffffffe
jbe 0x503640
nop
lea eax, [esp + 0xb8]
mov dword [esp], eax
call fcn.005d1e10
mov esi, eax
mov eax, dword [ebp + 0x504]
mov ecx, dword [eax + 0x4c]
test ecx, ecx
jne 0x5034b1
mov ebx, dword [eax + 0x50]
test ebx, ebx
je 0x5038f0
test ebx, ebx
js 0x503772
test byte [esp + 0xdd], 0x20
je 0x5038a5
cmp dword [esp + 0xd4], 0xaaaaac2c
mov eax, dword [esp + 0xd0]
mov dword [esp + 0x74], eax
jne 0x5039ab
mov eax, dword [ebp + 8]
mov edx, dword [esp + 0xd8]
lea edi, [esp + 0x74]
mov dword [esp + 0xc], 0
mov dword [esp], ebp
mov dword [esp + 8], edi
mov dword [esp + 4], edx
call dword [eax + 0x4c]
mov dword [esp], edi
mov ebx, eax
call fcn.0088bc50
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x5038c6
test ebx, ebx
js 0x503772
mov edx, dword [ebp + 0x4f0]
test edx, edx
je 0x503533
test byte [ebp + 0x441], 2
jne 0x503900
mov eax, dword [eax + 0x4c]
test eax, eax
js 0x503770
test esi, esi
jne 0x503776
mov eax, dword [ebp + 0x1c]
mov edx, dword [esp + 0xd8]
mov eax, dword [eax + edx*4]
add dword [eax + 0x40], 1
adc dword [eax + 0x44], 0
lea eax, [esp + 0xb8]
mov dword [esp], eax
call fcn.005d23b0
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x503211
mov eax, dword [eax + 0x4c]
test eax, eax
je 0x503211
mov eax, dword [ebp + 0x504]
mov esi, dword [eax + 0x4c]
test esi, esi
jne 0x503920
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x64]
test eax, eax
je 0x5035a0
mov dword [esp], ebp
call eax
mov eax, dword [ebp + 0x504]
mov dword [eax + 0x64], 0
mov dword [eax + 0x60], 0
mov dword [eax + 0x4c], 0
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x5035ca
mov dword [esp], eax
call fcn.00457930
test ebx, ebx
jne 0x5035d8
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x5035d8
mov ebx, dword [eax + 0x4c]
mov ecx, dword [ebp + 0x18]
xor esi, esi
test ecx, ecx
je 0x50360d
mov eax, dword [ebp + 0x1c]
mov eax, dword [eax + esi*4]
add eax, 0xc
mov dword [esp], eax
call fcn.00894200
mov eax, dword [ebp + 0x1c]
mov eax, dword [eax + esi*4]
add esi, 1
add eax, 0x190
mov dword [esp], eax
call fcn.00894200
cmp dword [ebp + 0x18], esi
ja 0x5035e1
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0x24]
test edx, edx
je 0x503622
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call fcn.008995c0
lea eax, [ebp + 0xc]
mov dword [esp], eax
call fcn.00894200
add esp, 0x10c
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
xor eax, eax
mov dword [esp + eax + 0x78], 0
add eax, 4
cmp eax, 0x20
jb 0x503642
mov edi, dword [esp + 0x2c]
mov esi, dword [esp + 0x28]
lea edx, [edi - 0x80000000]
or edx, esi
je 0x50398d
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x2c]
mov dword [esp + 8], 0xc4fff9
mov dword [esp + 4], 0x20
mov dword [esp + 0xc], eax
lea eax, [esp + 0x78]
mov dword [esp + 0x10], edx
mov dword [esp], eax
call fcn.00bd2660
mov eax, dword [esp + 0x6c]
mov dword [esp + 8], str.failed_to_avoid_negative_pts__s_in_stream__d._nTry__avoid_negative_ts_1_as_a_possible_workaround._n
mov dword [esp + 4], 0x18
mov dword [esp], ebp
mov dword [esp + 0x10], eax
lea eax, [esp + 0x78]
mov dword [esp + 0xc], eax
call fcn.00891920
jmp 0x503480
mov ecx, dword [esp + 0x54]
neg eax
mov dword [esp + 0x40], eax
adc edx, 0
neg edx
mov dword [ecx + 0x30], eax
mov eax, dword [esp + 0x68]
mov dword [esp + 0x44], edx
mov dword [ecx + 0x34], edx
mov edx, dword [eax + 0x2c]
mov eax, dword [eax + 0x28]
mov dword [ecx + 0x3c], edx
mov dword [ecx + 0x38], eax
mov edx, dword [esp + 0x44]
mov eax, dword [esp + 0x40]
add edx, 0x80000000
or edx, eax
je 0x5033f0
mov eax, dword [esp + 0x38]
mov edx, dword [esp + 0x3c]
mov ecx, eax
or ecx, edx
jne 0x5033f0
mov ebx, dword [esp + 0x68]
mov dword [esp + 0x18], 3
mov eax, dword [ebx + 0x28]
mov edx, dword [ebx + 0x2c]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x54]
mov dword [esp + 0x14], edx
mov edx, dword [eax + 0x3c]
mov eax, dword [eax + 0x38]
mov dword [esp + 0xc], edx
mov dword [esp + 8], eax
mov edx, dword [esp + 0x44]
mov eax, dword [esp + 0x40]
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.008926e0
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], edx
mov dword [ebx + 0x1e8], eax
mov dword [ebx + 0x1ec], edx
jmp 0x5033f0
mov ebx, eax
test esi, esi
je 0x50378d
lea eax, [esp + 0xb8]
mov dword [esp], eax
call fcn.005d1bb0
test ebx, ebx
jns 0x503546
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0x34]
mov dword [esp + 0xc0], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 0xc4], edx
mov edx, dword [esp + 0x4c]
mov dword [esp + 0xc8], eax
lea eax, [esp + 0xb8]
mov dword [esp + 0xcc], edx
mov dword [esp], eax
call fcn.005d23b0
mov eax, dword [ebp + 0x504]
mov esi, dword [eax + 0x4c]
test esi, esi
je 0x503591
jmp 0x503920
mov eax, dword [esp + 0x60]
test eax, eax
jne 0x503480
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x2c]
add eax, 0xffffffff
adc edx, 0x7fffffff
cmp edx, 0x7fffffff
ja 0x503480
jb 0x503814
cmp eax, 0xfffffffe
ja 0x503480
xor eax, eax
mov dword [esp + eax + 0x98], 0
add eax, 4
cmp eax, 0x20
jb 0x503816
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x2c]
mov dword [esp + 8], 0xc4fff9
mov dword [esp + 4], 0x20
mov dword [esp + 0xc], eax
lea eax, [esp + 0x98]
mov dword [esp + 0x10], edx
mov dword [esp], eax
call fcn.00bd2660
mov eax, dword [esp + 0x6c]
mov dword [esp + 8], str.Packets_poorly_interleaved__failed_to_avoid_negative_timestamp__s_in_stream__d._nTry__max_interleave_delta_0_as_a_possible_workaround._n
mov dword [esp + 4], 0x18
mov dword [esp], ebp
mov dword [esp + 0x10], eax
lea eax, [esp + 0x98]
mov dword [esp + 0xc], eax
call fcn.00891920
jmp 0x503480
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], edx
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], edx
jmp 0x50339a
mov eax, dword [ebp + 8]
lea edi, [esp + 0xb8]
mov dword [esp], ebp
mov dword [esp + 4], edi
call dword [eax + 0x34]
mov ebx, eax
mov eax, dword [ebp + 0x10]
test eax, eax
jne 0x503514
test esi, esi
je 0x503785
jmp 0x503776
lea edx, [esp + 0xb8]
mov ecx, 1
mov eax, ebp
call fcn.004fe200
mov ebx, eax
jmp 0x503241
mov eax, ebp
call fcn.004fd9a0
mov ebx, eax
jmp 0x5034a9
mov dword [esp], eax
call fcn.00457930
mov eax, dword [ebp + 0x10]
jmp 0x503533
mov eax, dword [ebp + 0x504]
mov edi, dword [eax + 0x4c]
test edi, edi
je 0x503974
lea esi, [esi]
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0x38]
test edx, edx
je 0x503594
test byte [eax + 0x1c], 1
jne 0x503961
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x503961
mov dword [esp], eax
mov dword [esp + 0xc], 4
mov dword [esp + 4], 0
mov dword [esp + 8], 0x80000000
call fcn.0045a200
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0x38]
test ebx, ebx
mov dword [esp], ebp
js 0x5039a4
call edx
mov ebx, eax
mov eax, dword [ebp + 8]
jmp 0x503594
mov ebx, dword [eax + 0x50]
test ebx, ebx
jne 0x503591
mov eax, ebp
call fcn.004fd9a0
mov ebx, eax
jmp 0x503580
mov ebx, 0x53
mov dword [esp + 0x78], 0x54504f4e
mov word [esp + 0x7c], bx
jmp 0x503694
call edx
jmp 0x503591
mov dword [esp + 0x14], 0x300
mov dword [esp + 0x10], str.libavformat_mux.c
mov dword [esp + 0xc], str.pkt__size_____2147483647_1____3__2___int_sizeof_AVFrame__
mov dword [esp + 8], 0xc5013e
mov dword [esp + 4], 0
mov dword [esp], 0
call fcn.00891920
call sub.msvcrt.dll_abort
lea esi, [esi]
lea edi, [edi]
sub esp, 0x1c
mov edx, dword [esp + 0x20]
mov eax, dword [edx + 8]
test eax, eax
je 0x503a30
mov eax, dword [eax + 0x44]
test eax, eax
je 0x503a30
mov ecx, dword [esp + 0x2c]
mov dword [esp], edx
mov dword [esp + 0xc], ecx
mov ecx, dword [esp + 0x28]
mov dword [esp + 8], ecx
mov ecx, dword [esp + 0x24]
mov dword [esp + 4], ecx
call eax
xor eax, eax
add esp, 0x1c
ret
mov eax, 0xffffffd8
jmp 0x503a24