In the paper, asymptotic solutions of the Cauchy problem with localized initial data for the two-dimensional wave equation (with variable speed) which is also perturbed by (spatially) variable weakly dispersive components are constructed. We consider both the case of normal dispersion occurring in the linearized Boussinesq equation for water waves over smoothly changing bottom and the case of anomalous dispersion arising when studying the wave equation with rapidly oscillating velocity. With regard to the fact that the front of the solution has focal points and self-intersection points, we present formulas based on the modified Maslov canonical operator in the case of initial perturbations of a rather general form which decrease at infinity. For perturbations of special form, we express the asymptotic behavior of a solution in the vicinity of the front, using derivatives of the sum of squares of the Airy functions Ai and Bi.