It depends on the debt situation. Bondholders and creditors are
in line before shareholders. In general, there usually isn't
anything left over for shareholders. The PCG banktruptcy was
one of the relatively rare exceptions.
I stay away from BK companies or companies that look like they're
headed in that direction. Sure, you may make money on a short
squeeze if your timing is really good but the vast majority of
these companies go to zero.
Even if they have a lot of cash or assets, you get the vulture
lawyers that come in to restructure and charge $500 an hour for
services and continue to bleed what's left of the company.