Any electrical guru's know off hand what these are for?

In the picture, there are unconnected connections, cut wires, and a pretty hacked up pigtail. Just wondering what each of those wires is for.