Before buying a business, how do you go about with due diligence of its market and disruptive changes happening or about to happen in that space?

What softwares are easing this process for you? How much do you end up paying for them each year?