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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x100
mov esi, edx
mov edi, ecx
mov eax, dword [0x1018fc64]
xor eax, ebp
mov dword [esp + 0xf8], eax
mov dword [esp + 0x2c], 0
mov eax, dword [ecx + 0x50c]
mov dword [esp + 0x14], 0xffffffff
cmp dword [eax + 0x20], 0
mov dword [esp + 8], ecx
mov dword [esp + 0x10], edx
je 0x1002fc52
mov eax, dword [edi + 0x50c]
cmp dword [eax + 0x20], 0
je 0x1002f47a
lea ecx, [eax + 0x20]
add eax, 0x24
push esi
push eax
push ecx
call fcn.1000ad30
add esp, 0xc
mov dword [esp + 0x14], eax
cmp dword [esp + 0x14], 0
js 0x1002fe0d
mov eax, dword [edi + 0x1c]
mov ecx, dword [esi + 0x20]
mov ebx, dword [eax + ecx*4]
mov edx, dword [ebx + 0x1d0]
mov ecx, dword [ebx + 0x1d4]
mov dword [esp + 4], 0
mov eax, edx
or eax, ecx
mov dword [esp + 0xc], ebx
je 0x1002fcdc
mov dword [esp + 0x20], edx
mov dword [esp + 0x18], ecx
mov edx, dword [esi + 8]
mov ecx, dword [esi + 0xc]
mov eax, ecx
mov esi, 0x80000000
xor eax, esi
or eax, edx
je 0x1002fcdc
xor eax, eax
cmp ecx, 0x7ffdffff
setg al
xor edi, edi
cmp ecx, 0x7ffe0000
mov esi, 0x80010000
mov dword [esp + 4], 0
cmovl esi, edi
add eax, edx
adc esi, ecx
mov edx, dword [ebx + 0x14]
mov dword [esp + 0x1c], edx
sar edx, 0x1f
mov dword [esp + 0x28], edx
mov ecx, dword [ebx + 0xb0]
mov edi, dword [ecx + 0x6c]
imul edi, dword [ebx + 0x10]
mov ebx, edi
sar ebx, 0x1f
push edx
push dword [esp + 0x20]
push ebx
push edi
push esi
push eax
call fcn.10070510
add esp, 0x18
mov esi, eax
mov dword [esp + 0x24], edx
push dword [esp + 0x28]
push dword [esp + 0x20]
push ebx
push edi
mov eax, dword [esp + 0x20]
push dword [eax + 0x34]
push dword [eax + 0x30]
call fcn.10070510
add esp, 0x18
mov edx, eax
sar edx, 0x1f
mov dword [esp + 0x1c], esi
mov ecx, esi
add ecx, eax
mov esi, dword [esp + 0x24]
adc esi, edx
test eax, eax
jle 0x1002fcd4
cmp ecx, dword [esp + 0x20]
mov edi, esi
sbb edi, dword [esp + 0x18]
jl 0x1002fcd4
mov ebx, dword [esp + 0xc]
mov edi, dword [esp + 0x1c]
cmp edi, dword [ebx + 0x1d8]
mov edi, dword [esp + 0x24]
sbb edi, dword [ebx + 0x1dc]
mov edi, dword [esp + 8]
jge 0x1002fcdc
sub ecx, dword [esp + 0x20]
sbb esi, dword [esp + 0x18]
cmp eax, ecx
sbb edx, esi
cmovl ecx, eax
mov dword [esp + 4], ecx
jmp 0x1002fcdc
mov eax, dword [edi + 0x1c]
mov ecx, dword [esi + 0x20]
mov ebx, dword [eax + ecx*4]
mov eax, dword [ebx + 0x2b8]
cmp dword [eax + 0x24], 0
je 0x1002f690
push dword [eax + 0xc]
call fcn.10008150
add esp, 4
test eax, eax
je 0x1002f606
push str.Demuxer_context_update_while_decoder_is_open__closing_and_trying_to_re_open_n
push 0x30
push edi
call fcn.1006fc50
add esp, 0xc
mov eax, dword [ebx + 0x2b8]
push dword [eax + 0xc]
call fcn.100083e6
add esp, 4
mov eax, dword [ebx + 0xb4]
mov dword [eax + 0x3c], 0
mov eax, dword [ebx + 0xe8]
test eax, eax
je 0x1002f63a
mov ecx, dword [ebx + 0x2b8]
mov ecx, dword [ecx + 0xc]
mov ecx, dword [ecx + 0x10]
mov edx, dword [ebx + 0xb0]
cmp ecx, dword [edx + 4]
je 0x1002f63a
push eax
call fcn.10020db0
add esp, 4
mov dword [ebx + 0xe8], 0
mov eax, dword [ebx + 0x2b8]
push dword [ebx + 0xb0]
push dword [eax + 0xc]
call sym.ffmpeg.dll_avcodec_parameters_to_context
add esp, 8
test eax, eax
js 0x1002ff82
push dword [ebx + 0xb0]
push dword [ebx + 8]
call sym.ffmpeg.dll_avcodec_parameters_to_context
add esp, 8
mov edi, eax
test eax, eax
js 0x1002ff84
mov dword [esp + 0x14], edi
mov eax, dword [ebx + 0x2b8]
mov dword [eax + 0x24], 0
jmp 0x1002f698
mov dword [esp + 0x14], 0
mov edx, dword [esi + 8]
mov ecx, dword [esi + 0xc]
mov eax, ecx
mov edi, 0x80000000
xor eax, edi
or eax, edx
je 0x1002f773
mov eax, dword [esi + 0x10]
mov edi, dword [esi + 0x14]
cmp edx, eax
sbb ecx, edi
jge 0x1002f773
mov ecx, dword [esi + 0x1c]
mov dword [esp + 4], ecx
xorps xmm0, xmm0
movaps xmmword [esp + 0xe0], xmm0
movaps xmmword [esp + 0xd0], xmm0
push edi
push eax
push str._lld
push 0x20
lea eax, [esp + 0xe0]
push eax
call fcn.10008170
add esp, 0x14
mov eax, dword [esi + 8]
mov ecx, dword [esi + 0xc]
xorps xmm0, xmm0
movaps xmmword [esp + 0xb0], xmm0
movaps xmmword [esp + 0xc0], xmm0
mov edx, ecx
mov esi, 0x80000000
xor edx, esi
or edx, eax
jne 0x1002f731
push str.NOPTS
push 0x20
lea esi, [esp + 0xb8]
push esi
call fcn.10008170
add esp, 0xc
jmp 0x1002f74a
push ecx
push eax
push str._lld
push 0x20
lea esi, [esp + 0xc0]
push esi
call fcn.10008170
add esp, 0x14
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
push ecx
lea ecx, [esp + 0xd4]
push ecx
push esi
mov esi, dword [esp + 0x1c]
push dword [esi + 0x20]
push str.Invalid_timestamps_stream_d__pts_s__dts_s__size_d_n
push 0x18
push eax
call fcn.1006fc50
add esp, 0x1c
mov edi, dword [esp + 8]
test byte [edi + 0x4a8], 1
je 0x1002f88d
mov eax, dword [esi + 0x24]
mov dword [esp + 4], eax
mov eax, dword [esi + 0x34]
mov dword [esp + 0xc], eax
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0x14]
mov edx, ecx
mov edi, 0x80000000
xor edx, edi
or edx, eax
mov edx, esi
mov esi, dword [esi + 0x30]
mov dword [esp + 0x18], esi
mov esi, dword [edx + 0x1c]
xorps xmm0, xmm0
movaps xmmword [esp + 0xa0], xmm0
movaps xmmword [esp + 0x90], xmm0
jne 0x1002f7e0
push str.NOPTS
push 0x20
lea eax, [esp + 0x98]
push eax
call fcn.10008170
add esp, 0xc
jmp 0x1002f7f9
push ecx
push eax
push str._lld
push 0x20
lea eax, [esp + 0xa0]
push eax
call fcn.10008170
add esp, 0x14
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx + 8]
mov ecx, dword [ecx + 0xc]
xorps xmm0, xmm0
movaps xmmword [esp + 0x80], xmm0
movaps xmmword [esp + 0x70], xmm0
mov edx, ecx
mov edi, 0x80000000
xor edx, edi
or edx, eax
jne 0x1002f840
push str.NOPTS
push 0x20
lea edi, [esp + 0x78]
push edi
call fcn.10008170
add esp, 0xc
jmp 0x1002f859
push ecx
push eax
push str._lld
push 0x20
lea edi, [esp + 0x80]
push edi
call fcn.10008170
add esp, 0x14
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x18]
push eax
push ecx
push edx
push esi
lea eax, [esp + 0xa0]
push eax
push edi
mov esi, dword [esp + 0x28]
push dword [esi + 0x20]
push str.ff_read_packet_stream_d__pts_s__dts_s__size_d__duration_lld__flags_d_n
push 0x30
mov edi, dword [esp + 0x2c]
push edi
call fcn.1006fc50
add esp, 0x28
cmp dword [ebx + 0xe4], 0
je 0x1002fa00
cmp dword [ebx + 0xe8], 0
jne 0x1002f930
test byte [edi + 0x448], 0x20
jne 0x1002f930
mov eax, dword [ebx + 0xb0]
push dword [eax + 4]
call fcn.10020670
add esp, 4
mov dword [ebx + 0xe8], eax
test eax, eax
je 0x1002f8ed
mov ecx, dword [ebx + 0xe4]
cmp ecx, 5
je 0x1002f91e
cmp ecx, 4
je 0x1002f927
cmp ecx, 2
jne 0x1002f936
or byte [eax + 0xb0], 1
jmp 0x1002f930
mov eax, dword [ebx + 0xb0]
push dword [eax + 4]
call sym.ffmpeg.dll_avcodec_get_name
add esp, 4
push eax
push str.parser_not_found_for_codec__s__packets_or_times_may_be_invalid._n
push 0x28
push edi
call fcn.1006fc50
add esp, 0x10
mov dword [ebx + 0xe4], 0
jmp 0x1002fa00
or byte [eax + 0xb1], 0x10
jmp 0x1002f930
or byte [eax + 0xb0], 2
nop
mov ecx, dword [ebx + 0xe4]
test ecx, ecx
je 0x1002fa00
cmp dword [ebx + 0xe8], 0
je 0x1002fa00
cmp dword [ebx + 0x34], 0x2f
jg 0x1002fabd
mov ecx, edi
mov edx, esi
push 0
push dword [esi + 0x20]
call fcn.10037b40
add esp, 8
mov dword [esp + 0x14], eax
test eax, eax
js 0x1002ffbb
mov eax, dword [ebx + 0x2b8]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0x158]
mov ecx, dword [ebx + 0xb0]
mov dword [ecx + 0x6c], eax
mov eax, dword [ebx + 0x2b8]
mov eax, dword [eax + 0xc]
movsd xmm0, qword [eax + 0x28]
mov eax, dword [ebx + 0xb0]
movsd qword [eax + 0x18], xmm0
mov eax, dword [ebx + 0x2b8]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0x15c]
mov ecx, dword [ebx + 0xb0]
mov dword [ecx + 0x68], eax
mov eax, dword [ebx + 0x2b8]
mov eax, dword [eax + 0xc]
movsd xmm0, qword [eax + 0x178]
mov eax, dword [ebx + 0xb0]
movsd qword [eax + 0x60], xmm0
mov eax, dword [ebx + 0x2b8]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0x10]
mov ecx, dword [ebx + 0xb0]
mov dword [ecx + 4], eax
jmp 0x1002fac6
mov ecx, edi
mov edx, ebx
mov eax, 0x80000000
push eax
push 0
push eax
push 0
push esi
push 0
call fcn.10037ef0
add esp, 0x18
mov eax, dword [edi + 4]
mov edx, 1
test byte [eax + 9], 1
je 0x1002fac8
test byte [esi + 0x24], 1
je 0x1002fac8
mov eax, dword [esi + 0x10]
mov dword [esp + 4], eax
mov eax, dword [esi + 0x14]
mov dword [esp + 0xc], eax
mov ecx, 0x80000000
xor eax, ecx
mov ecx, dword [esp + 4]
or eax, ecx
je 0x1002fac8
mov ecx, dword [ebx]
mov esi, dword [edi + 0x1c]
mov eax, 0xaaaaaaab
mul dword [edi + 0x47c]
mov eax, dword [esi + ecx*4]
mov esi, dword [esp + 0x10]
shr edx, 4
mov ecx, dword [eax + 0x18c]
cmp ecx, edx
mov edx, dword [esp + 0xc]
jb 0x1002fb09
test ecx, ecx
jle 0x1002faef
xor edx, edx
xor esi, esi
xor ecx, ecx
nop dword [eax]
mov edi, dword [eax + 0x188]
movsd xmm0, qword [edi + esi*2 + 0x10]
movsd qword [edi + esi + 0x10], xmm0
movups xmm0, xmmword [edi + esi*2]
movups xmmword [edi + esi], xmm0
add ecx, 1
add esi, 0x18
add edx, 2
cmp edx, dword [eax + 0x18c]
jl 0x1002fa90
jmp 0x1002faf1
push esi
call sym.ffmpeg.dll_av_packet_unref
add esp, 4
xor edx, edx
test byte [esi + 0x24], 1
jne 0x1002fc30
cmp dword [ebx + 0x1bc], 0
je 0x1002fc3a
push esi
call sym.ffmpeg.dll_av_packet_unref
add esp, 4
xor edx, edx
jmp 0x1002fc3a
xor ecx, ecx
mov dword [eax + 0x18c], ecx
mov esi, dword [esp + 0x10]
mov eax, dword [esi + 0x10]
mov dword [esp + 4], eax
mov edx, dword [esi + 0x14]
mov edi, dword [esp + 8]
mov eax, dword [esi + 0x38]
mov dword [esp + 0x18], eax
mov eax, dword [esi + 0x3c]
mov dword [esp + 0x20], eax
mov ecx, dword [ebx + 0x1f8]
test ecx, ecx
je 0x1002fbe1
mov dword [esp + 0xc], edx
mov esi, edx
mov edx, 0x80000000
xor esi, edx
or esi, dword [esp + 4]
je 0x1002fb90
mov edi, dword [ebx + 0x1f0]
mov eax, dword [ebx + 0x1f4]
mov esi, eax
xor esi, edx
or esi, edi
je 0x1002fb96
cmp ecx, 1
mov edx, dword [esp + 0xc]
jne 0x1002fba0
cmp dword [esp + 4], edi
mov esi, edx
sbb esi, eax
jge 0x1002fba0
mov cl, byte [ebx + 0xb8]
xor eax, eax
mov edx, 1
shld eax, edx, cl
mov edx, dword [esp + 0xc]
mov esi, 1
shl esi, cl
test cl, 0x20
cmovne eax, esi
mov ecx, 0
cmovne esi, ecx
add dword [esp + 4], esi
adc edx, eax
jmp 0x1002fbdd
mov edx, dword [esp + 0xc]
jmp 0x1002fbe1
mov edi, dword [esp + 8]
mov edx, dword [esp + 0xc]
jmp 0x1002fbe1
cmp ecx, 0xffffffff
jne 0x1002fbdd
mov esi, dword [esp + 4]
cmp esi, edi
mov ecx, edx
sbb ecx, eax
jl 0x1002fbdd
mov cl, byte [ebx + 0xb8]
mov eax, 0xffffffff
shl eax, cl
test cl, 0x20
mov ecx, 0xffffffff
cmovne ecx, eax
mov edx, 0
cmovne eax, edx
mov edx, dword [esp + 0xc]
add esi, eax
mov dword [esp + 4], esi
adc edx, ecx
mov edi, dword [esp + 8]
lea eax, [ebx + 0x190]
lea ecx, [ebx + 0x18c]
lea esi, [ebx + 0x188]
push 1
push 0
push 0
push edx
push dword [esp + 0x14]
push dword [esp + 0x34]
push dword [esp + 0x30]
push eax
push ecx
push esi
call fcn.10030360
add esp, 0x28
mov esi, dword [esp + 0x10]
mov edx, 1
test byte [esi + 0x24], 1
je 0x1002fad2
nop word cs:[eax + eax]
nop
mov dword [ebx + 0x1bc], 0
test edx, edx
jne 0x1002f47a
mov eax, dword [edi + 0x50c]
cmp dword [eax + 0x20], 0
jne 0x1002f459
push esi
push edi
call fcn.1002dd50
add esp, 8
test eax, eax
jns 0x1002f5b0
mov ebx, eax
mov eax, edi
mov edi, 0xfffffff5
cmp ebx, 0xfffffff5
je 0x1002ff8d
mov edi, eax
mov eax, dword [eax + 0x18]
test eax, eax
je 0x1002ffb2
xor esi, esi
jmp 0x1002fc9f
add esi, 1
cmp esi, eax
mov edi, dword [esp + 8]
jae 0x1002ffa5
mov ecx, dword [edi + 0x1c]
mov edi, dword [ecx + esi*4]
cmp dword [edi + 0xe8], 0
je 0x1002fc90
cmp dword [edi + 0xe4], 0
je 0x1002fc90
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0x10]
push 1
push dword [edi]
call fcn.10037b40
add esp, 8
mov eax, dword [esp + 8]
mov eax, dword [eax + 0x18]
jmp 0x1002fc90
mov edi, dword [esp + 8]
mov ebx, dword [esp + 0xc]
mov eax, dword [ebx + 0x1c8]
mov ecx, dword [ebx + 0x1cc]
or ecx, eax
je 0x1002fd14
mov edx, dword [esp + 0x10]
mov ecx, dword [edx + 8]
mov edx, dword [edx + 0xc]
mov esi, edx
xor esi, 0x7ffeffff
mov edi, ecx
not edi
or edi, esi
mov edi, dword [esp + 8]
je 0x1002fd0e
or ecx, edx
jne 0x1002fd14
mov dword [ebx + 0x1c0], eax
mov eax, dword [ebx + 0x1c0]
mov esi, dword [esp + 4]
or eax, esi
mov eax, dword [esp + 0x10]
je 0x1002fd63
push 0xa
push 0xb
push eax
call fcn.1000a5d0
add esp, 0xc
test eax, eax
je 0x1002fd59
mov ecx, dword [ebx + 0x1c0]
mov dword [eax], ecx
mov dword [eax + 4], esi
push esi
push dword [ebx + 0x1c0]
push str.demuxer_injecting_skip__d___discard__d_n
push 0x30
push edi
call fcn.1006fc50
add esp, 0x14
mov dword [ebx + 0x1c0], 0
cmp dword [ebx + 0x2ac], 0
je 0x1002fe0d
cmp dword [ebx + 0x9c], 0
jle 0x1002fdff
xor esi, esi
mov edi, 8
jmp 0x1002fdb3
push dword [ebx + edi - 4]
push dword [ebx + edi - 8]
push eax
call fcn.101053c0
add esp, 0xc
mov ebx, dword [esp + 0xc]
add esi, 1
add edi, 0xc
cmp esi, dword [ebx + 0x9c]
jge 0x1002fdff
mov eax, dword [ebx + 0x98]
push 0
mov dword [esp + 8], eax
push dword [eax + edi]
push dword [esp + 0x18]
call sym.ffmpeg.dll_av_packet_get_side_data
add esp, 0xc
test eax, eax
jne 0x1002fda5
mov ebx, dword [esp + 4]
push dword [ebx + edi - 4]
push dword [ebx + edi]
push dword [esp + 0x18]
call fcn.1000a5d0
add esp, 0xc
test eax, eax
jne 0x1002fd90
push str.Could_not_inject_global_side_data_n
push 0x18
push dword [esp + 0x10]
call fcn.1006fc50
jmp 0x1002fd9e
mov dword [ebx + 0x2ac], 0
mov edi, dword [esp + 8]
lea esi, [esp + 0x2c]
push esi
push 1
push str.metadata
push edi
call fcn.10072a30
add esp, 0x10
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x1002fe5e
or byte [edi + 0x4bc], 1
lea ecx, [edi + 0x48c]
push 0
push eax
push ecx
call fcn.10069cc0
add esp, 0xc
push esi
call sym.ffmpeg.dll_av_dict_free
add esp, 4
push 1
push 0
push str.metadata
push edi
call fcn.10072390
add esp, 0x10
mov ecx, edi
call fcn.1002da80
test byte [edi + 0x4a8], 1
je 0x1002ff4f
mov ebx, dword [esp + 0x10]
mov eax, dword [ebx + 0x24]
mov dword [esp + 8], eax
mov eax, dword [ebx + 0x34]
mov dword [esp + 4], eax
mov eax, dword [ebx + 0x10]
mov ecx, dword [ebx + 0x14]
mov edx, ecx
mov esi, 0x80000000
xor edx, esi
or edx, eax
mov esi, dword [ebx + 0x30]
xorps xmm0, xmm0
mov ebx, dword [ebx + 0x1c]
movaps xmmword [esp + 0x60], xmm0
movaps xmmword [esp + 0x50], xmm0
jne 0x1002fec0
lea eax, [esp + 0x50]
push str.NOPTS
push 0x20
push eax
call fcn.10008170
add esp, 0xc
jmp 0x1002fed6
lea edx, [esp + 0x50]
push ecx
push eax
push str._lld
push 0x20
push edx
call fcn.10008170
add esp, 0x14
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx + 8]
mov ecx, dword [ecx + 0xc]
xorps xmm0, xmm0
movaps xmmword [esp + 0x40], xmm0
movaps xmmword [esp + 0x30], xmm0
mov edx, 0x80000000
xor edx, ecx
or edx, eax
jne 0x1002ff0e
lea eax, [esp + 0x30]
push str.NOPTS
push 0x20
push eax
call fcn.10008170
add esp, 0xc
jmp 0x1002ff24
lea edx, [esp + 0x30]
push ecx
push eax
push str._lld
push 0x20
push edx
call fcn.10008170
add esp, 0x14
lea eax, [esp + 0x50]
lea ecx, [esp + 0x30]
push dword [esp + 8]
push dword [esp + 8]
push esi
push ebx
push eax
push ecx
mov eax, dword [esp + 0x28]
push dword [eax + 0x20]
push str.read_frame_internal_stream_d__pts_s__dts_s__size_d__duration_lld__flags_d_n
push 0x30
push edi
call fcn.1006fc50
add esp, 0x28
mov eax, edi
mov edi, dword [esp + 0x14]
cmp edi, 0xdfb9b0bb
jne 0x1002ff8d
mov eax, dword [eax + 0x10]
test eax, eax
je 0x1002ff7b
mov eax, dword [eax + 0x48]
cmp eax, 0xfffffff5
mov ecx, 0xdfb9b0bb
mov edi, eax
cmove edi, ecx
test eax, eax
cmovns edi, ecx
jmp 0x1002ff8d
mov edi, 0xdfb9b0bb
jmp 0x1002ff8d
mov edi, eax
push esi
call sym.ffmpeg.dll_av_packet_unref
add esp, 4
mov ecx, dword [esp + 0xf8]
xor ecx, ebp
call fcn.10102288
mov eax, edi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [esp + 0x14], ebx
mov esi, dword [esp + 0x10]
jmp 0x1002f459
mov dword [esp + 0x14], ebx
jmp 0x1002f459
mov edi, dword [esp + 0x14]
jmp 0x1002ff8d