I'm pretty sure you can create a partition(let's say partition D

, move all the stuff you want to keep to that partition(D

merge and format the other partitions(A: B: C

. Install windows on the newly merged partition(let's say C

then copy the files from D: back to C: and then delete/merge D: into C:.
I hope this helps, and makes sense
