add CallProtectedHandler on BB
This commit is contained in:
@@ -0,0 +1,36 @@
|
||||
.meta hide_from_patches_menu
|
||||
.meta name="CallProtectedHandler"
|
||||
.meta description=""
|
||||
|
||||
entry_ptr:
|
||||
reloc0:
|
||||
.offsetof start
|
||||
start:
|
||||
jmp get_data_addr
|
||||
resume:
|
||||
xchg ebx, [esp]
|
||||
|
||||
mov edx, [ebx]
|
||||
mov dword [edx], 1
|
||||
|
||||
mov edx, [ebx + 4]
|
||||
push dword [ebx + 8]
|
||||
lea ecx, [ebx + 0x0C]
|
||||
push ecx
|
||||
call edx # RcvPsoData2(data, size)
|
||||
add esp, 8
|
||||
|
||||
mov edx, [ebx]
|
||||
mov dword [edx], 0
|
||||
|
||||
pop ebx
|
||||
ret
|
||||
|
||||
get_data_addr:
|
||||
call resume
|
||||
|
||||
.data 0x00AAECF0 # should_allow_protected_commands
|
||||
.data 0x00800860 # RcvPsoData2(void* data @ stack, uint32_t size @ stack)
|
||||
size:
|
||||
.data 0x00000000
|
||||
data:
|
||||
Reference in New Issue
Block a user