Asymptotic behavior of the generalized St. Petersburg sum conditioned on its maximum