Revert "Deobfuscated more code" (caused algorithm bug)

This reverts commit e4a59880a02f221bf8f2e9a9fa69cb7e90d3f3a2.