I would like to know: Is there a system call, library, kernel module or command line tool I can use to store the complete state of a running program on the disk?
A core dump is basically this, so yes, it must be possible to get.
What you really want is a way to restore that dump as a running program. That might be more difficult.