alloc(newmem,2048,"DiabloImmortal.exe"+D3C542) 
label(returnhere)
label(originalcode)
label(exit)

newmem: //this is allocated memory, you have read,write,execute access
//place your code here

originalcode:
mov eax,[rcx+08]
movss [rbx+3C],xmm1

push rax // address
mov rax,newmem+500 // address 0x0 value vtmem

cmp eax,(float)1  // text LU CODEX + SKILL + SETTING + BLACKSMITH [rcx+B0]+50
jne if00
mov eax,(float)1.2
mov [rax+8*1],rcx
if00:

cmp [rcx+08],(float)1  // text LU CODEX + SKILL + SETTING + BLACKSMITH [rcx+B0]+50
jne if01
mov [rax+8*1],rcx
if01:

//mov [rcx+08],(float)1.2
//mov [rcx+0C],(float)1.2


pop rax

exit:
jmp returnhere

"DiabloImmortal.exe"+D3C542:
jmp newmem
nop
nop
nop
returnhere:

