What does this function do exactly? How does it encode the byte array to IV?

Given an encrypted string as a result of "DecryptStringENC()" that was 32 bytes long and had a 16 byte IV how would I re-generate the IV I got from the "RandomizeIV()" function considering the following settings.