As Damian Evans suggests: What is the experience of prostitution in countries/states where it is legal?
If the practice is universally legal and regulated to some degree (health, working conditions, etc.) then many of the ills associated would not be relevant. The human trafficking, the drug addiction, the "pimp", STDs, "Johns" getting "rolled" for their money, etc, etc.
Utter poverty is not the only reason women enter prostitution. There is always an underclass of "street walkers" on the lower levels of the practice. However, there is always an upper-cadre of "high-priced call girls" and "consorts" who are at entirely the other end of the scale.
Then you can put the various "escort services" into whatever part of the mix you like, as well as the lucrative but generally no-intercourse-involved business of high-priced "dungeons" where the wealthy can indulge their dominant/submissive fantasies.
Lets face it, the "world's oldest profession" has indeed been with us for a long time. There are still extant fresco-painting advertisements for brothels on artifacts from the Roman world.
Here in Saint Louis, we had functioning brothels that were hardly underground into the 50s at least. Just as in the movies, "everyone" knew they were there, and since the clientele was usually well-heeled pillars of local politics and business, nothing was done.
It was generally understood that such establishments simply paid off local law enforcement, or had them for clients....
A friend of ours actually lived in one of these. From the ground, it was a simple apartment building with a rather spacious garage on the ground floor.
When you entered the garage. you found it was MUCH larger than it looked like from outside, and could accommodate 20-30 vehicles, all parked out of sight from passers-by.
A spiral staircase led from this garage to the upper story, which featured a huge full-service bar, at least a dozen small, intimate rooms (all rather garish with "flocked" wallpaper and all), several bathrooms, and one larger room for whatever entertainment had been laid on.
Establishments like this flourished in all major cities to my knowledge, and likely many smaller ones as well.
As to the motivation of men to visit prostitutes, that would require perhaps another thread; John Money had a lot to say on the subject, with our American dichotomy about "holy love" and "sinful lust"....