Files
psopeeps-newserv/system/client-functions/CallProtectedHandler/CallProtectedHandler.59NL.patch.s
T
2024-05-11 22:31:09 -07:00

37 lines
634 B
ArmAsm

.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: