I've just finished the first chapter and it seems this is quite good book.
The emphasis is more on psychological problems, than sex perversions. The etymology of the word "psychopathology" is considered: when the soul (or psyche) has some problems, it could decide to suffer, thus paying for recovery.
Of course, Greek gods (Dionysus, Aphrodite, Priapus) are used as symbols.
But the main role for spoiling collective subconscious belongs to Christianity. Those concepts of sin, suffering, sacrifice are so common now, that even if we consciously discard them, they just live in our heads.
And then, masochism is a strong player against an ego, thus being defensive mechanism for psychics.
Ego must(or thinks that must) dominate, while the main idea of masochism is total denial of control.