Two books which IMHO provide a very adequate psycho-social explanation for Smith’s composition of the Book of Mormon are the following:
Joseph Smith’s Response to Skepticism, Robert N. Hullinger, Signature Books, 1992
Religious Seekers and the Advent of Mormonism, Dan Vogel, Signature Books, 1989.
Hullinger’s premise is that Smith was at least partly motivated to write the Book of Mormon out of concern for the rise of Deism and skepticism in early America. Vogel suggests that in addition, Smith grew up in a culture heavily saturated by restorationist ideas, where many Americans felt that the only hope for the Christian faith was either a return to the primitive church of the apostle’s time–which was the impetus for the "Christian Connection’ and the Campbellite movement–or else a miraculous act of God to restore the Christian faith in it’s purity. Smith, asserts Vogel, bought into and provided the second solution.
I’m sorry but the starting premises of the Book of Mormon, it’s written style, and the subject matter it focuses on speak far too clearly of a 19th-century origin by someone who was perhaps imaginative but none too educated nor sophisticated. Pretty much Joseph Smith to a ‘tee’. I don’t think Satan or his fellow-demonic spirits had much direct influence on the Book of Mormon vis’a’vis ‘authomatic writing’ or some other supernatural intervention–I rather expect they could have written better. That Mormonism is a false teaching and thereby fulfills Satan’s desire to misdirect as many as possible from true doctrine I don’t deny. But the Book of Mormon shows far too many ear-marks of a merely-human work to be a direct product of the Father of Lies.