All are functions of latissimus dorsi on shoulder, except :
Latissimus dorsi originates from T7 to T12 spines, thoracolumbar fascia, outer lip of iliac crest, lower 4 ribs and inferior angle of scapula to insert into the floor of bicipital groove. It is innervated by thoracodorsal nerve.
It is used as musculocutaneous flap to fill areas of tissue loss.
Action :

Adduction, extension and medial rotation of shoulder.
External rotation of shoulder
Extension
Adduction
Medial rotation