You can use something like IDA Pro - this is a very good decompiling tool. And as you wrote the original code it shouldn't be too difficult for you to piece together the original source.