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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0xc4
movss xmm1, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 8]
movaps xmm0, xmm1
mulss xmm0, xmm1
movss dword [esp + 0x54], xmm0
movss xmm0, dword [esi]
subss xmm0, dword [eax]
movss dword [esp + 0xc], xmm0
movss xmm0, dword [esi + 4]
subss xmm0, dword [eax + 4]
movss dword [esp + 0x10], xmm0
movss xmm0, dword [esi + 8]
subss xmm0, dword [eax + 8]
mov esi, dword [esp + 0xc]
divss xmm1, dword [ebp + 0x14]
movss dword [esp + 0x14], xmm0
movss xmm0, dword [edx]
subss xmm0, dword [eax]
mov ebx, dword [esp + 0x18]
movss dword [esp + 0xc], xmm0
movss xmm0, dword [edx + 4]
subss xmm0, dword [eax + 4]
push edi
mov edi, dword [esp + 0x14]
movss dword [esp + 0x14], xmm0
movss xmm0, dword [edx + 8]
subss xmm0, dword [eax + 8]
mov edx, dword [esp + 0x10]
mov dword [esp + 0x64], edi
mov edi, dword [esp + 0x18]
movss xmm2, dword [esp + 0x64]
movss dword [esp + 0x18], xmm0
movss xmm0, dword [ecx]
subss xmm0, dword [eax]
movss dword [esp + 0x10], xmm0
movss xmm0, dword [ecx + 4]
subss xmm0, dword [eax + 4]
mov dword [esp + 0x70], edx
mov edx, dword [esp + 0x14]
mov dword [esp + 0x74], edx
mov edx, dword [esp + 0x18]
movss xmm5, dword [esp + 0x74]
movss dword [esp + 0x14], xmm0
movss xmm0, dword [ecx + 8]
subss xmm0, dword [eax + 8]
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
mov dword [esp + 0x78], edx
mov edx, dword [esp + 0x1c]
movss dword [esp + 0x18], xmm0
mov dword [esp + 0x84], ecx
movss xmm0, dword [esp + 0x84]
mulss xmm2, xmm1
mov dword [esp + 0x7c], edx
mov edx, dword [esp + 0x18]
mov dword [esp + 0x80], eax
mov eax, dword [esp + 0x1c]
movss xmm3, dword [esp + 0x80]
mulss xmm0, xmm1
movss dword [esp + 0x64], xmm2
mov ecx, dword [esp + 0x64]
mov dword [esp + 0x60], esi
movss xmm6, dword [esp + 0x60]
mulss xmm5, xmm1
movss dword [esp + 0x54], xmm1
mov dword [esp + 0x88], edx
movss xmm1, dword [esp + 0x88]
movss dword [esp + 0x84], xmm0
mov dword [esp + 0x68], edi
mov dword [esp + 0x6c], ebx
mov dword [esp + 0x8c], eax
movss dword [esp + 0x74], xmm5
mov dword [esp + 0x90], esi
mov dword [esp + 0x94], ecx
mov dword [esp + 0x98], edi
mov dword [esp + 0x9c], ebx
subss xmm3, xmm6
subss xmm0, xmm2
movss xmm7, dword [esp + 0x68]
movss xmm4, dword [esp + 0x70]
subss xmm5, xmm2
movss xmm2, dword [esp + 0x78]
subss xmm4, xmm6
subss xmm2, xmm7
subss xmm1, xmm7
movaps xmm7, xmm2
movaps xmm6, xmm5
mulss xmm7, xmm0
movss dword [esp + 0xa0], xmm2
mulss xmm6, xmm1
subss xmm6, xmm7
mulss xmm2, xmm3
mulss xmm1, xmm4
movss dword [esp + 0xc], xmm5
movss dword [esp + 0x10], xmm6
mov edx, dword [esp + 0x10]
subss xmm2, xmm1
movss dword [esp + 0x14], xmm2
mov eax, dword [esp + 0x14]
mulss xmm0, xmm4
mulss xmm5, xmm3
subss xmm0, xmm5
movss dword [esp + 0x18], xmm0
mov ecx, dword [esp + 0x18]
mov dword [esp + 0xb0], edx
mov edx, dword [esp + 0x1c]
mov dword [esp + 0xb4], eax
lea eax, [esp + 0xb0]
mov dword [esp + 0xb8], ecx
mov dword [esp + 0xbc], edx
call fcn.00417b40
movss xmm4, dword [esp + 0xb0]
movss xmm1, dword [esp + 0xb8]
movss xmm7, dword [esp + 0x60]
movss xmm2, dword [esp + 0xb4]
movaps xmm3, xmm4
mulss xmm3, xmm7
movaps xmm0, xmm1
mulss xmm0, dword [esp + 0x68]
addss xmm3, xmm0
movaps xmm0, xmm2
mulss xmm0, dword [esp + 0x64]
addss xmm3, xmm0
xorps xmm0, xmm0
movaps xmm6, xmm0
subss xmm6, xmm3
comiss xmm6, dword [ebp + 0x10]
movss dword [esp + 0x5c], xmm6
jae 0x51d07f
comiss xmm0, xmm6
ja 0x51d07f
movaps xmm3, xmm0
subss xmm3, xmm4
mulss xmm3, xmm6
movss dword [esp + 0x10], xmm3
movss xmm3, dword [esp + 0x70]
subss xmm3, xmm7
movss dword [esp + 0x20], xmm3
movss xmm3, dword [esp + 0xa0]
movss dword [esp + 0x28], xmm3
mulss xmm3, xmm2
movaps xmm5, xmm0
subss xmm5, xmm2
mulss xmm5, xmm6
movss dword [esp + 0x14], xmm5
movaps xmm5, xmm0
subss xmm5, xmm1
mulss xmm5, xmm6
movss xmm6, dword [esp + 0xc]
movaps xmm7, xmm6
mulss xmm7, xmm1
subss xmm3, xmm7
movss xmm7, dword [esp + 0x28]
movss dword [esp + 0x40], xmm3
mulss xmm6, xmm4
movaps xmm3, xmm1
mulss xmm3, dword [esp + 0x20]
mulss xmm7, xmm4
subss xmm3, xmm7
movss dword [esp + 0x44], xmm3
movaps xmm3, xmm2
mulss xmm3, dword [esp + 0x20]
subss xmm6, xmm3
movss xmm3, dword [esp + 0x10]
subss xmm3, dword [esp + 0x60]
mulss xmm3, dword [esp + 0x40]
movss dword [esp + 0x48], xmm6
movss xmm6, dword [esp + 0x14]
subss xmm6, dword [esp + 0x64]
movss dword [esp + 0xb4], xmm6
movaps xmm6, xmm5
subss xmm6, dword [esp + 0x68]
mulss xmm6, dword [esp + 0x48]
addss xmm3, xmm6
movss xmm6, dword [esp + 0xb4]
mulss xmm6, dword [esp + 0x44]
addss xmm3, xmm6
comiss xmm3, xmm0
movss dword [esp + 0x3c], xmm0
jb 0x51cb32
mov eax, 1
jmp 0x51cb34
xor eax, eax
movss xmm3, dword [esp + 0x80]
subss xmm3, dword [esp + 0x70]
movss xmm6, dword [esp + 0x88]
subss xmm6, dword [esp + 0x78]
movss dword [esp + 0x28], xmm6
movss dword [esp + 0x20], xmm3
movss xmm3, dword [esp + 0x84]
subss xmm3, dword [esp + 0x74]
mulss xmm6, xmm2
movaps xmm7, xmm3
mulss xmm7, xmm1
subss xmm6, xmm7
movss xmm7, dword [esp + 0x28]
movss dword [esp + 0x40], xmm6
mulss xmm7, xmm4
movaps xmm6, xmm1
mulss xmm6, dword [esp + 0x20]
subss xmm6, xmm7
movss xmm7, dword [esp + 0x14]
subss xmm7, dword [esp + 0x74]
movss dword [esp + 0x44], xmm6
movss dword [esp + 0xb4], xmm7
mulss xmm3, xmm4
movaps xmm6, xmm2
mulss xmm6, dword [esp + 0x20]
subss xmm3, xmm6
movss xmm6, dword [esp + 0x10]
subss xmm6, dword [esp + 0x70]
mulss xmm6, dword [esp + 0x40]
movaps xmm7, xmm5
subss xmm7, dword [esp + 0x78]
mulss xmm7, xmm3
movss xmm3, dword [esp + 0xb4]
mulss xmm3, dword [esp + 0x44]
addss xmm6, xmm7
mov ecx, eax
addss xmm6, xmm3
comiss xmm6, xmm0
mov dword [esp + 0xa4], ecx
jb 0x51cc10
mov eax, 1
jmp 0x51cc12
xor eax, eax
movss xmm3, dword [esp + 0x90]
subss xmm3, dword [esp + 0x80]
movss xmm7, dword [esp + 0x98]
subss xmm7, dword [esp + 0x88]
movss dword [esp + 0x20], xmm3
movss xmm3, dword [esp + 0x94]
subss xmm3, dword [esp + 0x84]
movss dword [esp + 0x28], xmm7
mulss xmm7, xmm2
mulss xmm2, dword [esp + 0x20]
movaps xmm6, xmm3
mulss xmm6, xmm1
mulss xmm1, dword [esp + 0x20]
subss xmm7, xmm6
movss xmm6, dword [esp + 0x28]
mulss xmm6, xmm4
mulss xmm3, xmm4
movss xmm4, dword [esp + 0x14]
subss xmm4, dword [esp + 0x84]
subss xmm3, xmm2
movss xmm2, dword [esp + 0x10]
subss xmm2, dword [esp + 0x80]
subss xmm1, xmm6
movaps xmm6, xmm5
subss xmm6, dword [esp + 0x88]
mulss xmm2, xmm7
mulss xmm6, xmm3
addss xmm2, xmm6
mulss xmm4, xmm1
mov edx, eax
addss xmm2, xmm4
comiss xmm2, xmm0
mov dword [esp + 0xa8], edx
jb 0x51ccd8
mov eax, 1
jmp 0x51ccda
xor eax, eax
test ecx, ecx
mov dword [esp + 0xac], eax
je 0x51ce93
test edx, edx
je 0x51ce93
test eax, eax
je 0x51ce93
movss xmm6, dword [ebp + 0x10]
subss xmm6, dword [esp + 0x5c]
movaps xmm1, xmm0
subss xmm1, dword [esp + 0x10]
movss dword [esp + 0x40], xmm1
mov eax, dword [esp + 0x40]
movaps xmm1, xmm0
subss xmm1, dword [esp + 0x14]
movss dword [esp + 0x44], xmm1
mov ecx, dword [esp + 0x44]
movaps xmm1, xmm0
ucomiss xmm6, xmm0
subss xmm1, xmm5
mov dword [esp + 0x20], eax
movss dword [esp + 0x48], xmm1
mov edx, dword [esp + 0x48]
lahf
test ah, 0x44
mov dword [esp + 0x28], edx
mov edx, dword [esp + 0x4c]
movss dword [esp + 0x3c], xmm6
mov dword [esp + 0x24], ecx
jnp 0x51ce9d
movss xmm1, dword [esp + 0x28]
movss xmm2, dword [esp + 0x24]
movaps xmm3, xmm1
mulss xmm3, xmm1
movaps xmm0, xmm2
mulss xmm0, xmm2
addss xmm3, xmm0
movss xmm0, dword [esp + 0x20]
movaps xmm4, xmm0
mulss xmm4, xmm0
addss xmm3, xmm4
comiss xmm3, dword [0x738d48]
movss dword [esp + 0x58], xmm3
jbe 0x51cdda
fld dword [esp + 0x58]
fsqrt
fdivr dword [0x7389bc]
fld dword [esp + 0x20]
fmul st(1)
fstp dword [esp + 0x20]
movss xmm0, dword [esp + 0x20]
fld dword [esp + 0x24]
fmul st(1)
fstp dword [esp + 0x24]
movss xmm2, dword [esp + 0x24]
fld dword [esp + 0x28]
fmul st(1)
fstp dword [esp + 0x28]
movss xmm1, dword [esp + 0x28]
fstp st(0)
mulss xmm2, xmm6
divss xmm2, dword [esp + 0x54]
movss dword [esp + 0xc], xmm2
fld dword [esp + 0xc]
mulss xmm1, xmm6
fmul dword [esp + 0xc]
movss dword [esp + 0x3c], xmm1
fld dword [esp + 0x3c]
mulss xmm0, xmm6
fmul dword [esp + 0x3c]
movaps xmm5, xmm0
movss dword [esp + 0x20], xmm5
movss xmm0, dword [0x7389bc]
faddp st(1)
mov eax, dword [ebp + 0x18]
fld dword [esp + 0x20]
fmul dword [esp + 0x20]
faddp st(1)
fsqrt
fstp dword [esp + 0x54]
movss xmm3, dword [esp + 0x54]
divss xmm0, xmm3
addss xmm3, dword [0x738a10]
movaps xmm4, xmm0
mulss xmm2, xmm0
mulss xmm1, xmm0
mulss xmm4, xmm5
movaps xmm0, xmm3
mulss xmm0, xmm4
movss dword [esp + 0x20], xmm0
mov ecx, dword [esp + 0x20]
mov dword [eax], ecx
mulss xmm2, xmm3
movss dword [esp + 0x24], xmm2
mov ecx, dword [esp + 0x24]
mov dword [eax + 4], ecx
mulss xmm1, xmm3
movss dword [esp + 0x28], xmm1
mov ecx, dword [esp + 0x28]
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [esp + 0x2c]
movss xmm6, dword [esp + 0x3c]
mov esi, dword [esp + 0x4c]
xor ecx, ecx
lea eax, [esp + 0x64]
jmp 0x51ceb0
mov edi, dword [esp + ecx*4 + 0xa4]
test edi, edi
jne 0x51d065
movss xmm2, dword [eax + 0xc]
movss xmm4, dword [eax + 0x14]
subss xmm2, dword [eax - 4]
subss xmm4, dword [eax + 4]
movss xmm3, dword [eax + 0x10]
subss xmm3, dword [eax]
movaps xmm1, xmm0
subss xmm1, dword [eax]
movss dword [esp + 0x14], xmm1
movaps xmm5, xmm0
subss xmm5, dword [eax - 4]
movaps xmm6, xmm0
subss xmm6, dword [eax + 4]
movaps xmm1, xmm2
mulss xmm1, xmm5
movaps xmm7, xmm4
mulss xmm7, xmm6
addss xmm1, xmm7
movss dword [esp + 0x18], xmm6
movss xmm6, dword [esp + 0x14]
movaps xmm7, xmm3
mulss xmm7, xmm6
addss xmm1, xmm7
comiss xmm1, xmm0
jbe 0x51cfac
movaps xmm6, xmm2
mulss xmm6, xmm2
movss dword [esp + 0xc], xmm6
movss xmm7, dword [esp + 0xc]
movaps xmm6, xmm3
mulss xmm6, xmm3
addss xmm7, xmm6
movss dword [esp + 0xc], xmm7
movaps xmm6, xmm4
movaps xmm7, xmm6
mulss xmm7, xmm6
movss xmm6, dword [esp + 0xc]
addss xmm6, xmm7
comiss xmm1, xmm6
jb 0x51cf82
movss xmm6, dword [esp + 0x14]
movss xmm1, dword [esp + 0x18]
subss xmm5, xmm2
subss xmm6, xmm3
subss xmm1, xmm4
jmp 0x51cfb2
divss xmm1, xmm6
movss xmm6, dword [esp + 0x14]
mulss xmm2, xmm1
mulss xmm3, xmm1
mulss xmm4, xmm1
movss xmm1, dword [esp + 0x18]
subss xmm5, xmm2
subss xmm6, xmm3
subss xmm1, xmm4
jmp 0x51cfb2
movss xmm1, dword [esp + 0x18]
movaps xmm2, xmm0
subss xmm2, xmm5
movaps xmm3, xmm0
subss xmm3, xmm6
movaps xmm4, xmm0
subss xmm4, xmm1
movaps xmm1, xmm2
mulss xmm1, xmm2
movaps xmm5, xmm3
mulss xmm5, xmm3
addss xmm1, xmm5
movaps xmm5, xmm4
mulss xmm5, xmm4
addss xmm1, xmm5
movss xmm5, dword [esp + 0x58]
comiss xmm5, xmm1
movss dword [esp + 0x5c], xmm1
jbe 0x51d05f
fld dword [esp + 0x5c]
fsqrt
fsubr dword [ebp + 0x10]
fstp dword [esp + 0xc]
fld dword [esp + 0x3c]
fld dword [esp + 0xc]
fcompi st(1)
fstp st(0)
jbe 0x51d05f
movss xmm6, dword [esp + 0xc]
movaps xmm1, xmm0
subss xmm1, xmm2
movss dword [esp + 0x40], xmm1
mov edx, dword [esp + 0x40]
movaps xmm1, xmm0
subss xmm1, xmm3
movss dword [esp + 0x44], xmm1
mov dword [esp + 0x20], edx
mov edx, dword [esp + 0x44]
movaps xmm1, xmm0
subss xmm1, xmm4
mov dword [esp + 0x24], edx
movss dword [esp + 0x48], xmm1
mov edx, dword [esp + 0x48]
mov dword [esp + 0x28], edx
movss dword [esp + 0x3c], xmm6
mov edx, esi
jmp 0x51d065
movss xmm6, dword [esp + 0x3c]
inc ecx
add eax, 0x10
cmp ecx, 3
jl 0x51ceb0
ucomiss xmm6, xmm0
lahf
test ah, 0x44
jp 0x51cd5e
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret