Function at 0x489600
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5595e4
mov eax, dword fs:[0]
push eax
sub esp, 0x68
push ebx
push esi
push edi
mov eax, dword [0x58829c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 1
movss xmm0, dword [ebp + 0xc]
movss dword [ecx + 0x9c], xmm0
movss xmm0, dword [ebp + 0x10]
movss dword [ecx + 0xa0], xmm0
movss xmm0, dword [ebp + 0x18]
movss dword [ecx + 0xa8], xmm0
movss xmm0, dword [ebp + 0x1c]
push 0x7c
movss dword [ecx + 0xac], xmm0
call dword [sym.imp.msvcr120.dll_void____cdecl_operator_new_unsigned_int_]
add esp, 4
mov dword [ebp - 0x20], eax
mov byte [ebp - 4], 2
test eax, eax
je 0x489684
mov ecx, eax
call fcn.004727f0
mov ebx, eax
jmp 0x489686
xor ebx, ebx
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp + 0x14]
call fcn.00457080
movss xmm2, dword [ebp - 0x34]
movss xmm3, dword [ebp - 0x30]
movaps xmm1, xmm2
movaps xmm0, xmm3
mulss xmm1, xmm2
mulss xmm0, xmm3
movss dword [ebp - 0x10], xmm2
movss dword [ebp - 0x14], xmm3
addss xmm1, xmm0
xorps xmm0, xmm0
movss dword [ebp - 0x18], xmm0
sqrtss xmm1, xmm1
ucomiss xmm1, xmm0
lahf
test ah, 0x44
jnp 0x4896fe
movss xmm0, dword [0x577570]
divss xmm0, xmm1
movss dword [ebp - 0x18], xmm1
mulss xmm2, xmm0
mulss xmm3, xmm0
movss dword [ebp - 0x10], xmm2
movss dword [ebp - 0x34], xmm2
movss dword [ebp - 0x14], xmm3
movss dword [ebp - 0x30], xmm3
movss xmm2, dword [0x577790]
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebp - 0x38]
call fcn.00457050
push eax
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp + 8]
call fcn.00457080
movss xmm0, dword [eax + 4]
movss xmm1, dword [eax + 8]
mov dword [ebp - 0x44], vtable.phVector2d.0
movss dword [ebp - 0x1c], xmm0
movss dword [ebp - 0x40], xmm0
movss dword [ebp - 0x20], xmm1
movss dword [ebp - 0x3c], xmm1
mov byte [ebp - 4], 6
mov eax, dword [ebx + 0x2c]
cmp dword [ebx + 0x28], eax
jne 0x489766
add eax, 0xa
lea ecx, [ebx + 0x10]
push eax
call fcn.00466310
movss xmm0, dword [ebp - 0x1c]
movss xmm1, dword [ebp - 0x20]
mov eax, dword [ebx + 0x28]
mov dword [ebp - 0x44], vtable.phVector2d.0
lea ecx, [eax + eax*2]
mov eax, dword [ebx + 0x30]
movss dword [eax + ecx*4 + 4], xmm0
movss dword [eax + ecx*4 + 8], xmm1
inc dword [ebx + 0x28]
movss xmm0, dword [ebp + 0xc]
movss xmm1, dword [ebp + 0x10]
movss dword [ebp - 0x20], xmm0
movss dword [ebp - 0x40], xmm0
movss dword [ebp - 0x1c], xmm1
movss dword [ebp - 0x3c], xmm1
mov byte [ebp - 4], 7
mov eax, dword [ebx + 0x2c]
cmp dword [ebx + 0x28], eax
jne 0x4897c5
add eax, 0xa
lea ecx, [ebx + 0x10]
push eax
call fcn.00466310
movss xmm0, dword [ebp - 0x20]
movss xmm1, dword [ebp - 0x1c]
mov eax, dword [ebx + 0x28]
mov dword [ebp - 0x2c], vtable.phVector2d.0
lea ecx, [eax + eax*2]
mov eax, dword [ebx + 0x30]
movss dword [eax + ecx*4 + 4], xmm0
movss xmm0, dword [ebp - 0x10]
movss dword [ebp - 0x28], xmm0
movss xmm0, dword [ebp - 0x14]
movss dword [eax + ecx*4 + 8], xmm1
inc dword [ebx + 0x28]
movss dword [ebp - 0x24], xmm0
mov byte [ebp - 4], 8
mov eax, dword [0x58d464]
push 9
push 0
mov eax, dword [eax + 0x154]
push eax
mov ecx, dword [eax]
call dword [ecx + 0xb4]
cmp eax, 5
jge 0x489854
movss xmm0, dword [0x5775a0]
call sub.msvcr120.dll___libm_sse2_cosf
movss dword [ebp - 0x20], xmm0
movss xmm0, dword [0x5775a0]
call sub.msvcr120.dll___libm_sse2_sinf
movss xmm4, dword [ebp - 0x10]
movss xmm5, dword [ebp - 0x14]
movaps xmm2, xmm4
mulss xmm2, dword [ebp - 0x20]
movaps xmm1, xmm5
mulss xmm5, dword [ebp - 0x20]
jmp 0x48988d
movss xmm0, dword [0x577c54]
call sub.msvcr120.dll___libm_sse2_cosf
movss dword [ebp - 0x20], xmm0
movss xmm0, dword [0x577c54]
call sub.msvcr120.dll___libm_sse2_sinf
movss xmm4, dword [ebp - 0x10]
movss xmm5, dword [ebp - 0x14]
movaps xmm2, xmm4
mulss xmm2, dword [ebp - 0x20]
movaps xmm1, xmm5
mulss xmm5, dword [ebp - 0x20]
mulss xmm4, xmm0
mov dword [ebp - 0x44], vtable.phVector2d.0
mulss xmm1, xmm0
addss xmm4, xmm5
subss xmm2, xmm1
movss dword [ebp - 0x24], xmm4
movss dword [ebp - 0x28], xmm2
mov byte [ebp - 4], 9
sub esp, 8
mov eax, dword [0x58d464]
movss xmm0, dword [ebp - 0x18]
movaps xmm1, xmm0
mulss xmm0, dword [0x5774b8]
mov ecx, dword [eax + 0x154]
mulss xmm1, dword [0x577508]
movss dword [ebp - 0x14], xmm0
mov eax, dword [ecx]
movss dword [esp + 4], xmm1
movss dword [esp], xmm0
push ecx
mov eax, dword [eax + 0xb8]
movss dword [ebp - 0x1c], xmm1
call eax
movss xmm2, dword [0x577754]
fstp dword [ebp - 0x20]
movss xmm0, dword [ebp - 0x20]
comiss xmm0, xmm2
jbe 0x489943
mov eax, dword [0x58d464]
sub esp, 8
movss xmm0, dword [ebp - 0x1c]
mov eax, dword [eax + 0x154]
movss dword [esp + 4], xmm0
movss xmm0, dword [ebp - 0x14]
movss dword [esp], xmm0
mov ecx, dword [eax]
push eax
mov eax, dword [ecx + 0xb8]
call eax
fstp dword [ebp - 0x20]
movss xmm2, dword [ebp - 0x20]
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebp - 0x2c]
call fcn.00457050
mov esi, eax
mov byte [ebp - 4], 0xa
sub esp, 8
mov ecx, dword [0x58d464]
movss xmm1, dword [ebp - 0x18]
movaps xmm0, xmm1
mulss xmm1, dword [0x5774e4]
mov ecx, dword [ecx + 0x154]
mulss xmm0, dword [0x57754c]
mov eax, dword [ecx]
movss dword [esp + 4], xmm0
movss dword [esp], xmm1
push ecx
mov eax, dword [eax + 0xb8]
call eax
lea eax, [ebp - 0x5c]
fstp dword [ebp - 0x20]
movss xmm2, dword [ebp - 0x20]
lea ecx, [ebp - 0x38]
push eax
call fcn.00457050
push eax
lea eax, [ebp - 0x68]
push eax
lea ecx, [ebp + 8]
call fcn.00441d60
push esi
lea ecx, [ebp - 0x74]
push ecx
mov ecx, eax
call fcn.00441d60
movss xmm1, dword [0x5777e0]
movss xmm0, dword [eax + 8]
comiss xmm1, xmm0
movss xmm2, dword [eax + 4]
movss dword [ebp - 0x20], xmm2
movss dword [ebp - 0x40], xmm2
movss dword [ebp - 0x18], xmm0
movss dword [ebp - 0x3c], xmm0
ja 0x4899f7
movss xmm1, dword [0x577b3c]
comiss xmm0, xmm1
jbe 0x489a04
movaps xmm0, xmm1
movss dword [ebp - 0x3c], xmm0
movss dword [ebp - 0x18], xmm0
mov dword [ebp - 0x50], vtable.phVector2d.0
movss dword [ebp - 0x4c], xmm2
movss dword [ebp - 0x48], xmm0
mov byte [ebp - 4], 0xb
mov eax, dword [ebx + 0x2c]
cmp dword [ebx + 0x28], eax
jne 0x489a37
add eax, 0xa
lea ecx, [ebx + 0x10]
push eax
call fcn.00466310
movss xmm0, dword [ebp - 0x18]
movss xmm2, dword [ebp - 0x20]
mov eax, dword [ebx + 0x28]
mov dword [ebp - 0x50], vtable.phVector2d.0
lea ecx, [eax + eax*2]
mov eax, dword [ebx + 0x30]
movss dword [eax + ecx*4 + 4], xmm2
movss dword [eax + ecx*4 + 8], xmm0
inc dword [ebx + 0x28]
movss xmm0, dword [ebp + 0x18]
movss xmm1, dword [ebp + 0x1c]
movss dword [ebp - 0x20], xmm0
movss dword [ebp - 0x4c], xmm0
movss dword [ebp - 0x1c], xmm1
movss dword [ebp - 0x48], xmm1
mov byte [ebp - 4], 0xc
mov eax, dword [ebx + 0x2c]
cmp dword [ebx + 0x28], eax
jne 0x489a96
add eax, 0xa
lea ecx, [ebx + 0x10]
push eax
call fcn.00466310
movss xmm0, dword [ebp - 0x20]
movss xmm1, dword [ebp - 0x1c]
mov eax, dword [ebx + 0x28]
movss xmm2, dword [0x577790]
lea ecx, [eax + eax*2]
mov eax, dword [ebx + 0x30]
movss dword [eax + ecx*4 + 4], xmm0
movss dword [eax + ecx*4 + 8], xmm1
lea eax, [ebp - 0x74]
inc dword [ebx + 0x28]
lea ecx, [ebp - 0x38]
push eax
call fcn.00457050
push eax
lea eax, [ebp - 0x68]
push eax
lea ecx, [ebp + 0x14]
call fcn.00441d60
movss xmm0, dword [eax + 4]
movss xmm1, dword [eax + 8]
mov dword [ebp - 0x50], vtable.phVector2d.0
movss dword [ebp - 0x20], xmm0
movss dword [ebp - 0x4c], xmm0
movss dword [ebp - 0x1c], xmm1
movss dword [ebp - 0x48], xmm1
mov byte [ebp - 4], 0xf
mov eax, dword [ebx + 0x2c]
cmp dword [ebx + 0x28], eax
jne 0x489b16
add eax, 0xa
lea ecx, [ebx + 0x10]
push eax
call fcn.00466310
movss xmm0, dword [ebp - 0x20]
movss xmm1, dword [ebp - 0x1c]
mov eax, dword [ebx + 0x28]
lea ecx, [eax + eax*2]
mov eax, dword [ebx + 0x30]
movss dword [eax + ecx*4 + 4], xmm0
movss dword [eax + ecx*4 + 8], xmm1
mov ecx, ebx
inc dword [ebx + 0x28]
mov byte [ebp - 4], 9
call fcn.00472a10
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18