Started decompile of actual draw function