The muscle runs down the lateral side of your lower leg and attaches to your foot ... will cover the anatomy and function of the peroneus longus, as well as what can cause pain in the leg muscle.