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

Disassembly:
push ebp
mov ebp, eax
push edi
push esi
push ebx
sub esp, 0x17c
lea esi, [esp + 0x58]
mov dword [esp + 0x48], edx
mov dword [esp], edx
call fcn.00459640
mov dword [esp + 0x34], esi
mov eax, dword [ebp + 0x4e0]
test eax, eax
jne 0x4108b0
lea edi, [esp + 0x58]
mov dword [esp + 4], edi
mov dword [esp], ebp
call fcn.0040da10
test eax, eax
js 0x410d60
mov eax, dword [ebp + 0x1c]
mov edx, dword [esp + 0x78]
mov ebx, dword [eax + edx*4]
mov eax, dword [esp + 0x64]
mov edx, dword [esp + 0x60]
lea ecx, [eax - 0x80000000]
or ecx, edx
je 0x4107d0
mov ecx, dword [esp + 0x6c]
mov esi, dword [esp + 0x68]
lea edi, [ecx - 0x80000000]
or edi, esi
je 0x4107d0
cmp eax, ecx
jg 0x4107d0
jl 0x41070e
cmp edx, esi
jae 0x4107d0
mov edi, dword [esp + 0x74]
xor eax, eax
mov dword [esp + eax + 0xcc], 0
add eax, 4
cmp eax, 0x20
jb 0x410714
lea eax, [esp + 0xcc]
mov dword [esp + 0xc], esi
lea esi, [esp + 0xac]
mov dword [esp + 0x10], ecx
mov dword [esp + 8], 0x590ce1
mov dword [esp + 4], 0x20
mov dword [esp], eax
call fcn.0053c530
mov edx, dword [esp + 0x60]
xor ecx, ecx
mov eax, dword [esp + 0x64]
mov dword [esi + ecx], 0
add ecx, 4
cmp ecx, 0x20
jb 0x41075f
lea ecx, [eax - 0x80000000]
or ecx, edx
je 0x410e68
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], eax
mov dword [esp + 8], 0x590ce1
mov dword [esp + 4], 0x20
mov dword [esp], esi
call fcn.0053c530
mov eax, dword [esp + 0x78]
lea edx, [esp + 0xcc]
mov dword [esp + 0x18], edi
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], eax
mov dword [esp + 8], str.Invalid_timestamps_stream_d__pts_s__dts_s__size_d_n
mov dword [esp + 4], 0x18
mov dword [esp], ebp
call fcn.00539bd0
nop
test byte [ebp + 0x490], 1
jne 0x410bb3
mov eax, dword [ebx + 0xec]
test eax, eax
je 0x410a45
mov eax, dword [ebx + 0xf0]
test eax, eax
je 0x410cc5
cmp dword [ebx + 0x4c], 0x2f
jle 0x410847
lea edi, [esp + 0x58]
mov dword [esp], edi
xor edi, edi
call fcn.00459dd0
xor eax, eax
mov edx, dword [esp + 0x48]
test byte [edx + 0x24], 1
je 0x410870
mov dword [ebx + 0x1bc], 0
test edi, edi
je 0x4106a0
mov esi, eax
test byte [ebp + 0x490], 1
jne 0x410900
add esp, 0x17c
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret
mov ecx, dword [esp + 0x78]
lea edx, [esp + 0x58]
mov eax, ebp
call fcn.0040f5d0
test eax, eax
js 0x410e3c
mov edx, dword [esp + 0x48]
xor edi, edi
test byte [edx + 0x24], 1
jne 0x410819
lea esi, [esi]
mov edx, dword [ebx + 0x1bc]
test edx, edx
je 0x410823
lea ecx, [esp + 0x58]
mov dword [esp], ecx
call fcn.00459dd0
test edi, edi
je 0x4106a0
mov edi, dword [esp + 0x48]
mov ecx, 0x14
mov esi, dword [esp + 0x34]
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebp + 0x4e0]
test eax, eax
je 0x4106ae
nop
lea esi, [esi]
mov edi, dword [esp + 0x48]
mov esi, eax
mov ecx, 0x14
mov dword [esp + 0x16c], eax
rep movsd dword es:[edi], dword [esi]
mov edx, dword [eax + 0x50]
mov dword [ebp + 0x4e0], edx
mov eax, dword [eax + 0x50]
xor edx, edx
test eax, eax
je 0x4108dc
mov edx, dword [ebp + 0x4e4]
mov dword [ebp + 0x4e4], edx
lea eax, [esp + 0x16c]
xor esi, esi
mov dword [esp], eax
call fcn.00537510
test byte [ebp + 0x490], 1
je 0x41083a
mov edi, dword [esp + 0x48]
xor eax, eax
mov edi, dword [edi + 0x24]
mov dword [esp + 0x38], edi
mov edi, dword [esp + 0x48]
mov edi, dword [edi + 0x30]
mov dword [esp + 0x40], edi
mov edi, dword [esp + 0x48]
mov edi, dword [edi + 0x1c]
mov dword [esp + 0x4c], edi
mov edi, dword [esp + 0x48]
mov ecx, dword [edi + 0x10]
mov edx, dword [edi + 0x14]
lea edi, [esp + 0x14c]
mov dword [edi + eax], 0
add eax, 4
cmp eax, 0x20
jb 0x410934
lea eax, [edx - 0x80000000]
or eax, ecx
je 0x410e85
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], edx
mov dword [esp + 8], 0x590ce1
mov dword [esp + 4], 0x20
mov dword [esp], edi
call fcn.0053c530
mov eax, dword [esp + 0x48]
lea ebx, [esp + 0x12c]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 0xc]
xor eax, eax
mov dword [ebx + eax], 0
add eax, 4
cmp eax, 0x20
jb 0x410984
lea eax, [edx - 0x80000000]
or eax, ecx
je 0x410ea2
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], edx
mov dword [esp + 8], 0x590ce1
mov dword [esp + 4], 0x20
mov dword [esp], ebx
call fcn.0053c530
mov edx, dword [esp + 0x38]
mov dword [esp + 0x14], edi
mov ecx, dword [esp + 0x40]
mov edi, dword [esp + 0x48]
mov dword [esp + 0x10], ebx
mov dword [esp + 0x20], edx
mov edx, dword [esp + 0x4c]
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], edx
mov eax, dword [edi + 0x20]
mov dword [esp], ebp
mov dword [esp + 8], str.read_frame_internal_stream_d__pts_s__dts_s__size_d__duration_d__flags_d_n
mov dword [esp + 4], 0x30
mov dword [esp + 0xc], eax
call fcn.00539bd0
add esp, 0x17c
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebx + 8]
mov eax, dword [eax + 0x30]
mov dword [esp], eax
call fcn.00456250
mov dword [esp + 8], str.parser_not_found_for_codec__s__packets_or_times_may_be_invalid._n
mov dword [esp + 4], 0x28
mov dword [esp], ebp
mov dword [esp + 0xc], eax
call fcn.00539bd0
mov dword [ebx + 0xec], 0
mov edi, dword [esp + 0x48]
mov ecx, 0x14
mov esi, dword [esp + 0x34]
rep movsd dword es:[edi], dword [esi]
test byte [ebp + 0x43c], 0x10
je 0x410cb0
mov edx, dword [ebp + 4]
xor eax, eax
mov edi, 1
test byte [edx + 9], 1
je 0x41080f
mov edx, dword [esp + 0x48]
test byte [edx + 0x24], 1
je 0x410870
mov ecx, edx
mov edx, dword [edx + 0x10]
mov ecx, dword [ecx + 0x14]
mov dword [esp + 0x38], edx
mov dword [esp + 0x3c], ecx
mov edx, dword [esp + 0x3c]
add edx, 0x80000000
or edx, dword [esp + 0x38]
je 0x410819
mov edx, dword [ebx]
mov eax, dword [ebp + 0x1c]
mov eax, dword [eax + edx*4]
mov edx, 0xaaaaaaab
mov edi, dword [eax + 0x194]
mov dword [esp + 0x40], eax
mov eax, dword [ebp + 0x464]
mul edx
shr edx, 4
cmp edx, edi
ja 0x410b2d
xor eax, eax
test edi, edi
jle 0x410b23
mov esi, dword [esp + 0x40]
xor ecx, ecx
mov edx, dword [esi + 0x190]
mov esi, ebx
mov ebx, dword [edx + eax*2]
add ecx, 2
mov dword [edx + eax], ebx
mov ebx, dword [edx + eax*2 + 4]
mov dword [edx + eax + 4], ebx
mov ebx, dword [edx + eax*2 + 8]
mov dword [edx + eax + 8], ebx
mov ebx, dword [edx + eax*2 + 0xc]
mov dword [edx + eax + 0xc], ebx
mov ebx, dword [edx + eax*2 + 0x10]
mov dword [edx + eax + 0x10], ebx
mov ebx, dword [edx + eax*2 + 0x14]
mov dword [edx + eax + 0x14], ebx
add eax, 0x18
cmp edi, ecx
jg 0x410ae1
sub edi, 1
mov ebx, esi
shr edi, 1
lea eax, [edi + 1]
mov edi, dword [esp + 0x40]
mov dword [edi + 0x194], eax
mov edx, dword [esp + 0x48]
mov ecx, dword [ebx + 0x1d8]
mov eax, dword [edx + 0x40]
mov edx, dword [edx + 0x44]
test ecx, ecx
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], edx
je 0x410b71
mov esi, dword [ebx + 0x1d4]
mov eax, dword [ebx + 0x1d0]
lea edx, [esi - 0x80000000]
or edx, eax
je 0x410b71
cmp ecx, 1
je 0x410e0c
cmp ecx, 0xffffffff
je 0x410dd0
mov esi, dword [esp + 0x38]
lea ecx, [ebx + 0x198]
mov edi, dword [esp + 0x3c]
lea edx, [ebx + 0x194]
lea eax, [ebx + 0x190]
mov dword [esp + 8], esi
mov esi, dword [esp + 0x40]
mov dword [esp + 0xc], edi
mov edi, dword [esp + 0x44]
mov dword [esp], esi
mov dword [esp + 4], edi
mov edi, 1
call fcn.00410450
xor eax, eax
jmp 0x41080f
mov ecx, dword [esp + 0x7c]
xor eax, eax
mov edi, dword [esp + 0x74]
mov esi, dword [esp + 0x88]
mov edx, dword [esp + 0x6c]
mov dword [esp + 0x38], ecx
mov ecx, dword [esp + 0x68]
mov dword [esp + 0x4c], edi
lea edi, [esp + 0x10c]
mov dword [esp + 0x40], esi
mov dword [edi + eax], 0
add eax, 4
cmp eax, 0x20
jb 0x410bdf
lea eax, [edx - 0x80000000]
or eax, ecx
je 0x410d20
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], edx
mov dword [esp + 8], 0x590ce1
mov dword [esp + 4], 0x20
mov dword [esp], edi
call fcn.0053c530
mov ecx, dword [esp + 0x60]
lea esi, [esp + 0xec]
xor eax, eax
mov edx, dword [esp + 0x64]
mov dword [esi + eax], 0
add eax, 4
cmp eax, 0x20
jb 0x410c2d
lea eax, [edx - 0x80000000]
or eax, ecx
je 0x410d3d
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], edx
mov dword [esp + 8], 0x590ce1
mov dword [esp + 4], 0x20
mov dword [esp], esi
call fcn.0053c530
mov edx, dword [esp + 0x38]
mov ecx, dword [esp + 0x40]
mov eax, dword [esp + 0x78]
mov dword [esp + 0x14], edi
mov dword [esp + 0x20], edx
mov edx, dword [esp + 0x4c]
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], eax
mov dword [esp + 0x18], edx
mov dword [esp + 8], str.ff_read_packet_stream_d__pts_s__dts_s__size_d__duration_d__flags_d_n
mov dword [esp + 4], 0x30
mov dword [esp], ebp
call fcn.00539bd0
jmp 0x4107dd
mov edi, dword [esp + 0x48]
mov edx, ebx
mov eax, ebp
mov dword [esp], edi
call fcn.0040e330
jmp 0x410a61
test byte [ebp + 0x43c], 0x20
jne 0x410a45
mov eax, dword [ebx + 8]
mov eax, dword [eax + 0x30]
mov dword [esp], eax
call fcn.0045ab10
test eax, eax
mov dword [ebx + 0xf0], eax
je 0x410a11
mov edx, dword [ebx + 0xec]
cmp edx, 2
je 0x410e00
cmp edx, 4
je 0x410e43
cmp edx, 0x57415200
je 0x410ebf
test edx, edx
jne 0x4107f9
jmp 0x410a45
mov dword [esp + 8], str.NOPTS
mov dword [esp + 4], 0x20
mov dword [esp], edi
call fcn.0053c530
jmp 0x410c1c
mov dword [esp + 8], str.NOPTS
mov dword [esp + 4], 0x20
mov dword [esp], esi
call fcn.0053c530
jmp 0x410c6a
cmp eax, 0xfffffff5
mov ebx, eax
mov esi, eax
je 0x41083a
mov edx, dword [ebp + 0x18]
test edx, edx
je 0x410dba
xor eax, eax
xor esi, esi
jmp 0x410d89
add esi, 1
cmp esi, edx
mov eax, esi
jae 0x410dba
mov ecx, dword [ebp + 0x1c]
mov eax, dword [ecx + eax*4]
mov edi, dword [eax + 0xf0]
test edi, edi
je 0x410d80
mov ecx, dword [eax + 0xec]
test ecx, ecx
je 0x410d80
mov ecx, dword [eax]
xor edx, edx
mov eax, ebp
add esi, 1
call fcn.0040f5d0
mov edx, dword [ebp + 0x18]
mov eax, esi
cmp esi, edx
jb 0x410d89
mov eax, dword [ebp + 0x4e0]
test eax, eax
jne 0x4108b0
mov esi, ebx
jmp 0x41082d
cmp dword [esp + 0x3c], esi
jl 0x410b71
jle 0x410e4f
mov ecx, dword [ebx + 0xbc]
xor eax, eax
xor edx, edx
test cl, 0x20
sete al
setne dl
shl edx, cl
shl eax, cl
sub dword [esp + 0x38], eax
sbb dword [esp + 0x3c], edx
jmp 0x410b71
or dword [eax + 0xb0], 1
jmp 0x4107f9
cmp dword [esp + 0x3c], esi
jg 0x410b71
jge 0x410e5b
mov ecx, dword [ebx + 0xbc]
xor eax, eax
xor edx, edx
test cl, 0x20
sete al
setne dl
shl edx, cl
shl eax, cl
add dword [esp + 0x38], eax
adc dword [esp + 0x3c], edx
jmp 0x410b71
mov esi, eax
jmp 0x41083a
or dword [eax + 0xb0], 2
jmp 0x4107f9
cmp dword [esp + 0x38], eax
jb 0x410b71
jmp 0x410ddc
cmp dword [esp + 0x38], eax
nop
jae 0x410b71
jmp 0x410e18
mov dword [esp + 8], str.NOPTS
mov dword [esp + 4], 0x20
mov dword [esp], esi
call fcn.0053c530
jmp 0x41079c
mov dword [esp + 8], str.NOPTS
mov dword [esp + 4], 0x20
mov dword [esp], edi
call fcn.0053c530
jmp 0x410971
mov dword [esp + 8], str.NOPTS
mov dword [esp + 4], 0x20
mov dword [esp], ebx
call fcn.0053c530
jmp 0x4109c1
or dword [eax + 0xb0], 0x1000
jmp 0x4107f9