The most comprehensive treatment of this question can be found in Kurt Rudolph, Gnosis: The Nature and History of an Ancient Religion(Edinburgh: Clark, 1983), see especially pp. 275–294.