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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x88
mov esi, ecx
cmp dword [ecx + 0x18], 0
mov dword [esp + 0xc], ecx
je 0x1004a5f6
mov dword [esp + 0x3c], 0
xor eax, eax
add eax, 0xffffffff
mov edi, 0
adc edi, 0x7fffffff
mov dword [esp + 0x38], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], edi
mov dword [esp + 0x2c], 0x80000000
mov dword [esp + 0x24], 0
mov dword [esp + 0x14], 0x80000000
xor ecx, ecx
mov dword [esp + 8], 0
mov ebx, 0x80000000
mov dword [esp + 0x40], 0
mov dword [esp + 0x44], 0x80000000
mov dword [esp + 4], ebx
mov eax, dword [esi + 0x1c]
mov dword [esp + 0x18], ecx
mov ebx, dword [eax + ecx*4]
mov eax, dword [ebx + 0x18]
mov ecx, dword [ebx + 0x1c]
mov edx, ecx
mov esi, 0x80000000
xor edx, esi
or edx, eax
mov edx, dword [ebx + 0xb4]
mov edx, dword [edx]
mov dword [esp + 0x4c], edx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x10], edi
je 0x1004a3cd
mov esi, dword [ebx + 0x10]
test esi, esi
je 0x1004a3cd
mov edx, dword [ebx + 0xc]
push 0xf4240
push 1
push esi
mov dword [esp + 0x68], edx
push edx
push ecx
push eax
call sym.ffmpeg.dll_av_rescale_q
add esp, 0x18
mov ebx, eax
mov edi, edx
mov eax, dword [esp + 0x4c]
and eax, 0xfffffffe
mov dword [esp + 0x34], eax
cmp eax, 2
mov dword [esp + 0x28], ebx
je 0x1004a6c9
mov ecx, dword [esp + 0x38]
cmp ecx, ebx
mov eax, ebx
cmovb eax, ecx
mov edx, dword [esp + 0x10]
cmp edx, edi
cmovge ecx, ebx
cmove ecx, eax
mov dword [esp + 0x38], ecx
cmovge edx, edi
mov dword [esp + 0x10], edx
push 0x2005
push 0xf4240
push 1
push esi
push dword [esp + 0x6c]
mov eax, dword [esp + 0x5c]
push dword [eax + 0x24]
push dword [eax + 0x20]
call fcn.1005f570
add esp, 0x1c
mov esi, eax
mov eax, edx
mov ecx, 0x80000000
xor eax, ecx
or eax, esi
mov dword [esp + 0x30], edi
je 0x1004a6f0
mov ebx, edx
cmp esi, 1
mov eax, edx
sbb eax, 0
mov edx, dword [esp + 0x2c]
jl 0x1004a77a
mov eax, ebx
not eax
mov ecx, 0x80000000
add eax, ecx
mov ecx, esi
not ecx
mov edi, dword [esp + 0x28]
cmp ecx, edi
mov ecx, edi
mov edi, dword [esp + 0x30]
sbb eax, edi
jl 0x1004a3ac
add esi, ecx
adc ebx, edi
cmp dword [esp + 0x34], 2
je 0x1004a7a0
mov ecx, dword [esp + 0x3c]
cmp ecx, esi
mov eax, esi
cmova eax, ecx
cmp edx, ebx
cmovle ecx, esi
cmove ecx, eax
mov dword [esp + 0x3c], ecx
cmovle edx, ebx
mov edi, dword [esp + 0xc]
mov dword [esp + 0x2c], edx
xor eax, eax
mov ecx, dword [esp + 0x18]
push ecx
push eax
push edi
call fcn.10042f30
add esp, 0xc
test eax, eax
jne 0x1004a704
mov edi, dword [esp + 0x48]
mov eax, dword [edi + 0x20]
mov ecx, dword [edi + 0x24]
mov edx, ecx
mov esi, 0x80000000
xor edx, esi
or edx, eax
mov esi, dword [esp + 8]
je 0x1004a756
push 0xf4240
push 1
push dword [edi + 0x10]
push dword [edi + 0xc]
push ecx
push eax
call sym.ffmpeg.dll_av_rescale_q
add esp, 0x18
mov ecx, dword [esp + 0x4c]
and ecx, 0xfffffffe
cmp ecx, 2
mov ebx, dword [esp + 4]
je 0x1004a75f
mov edi, dword [esp + 0x40]
cmp edi, eax
mov ecx, eax
cmova ecx, edi
mov esi, dword [esp + 0x44]
cmp esi, edx
cmovg eax, edi
cmove eax, ecx
cmovle esi, edx
mov dword [esp + 0x44], esi
mov dword [esp + 0x40], eax
mov ecx, dword [esp + 0x18]
inc ecx
mov esi, dword [esp + 0xc]
cmp ecx, dword [esi + 0x18]
mov edi, dword [esp + 0x10]
jb 0x1004a27a
mov dword [esp + 4], ebx
xor eax, eax
add eax, 0xffffffff
mov eax, 0x80000000
adc eax, 0xffffffff
xor eax, edi
mov edx, dword [esp + 0x38]
mov ecx, edx
not ecx
or ecx, eax
je 0x1004a7cb
mov esi, dword [esp + 0x20]
cmp esi, edx
mov ebx, dword [esp + 0x1c]
mov eax, ebx
sbb eax, edi
setl byte [esp + 0x18]
mov ecx, edx
sub ecx, esi
mov eax, edi
mov edi, edx
mov edx, eax
sbb edx, ebx
cmp ecx, 0xf4240
sbb edx, 0
setb cl
test byte [esp + 0x18], cl
cmove ebx, eax
cmove esi, edi
mov dword [esp + 0x20], esi
mov dword [esp + 0x1c], ebx
mov edi, dword [esp + 0x2c]
mov eax, edi
mov ecx, 0x80000000
xor eax, ecx
mov esi, dword [esp + 0x3c]
or eax, esi
mov edx, dword [esp + 0x14]
je 0x1004a4fb
mov ebx, dword [esp + 0x24]
cmp esi, ebx
mov eax, edi
sbb eax, edx
setl al
mov ecx, ebx
sub ecx, esi
mov edx, dword [esp + 0x14]
sbb edx, edi
cmp ecx, 0xf4240
sbb edx, 0
mov edx, dword [esp + 0x14]
setb cl
test al, cl
cmove edx, edi
cmove ebx, esi
mov dword [esp + 0x24], ebx
mov dword [esp + 0x14], edx
mov edx, dword [esp + 0x44]
mov eax, edx
mov ecx, 0x80000000
xor eax, ecx
mov ebx, dword [esp + 0x40]
or eax, ebx
je 0x1004a54f
mov edi, dword [esp + 8]
cmp ebx, edi
mov eax, edx
mov esi, dword [esp + 4]
sbb eax, esi
setl byte [esp + 0x10]
mov ecx, edi
sub ecx, ebx
mov eax, edx
mov edx, esi
sbb edx, eax
cmp ecx, 0xf4240
sbb edx, 0
setb cl
test byte [esp + 0x10], cl
cmove esi, eax
mov dword [esp + 4], esi
cmove edi, ebx
mov dword [esp + 8], edi
xor eax, eax
add eax, 0xffffffff
mov eax, 0x80000000
adc eax, 0xffffffff
mov ebx, dword [esp + 0x1c]
xor eax, ebx
mov esi, dword [esp + 0x20]
mov ecx, esi
not ecx
or ecx, eax
mov edx, dword [esp + 0x14]
je 0x1004a6bc
mov eax, edx
mov ecx, 0x80000000
xor eax, ecx
mov ecx, dword [esp + 0x24]
or eax, ecx
mov eax, dword [esp + 0xc]
mov dword [eax + 0x28], esi
mov dword [eax + 0x2c], ebx
je 0x1004a6bc
mov eax, dword [eax + 0x68]
cmp eax, 2
jae 0x1004a7d4
mov esi, dword [esp + 0x20]
cmp ecx, esi
mov eax, edx
sbb eax, ebx
jl 0x1004a6bc
sub ecx, esi
sbb edx, ebx
js 0x1004a6bc
mov esi, dword [esp + 8]
cmp esi, ecx
mov eax, ecx
cmova eax, esi
mov edi, dword [esp + 4]
cmp edi, edx
cmovg ecx, esi
cmove ecx, eax
cmovle edi, edx
cmp ecx, 1
mov eax, edi
sbb eax, 0
mov esi, dword [esp + 0xc]
jl 0x1004a5f6
mov eax, 0x80000000
xor eax, dword [esi + 0x34]
or eax, dword [esi + 0x30]
jne 0x1004a5f6
mov dword [esi + 0x30], ecx
mov dword [esi + 0x34], edi
mov eax, dword [esi + 0x10]
test eax, eax
je 0x1004a6b4
push eax
call fcn.10043990
add esp, 4
cmp eax, 1
mov ecx, edx
sbb ecx, 0
jl 0x1004a6b4
mov ecx, dword [esi + 0x30]
mov esi, dword [esi + 0x34]
cmp ecx, 1
mov edi, esi
sbb edi, 0
mov edi, dword [esp + 0xc]
jl 0x1004a6b4
movd xmm0, eax
movd xmm1, edx
punpckldq xmm0, xmm1
movq qword [esp + 0x78], xmm0
fild qword [esp + 0x78]
fstp qword [esp + 0x70]
movsd xmm0, qword [esp + 0x70]
mulsd xmm0, qword [0x102c64f0]
mulsd xmm0, qword [0x102c64f8]
movd xmm1, ecx
movd xmm2, esi
punpckldq xmm1, xmm2
movq qword [esp + 0x68], xmm1
fild qword [esp + 0x68]
fstp qword [esp + 0x60]
divsd xmm0, qword [esp + 0x60]
pxor xmm1, xmm1
ucomisd xmm0, xmm1
jb 0x1004a6b4
movsd xmm1, qword [0x10299278]
ucomisd xmm1, xmm0
jb 0x1004a6b4
movsd qword [esp + 0x50], xmm0
fld qword [esp + 0x50]
fisttp qword [esp + 0x50]
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x54]
mov dword [edi + 0x3c], ecx
mov dword [edi + 0x38], eax
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, dword [esp + 8]
mov edi, dword [esp + 4]
jmp 0x1004a5d5
mov edx, dword [esp + 0x20]
cmp edx, ebx
mov eax, ebx
cmovb eax, edx
mov ecx, dword [esp + 0x1c]
cmp ecx, edi
cmovge edx, ebx
cmove edx, eax
mov dword [esp + 0x20], edx
cmovge ecx, edi
mov dword [esp + 0x1c], ecx
jmp 0x1004a316
xor esi, esi
mov ebx, 0x80000000
mov edi, dword [esp + 0xc]
mov edx, dword [esp + 0x2c]
jmp 0x1004a3b0
mov edx, dword [eax + 0x28]
mov edi, dword [eax + 0x2c]
mov dword [esp + 0x34], edi
mov ecx, 0x80000000
xor edi, ecx
or edi, edx
je 0x1004a727
cmp dword [esp + 0x28], edx
mov edx, dword [esp + 0x30]
sbb edx, dword [esp + 0x34]
jge 0x1004a735
mov ecx, dword [esp + 0x28]
mov dword [eax + 0x28], ecx
mov ecx, dword [esp + 0x30]
mov dword [eax + 0x2c], ecx
mov ecx, dword [eax + 0x34]
cmp dword [eax + 0x30], esi
sbb ecx, ebx
mov edi, dword [esp + 0xc]
mov ecx, dword [esp + 0x18]
jge 0x1004a3ba
mov dword [eax + 0x30], esi
mov dword [eax + 0x34], ebx
jmp 0x1004a3ba
mov ebx, dword [esp + 4]
jmp 0x1004a439
cmp esi, eax
mov ecx, eax
cmova ecx, esi
cmp ebx, edx
cmovg eax, esi
cmove eax, ecx
cmovle ebx, edx
mov dword [esp + 8], eax
jmp 0x1004a439
mov eax, esi
neg eax
mov ecx, 0x80000000
sbb ecx, ebx
cmp dword [esp + 0x28], eax
mov edi, dword [esp + 0x30]
mov eax, edi
sbb eax, ecx
mov ecx, dword [esp + 0x28]
jge 0x1004a383
jmp 0x1004a3ac
mov ecx, dword [esp + 0x24]
cmp ecx, esi
mov eax, esi
cmova eax, ecx
mov edx, dword [esp + 0x14]
cmp edx, ebx
cmovle ecx, esi
cmove ecx, eax
mov dword [esp + 0x24], ecx
cmovle edx, ebx
mov dword [esp + 0x14], edx
mov edx, dword [esp + 0x2c]
jmp 0x1004a3ac
mov ebx, dword [esp + 0x1c]
jmp 0x1004a4ab
mov ecx, dword [esp + 0xc]
mov ecx, dword [ecx + 0x6c]
mov dword [esp + 0x18], ecx
xor edx, edx
mov ecx, dword [esp + 8]
mov edi, dword [esp + 4]
mov dword [esp + 8], ecx
mov dword [esp + 4], edi
mov ecx, dword [esp + 0x18]
mov edi, dword [ecx + edx*4]
mov ecx, dword [edi + 0x28]
mov esi, dword [edi + 0x2c]
mov dword [esp + 0x10], esi
mov ebx, 0x80000000
xor esi, ebx
or esi, ecx
je 0x1004a84d
mov esi, dword [edi + 0x30]
mov edi, dword [edi + 0x34]
cmp ecx, esi
mov ebx, dword [esp + 0x10]
sbb ebx, edi
jge 0x1004a84d
sub esi, ecx
sbb edi, dword [esp + 0x10]
js 0x1004a84d
mov ecx, dword [esp + 8]
cmp ecx, esi
mov ebx, esi
cmova ebx, ecx
mov dword [esp + 0x10], ebx
mov ebx, dword [esp + 4]
cmp ebx, edi
cmovg esi, ecx
cmove esi, dword [esp + 0x10]
cmovle ebx, edi
mov dword [esp + 4], ebx
mov dword [esp + 8], esi
inc edx
cmp eax, edx
mov edi, dword [esp + 4]
mov ecx, dword [esp + 8]
jne 0x1004a7e9
jmp 0x1004a5d5