- UID
- 290224
- 帖子
- 384
- 主題
- 43
- 精華
- 0
- 積分
- 85
- 楓幣
- 282
- 威望
- 76
- 存款
- 0
- 贊助金額
- 0
- 推廣
- 0
- GP
- 51
- 閱讀權限
- 10
- 性別
- 保密
- 在線時間
- 180 小時
- 註冊時間
- 2020-9-13
- 最後登入
- 2024-8-18
|
代码是我自己拼接的,找了个hook点,使用后,游戏直接闪退了。
小弟想求助各位大佬
1.帮忙看一下这一段代码错在了哪里?
2.是不是要alloc一块内存,然后 lea rsp,[申请的内存]?
3.类似mov [rsp+58],r12d 这种,是不是可以直接写成 mov [rsp+58],00000000,不再从 r12d中取值了?- //TwMs V242.1
- SkillIn:
- push eax
- push r8d
- push r9
- call 143978B80
- mov r8d,eax
- sub r8d,[Timer]
- cmp r8d,[Delay]
- jl SkillInMY_Exit
- mov [Timer],eax
- mov rbx,[145A511A8]
- mov rcx,[145A50C10]
- call 143B8A960
- mov r8d,[skillid]
- mov dword ptr [rbx+0001FF34],r8d
- mov r8d,[rbx+0001FF34]
- lea r9,[rsp+00000100]
- mov rcx,[145A50C08]
- mov rdx,r15
- mov [rsp+38],00000001
- mov [rsp+30],r12d
- mov [rsp+28],r12d
- mov [rsp+20],r12d
- mov [rsp+00000100],r12
- call 1407F74D0
- mov rdx,[rsp+00000100]
- xor r9d,r9d
- mov [rsp+000000A8],r12l
- mov r8d,edi
- mov [rsp+000000A0],r12
- mov rcx,rbx
- mov [rsp+00000098],r12l
- mov [rsp+00000090],r12d
- mov [rsp+00000088],r12d
- mov [rsp+00000080],r12l
- mov [rsp+78],r12d
- mov [rsp+70],r12d
- mov [rsp+68],r12l
- mov [rsp+60],r12d
- mov [rsp+58],r12d
- mov [rsp+50],r12d
- mov [rsp+48],r12d
- mov [rsp+40],r12d
- mov [rsp+38],r12
- mov [rsp+30],r12d
- mov [rsp+28],r12d
- mov [rsp+20],r12d
- call 14372C730
- SkillInMY_Exit:
- pop eax
- pop r8d
- pop r9
- jmp 原地址
複製代碼 |
|