Doppleganger from the 70’s (there is another movie named Doppleganger, that is not Sci-fi) still is one of the most complex movies I have seen.
Journey To The Far Side Of The Sun?