Bremelanotide functions by binding to melanocortin receptors in the brain, which are involved in regulating sexual function. This binding stimulates the release of dopamine, a neurotransmitter associated with pleasure and reward, thereby enhancing sexual desire and reducing distress related to low libido.