View Single Post
Old 21.07.2007, 13:47   #8
khelben
Архивный участник
 
Join Date: Mar 2006
Posts: 104
Default

//resurrect post

Anyone interested in helping me update this for c5 retail engine?

If i'm not mistaken this was written for the PTS engine.

So I'd like to make this an adventure in learning.

I believe this is a good start?

I have the RequestAuthLogin of the C5 Retail Engine at +0xFA140:

Code:
103FA140 loc_103FA140:                           ; CODE XREF: UNetworkHandler::RequestAuthLogin(ushort *,ushort *)j
.text:103FA140                 xor     eax, eax
.text:103FA142                 push    esi
.text:103FA143                 mov     WideCharStr, eax
.text:103FA148                 mov     dword_10ACE8B8, eax
.text:103FA14D                 mov     dword_10ACE8BC, eax
.text:103FA152                 mov     word_10ACE8C0, ax
.text:103FA158                 mov     byte_10ACE8C2, al
.text:103FA15D                 mov     dword_10ACE8D2, eax
.text:103FA162                 mov     dword_10ACE8D6, eax
.text:103FA167                 mov     dword_10ACE8DA, eax
.text:103FA16C                 mov     dword_10ACE8DE, eax
.text:103FA171                 mov     byte_10ACE8E2, al
.text:103FA176                 mov     eax, [esp+4+arg_0]
.text:103FA17A                 push    0Eh             ; size_t
.text:103FA17C                 push    eax             ; wchar_t *
.text:103FA17D                 push    offset WideCharStr ; wchar_t *
.text:103FA182                 mov     esi, ecx
.text:103FA184                 call    _wcsncpy
.text:103FA189                 mov     ecx, [esp+10h+arg_4]
.text:103FA18D                 push    10h             ; size_t
.text:103FA18F                 push    ecx             ; wchar_t *
.text:103FA190                 push    offset dword_10ACE8D2 ; wchar_t *
.text:103FA195                 call    _wcsncpy
.text:103FA19A                 mov     edx, [esi+4Ch]
.text:103FA19D                 add     esp, 18h
.text:103FA1A0                 mov     dword ptr [edx+5054h], 0
.text:103FA1AA                 mov     ecx, [esi+4Ch]
.text:103FA1AD                 push    83Ah
.text:103FA1B2                 lea     eax, [ecx+4858h]
.text:103FA1B8                 push    eax
.text:103FA1B9                 call    sub_10311D97
.text:103FA1BE                 mov     dword ptr [esi+50h], 1
.text:103FA1C5                 mov     ecx, ds:?GNetworkLog@@3PAVFOutputDevice@@A ; FOutputDevice * GNetworkLog
.text:103FA1CB                 mov     edx, [ecx]
.text:103FA1CD                 push    offset aSendRequestaut ; "(Send)RequestAuthLogin"
.text:103FA1D2                 push    edx
.text:103FA1D3                 call    ds:?Logf@FOutputDevice@@QAAXPBGZZ ; FOutputDevice::Logf(ushort const *,...)
.text:103FA1D9                 add     esp, 8
.text:103FA1DC                 mov     eax, 1
.text:103FA1E1                 pop     esi
.text:103FA1E2                 retn    8
khelben is offline