Trying to poach the harmony for my own composition practice.

I'm having particular issue after the modulation into Emaj. i'm not sure if it can be considered constant structure or not .

The tonic movement of the chords in the B section look as if its modal to C minor but the fact that they're all major triads and have a D in the bass throws me off.

Just curious if anyone has any ideas.