Complex sentence: Stewie spots his past self purchasing the gift that he bought just prior to Brian's death, and realizes he can use the past Stewie's time return pad to save Brian.
Split into simpler sentences: Stewie spots his past self purchasing the gift that he bought just prior to Brian's death. Stewie realizes he can use the past Stewie's time return pad to save Brian.