I just watched a Forgotten Weapons video:
https://www.youtube.com/watch?v=piUBtQaN-Qc&t=2s
And when i lookeded around i found versions of the Beretta model 38 with an underfolding stock.
Most likely this gun is just that? Beretta 98 with an underfolder.