alloc(newmem,2048,"DiabloImmortal.exe"+6BC1BD) 
label(returnhere)
label(originalcode)
label(exit)

newmem: //this is allocated memory, you have read,write,execute access
//place your code here

originalcode:
mov [rax+6C],r8l
mov al,01

// rax+6C = bat = 0 tat = 1
// r9 = float x


exit:
jmp returnhere

"DiabloImmortal.exe"+6BC1BD:
jmp newmem
nop
returnhere:

