An x-ray study of the femur should be ordered for the 14-year-old boy with a bony deformity in the thigh. This is crucial for assessing any abnormalities in the femur. It is the only bone in the thigh area and will provide insight into the deformity's cause.