IANAL but I think the tax issue would likely hinge on how well that $500k was isolated from the for-profit side. If the non-profit has no substantial operations and is just a shell for the for-profit, I could see getting in trouble for trying to deduct that as a donation. But if there's an audit trail showing that the money is staying on the non-profit side, it would likely be fine.