I am trying to reverse engineer a packet protocol and I was abled to find a subroutine which is likely to be an encryption function. I do not know much about cryptography but it looked like a CBC encryption. Here's the pseudocode I got from IDA: http://pastebin.com/UGYpbthr and here is a part from the original subroutine: https://i.sstatic.net/EBlQa.png also here's a part from where the subroutine is called: https://i.sstatic.net/2S9Nc.png . Is it possible to translate this pseudocode to C code without further reverse engineering ? If so how should I do it ?