All pastes #93901 Raw Edit

Something

public text v1 · immutable
#93901 ·published 2006-07-20 21:10 UTC
rendered paste body
	; Typed chat message interception
	;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
	; 1.20e
	; 6F0F0D23   897D F4          MOV DWORD PTR SS:[EBP-C],EDI
	; 6F0F0D26   E8 B5A40300      CALL Game.6F12B1E0
	; 6F0F0D2B   8BF0             MOV ESI,EAX
	; 6F0F0D2D   85F6             TEST ESI,ESI
	;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
	
	reset
	scan
		db 089h,07dh,  0f4h
		db 0e8h,  000h,000h,000h,000h
		db 08bh,0f0h
		db 085h,0f6h
		
		db 0ffh,0ffh,  0ffh
		db 0ffh,  000h,000h,000h,000h
		db 0ffh,0ffh
		db 0ffh,0ffh	
	scan_end

	setoffset	4								; Gets the relative address of this routine
	xread		r32, GameGetChatMessage			; and translates it to an absolute address.
	xwrite		r32, GameChatInterceptionHook	; Write a hook so we can intercept chat messages.