It shouldn't be overly complicated.
Back when I was dirt poor, my hobby was picking up old .22 rifles and shotguns that people were selling as "not working".
Find an exploded view of the rifle, examine it carefully, and you should be able to work out where that pin and spring belong. Not even looking at it, my guess is either the extractor or ejector (probably the latter).
Jon