Oh I think Yamamoto knew they were in deep doo doo.
Personally, I think he KNEW it was unwinnable. I suspect he thought their only hope was that we just didn’t have the stomach for war after Pearl Harbor and would just let them mostly have their way in the far east.