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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x310
mov eax, dword [0x5ceb30]
xor eax, esp
mov dword [esp + 0x30c], eax
mov edx, dword [ebp + 8]
mov eax, dword [ecx + 0x60]
push esi
push edi
mov dword [esp + 0x18], ecx
mov esi, dword [eax + 0x28]
mov eax, dword [edx + 0x60]
mov dword [esp + 0x1c], edx
mov edi, dword [eax + 0x28]
mov eax, esi
sar eax, 2
sub esi, eax
mov eax, edi
mov dword [esp + 0x44], esi
mov esi, ecx
sar eax, 2
sub edi, eax
lea eax, [esp + 0x300]
mov dword [esp + 0x4c], edi
lea edi, [esp + 0x2d0]
movsd dword es:[edi], dword [esi]
push eax
lea eax, [esp + 0x2e4]
push eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov esi, dword [esp + 0x54]
lea edi, [esp + 0x2e8]
shl esi, 4
add esi, edx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov esi, ecx
lea edi, [esp + 0x2f8]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov esi, dword [esp + 0x4c]
lea edi, [esp + 0x308]
shl esi, 4
add esi, ecx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.004a868f
pop ecx
pop ecx
test al, al
je 0x4aacec
mov eax, dword [esp + 0x1c]
push eax
jmp 0x4ab3e8
movaps xmm0, xmmword [0x598200]
xor edx, edx
movupd xmmword [esp + 0x90], xmm0
mov dword [esp + 0x64], edx
mov edi, edx
mov word [esp + 0x20], dx
mov esi, dword [esp + 0x18]
test edi, edi
je 0x4aad1a
mov eax, dword [esp + 0x1c]
mov eax, dword [eax + 0x60]
jmp 0x4aad1d
mov eax, dword [esi + 0x60]
lea ecx, [esp + 0x110]
mov dword [esp + 0x10], eax
call fcn.004a8fa9
mov ecx, dword [esp + 0x44]
lea eax, [esp + 0x110]
push eax
test edi, edi
mov eax, edi
cmovne ecx, dword [esp + 0x50]
shl eax, 5
lea eax, [esp + eax + 0x2d4]
push eax
mov eax, dword [esp + 0x18]
push dword [eax]
call dword [ecx*4 + 0x598108]
mov ecx, dword [esp + 0x28]
add esp, 0xc
test edi, edi
je 0x4aad6d
mov eax, dword [ecx + 0x90]
jmp 0x4aad73
mov eax, dword [esi + 0x90]
mov edx, dword [esp + 0x10]
shl eax, 6
mov dword [esp + 0x14], eax
mov edx, dword [edx + 0x14]
mov dword [esp + 0x38], edx
movsd xmm2, qword [eax + edx + 8]
movsd qword [esp + 0x68], xmm2
test edi, edi
je 0x4aad9d
mov eax, dword [ecx + 0x98]
jmp 0x4aada3
mov eax, dword [esi + 0x98]
shl eax, 6
mov dword [esp + 0x48], eax
movsd xmm1, qword [eax + edx + 8]
movsd qword [esp + 0x30], xmm1
test edi, edi
je 0x4aadc8
mov eax, dword [ecx + 0x90]
cmp eax, dword [ecx + 0x98]
jmp 0x4aadd4
mov eax, dword [esi + 0x90]
cmp eax, dword [esi + 0x98]
setl cl
xor eax, eax
test cl, cl
mov byte [esp + 0xf], cl
sete al
xor edx, edx
mov ecx, edx
mov dword [esp + 0x10], ecx
movd xmm0, eax
movzx eax, byte [esp + 0x2c6]
mov dword [esp + 0x58], eax
cvtdq2pd xmm0, xmm0
movsd qword [esp + 0x28], xmm0
test eax, eax
jle 0x4aaefe
mov esi, dword [esp + 0x14]
movsd xmm0, qword [esp + ecx*8 + 0x230]
sub esp, 0x18
movsd qword [esp + 0x68], xmm0
movsd qword [esp + 0x10], xmm1
movsd qword [esp + 8], xmm0
movsd qword [esp], xmm2
call fcn.004aa2ec
mov ecx, dword [esp + 0x28]
add esp, 0x18
test al, al
je 0x4aaedd
mov edx, dword [esp + 0x38]
movsd xmm1, qword [esp + ecx*8 + 0x230]
movsd xmm3, qword [0x555b20]
movsd xmm2, qword [0x597f28]
movsd xmm0, qword [esi + edx + 8]
subsd xmm0, xmm1
andpd xmm0, xmm3
comisd xmm2, xmm0
ja 0x4aaedd
cmp byte [esp + 0xf], 0
lea eax, [esp + 0x28]
je 0x4aae9a
movsd xmm0, qword [esp + 0x28]
lea esi, [esp + 0x50]
comisd xmm0, xmm1
cmovbe eax, esi
mov esi, dword [esp + 0x14]
jmp 0x4aaeab
comisd xmm1, xmmword [esp + 0x28]
lea ecx, [esp + 0x50]
cmovbe eax, ecx
mov ecx, dword [esp + 0x10]
movsd xmm0, qword [eax]
mov eax, dword [esp + 0x48]
movsd qword [esp + 0x28], xmm0
movsd qword [esp + edi*8 + 0x90], xmm0
movsd xmm1, qword [eax + edx + 8]
subsd xmm0, xmm1
andpd xmm0, xmm3
comisd xmm2, xmm0
seta al
mov byte [esp + edi + 0x20], al
jmp 0x4aaee3
movsd xmm1, qword [esp + 0x30]
movsd xmm2, qword [esp + 0x68]
inc ecx
mov dword [esp + 0x10], ecx
cmp ecx, dword [esp + 0x58]
jl 0x4aae10
mov esi, dword [esp + 0x18]
xor edx, edx
inc edi
cmp edi, 2
jl 0x4aad09
xorps xmm0, xmm0
mov byte [esp + 0xf], dl
movupd xmmword [esp + 0xa0], xmm0
or edi, 0xffffffff
mov ecx, edx
movsd xmm0, qword [0x5ca628]
xorps xmm3, xmm3
movsd qword [esp + 0x28], xmm0
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], ecx
movsd xmm1, qword [esp + ecx*8 + 0x90]
comisd xmm3, xmm1
ja 0x4ab2ad
test ecx, ecx
je 0x4aaf56
mov eax, dword [esp + 0x1c]
mov edx, dword [eax + 0x60]
jmp 0x4aaf59
mov edx, dword [esi + 0x60]
mov ecx, dword [edx + 0x28]
mov eax, ecx
sar eax, 2
sub ecx, eax
lea eax, [esp + 0xe0]
push ecx
push ecx
movsd qword [esp], xmm1
push dword [edx]
push eax
call dword [ecx*4 + 0x5980c8]
mov esi, eax
lea edi, [esp + 0x110]
mov eax, dword [esp + 0x24]
shl eax, 5
mov dword [esp + 0x48], eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea esi, [esp + 0x2e0]
add eax, esi
push eax
mov dword [esp + 0x5c], eax
lea eax, [esp + 0x114]
push eax
lea eax, [esp + 0x108]
push eax
call fcn.004da885
mov esi, eax
lea edi, [esp + 0x9c]
mov eax, dword [esp + 0x68]
add esp, 0x1c
cmp dword [esp + 0x14], 0
cmovne eax, dword [esp + 0x44]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd xmm0, qword [esp + 0x88]
movsd qword [esp + 0x50], xmm0
movsd xmm0, qword [esp + 0x80]
movsd qword [esp + 0x30], xmm0
cmp eax, 1
jne 0x4ab07d
push dword [esp + 0x48]
mov eax, dword [esp + 0x3c]
lea esi, [esp + 0x2e4]
add eax, esi
push eax
lea eax, [esp + 0xd8]
push eax
call fcn.004da885
movsd xmm1, qword [esp + 0x3c]
lea edi, [esp + 0xbc]
movsd xmm2, qword [esp + 0x5c]
mov esi, eax
movsd xmm4, qword [0x5ca5e0]
movaps xmm0, xmm1
mulsd xmm0, xmm1
add esp, 0xc
movsd dword es:[edi], dword [esi]
mulsd xmm2, xmm2
mulsd xmm0, xmm4
movsd dword es:[edi], dword [esi]
mulsd xmm2, xmm4
movsd dword es:[edi], dword [esi]
addsd xmm2, xmm0
movsd dword es:[edi], dword [esi]
movsd xmm1, qword [esp + 0xb0]
movsd xmm0, qword [esp + 0xb8]
mulsd xmm1, xmm1
mulsd xmm0, xmm0
addsd xmm1, xmm0
comisd xmm1, xmm2
ja 0x4ab298
push dword [esp + 0x48]
mov eax, dword [esp + 0x3c]
lea esi, [esp + 0x2e4]
add eax, esi
push eax
lea eax, [esp + 0xc8]
push eax
call fcn.004da885
movsd xmm2, qword [esp + 0x3c]
lea edi, [esp + 0x7c]
mov esi, eax
xorps xmm3, xmm3
add esp, 0xc
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd xmm0, qword [esp + 0x70]
movsd qword [esp + 0x58], xmm0
mulsd xmm0, xmm2
comisd xmm3, xmm0
ja 0x4ab29b
movsd xmm1, qword [esp + 0x78]
movsd xmm0, qword [esp + 0x50]
movsd qword [esp + 0x68], xmm1
mulsd xmm1, xmm0
comisd xmm3, xmm1
ja 0x4ab29b
mulsd xmm0, xmm0
mulsd xmm2, xmm2
addsd xmm0, xmm2
call fcn.0052e390
movsd xmm1, qword [esp + 0x58]
movsd qword [esp + 0x30], xmm0
movsd xmm0, qword [esp + 0x68]
mulsd xmm0, xmm0
mulsd xmm1, xmm1
addsd xmm0, xmm1
call fcn.0052e390
movsd xmm2, qword [esp + 0x30]
comisd xmm2, xmm0
seta al
cmp byte [esp + 0x20], 0
mov byte [esp + 0x27], al
je 0x4ab147
cmp byte [esp + 0x21], 0
je 0x4ab147
test al, al
jne 0x4ab2c1
mov ecx, dword [esp + 0x14]
subsd xmm2, xmm0
movss xmm0, dword [0x59471c]
xorps xmm3, xmm3
mov esi, dword [esp + 0x18]
test ecx, ecx
mov eax, dword [esp + 0x44]
mov edx, esi
cmovne eax, dword [esp + 0x4c]
cmovne edx, dword [esp + 0x1c]
andpd xmm2, xmmword [0x555b20]
cvtps2pd xmm5, xmm0
xorps xmm0, xmmword [0x555c40]
movsd qword [esp + 0x50], xmm5
movapd xmm6, xmm5
movsd qword [esp + 0x30], xmm6
cvtss2sd xmm3, xmm0
movsd qword [esp + 0x38], xmm3
movapd xmm4, xmm3
movsd qword [esp + 0x58], xmm4
test eax, eax
js 0x4ab216
lea edi, [eax + 1]
movsd xmm1, qword [edx]
lea ecx, [edx + 8]
movsd xmm0, qword [ecx]
lea eax, [esp + 0x30]
comisd xmm1, xmm6
cmovbe eax, edx
comisd xmm0, xmm5
movsd xmm6, qword [eax]
lea eax, [esp + 0x50]
movsd qword [esp + 0x30], xmm6
cmovbe eax, ecx
comisd xmm4, xmm1
movsd xmm5, qword [eax]
lea eax, [esp + 0x58]
movsd qword [esp + 0x50], xmm5
cmovbe eax, edx
comisd xmm3, xmm0
movsd xmm4, qword [eax]
lea eax, [esp + 0x38]
movsd qword [esp + 0x58], xmm4
cmovbe eax, ecx
add edx, 0x10
movsd xmm3, qword [eax]
movsd qword [esp + 0x38], xmm3
dec edi
jne 0x4ab1ad
mov ecx, dword [esp + 0x14]
subsd xmm3, xmm5
subsd xmm4, xmm6
lea edx, [esp + 0x30]
lea eax, [esp + 0x68]
movsd qword [esp + 0x30], xmm3
comisd xmm4, xmm3
movsd qword [esp + 0x68], xmm4
xorps xmm3, xmm3
cmovbe eax, edx
mov dl, byte [esp + 0xf]
divsd xmm2, qword [eax]
comisd xmm2, xmmword [0x5981e8]
jbe 0x4ab28c
xor dl, 1
mov byte [esp + 0xf], dl
je 0x4ab28c
mov al, byte [esp + 0x27]
lea esi, [esp + 0x80]
movsd xmm0, qword [esp + ecx*8 + 0x90]
lea edi, [esp + 0xa0]
movsd dword es:[edi], dword [esi]
mov byte [esp + 0x64], al
movsd qword [esp + 0x28], xmm0
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov esi, dword [esp + 0x18]
mov edi, ecx
mov dword [esp + 0x10], edi
jmp 0x4ab2b1
movsd xmm0, qword [esp + 0x28]
mov edi, dword [esp + 0x10]
jmp 0x4ab2b1
xorps xmm3, xmm3
mov edi, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov esi, dword [esp + 0x18]
movsd xmm0, qword [esp + 0x28]
mov dl, byte [esp + 0xf]
inc ecx
mov dword [esp + 0x14], ecx
cmp ecx, 2
jl 0x4aaf36
jmp 0x4ab2ec
lea esi, [esp + 0x80]
mov byte [esp + 0x64], al
mov eax, dword [esp + 0x14]
lea edi, [esp + 0xa0]
movsd dword es:[edi], dword [esi]
mov dl, 1
movsd xmm0, qword [esp + eax*8 + 0x90]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov edi, eax
mov dword [esp + 0x10], edi
test dl, dl
je 0x4ab3e4
mov eax, dword [esp + 0x18]
test edi, edi
mov ecx, dword [esp + 0x1c]
mov edx, eax
cmovne edx, ecx
mov dword [esp + 0x58], edx
je 0x4ab30e
mov edx, dword [ecx + 0x60]
jmp 0x4ab311
mov edx, dword [eax + 0x60]
mov dword [esp + 0x38], edx
test edi, edi
je 0x4ab321
mov esi, dword [ecx + 0x90]
jmp 0x4ab327
mov esi, dword [eax + 0x90]
mov eax, dword [edx + 0x14]
mov edx, dword [edx + 0x28]
mov ecx, edx
shl esi, 6
sar ecx, 2
push ecx
push ecx
subsd xmm0, qword [esi + eax + 8]
sub edx, ecx
mulsd xmm0, qword [0x5ca5c8]
addsd xmm0, qword [esi + eax + 8]
mov eax, dword [esp + 0x40]
movsd qword [esp], xmm0
push dword [eax]
lea eax, [esp + 0xcc]
push eax
call dword [edx*4 + 0x5980c8]
push dword [esp + 0x68]
mov esi, eax
lea edi, [esp + 0x114]
lea eax, [esp + 0x114]
push eax
lea eax, [esp + 0xe8]
movsd dword es:[edi], dword [esi]
push eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.004da885
mov esi, eax
lea edi, [esp + 0x8c]
add esp, 0x1c
lea eax, [esp + 0xa0]
lea ecx, [esp + 0x70]
movsd dword es:[edi], dword [esi]
push eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.004aa93e
fstp qword [esp + 0x68]
movsd xmm1, qword [esp + 0x68]
xorps xmm0, xmm0
ucomisd xmm1, xmm0
lahf
test ah, 0x44
jnp 0x4ab3e4
xor eax, eax
comisd xmm0, xmm1
seta al
xor ecx, ecx
cmp dword [esp + 0x10], ecx
sete cl
xor eax, ecx
mov ecx, dword [esp + 0x64]
movzx ecx, cl
xor eax, ecx
jmp 0x4ab3f1
push dword [esp + 0x1c]
mov ecx, dword [esp + 0x1c]
call fcn.004aa373
mov ecx, dword [esp + 0x314]
pop edi
pop esi
xor ecx, esp
call fcn.00527f3e
mov esp, ebp
pop ebp
ret 4