What is the main point of JOB? He was "perfect, upright, and one that feared GOD."
Satan was responsible for Job's problems. His objective, was to make JOB curse GOD.
The visitors that claimed to be friends[not], called him a hypocrite, self righteous, and said GOD was responsible for the trouble.
Job wasted too much time dwelling on his situation, with those that didn't have a clue.
The LORD ask JOB[JOB38:2] who are these idiots[my interpretation]? "Gird up now thy loins like a man." GOD required Job to forgive[3 Dr. Phil's], and restored what Satan had destroyed.