Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- __attribute__((naked)) void CheckProtocol_AsmHelper_LDyn() {
- asm (
- push esi;
- mov eax, pnet_from;
- push eax;
- call SV_CheckProtocol_rev;
- add esp, 8;
- test eax, eax;
- jz __dpfail2;
- mov eax, DSEngineData.CheckProto_GoodRet_addr;
- jmp eax;
- __dpfail2:
- mov eax, DSEngineData.CheckProto_BadRet_addr;
- jmp eax;
- )
- }
- __attribute__((naked)) void CheckCDKey_Helper_LDyn() {
- asm (
- mov eax, LastUserInfo;
- push eax;
- mov eax, DSEngineData.ConnectClient_CDKey_soff;
- add eax, ebp;
- push eax;
- mov eax, DSEngineData.ConnectClient_AuthProto_soff;
- add eax, ebp;
- mov eax, [eax];
- push eax;
- mov eax, pnet_from;
- push eax;
- call SV_CheckCDKey_rev;
- add esp, 0x10;
- test eax, eax;
- jz __cdfail2;
- mov eax, DSEngineData.CheckCDKey_GoodRet_addr;
- jmp eax;
- __cdfail2:
- mov eax, DSEngineData.CheckProto_BadRet_addr;
- jmp eax;
- )
- }
- __attribute__((naked)) void SendSrvInfo_WriteLongProto_LDyn() {
- asm (
- mov eax, [esp+4]; //sbuf
- push eax;
- mov eax, [ebp+0xC]; //client
- push eax;
- call SendSrvInfo_WriteProto;
- retn;
- )
- }
- __attribute__((naked)) void DenyHelper_Hooked_WDyn() {
- asm (
- mov eax, [esp+8];
- cmp eax, 0xE;
- ja _ret;
- cmp eax, 7;
- jz _ret;
- mov eax, DSEngineData.GSClientDenyHelper_addr;
- jmp eax;
- _ret:
- retn 0xC;
- )
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement