Given most games are qualifiers and played against teams in the same region, I think it is only a true valid comparison to compare by region. I thought I would add this before the WC as I suspect a few retirements afterwards, active players in green. Lists for South America and Europe. Some general comments are there were big moves in terms of places for Messi and Neymar in SA and Ronaldo is edging ever closer to Puskas.
You miss peruvian Paolo Guerrero with 34 goals https://en.wikipedia.org/wiki/Peru_national_football_team_records_and_statistics
Good spot ! This is a refreshed list from 18 months or so ago and where he passed the 30 mark, will add.
Interesting podiums for midfield players: Europe - 1 - Bobby Charlton, 2 - Hristo Bonev, 3 - Michael Ballack South America (a bit more arguable in terms of defining AM or forward, and because each of these played as definite forwards a fairly significant amount for their NTs anyway too) - 1 - Zico, 2 - Rivaldo, 3 - Diego Maradona