Obturator internus

Its primary function is to help move the thigh away from the center of the body by rotating it in a sideways direction. When the thigh is flexed, it assists other muscles in moving the thigh outward, away from the midline of the body. It also helps to stabilize the hip joint.