As much as I do agree with the other posts, it is a fact that common methods do not work with this piece, since the passages you got problems with are no scales but rather some harmonically changing, but technically constant motifs.
I'd suggest working strongly with different hand positions here. It is impossible connect the different beats by a legato, so you should practice every single group that makes one beat alone, then learn how to move your hand to the next appropriate position; it's obvious that you have to find a comfortable fingering for every motif (or group of 4 1/32 notes).
I know that this might sound a little odd, but it is a easier way than trying to learn the complete legato. Once you got these single groups and the necessary quick hand movement to the next position, you may bind them using the pedal, which won't be a problem since you do the pedaling in accordance to the left hand.
I don't know if it helps you, but give it a try. I learned this passages that way and struggled a little at first, but once you figured them out it starts looking like a piece of cake.
