My 2 cents about why women are underrepresented in software industry is that not too many of them are interested in the beginning.
One big drive of male programmers, according to my observation (hundreds of samples), are video games, myself included. It is stereotyping, but it is statistically significant. Gamers are overwhelmingly MALE. That is the a big reason that I got to know different parts of computer hardwares, collecting parts from markets and assemble them, and eventually being thrown into this industry. As to girls, they may not have same level of motivation as the boys had. It was in the days, when computer programming was still kind of niche profession and by no means had that much of influence as it cast on the society today, so self-motivation is important.
Fundamentally, if we want to really solve the gender issue in this industry, it is not the duty of those established software companies to force reverse sexism to artificially inflate the gender ratio, it is the early stage education system to introduce programming to wider range of people. Once it becomes universal parts of people's curriculum, the problem will be there no longer.
Disclaimer: Male, Asian, not born in US, but works here.