水族箱那个破解的Patch的源码

放到游戏目录执行就可以了,修改带pet数限制为24(所有的pet)。


[color=#b000b0].486[/color]
[color=#b000b0].model[/color] [color=#b000b0]flat[/color],[color=#b000b0]stdcall[/color]
[color=#b000b0]option[/color] [color=#b000b0]casemap[/color]:[color=#b000b0]none[/color]
[color=#b000b0]include[/color] windows.inc
[color=#b000b0]include[/color] user32.inc
[color=#b000b0]includelib[/color] user32.lib
[color=#b000b0]include[/color] kernel32.inc
[color=#b000b0]includelib[/color] kernel32.lib
PATCH_POS    [color=#b000b0]EQU[/color]    585A2h
[color=#b000b0].data[/color]
lFileSize    [color=#b000b0]dd[/color]    1658880
lChanges    [color=#b000b0]dd[/color]    6h
Bytes2Wri    [color=#b000b0]db[/color]    83h,0f9h,18h,50h,58h,90h
[color=#008000];Bytes2Wri2 db 3Bh,88h,00h,01h,00h,00h[/color]
lBWriteb    [color=#b000b0]dd[/color]    0
hFile        [color=#b000b0]dd[/color]    0
szFileName    [color=#b000b0]db[/color]    [color=#808080]’InsaniquariumDeluxe.exe'[/color],0
szMsgTitle    [color=#b000b0]db[/color]    [color=#808080]’怪怪水族馆3PET破解补丁 By K-Res'[/color],0
szOK        [color=#b000b0]db[/color]    [color=#808080]’完成!Enjoy'[/color],0
szErrCreate     [color=#b000b0]db[/color]    [color=#808080]’未找到目标文件InsaniquariumDeluxe.exe'[/color],0
szErrFSize    [color=#b000b0]db[/color]    [color=#808080]’文件大小不匹配!'[/color],0
szErrFPtr    [color=#b000b0]db[/color]    [color=#808080]’设置文件指针失败!'[/color],0
szErrWri    [color=#b000b0]db[/color]    [color=#808080]’写文件失败!'[/color],0
[color=#b000b0].code[/color]
start:
[color=#008000];—————————————-[/color]
[color=#008000]; open file for patching[/color]
[color=#b000b0]invoke[/color] [b][color=#000080]CreateFile[/color][/b],[color=#b000b0]addr[/color] szFileName,GENERIC_READ+GENERIC_WRITE,0,0,OPEN_EXISTING,FILE_ATTRIBUTE_NORMAL,0
[color=#0000D0]cmp[/color] [color=#FF0000]eax[/color],-1
[color=#0000D0]lea[/color] [color=#FF0000]ebx[/color],szErrCreate
[color=#0000D0]jz[/color] Err_Create
[color=#0000D0]mov[/color] hFile,[color=#FF0000]eax[/color]
[color=#008000];—————————————-[/color]
[color=#008000]; check file size[/color]
[color=#b000b0]invoke[/color] [b][color=#000080]GetFileSize[/color][/b],[color=#FF0000]eax[/color],NULL
[color=#0000D0]cmp[/color] [color=#FF0000]eax[/color],lFileSize
[color=#0000D0]lea[/color] [color=#FF0000]ebx[/color],szErrFSize
[color=#0000D0]jnz[/color] Err
[color=#008000];—————————————-[/color]
[color=#008000]; set pointer[/color]
[color=#b000b0]invoke[/color] [b][color=#000080]SetFilePointer[/color][/b],hFile,PATCH_POS,NULL,FILE_BEGIN
[color=#0000D0]cmp[/color] [color=#FF0000]eax[/color],-1
[color=#0000D0]lea[/color] [color=#FF0000]ebx[/color],szErrFPtr
[color=#0000D0]jz[/color] Err
[color=#008000];—————————————-[/color]
[color=#008000]; write bytes[/color]
[color=#b000b0]invoke[/color] [b][color=#000080]WriteFile[/color][/b],hFile,[color=#b000b0]addr[/color] Bytes2Wri,lChanges,[color=#b000b0]addr[/color] lBWriteb,NULL
[color=#0000D0]test[/color] [color=#FF0000]eax[/color],[color=#FF0000]eax[/color]
[color=#0000D0]lea[/color] [color=#FF0000]ebx[/color],szErrWri
[color=#0000D0]jz[/color] Err
[color=#0000D0]lea[/color] [color=#FF0000]ebx[/color],szOK
Err:
[color=#b000b0]invoke[/color] [b][color=#000080]CloseHandle[/color][/b],hFile
Err_Create:
[color=#b000b0]invoke[/color] [b][color=#000080]MessageBox[/color][/b],NULL,[color=#FF0000]ebx[/color],[color=#b000b0]addr[/color] szMsgTitle,MB_OK+MB_ICONINFORMATION
[color=#b000b0]invoke[/color] [b][color=#000080]ExitProcess[/color][/b],NULL
[color=#b000b0]end[/color] start

博主友情提示:

如您在评论中需要提及如QQ号、电子邮件地址或其他隐私敏感信息,欢迎使用>>博主专用加密工具v3<<处理后发布,原文只有博主可以看到。