What's legal about registering guns? Many states don't you know. If you meant legally purchased guns, that is another matter. I'm sure the study has been done. Probably some info in Kleck or Lott's books.
The answer of course is that criminals don't buy their guns through legitimate channels, but even if they did, how does that justify restricting my rights as a non-criminal citizen?