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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x90
cmp dword [ecx + 0x18], 0
mov ebx, ecx
je 0x1002ca95
xor edi, edi
mov edx, 0x80000000
mov dword [esp + 0x38], 0
mov dword [esp + 0x24], 0x80000000
mov dword [esp + 0x34], 0
mov dword [esp + 0x20], 0x80000000
mov dword [esp + 0x2c], 0
mov dword [esp + 0x28], 0x80000000
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0x80000000
mov dword [esp + 0x44], ebx
add edi, 0xffffffff
adc edx, 0xffffffff
xor ecx, ecx
mov dword [esp + 0x14], edi
mov dword [esp + 0x30], edx
mov eax, dword [ebx + 0x1c]
mov dword [esp + 0x40], edi
mov dword [esp], ecx
mov dword [esp + 0x3c], edx
mov esi, 0x80000000
mov edi, dword [eax + ecx*4]
mov eax, dword [edi + 0xb0]
mov ecx, dword [edi + 0x1c]
mov eax, dword [eax]
mov edx, ecx
xor edx, esi
or eax, 1
mov dword [esp + 0x4c], eax
mov eax, dword [edi + 0x18]
or edx, eax
jne 0x1002c5e0
mov edx, edi
jmp 0x1002c7d5
mov edx, dword [edi + 0x14]
mov dword [esp + 4], edx
test edx, edx
mov edx, edi
je 0x1002c7d5
mov edi, dword [edx + 0x10]
mov esi, 0xf4240
mov dword [esp + 0x18], edi
push esi
mov dword [esp + 0x4c], edx
xor edx, edx
inc edx
push edx
push dword [esp + 0xc]
push edi
push ecx
push eax
call sym.ffmpeg.dll_av_rescale_q
add esp, 0x18
cmp eax, dword [esp + 0x14]
mov esi, edx
mov edx, eax
mov dword [esp + 0x50], eax
mov edi, dword [esp + 0x40]
mov eax, esi
mov ecx, esi
sbb eax, dword [esp + 0x30]
mov eax, dword [esp + 0x3c]
setl byte [esp + 0x1f]
cmp edx, edi
sbb ecx, eax
mov ecx, edi
cmovl ecx, edx
mov edx, eax
cmovl edx, esi
cmp dword [esp + 0x4c], 3
cmovne edi, ecx
cmovne eax, edx
sete cl
mov dword [esp + 0x3c], eax
test byte [esp + 0x1f], cl
mov eax, dword [esp + 0x30]
mov dword [esp + 0x40], edi
mov edi, esi
cmovne eax, esi
mov esi, dword [esp + 0x50]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x14]
cmovne eax, esi
mov dword [esp + 0x14], eax
push 0x2005
mov eax, 0xf4240
push eax
xor eax, eax
inc eax
push eax
push dword [esp + 0x10]
push dword [esp + 0x28]
mov eax, dword [esp + 0x5c]
push dword [eax + 0x24]
push dword [eax + 0x20]
call fcn.1005352c
add esp, 0x1c
mov ecx, eax
mov dword [esp + 4], edx
mov eax, edx
mov edx, ecx
mov ecx, 0x80000000
xor eax, ecx
or eax, edx
jne 0x1002c6cd
mov dword [esp + 0x18], 0
mov dword [esp + 4], 0x80000000
jmp 0x1002c764
mov eax, dword [esp + 4]
cmp edx, 1
sbb eax, 0
jl 0x1002c6f8
xor eax, eax
mov ecx, 0x80000000
add eax, 0xffffffff
adc ecx, 0xffffffff
sub eax, edx
sbb ecx, dword [esp + 4]
cmp eax, esi
sbb ecx, edi
jge 0x1002c70d
mov dword [esp + 0x18], edx
jmp 0x1002c764
mov eax, edx
mov ecx, 0x80000000
neg eax
sbb ecx, dword [esp + 4]
cmp esi, eax
mov eax, edi
sbb eax, ecx
jl 0x1002c6f2
add edx, esi
adc dword [esp + 4], edi
cmp dword [esp + 0x4c], 3
mov dword [esp + 0x18], edx
jne 0x1002c742
mov ecx, dword [esp + 0x34]
cmp ecx, edx
mov edx, dword [esp + 0x20]
mov eax, edx
sbb eax, dword [esp + 4]
cmovl edx, dword [esp + 4]
cmovl ecx, dword [esp + 0x18]
mov dword [esp + 0x20], edx
mov dword [esp + 0x34], ecx
jmp 0x1002c764
mov ecx, dword [esp + 0x38]
cmp ecx, edx
mov edx, dword [esp + 0x24]
mov eax, edx
sbb eax, dword [esp + 4]
cmovl edx, dword [esp + 4]
cmovl ecx, dword [esp + 0x18]
mov dword [esp + 0x24], edx
mov dword [esp + 0x38], ecx
mov eax, dword [esp]
push eax
push 0
push ebx
call fcn.1002a677
add esp, 0xc
test eax, eax
je 0x1002c7d1
mov dword [esp + 0x54], edi
mov ebx, dword [eax + 0x2c]
mov edi, esi
mov edx, dword [eax + 0x28]
mov esi, 0x80000000
mov ecx, ebx
xor ecx, esi
mov esi, edi
mov edi, dword [esp + 0x54]
or ecx, edx
je 0x1002c79e
cmp esi, edx
mov ecx, edi
sbb ecx, ebx
jge 0x1002c7a4
mov dword [eax + 0x28], esi
mov dword [eax + 0x2c], edi
mov edx, dword [esp + 0x18]
mov ecx, dword [eax + 0x34]
mov ebx, dword [esp + 4]
cmp dword [eax + 0x30], edx
sbb ecx, ebx
jge 0x1002c7bc
mov dword [eax + 0x30], edx
mov dword [eax + 0x34], ebx
push dword [esp]
push eax
mov ebx, dword [esp + 0x4c]
push ebx
call fcn.1002a677
add esp, 0xc
test eax, eax
jne 0x1002c77b
mov edx, dword [esp + 0x48]
mov ecx, dword [edx + 0x24]
mov eax, dword [edx + 0x20]
mov edi, edx
mov esi, 0x80000000
mov edx, ecx
xor edx, esi
or edx, eax
jne 0x1002c7f7
mov edx, dword [esp + 0x3c]
mov ecx, dword [esp]
mov edi, dword [esp + 0x40]
jmp 0x1002c85e
push 0xf4240
push 1
push dword [edi + 0x14]
push dword [edi + 0x10]
push ecx
push eax
call sym.ffmpeg.dll_av_rescale_q
add esp, 0x18
cmp dword [esp + 0x4c], 3
jne 0x1002c837
mov esi, dword [esp + 0x10]
mov edi, dword [esp + 0xc]
cmp esi, eax
mov ecx, edi
sbb ecx, edx
cmovl edi, edx
cmovl esi, eax
mov dword [esp + 0xc], edi
mov edi, dword [esp + 0x40]
mov dword [esp + 0x10], esi
jmp 0x1002c857
mov esi, dword [esp + 0x2c]
mov edi, dword [esp + 0x28]
cmp esi, eax
mov ecx, edi
sbb ecx, edx
cmovl edi, edx
cmovl esi, eax
mov dword [esp + 0x28], edi
mov edi, dword [esp + 0x40]
mov dword [esp + 0x2c], esi
mov edx, dword [esp + 0x3c]
mov ecx, dword [esp]
inc ecx
cmp ecx, dword [ebx + 0x18]
jb 0x1002c5a6
xor eax, eax
mov ecx, 0x80000000
add eax, 0xffffffff
adc ecx, 0xffffffff
xor eax, edi
xor ecx, edx
or ecx, eax
jne 0x1002c887
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x14]
jmp 0x1002c8c4
mov eax, dword [esp + 0x14]
mov esi, dword [esp + 0x30]
mov ecx, edi
cmp eax, edi
mov eax, esi
sbb eax, edx
mov eax, edx
setl byte [esp]
sub ecx, dword [esp + 0x14]
sbb edx, esi
cmp ecx, 0xf4240
sbb edx, 0
mov edx, dword [esp + 0x14]
setl cl
test byte [esp], cl
mov ecx, dword [esp + 0x24]
cmove esi, eax
cmove edx, edi
mov dword [esp + 0x30], esi
mov eax, ecx
mov edi, ecx
mov ecx, 0x80000000
mov dword [esp + 0x14], edx
xor eax, ecx
mov ecx, dword [esp + 0x38]
or eax, ecx
je 0x1002c922
mov esi, dword [esp + 0x34]
mov eax, edi
mov dword [esp + 0x24], edi
mov edi, dword [esp + 0x20]
mov dword [esp + 0x38], ecx
cmp ecx, esi
mov edx, edi
sbb eax, edi
mov eax, ecx
mov ecx, esi
setl byte [esp]
sub ecx, eax
mov eax, dword [esp + 0x24]
sbb edx, eax
cmp ecx, 0xf4240
sbb edx, 0
setb cl
test byte [esp], cl
cmove esi, dword [esp + 0x38]
cmove edi, eax
mov dword [esp + 0x20], edi
mov dword [esp + 0x34], esi
mov edi, dword [esp + 0x28]
mov edx, dword [esp + 0x2c]
mov ecx, 0x80000000
mov eax, edi
xor eax, ecx
or eax, edx
je 0x1002c97c
mov esi, dword [esp + 0x10]
mov eax, edi
mov dword [esp + 0x28], edi
mov edi, dword [esp + 0xc]
mov dword [esp + 0x2c], edx
cmp edx, esi
mov ecx, esi
sbb eax, edi
mov eax, dword [esp + 0x28]
setl byte [esp]
sub ecx, edx
mov edx, edi
sbb edx, eax
cmp ecx, 0xf4240
sbb edx, 0
setl cl
test byte [esp], cl
cmove esi, dword [esp + 0x2c]
cmove edi, eax
mov dword [esp + 0xc], edi
mov dword [esp + 0x10], esi
mov edi, dword [esp + 0x14]
mov edx, dword [esp + 0x30]
xor eax, eax
mov ecx, 0x80000000
add eax, 0xffffffff
adc ecx, 0xffffffff
xor eax, edi
xor ecx, edx
or ecx, eax
je 0x1002ca60
mov eax, dword [esp + 0x20]
mov ecx, 0x80000000
mov dword [ebx + 0x428], edi
mov dword [ebx + 0x42c], edx
xor eax, ecx
mov ecx, dword [esp + 0x34]
or eax, ecx
je 0x1002ca60
mov eax, edx
mov edx, dword [ebx + 0x468]
cmp edx, 2
jb 0x1002ca2a
mov ecx, dword [ebx + 0x46c]
mov ebx, dword [ecx]
mov dword [esp], edx
mov esi, 0x80000000
mov eax, dword [ebx + 0x2c]
mov edi, dword [ebx + 0x28]
mov edx, eax
xor edx, esi
or edx, edi
je 0x1002ca1b
mov edx, dword [ebx + 0x30]
mov ebx, dword [ebx + 0x34]
mov esi, eax
cmp edi, edx
sbb esi, ebx
jge 0x1002ca1b
sub edx, edi
sbb ebx, eax
js 0x1002ca1b
mov esi, dword [esp + 0x10]
mov edi, dword [esp + 0xc]
cmp esi, edx
mov eax, edi
sbb eax, ebx
cmovl edi, ebx
cmovl esi, edx
mov dword [esp + 0xc], edi
mov dword [esp + 0x10], esi
mov edx, dword [esp]
mov ebx, dword [esp + 0x44]
add ecx, 4
dec edx
jne 0x1002c9d3
jmp 0x1002ca60
mov edx, dword [esp + 0x20]
mov esi, eax
cmp ecx, edi
mov eax, edx
sbb eax, esi
jl 0x1002ca60
sub ecx, edi
sbb edx, esi
js 0x1002ca60
mov eax, edx
mov esi, ecx
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
mov edi, eax
cmp ecx, esi
mov eax, edx
sbb eax, edi
cmovl edx, edi
cmovl ecx, esi
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], ecx
cmp dword [esp + 0x10], 1
mov eax, dword [esp + 0xc]
sbb eax, 0
jl 0x1002ca95
mov eax, 0x80000000
xor eax, dword [ebx + 0x434]
or eax, dword [ebx + 0x430]
jne 0x1002ca95
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
mov dword [ebx + 0x430], eax
mov dword [ebx + 0x434], ecx
mov eax, dword [ebx + 0x10]
test eax, eax
je 0x1002cb7e
push eax
call fcn.1002df64
add esp, 4
cmp eax, 1
mov ecx, edx
sbb ecx, 0
jl 0x1002cb7e
mov ecx, dword [ebx + 0x430]
mov esi, dword [ebx + 0x434]
cmp ecx, 1
mov edi, esi
sbb edi, 0
jl 0x1002cb7e
movd xmm0, eax
movd xmm1, edx
movd xmm2, esi
punpckldq xmm0, xmm1
movd xmm1, ecx
movq qword [esp + 0x80], xmm0
punpckldq xmm1, xmm2
fild qword [esp + 0x80]
fstp qword [esp + 0x78]
movsd xmm0, qword [esp + 0x78]
movq qword [esp + 0x70], xmm1
pxor xmm1, xmm1
fild qword [esp + 0x70]
fstp qword [esp + 0x68]
mulsd xmm0, qword [0x1019ca40]
mulsd xmm0, qword [0x1019ca48]
divsd xmm0, qword [esp + 0x68]
ucomisd xmm0, xmm1
jb 0x1002cb7e
movq xmm1, qword [0x1019ca50]
ucomisd xmm1, xmm0
jb 0x1002cb7e
movsd qword [esp + 0x60], xmm0
fld qword [esp + 0x60]
fnstcw word [esp + 0xa]
movzx eax, word [esp + 0xa]
mov word [esp + 0xa], 0xc7f
fldcw word [esp + 0xa]
mov word [esp + 0xa], ax
fistp qword [esp + 0x58]
fldcw word [esp + 0xa]
mov eax, dword [esp + 0x58]
mov ecx, dword [esp + 0x5c]
mov dword [ebx + 0x43c], ecx
mov dword [ebx + 0x438], eax
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret