I have no idea what is taking your pinned tabs on my other system XP Pro SP3, Avast free 17.3.2291 and firefox 52.0.2-esr and my pinned tabs are all present and correct.
I actually prefer Yahoo.co.uk for my search function - I'm unaware of the spam that you talk of - I use CookieMonster, uOrigin and RequestPolicy add-ons
I used to always use google, but they to are data gatherers also - they also started messing with my search settings so I abandoned google search.