Thanks everyone for the help, yes its turns out to a voltage regulator! Was able to confirm this on a working board - Pin1 = Ground, Pin2= Input(12V), Pin3 = Output(5V).
Nice tip with the two capacitor close.
and @amyk - Wow thanks so much for the new resourceful site. I didn't know that it existed definitely bookmarking it!