How to model complex curved surface

I’m having a hard time creating a molding to follow the shape of the drawer front.

The drawer shape has a serpentine shape and I need to get the molding to follow that. I’ve tried drawing the profiles and sweep 2 rails—that gives me a distorted shape.

Any help?

Post a file is the best way to get help.