White's plan is to contain black's Q-side pawns by forcing the a pawn to a4, with the rook *behind* the pawns to prevent the b4 push. If black's king comes over, white goes after the K-side pawns. If black's K stays on the K-side, white will sac. the rook for the Bishop + Q-side pawns, and the outside passer on the a file should be enough to win.
39... a5 40. Rc7a7 a4 41. Kh1g1 Kg8g7 42. Ra7b7
First part of the plan is complete.
42... Be6c4
This move is forced, and is the reason white's plan has a chance of succeeding. White will march his K to c3, and if black's king stays away, white will play Rxc4 and clean up the black Q-side pawns.