A lot like crime and punishment.
While watching this movie the similarities of the plot with that book are really notorious. You have your crime motiff, here being robbery instead of murder, your mind gaming police officer, your superman theories about crime being forgivable to some special individuals.
The way the detective tricks him to meet him in the police station while he gets his room searched and then Michel's calling him out on it in his fit of rage is just straight off the book. He's growing paranoia and projection of fears unto other are also common themes. The pure religious romantic interest girl with family problems that forgives all his sins regardless of his crimes as Sonia. It even seems some parts of dialogue are taken verbatim. Even the endings are very similar. It's a huge influence on this movie I think.