It depends a lot on what country and what circumstances the child lived in.
South korea, e.g., has totally separate systems for children
to be adopted internationally from those adopted within the country; you can guess where kids with poorer prospects go. Also, former soviet countries had notoriously poor orphanages with many damaged children. Agencies exist to help prospective parents screen.