Local behavior of planar analytic vector fields via integrability