Answer: The sartorius muscle
The sartorius is a narrow muscle located in the thigh area of your leg. You have two sartorius muscles - one in each leg. The muscle starts at the top of your thigh near the front outer edge of your pelvis (near what is called the iliac crest - the "bony" part of your pelvis that you can feel at or above your hips). The sartorius then runs along the upper front part of your thigh, towards the inside of your leg where it connects to a tendon just above the side of your knee. Here is an image from Wikipedia highlighting the sartorius.

The sartorius muscle is used for hip flexion (when you bring your knee up towards your chest/abdomen), hip external rotation (when you turn your whole leg so that your foot is pointing away from the centre of your body), hip abduction (when you stand on one leg, keep your other leg straight and move it up and out to your side) and knee flexion (when you bend your leg at the knee so that your heel moves up towards your buttocks).