Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- char __userpurge sub_100032C7@<al>(
- int a1,
- int a2,
- int a3,
- int a4,
- int a5,
- int a6,
- int a7,
- int a8,
- int a9,
- int a10,
- int a11,
- int a12,
- int a13,
- int a14,
- int a15,
- int a16,
- unsigned __int16 a17,
- int a18,
- int a19,
- int a20)
- {
- int v20; // ebx
- const void *v21; // esi
- char *v22; // ebx
- const void *v23; // esi
- char *v24; // esi
- SFSAMP *SAMP; // eax
- struct stSAMP *Info; // eax
- int v28; // [esp-18h] [ebp-144h]
- int v29; // [esp-14h] [ebp-140h]
- int v30; // [esp-10h] [ebp-13Ch]
- int v31; // [esp-Ch] [ebp-138h]
- int v32; // [esp-Ch] [ebp-138h]
- int v33; // [esp-8h] [ebp-134h]
- int v34; // [esp-8h] [ebp-134h]
- int v35; // [esp-4h] [ebp-130h]
- int v36; // [esp-4h] [ebp-130h]
- int v37; // [esp-4h] [ebp-130h]
- char v38[276]; // [esp+Ch] [ebp-120h] BYREF
- int v39; // [esp+128h] [ebp-4h]
- char vars0; // [esp+12Ch] [ebp+0h] BYREF
- v20 = a20;
- if ( *(_DWORD *)(a20 + 4) == 134 )
- {
- v21 = *(const void **)a20;
- a16 = 0;
- qmemcpy(v38, v21, sizeof(v38));
- v39 = 0;
- BitStream::ReadBits((BitStream *)v38, (unsigned __int8 *)&a17, 16, 1);
- BitStream::Read((BitStream *)v38, &vars0, 63);
- BitStream::ReadBits((BitStream *)v38, (unsigned __int8 *)&a16, 16, 1);
- v22 = (char *)unknown_libname_2((unsigned __int16)a16);
- BitStream::Read((BitStream *)v38, v22, (unsigned __int16)a16);
- v22[(unsigned __int16)a16] = 0;
- if ( byte_10020874 )
- SAMPFUNCS::Log((SAMPFUNCS *)dword_10020880, "{FFFFFF}[{FF0000}ShowTextDraw{FFFFFF}] ID: %d, Text: %s", a17, v22);
- if ( (unsigned __int8)sub_10002331(-1) )
- {
- if ( (unsigned __int8)sub_10002325(0)
- || (sub_10001138(v22), (unsigned __int8)sub_10002A3B(&vars0, v28, v29, v30, v31, v33, v35)) )
- {
- if ( (unsigned __int8)sub_10002D31(a17) )
- {
- sub_10001138(v22);
- sub_100031AB(a17, v28, v29, v30, v31, v33, v36);
- j_j_j___free_base(v22);
- LABEL_18:
- BitStream::~BitStream((BitStream *)v38);
- return 0;
- }
- sub_10002474(a17, &vars0);
- BitStream::ResetWritePointer((BitStream *)v38);
- a15 = a17;
- BitStream::WriteBits((BitStream *)v38, (const unsigned __int8 *)&a15, 16, 1);
- BitStream::Write((BitStream *)v38, &vars0, 63);
- a15 = (unsigned __int16)a16;
- BitStream::WriteBits((BitStream *)v38, (const unsigned __int8 *)&a15, 16, 1);
- BitStream::Write((BitStream *)v38, v22, (unsigned __int16)a16);
- }
- }
- j_j_j___free_base(v22);
- v39 = -1;
- BitStream::~BitStream((BitStream *)v38);
- v20 = a20;
- }
- if ( *(_DWORD *)(v20 + 4) == 105 )
- {
- v23 = *(const void **)v20;
- a20 = 0;
- qmemcpy(v38, v23, sizeof(v38));
- v39 = 1;
- BitStream::ReadBits((BitStream *)v38, (unsigned __int8 *)&a16, 16, 1);
- BitStream::ReadBits((BitStream *)v38, (unsigned __int8 *)&a20, 16, 1);
- v24 = (char *)unknown_libname_2((unsigned __int16)a20);
- BitStream::Read((BitStream *)v38, v24, (unsigned __int16)a20);
- v24[(unsigned __int16)a20] = 0;
- if ( byte_10020874 )
- SAMPFUNCS::Log(
- (SAMPFUNCS *)dword_10020880,
- "{FFFFFF}[{FF0000}TextDrawSetString{FFFFFF}] ID: %d, Text: %s",
- (unsigned __int16)a16,
- v24);
- if ( (unsigned __int8)sub_10002331(-1) && (unsigned __int8)sub_10002D31((unsigned __int16)a16) )
- {
- sub_10001138(v24);
- sub_100031AB((unsigned __int16)a16, v28, v29, v30, v32, v34, v37);
- LABEL_20:
- j_j_j___free_base(v24);
- goto LABEL_18;
- }
- SAMP = SAMPFUNCS::getSAMP((SAMPFUNCS *)dword_10020880);
- Info = SFSAMP::getInfo(SAMP);
- if ( !stTextdrawPool::IsExists(*(stTextdrawPool **)(*(_DWORD *)((char *)Info + 973) + 16)) )
- goto LABEL_20;
- j_j_j___free_base(v24);
- v39 = -1;
- BitStream::~BitStream((BitStream *)v38);
- }
- if ( *(_DWORD *)(v20 + 4) == 135 )
- {
- qmemcpy(v38, *(const void **)v20, sizeof(v38));
- v39 = 2;
- BitStream::ReadBits((BitStream *)v38, (unsigned __int8 *)&a20, 16, 1);
- if ( byte_10020874 )
- SAMPFUNCS::Log(
- (SAMPFUNCS *)dword_10020880,
- "{FFFFFF}[{FF0000}TextDrawHideForPlayer{FFFFFF}] ID: %d",
- (unsigned __int16)a20);
- if ( (unsigned __int8)sub_10002331(-1) )
- {
- if ( (unsigned __int8)sub_10002D31((unsigned __int16)a20) )
- sub_100025A0((unsigned __int16)a20);
- }
- BitStream::~BitStream((BitStream *)v38);
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement