Pseudorandomness Against Depth-2 Circuits And Analysis Of Goldreich'S Candidate One-Way Function