A model for the simulation of the profiling process of a scanning force microscope tip scanning a sample surface is introduced. Starting from the equations of motion, complete lateral force microscopy images as well as individual scan lines can be calculated. The model is applied to the constant-force mode of a lateral force microscope using a model potential for the tip-sample interaction which has the translational symmetry of a MoS2(001) surface. Comparison with recent experimental data shows good agreement. Subsequent analysis of the tip movement demonstrates the characteristic two-dimensional stick-slip behavior of the tip. In addition, the influence of the scan speed on the measured lateral forces is discussed.