You found that laying in the sand, and in that condition? Doesn't look like it's ever been in a
dry climate.
For something such as this, I wouldn't hesitate to contact a local firearms museum,
or find an expert on antique firearms in your area. FWIW, it looks to me like a Dueling Pistol.