冰楓論壇

標題: TwMs v222.1 CRC 紅點大於2自動換下一頻 [打印本頁]

作者: rhg59321    時間: 2020-1-16 06:21
標題: TwMs v222.1 CRC 紅點大於2自動換下一頻
// TwMs v222.1 CRC 紅點大於2自動換下一頻

[ENABLE]
Registersymbol(Count)
Alloc(Hook,128)
Alloc(Count,4)
Alloc(CH,4)
Label(ChangeChannel)
Label(CheckChannel)
Label(Exit)

Count: //紅點數 沒有紅點時為 2
DD 2

00A4D54C:
jmp Hook
nop

Hook:
pushad
mov ecx,[0406FDFC]
mov ecx,[ecx+4C]
cmp ecx,[Count]
ja CheckChannel
jmp Exit

CheckChannel:
mov eax,[03DCF228]
mov eax,[eax+000021D8]
add eax,1
mov [CH],eax
cmp [CH],1D
jb ChangeChannel
mov [CH],0
jmp ChangeChannel

ChangeChannel:
push 00
push [CH]
mov ecx,[04071A74]
call 01252EC0
jmp Exit

Exit:
popad
db ff 15 40 1d 07 04
jmp 00A4D54C+6

[DISABLE]
00A4D54C:
db ff 15 40 1d 07 04

DeAlloc(CH)
DeAlloc(Hook)
DeAlloc(Count)
UnRegistersymbol(Count)







歡迎光臨 冰楓論壇 (https://bingfong.com/) Powered by 冰楓