is there an inverse function of the circle function (w --> Loop tools) to form a square form a circle?
You could use a Cast modiifer > Cuboid, Factor: 1, and apply it if you want to. It doesn't distribute vertices evenly between the corners, though... and still only plays fair with a nice number of vertices ..