According to code is hooking on program code while try to read AI value.
So you need change some code to run original later after you finished change value in dynamic memory.
..
..
original code:
mov [esi+50],0000000//MaxHP esi+50
mov word ptr [esi+54],00000000//HPRecovery esi+54 word
mov word ptr [esi+56],00000000//Defence_Min esi+56 word
mov word ptr [esi+56],0000//Defence_Max esi+58 word
mov byte ptr [esi+5A],00//GuardRate esi+5A byte
mov byte ptr [esi+5B],00//GuardEfficiency esi+5B byte
mov byte ptr [esi+5C],00//BlockRate esi+5C byte
mov byte ptr [esi+5D],00//Distance esi+5D byte
mov byte ptr [esi+5E],00//MeleeDamageResist esi+5E byte
mov byte ptr [esi+5F],00//RangeDamageResist esi+5F byte
mov byte ptr [esi+60],00//AntiStatusRate esi+60 byte
mov byte ptr [esi+61],00//AntiKnockBackRate esi+61 byte
mov byte ptr [esi+62],00//PhysicalResist esi+62 byte
mov byte ptr [esi+63],00//LightResist esi+63 byte
mov byte ptr [esi+64],00//FireResist esi+64 byte
mov byte ptr [esi+65],00//IceResist esi+65 byte
mov byte ptr [esi+66],00//PoisonResist esi+66 byte
mov byte ptr [esi+67],00//CurseResist esi+67 byte
mov byte ptr [esi+68],00//MagicResist esi+68 byte
mov word ptr [esi+15C],0000//DefeatLength_Upper esi+15C word
mov word ptr [esi+15E],0000//DefeatLength_Lower esi+15E word
mov word ptr [esi+160],0000//DefeatLength_Left esi+160 word
mov word ptr [esi+162],0000//DefeatLength_Right esi+162 word
mov byte ptr [esi+164],00//DefeatDamage_Min esi+164 byte
mov byte ptr [esi+165],00//DefeatDamage_Max esi+165 byte ??
mov [esi+168],00000000//AttackMaterial_Melee esi+168
mov word ptr [esi+16C],0000//AttackDamage_Min_Melee esi+16C word
mov word ptr [esi+16E],0000//AttackDamage_Max_Melee esi+16E word
mov word ptr [esi+170],0000//AbsoluteDamage_Min_Melee esi+170 word
mov word ptr [esi+172],0000//AbsoluteDamage_Max_Melee esi+172 word
mov [esi+00000174],00000000
mov [esi+000001A8],00000000
mov [esi+000001DC],00000000
mov [esi+00000244],00000000
mov [esi+00000278],00000000
mov [esi+000002AC],00000000
mov [esi+00000348],00000000
//AIKey esi+154 word
mov eax,03
mov word ptr [esi+00000154],ax
movzx eax,word ptr [esi+00000154]
exit:
jmp returnhere