Decompiling is generally considered acceptable if you are regaining access to your own code, which was lost due to computer failure or if you are doing authorized research on open-source code.