the theory is simple; the execution is hard.
You basically want to be a bodybuilder, so train like a bodybuilder and eat like a bodybuilder.
General rules would be:
-1g of protein per lb of your bodyweight. Seeing as you're overweight though you don't need quite so much. 180-200g a day would be fine.
-Ditch the shit carbs. Rice and potatoes and nothing else. Seeing as you're trying to lose weight I'd keep carbs to 100g or less a day.
-Make up the rest of your daily calories from fat. Acceptable sources are animal fats, olives, coconut oil and avocado.
Those rules should get you started. There's always a bit of individual variation in how people respond to a diet so you need to reassess every now and then and change things. This is all part of it so keep track of things like your waist measurement. If your weight doesn't change (or even increases) but your waist is shrinking then it's all good. Try not to get too hung up on scale weight; it's just one metric by which you can measure progress, not the only one.
As for your routine, there will be chumps who will ignore your bodybuilding goal and recommend you do Starting Strength or some other such boring nonsense. Not for you, my boy. Train like a bodybuilder. That's 3-5 sets of 3-5 exercises per bodypart, hitting each bodypart once or twice a week. Split it up any way you like (a bodypart or two a day, perhaps; all your pushing muscles, etc.) but don't neglect your legs or your back.
And have fun! It's a lifelong pursuit so learning to enjoy the journey is important to keeping on track.