The sending or receiving FFL (whom ever puts the firearm on their books) will run the serial number of the firearm. If it pops up in a stolen database then big issues. If sent from an FFL it will stop when the seller drops it off. If to the receiving FFL, they will call the police and the firearm will be confiscated.