just to be sure, afaik not "EVERYTHING"
just data never wipe system or presist ! - but iam not an expert.
got it from the stable post:
ROMs for devices with locked bootloader:
Unlock your first bootloader here http://en.miui.com/unlock/
Install TWRP via Fastboot mode, then install our ROM...