这个CE里的汇编怎么写到易语言里
[ENABLE]alloc(newmem,1024)alloc(GetSkill,1024)alloc(table1,0x1000)alloc(table2,0x1000...
[ENABLE]
alloc(newmem,1024)
alloc(GetSkill,1024)
alloc(table1,0x1000)
alloc(table2,0x1000)
label(GetSkill_next)
label(GetSkill_end)
GetSkill:
push ebp
mov ebp,esp
xor eax,eax
push eax
pushad
mov ebx,[ebp+8]
xor edi,edi
mov esi,table1
mov ecx,table2
GetSkill_next:
cmp edi,1000
jge GetSkill_end
mov eax,[esi+edi*4]
test eax,eax
je GetSkill_end
inc edi
cmp eax,ebx
jne GetSkill_next
dec edi
mov eax,[ecx+edi*4]
mov [ebp-4],eax
GetSkill_end:
popad
mov eax,[ebp-4]
mov esp,ebp
pop ebp
ret 4
label(end)
newmem:
pushad
mov esi,[ebp-00000468]
push esi
call GetSkill
cmp eax,0
je end
mov dword ptr ss:[ebp-00000468],eax
end:
popad
mov eax,0FFFF
ret
table1:
dd #48658
dd #50750
dd #19016
dd #15129
dd #30304
dd #38002
dd #48012
table2:
dd #48232
dd #19015
dd #15128
dd #30303
dd #54141
dd #39002
dd #9433
18db71e:
call newmem
[DISABLE]
18db71e:
db b8 ff ff 00 00 展开
alloc(newmem,1024)
alloc(GetSkill,1024)
alloc(table1,0x1000)
alloc(table2,0x1000)
label(GetSkill_next)
label(GetSkill_end)
GetSkill:
push ebp
mov ebp,esp
xor eax,eax
push eax
pushad
mov ebx,[ebp+8]
xor edi,edi
mov esi,table1
mov ecx,table2
GetSkill_next:
cmp edi,1000
jge GetSkill_end
mov eax,[esi+edi*4]
test eax,eax
je GetSkill_end
inc edi
cmp eax,ebx
jne GetSkill_next
dec edi
mov eax,[ecx+edi*4]
mov [ebp-4],eax
GetSkill_end:
popad
mov eax,[ebp-4]
mov esp,ebp
pop ebp
ret 4
label(end)
newmem:
pushad
mov esi,[ebp-00000468]
push esi
call GetSkill
cmp eax,0
je end
mov dword ptr ss:[ebp-00000468],eax
end:
popad
mov eax,0FFFF
ret
table1:
dd #48658
dd #50750
dd #19016
dd #15129
dd #30304
dd #38002
dd #48012
table2:
dd #48232
dd #19015
dd #15128
dd #30303
dd #54141
dd #39002
dd #9433
18db71e:
call newmem
[DISABLE]
18db71e:
db b8 ff ff 00 00 展开
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询