397 lines
9.2 KiB
C
397 lines
9.2 KiB
C
// 0024fb50 CMsgSetSteamID::vfunction13
|
|
|
|
void __thiscall CMsgSetSteamID::vfunction13(CMsgSetSteamID *this,byte *param_1,undefined8 *param_2)
|
|
|
|
{
|
|
byte *pbVar1;
|
|
ulong uVar2;
|
|
ulong uVar3;
|
|
byte *pbVar4;
|
|
|
|
if ((*(byte *)&(this->data).offset_0x8 & 1) != 0) {
|
|
if ((byte *)*param_2 <= param_1) {
|
|
param_1 = (byte *)FUN_002f822a(param_2);
|
|
}
|
|
uVar3 = (this->data).offset_0x10;
|
|
*param_1 = 8;
|
|
if (uVar3 < 0x80) {
|
|
param_1[1] = (byte)uVar3;
|
|
uVar3 = (this->data).offset_0x0;
|
|
param_1 = param_1 + 2;
|
|
goto joined_r0x0024fbd7;
|
|
}
|
|
param_1[1] = (byte)uVar3 | 0x80;
|
|
uVar2 = uVar3 >> 7;
|
|
pbVar1 = param_1 + 2;
|
|
if (uVar3 < 0x4000) {
|
|
param_1[2] = (byte)(uVar3 >> 7);
|
|
param_1 = param_1 + 3;
|
|
}
|
|
else {
|
|
do {
|
|
pbVar4 = pbVar1;
|
|
uVar3 = uVar2 >> 7;
|
|
*pbVar4 = (byte)uVar2 | 0x80;
|
|
uVar2 = uVar3;
|
|
pbVar1 = pbVar4 + 1;
|
|
} while (0x7f < uVar3);
|
|
param_1 = pbVar4 + 2;
|
|
pbVar4[1] = (byte)uVar3;
|
|
}
|
|
}
|
|
uVar3 = (this->data).offset_0x0;
|
|
joined_r0x0024fbd7:
|
|
if ((uVar3 & 1) != 0) {
|
|
FUN_00359676((uVar3 & 0xfffffffffffffffc) + 8,param_1,param_2);
|
|
return;
|
|
}
|
|
return;
|
|
}
|
|
|
|
|
|
// 002525d0 CMsgSetSteamID::vfunction11
|
|
|
|
undefined4 __thiscall CMsgSetSteamID::vfunction11(CMsgSetSteamID *this)
|
|
|
|
{
|
|
return *(undefined4 *)((long)&(this->data).offset_0x8 + 4);
|
|
}
|
|
|
|
|
|
// 00256170 CMsgSetSteamID::vfunction10
|
|
|
|
ulong __thiscall CMsgSetSteamID::vfunction10(CMsgSetSteamID *this)
|
|
|
|
{
|
|
long lVar1;
|
|
ulong uVar2;
|
|
uint uVar3;
|
|
|
|
uVar2 = 0;
|
|
uVar3 = 0;
|
|
if ((*(uint *)&(this->data).offset_0x8 & 1) != 0) {
|
|
uVar2 = (this->data).offset_0x10 | 1;
|
|
lVar1 = 0x3f;
|
|
if (uVar2 != 0) {
|
|
for (; uVar2 >> lVar1 == 0; lVar1 = lVar1 + -1) {
|
|
}
|
|
}
|
|
uVar3 = ((uint)(lVar1 * 9 + 0x49U >> 6) & 0x3ffffff) + 1;
|
|
uVar2 = (ulong)uVar3;
|
|
}
|
|
if (((this->data).offset_0x0 & 1) == 0) {
|
|
*(uint *)((long)&(this->data).offset_0x8 + 4) = uVar3;
|
|
return uVar2;
|
|
}
|
|
uVar2 = FUN_00359fe2(&this->data,uVar2,(undefined1 *)((long)&(this->data).offset_0x8 + 4));
|
|
return uVar2;
|
|
}
|
|
|
|
|
|
// 002582f0 CMsgSetSteamID::~CMsgSetSteamID
|
|
|
|
void __thiscall CMsgSetSteamID::~CMsgSetSteamID(CMsgSetSteamID *this)
|
|
|
|
{
|
|
ulong uVar1;
|
|
|
|
this->vftablePtr = &vftable;
|
|
uVar1 = (this->data).offset_0x0;
|
|
if ((((uVar1 & 1) != 0) && ((uVar1 & 3) != 0)) &&
|
|
(((uVar1 & 2) != 0 || (*(long *)(uVar1 & 0xfffffffffffffffc) == 0)))) {
|
|
FUN_002564b0();
|
|
return;
|
|
}
|
|
return;
|
|
}
|
|
|
|
|
|
// 0025a9b0 CMsgSetSteamID::~CMsgSetSteamID
|
|
|
|
void __thiscall CMsgSetSteamID::~CMsgSetSteamID(CMsgSetSteamID *this)
|
|
|
|
{
|
|
ulong uVar1;
|
|
|
|
this->vftablePtr = &vftable;
|
|
uVar1 = (this->data).offset_0x0;
|
|
if ((((uVar1 & 1) != 0) && ((uVar1 & 3) != 0)) &&
|
|
(((uVar1 & 2) != 0 || (*(long *)(uVar1 & 0xfffffffffffffffc) == 0)))) {
|
|
FUN_002564b0();
|
|
FUN_0039deb8(this,0x20);
|
|
return;
|
|
}
|
|
FUN_0039deb8(this,0x20);
|
|
return;
|
|
}
|
|
|
|
|
|
// 0026cfa0 CMsgSetSteamID::vfunction20
|
|
|
|
undefined1 [16] __thiscall CMsgSetSteamID::vfunction20(void)
|
|
|
|
{
|
|
FUN_0033e2d0(&DAT_00466400,0);
|
|
return *(undefined1 (*) [16])(PTR_DAT_00466448 + 0xa00);
|
|
}
|
|
|
|
|
|
// 0026f810 CMsgSetSteamID::CMsgSetSteamID
|
|
|
|
void __thiscall CMsgSetSteamID::CMsgSetSteamID(CMsgSetSteamID *this,ulong param_1)
|
|
|
|
{
|
|
(this->data).offset_0x0 = param_1;
|
|
this->vftablePtr = &vftable;
|
|
(this->data).offset_0x8 = 0;
|
|
(this->data).offset_0x10 = 0;
|
|
return;
|
|
}
|
|
|
|
|
|
// 00275f40 CMsgSetSteamID::vfunction5
|
|
|
|
void __thiscall CMsgSetSteamID::vfunction5(CMsgSetSteamID *this,long param_1)
|
|
|
|
{
|
|
undefined8 *puVar1;
|
|
|
|
if (param_1 != 0) {
|
|
puVar1 = (undefined8 *)thunk_FUN_002d7d08(param_1,0x20,&typeinfo);
|
|
puVar1[1] = param_1;
|
|
*puVar1 = &vftable;
|
|
puVar1[2] = 0;
|
|
puVar1[3] = 0;
|
|
return;
|
|
}
|
|
puVar1 = (undefined8 *)FUN_003a1a2c(0x20);
|
|
puVar1[1] = 0;
|
|
*puVar1 = &vftable;
|
|
puVar1[2] = 0;
|
|
puVar1[3] = 0;
|
|
return;
|
|
}
|
|
|
|
|
|
// 00275f50 CMsgSetSteamID::CMsgSetSteamID_Constructor_or_Destructor
|
|
|
|
/* WARNING: Removing unreachable block (ram,0x00275ed6) */
|
|
|
|
void __thiscall CMsgSetSteamID::CMsgSetSteamID_Constructor_or_Destructor(CMsgSetSteamID *this)
|
|
|
|
{
|
|
undefined8 *puVar1;
|
|
|
|
puVar1 = (undefined8 *)FUN_003a1a2c(0x20);
|
|
puVar1[1] = 0;
|
|
*puVar1 = &vftable;
|
|
puVar1[2] = 0;
|
|
puVar1[3] = 0;
|
|
return;
|
|
}
|
|
|
|
|
|
// 0028b8f0 CMsgSetSteamID::vfunction12
|
|
|
|
byte * __thiscall
|
|
CMsgSetSteamID::vfunction12(CMsgSetSteamID *this,byte *param_1,undefined8 *param_2)
|
|
|
|
{
|
|
undefined8 *puVar1;
|
|
byte bVar2;
|
|
ulong uVar3;
|
|
uint uVar4;
|
|
long lVar5;
|
|
char extraout_DL;
|
|
byte *pbVar6;
|
|
uint uVar7;
|
|
int iVar8;
|
|
ulong uVar9;
|
|
uint uVar10;
|
|
long in_FS_OFFSET;
|
|
undefined1 auVar11 [12];
|
|
undefined8 local_38;
|
|
long local_30;
|
|
|
|
uVar10 = 0;
|
|
local_30 = *(long *)(in_FS_OFFSET + 0x28);
|
|
do {
|
|
if ((byte *)*param_2 <= param_1) goto LAB_0028ba16;
|
|
LAB_0028b922:
|
|
bVar2 = *param_1;
|
|
uVar9 = (ulong)bVar2;
|
|
pbVar6 = param_1 + 1;
|
|
if (bVar2 < 0x80) {
|
|
LAB_0028b947:
|
|
uVar4 = (uint)(uVar9 >> 3);
|
|
param_1 = pbVar6;
|
|
}
|
|
else {
|
|
uVar9 = (ulong)((uint)bVar2 + (param_1[1] - 1) * 0x80);
|
|
if (param_1[1] < 0x80) {
|
|
pbVar6 = param_1 + 2;
|
|
goto LAB_0028b947;
|
|
}
|
|
auVar11 = FUN_002ea28a();
|
|
uVar9 = (ulong)auVar11._8_4_;
|
|
if (auVar11._0_8_ == (byte *)0x0) goto LAB_0028b994;
|
|
uVar4 = auVar11._8_4_ >> 3;
|
|
param_1 = auVar11._0_8_;
|
|
}
|
|
uVar7 = (uint)uVar9;
|
|
if (uVar4 != 1) {
|
|
if ((uVar7 & 7) == 4) goto LAB_0028ba90;
|
|
if (uVar7 != 0) goto LAB_0028b96b;
|
|
iVar8 = -1;
|
|
goto LAB_0028ba93;
|
|
}
|
|
if ((char)uVar9 == '\b') {
|
|
param_1 = (byte *)FUN_00276260(param_1,&local_38);
|
|
(this->data).offset_0x10 = local_38;
|
|
if (param_1 == (byte *)0x0) {
|
|
param_1 = (byte *)0x0;
|
|
uVar10 = 1;
|
|
goto LAB_0028b996;
|
|
}
|
|
uVar10 = 1;
|
|
if ((byte *)*param_2 <= param_1) {
|
|
LAB_0028ba16:
|
|
iVar8 = (int)((long)param_1 - param_2[1]);
|
|
if (iVar8 == *(int *)((long)param_2 + 0x1c)) {
|
|
if ((iVar8 < 1) || (param_2[2] != 0)) goto LAB_0028b996;
|
|
goto LAB_0028b994;
|
|
}
|
|
param_1 = (byte *)FUN_002ea7d8(param_2,(long)param_1 - param_2[1] & 0xffffffff,
|
|
*(undefined4 *)((long)param_2 + 0x5c));
|
|
if (extraout_DL != '\0') goto LAB_0028b996;
|
|
}
|
|
goto LAB_0028b922;
|
|
}
|
|
if ((uVar7 & 7) == 4) {
|
|
LAB_0028ba90:
|
|
iVar8 = uVar7 - 1;
|
|
LAB_0028ba93:
|
|
*(int *)(param_2 + 10) = iVar8;
|
|
goto LAB_0028b996;
|
|
}
|
|
LAB_0028b96b:
|
|
uVar3 = (this->data).offset_0x0;
|
|
if ((uVar3 & 1) == 0) {
|
|
lVar5 = FUN_002762f0(&this->data);
|
|
}
|
|
else {
|
|
lVar5 = (uVar3 & 0xfffffffffffffffc) + 8;
|
|
}
|
|
param_1 = (byte *)FUN_003589df(uVar9,lVar5,param_1,param_2);
|
|
if (param_1 == (byte *)0x0) {
|
|
LAB_0028b994:
|
|
param_1 = (byte *)0x0;
|
|
LAB_0028b996:
|
|
puVar1 = &(this->data).offset_0x8;
|
|
*(uint *)puVar1 = *(uint *)puVar1 | uVar10;
|
|
if (local_30 == *(long *)(in_FS_OFFSET + 0x28)) {
|
|
return param_1;
|
|
}
|
|
/* WARNING: Subroutine does not return */
|
|
FUN_00219340();
|
|
}
|
|
} while( true );
|
|
}
|
|
|
|
|
|
// 002a0980 CMsgSetSteamID::vfunction16
|
|
|
|
void __thiscall CMsgSetSteamID::vfunction16(CMsgSetSteamID *this,undefined8 param_1)
|
|
|
|
{
|
|
undefined8 *puVar1;
|
|
ulong uVar2;
|
|
undefined8 uVar3;
|
|
long lVar4;
|
|
long lVar5;
|
|
|
|
lVar4 = FUN_0039e006(param_1,&google::protobuf::Message::typeinfo,&typeinfo,0);
|
|
if (lVar4 != 0) {
|
|
uVar2 = *(ulong *)(lVar4 + 8);
|
|
if ((uVar2 & 1) != 0) {
|
|
if ((uVar2 & 1) == 0) {
|
|
lVar5 = (*(code *)(ulong)((uint)uVar2 & 1))();
|
|
}
|
|
else {
|
|
lVar5 = (uVar2 & 0xfffffffffffffffc) + 8;
|
|
}
|
|
FUN_002921f0(&this->data,lVar5);
|
|
}
|
|
if ((*(byte *)(lVar4 + 0x10) & 1) != 0) {
|
|
uVar3 = *(undefined8 *)(lVar4 + 0x18);
|
|
puVar1 = &(this->data).offset_0x8;
|
|
*(uint *)puVar1 = *(uint *)puVar1 | 1;
|
|
(this->data).offset_0x10 = uVar3;
|
|
}
|
|
return;
|
|
}
|
|
FUN_0034dd68(param_1,this);
|
|
return;
|
|
}
|
|
|
|
|
|
// 002a9250 CMsgSetSteamID::vfunction6
|
|
|
|
void __thiscall CMsgSetSteamID::vfunction6(CMsgSetSteamID *this)
|
|
|
|
{
|
|
(this->data).offset_0x10 = 0;
|
|
*(undefined4 *)&(this->data).offset_0x8 = 0;
|
|
if (((this->data).offset_0x0 & 1) == 0) {
|
|
return;
|
|
}
|
|
FUN_002a4470(&this->data);
|
|
return;
|
|
}
|
|
|
|
|
|
// 002ad950 CMsgSetSteamID::vfunction15
|
|
|
|
void __thiscall CMsgSetSteamID::vfunction15(CMsgSetSteamID *this,CMsgSetSteamID *param_1)
|
|
|
|
{
|
|
undefined8 *puVar1;
|
|
ulong uVar2;
|
|
undefined8 uVar3;
|
|
long lVar4;
|
|
long lVar5;
|
|
|
|
if (this == param_1) {
|
|
return;
|
|
}
|
|
(this->data).offset_0x10 = 0;
|
|
*(undefined4 *)&(this->data).offset_0x8 = 0;
|
|
if (((this->data).offset_0x0 & 1) != 0) {
|
|
FUN_002a4470(&this->data);
|
|
}
|
|
lVar4 = FUN_0039e006(param_1,&google::protobuf::Message::typeinfo,&typeinfo,0);
|
|
if (lVar4 != 0) {
|
|
uVar2 = *(ulong *)(lVar4 + 8);
|
|
if ((uVar2 & 1) != 0) {
|
|
if ((uVar2 & 1) == 0) {
|
|
lVar5 = (*(code *)(ulong)((uint)uVar2 & 1))();
|
|
}
|
|
else {
|
|
lVar5 = (uVar2 & 0xfffffffffffffffc) + 8;
|
|
}
|
|
FUN_002921f0(&this->data,lVar5);
|
|
}
|
|
if ((*(byte *)(lVar4 + 0x10) & 1) != 0) {
|
|
uVar3 = *(undefined8 *)(lVar4 + 0x18);
|
|
puVar1 = &(this->data).offset_0x8;
|
|
*(uint *)puVar1 = *(uint *)puVar1 | 1;
|
|
(this->data).offset_0x10 = uVar3;
|
|
}
|
|
return;
|
|
}
|
|
FUN_0034dd68(param_1,this);
|
|
return;
|
|
}
|
|
|
|
|