All is well that ends well.
Your opponent missed 3 checkmates 33...Kg7!, 35... and 36...Nd4! and he could have stopped your pawns with 40...Nc5!.
You had a winning position before. 21 h3! or 24 hxg4!.
Not sure 'game analysis' is just posting your game with no explanation.
Show us your game and let the community analyse it