What a cork remembers about a smooth four-manifold