An asymptotic theory for nonlinear functional differential equations