Likely the rattle from under your car is the piston rod bearings are ruined, maybe even the main crankshaft bearings. The smoke is from oil getting past the cylinder wall. If you don't mind rattles and noise, you may even be able to drive it for awhile until it fails completely. Other than that you need to replace the engine. Rebuilding could be done but the engine may be warped from the heat.