Complex sentence: When Yamada recalls some of his memories, it is revealed that Nancy's real name is and that she was close friends with Sora Himekawa while also holding affections towards Yamada.
Split into simpler sentences: When Yamada recalls some of his memories, it is revealed that Nancy's real name is. She was close friends with Sora Himekawa and had also held affections towards Yamada.