378 lines
8.7 KiB
C
378 lines
8.7 KiB
C
// 0024c2c0 CMsgGetZoom::vfunction13
|
|
|
|
void __thiscall CMsgGetZoom::vfunction13(CMsgGetZoom *this,byte *param_1,undefined8 *param_2)
|
|
|
|
{
|
|
ulong uVar1;
|
|
byte *pbVar2;
|
|
uint uVar3;
|
|
uint uVar4;
|
|
byte *pbVar5;
|
|
|
|
if (((ulong)this[1].vftablePtr & 1) != 0) {
|
|
if ((byte *)*param_2 <= param_1) {
|
|
param_1 = (byte *)FUN_002f822a(param_2);
|
|
}
|
|
uVar4 = (uint)this[1].data.offset_0x0;
|
|
*param_1 = 8;
|
|
if (uVar4 < 0x80) {
|
|
param_1[1] = (byte)uVar4;
|
|
uVar1 = (this->data).offset_0x0;
|
|
param_1 = param_1 + 2;
|
|
goto joined_r0x0024c33f;
|
|
}
|
|
param_1[1] = (byte)uVar4 | 0x80;
|
|
pbVar2 = param_1 + 2;
|
|
uVar3 = uVar4 >> 7;
|
|
if (uVar4 < 0x4000) {
|
|
param_1[2] = (byte)(uVar4 >> 7);
|
|
param_1 = param_1 + 3;
|
|
}
|
|
else {
|
|
do {
|
|
pbVar5 = pbVar2;
|
|
uVar4 = uVar3 >> 7;
|
|
*pbVar5 = (byte)uVar3 | 0x80;
|
|
pbVar2 = pbVar5 + 1;
|
|
uVar3 = uVar4;
|
|
} while (0x7f < uVar4);
|
|
param_1 = pbVar5 + 2;
|
|
pbVar5[1] = (byte)uVar4;
|
|
}
|
|
}
|
|
uVar1 = (this->data).offset_0x0;
|
|
joined_r0x0024c33f:
|
|
if ((uVar1 & 1) != 0) {
|
|
FUN_00359676((uVar1 & 0xfffffffffffffffc) + 8,param_1,param_2);
|
|
return;
|
|
}
|
|
return;
|
|
}
|
|
|
|
|
|
// 00251430 CMsgGetZoom::vfunction10
|
|
|
|
ulong __thiscall CMsgGetZoom::vfunction10(CMsgGetZoom *this)
|
|
|
|
{
|
|
int iVar1;
|
|
uint uVar2;
|
|
ulong uVar3;
|
|
|
|
uVar3 = 0;
|
|
uVar2 = 0;
|
|
if (((ulong)this[1].vftablePtr & 1) != 0) {
|
|
uVar2 = (uint)this[1].data.offset_0x0 | 1;
|
|
iVar1 = 0x1f;
|
|
if (uVar2 != 0) {
|
|
for (; uVar2 >> iVar1 == 0; iVar1 = iVar1 + -1) {
|
|
}
|
|
}
|
|
uVar2 = (iVar1 * 9 + 0x49U >> 6) + 1;
|
|
uVar3 = (ulong)uVar2;
|
|
}
|
|
if (((this->data).offset_0x0 & 1) == 0) {
|
|
*(uint *)((long)&this[1].vftablePtr + 4) = uVar2;
|
|
return uVar3;
|
|
}
|
|
uVar3 = FUN_00359fe2(&this->data,uVar3,(undefined1 *)((long)&this[1].vftablePtr + 4));
|
|
return uVar3;
|
|
}
|
|
|
|
|
|
// 00252a60 CMsgGetZoom::vfunction11
|
|
|
|
undefined4 __thiscall CMsgGetZoom::vfunction11(CMsgGetZoom *this)
|
|
|
|
{
|
|
return *(undefined4 *)((long)&this[1].vftablePtr + 4);
|
|
}
|
|
|
|
|
|
// 00257730 CMsgGetZoom::~CMsgGetZoom
|
|
|
|
void __thiscall CMsgGetZoom::~CMsgGetZoom(CMsgGetZoom *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;
|
|
}
|
|
|
|
|
|
// 00259810 CMsgGetZoom::~CMsgGetZoom
|
|
|
|
void __thiscall CMsgGetZoom::~CMsgGetZoom(CMsgGetZoom *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;
|
|
}
|
|
|
|
|
|
// 0026cac0 CMsgGetZoom::vfunction20
|
|
|
|
undefined1 [16] __thiscall CMsgGetZoom::vfunction20(void)
|
|
|
|
{
|
|
FUN_0033e2d0(&DAT_00466400,0);
|
|
return *(undefined1 (*) [16])(PTR_DAT_00466448 + 0x520);
|
|
}
|
|
|
|
|
|
// 00272e60 CMsgGetZoom::vfunction5
|
|
|
|
void __thiscall CMsgGetZoom::vfunction5(CMsgGetZoom *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;
|
|
*(undefined4 *)(puVar1 + 3) = 0;
|
|
return;
|
|
}
|
|
puVar1 = (undefined8 *)FUN_003a1a2c(0x20);
|
|
puVar1[1] = 0;
|
|
*puVar1 = &vftable;
|
|
puVar1[2] = 0;
|
|
*(undefined4 *)(puVar1 + 3) = 0;
|
|
return;
|
|
}
|
|
|
|
|
|
// 00272e70 CMsgGetZoom::CMsgGetZoom_Constructor_or_Destructor
|
|
|
|
/* WARNING: Removing unreachable block (ram,0x00272df6) */
|
|
|
|
void __thiscall CMsgGetZoom::CMsgGetZoom_Constructor_or_Destructor(CMsgGetZoom *this)
|
|
|
|
{
|
|
undefined8 *puVar1;
|
|
|
|
puVar1 = (undefined8 *)FUN_003a1a2c(0x20);
|
|
puVar1[1] = 0;
|
|
*puVar1 = &vftable;
|
|
puVar1[2] = 0;
|
|
*(undefined4 *)(puVar1 + 3) = 0;
|
|
return;
|
|
}
|
|
|
|
|
|
// 00282520 CMsgGetZoom::vfunction12
|
|
|
|
byte * __thiscall CMsgGetZoom::vfunction12(CMsgGetZoom *this,byte *param_1,undefined8 *param_2)
|
|
|
|
{
|
|
byte bVar1;
|
|
ulong uVar2;
|
|
uint uVar3;
|
|
long lVar4;
|
|
char extraout_DL;
|
|
byte *pbVar5;
|
|
uint uVar6;
|
|
int iVar7;
|
|
ulong uVar8;
|
|
uint uVar9;
|
|
long in_FS_OFFSET;
|
|
undefined1 auVar10 [12];
|
|
undefined4 local_34;
|
|
long local_30;
|
|
|
|
uVar9 = 0;
|
|
local_30 = *(long *)(in_FS_OFFSET + 0x28);
|
|
do {
|
|
if ((byte *)*param_2 <= param_1) goto LAB_00282644;
|
|
LAB_00282552:
|
|
bVar1 = *param_1;
|
|
uVar8 = (ulong)bVar1;
|
|
pbVar5 = param_1 + 1;
|
|
if (bVar1 < 0x80) {
|
|
LAB_00282577:
|
|
uVar3 = (uint)(uVar8 >> 3);
|
|
param_1 = pbVar5;
|
|
}
|
|
else {
|
|
uVar8 = (ulong)((uint)bVar1 + (param_1[1] - 1) * 0x80);
|
|
if (param_1[1] < 0x80) {
|
|
pbVar5 = param_1 + 2;
|
|
goto LAB_00282577;
|
|
}
|
|
auVar10 = FUN_002ea28a();
|
|
uVar8 = (ulong)auVar10._8_4_;
|
|
if (auVar10._0_8_ == (byte *)0x0) goto LAB_002825c4;
|
|
uVar3 = auVar10._8_4_ >> 3;
|
|
param_1 = auVar10._0_8_;
|
|
}
|
|
uVar6 = (uint)uVar8;
|
|
if (uVar3 != 1) {
|
|
if ((uVar6 & 7) == 4) goto LAB_002826c0;
|
|
if (uVar6 != 0) goto LAB_0028259b;
|
|
iVar7 = -1;
|
|
goto LAB_002826c3;
|
|
}
|
|
if ((char)uVar8 == '\b') {
|
|
param_1 = (byte *)FUN_002762b0(param_1,&local_34);
|
|
*(undefined4 *)&this[1].data.offset_0x0 = local_34;
|
|
if (param_1 == (byte *)0x0) {
|
|
param_1 = (byte *)0x0;
|
|
uVar9 = 1;
|
|
goto LAB_002825c6;
|
|
}
|
|
uVar9 = 1;
|
|
if ((byte *)*param_2 <= param_1) {
|
|
LAB_00282644:
|
|
iVar7 = (int)((long)param_1 - param_2[1]);
|
|
if (iVar7 == *(int *)((long)param_2 + 0x1c)) {
|
|
if ((iVar7 < 1) || (param_2[2] != 0)) goto LAB_002825c6;
|
|
goto LAB_002825c4;
|
|
}
|
|
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_002825c6;
|
|
}
|
|
goto LAB_00282552;
|
|
}
|
|
if ((uVar6 & 7) == 4) {
|
|
LAB_002826c0:
|
|
iVar7 = uVar6 - 1;
|
|
LAB_002826c3:
|
|
*(int *)(param_2 + 10) = iVar7;
|
|
goto LAB_002825c6;
|
|
}
|
|
LAB_0028259b:
|
|
uVar2 = (this->data).offset_0x0;
|
|
if ((uVar2 & 1) == 0) {
|
|
lVar4 = FUN_002762f0(&this->data);
|
|
}
|
|
else {
|
|
lVar4 = (uVar2 & 0xfffffffffffffffc) + 8;
|
|
}
|
|
param_1 = (byte *)FUN_003589df(uVar8,lVar4,param_1,param_2);
|
|
if (param_1 == (byte *)0x0) {
|
|
LAB_002825c4:
|
|
param_1 = (byte *)0x0;
|
|
LAB_002825c6:
|
|
*(uint *)&this[1].vftablePtr = *(uint *)&this[1].vftablePtr | uVar9;
|
|
if (local_30 == *(long *)(in_FS_OFFSET + 0x28)) {
|
|
return param_1;
|
|
}
|
|
/* WARNING: Subroutine does not return */
|
|
FUN_00219340();
|
|
}
|
|
} while( true );
|
|
}
|
|
|
|
|
|
// 0029fbf0 CMsgGetZoom::vfunction16
|
|
|
|
void __thiscall CMsgGetZoom::vfunction16(CMsgGetZoom *this,undefined8 param_1)
|
|
|
|
{
|
|
undefined4 uVar1;
|
|
ulong uVar2;
|
|
long lVar3;
|
|
long lVar4;
|
|
|
|
lVar3 = FUN_0039e006(param_1,&google::protobuf::Message::typeinfo,&typeinfo,0);
|
|
if (lVar3 != 0) {
|
|
uVar2 = *(ulong *)(lVar3 + 8);
|
|
if ((uVar2 & 1) != 0) {
|
|
if ((uVar2 & 1) == 0) {
|
|
lVar4 = (*(code *)(ulong)((uint)uVar2 & 1))();
|
|
}
|
|
else {
|
|
lVar4 = (uVar2 & 0xfffffffffffffffc) + 8;
|
|
}
|
|
FUN_002921f0(&this->data,lVar4);
|
|
}
|
|
if ((*(byte *)(lVar3 + 0x10) & 1) != 0) {
|
|
uVar1 = *(undefined4 *)(lVar3 + 0x18);
|
|
*(uint *)&this[1].vftablePtr = *(uint *)&this[1].vftablePtr | 1;
|
|
*(undefined4 *)&this[1].data.offset_0x0 = uVar1;
|
|
}
|
|
return;
|
|
}
|
|
FUN_0034dd68(param_1,this);
|
|
return;
|
|
}
|
|
|
|
|
|
// 002a7050 CMsgGetZoom::vfunction6
|
|
|
|
void __thiscall CMsgGetZoom::vfunction6(CMsgGetZoom *this)
|
|
|
|
{
|
|
*(undefined4 *)&this[1].data.offset_0x0 = 0;
|
|
*(undefined4 *)&this[1].vftablePtr = 0;
|
|
if (((this->data).offset_0x0 & 1) == 0) {
|
|
return;
|
|
}
|
|
FUN_002a4470(&this->data);
|
|
return;
|
|
}
|
|
|
|
|
|
// 002ab420 CMsgGetZoom::vfunction15
|
|
|
|
void __thiscall CMsgGetZoom::vfunction15(CMsgGetZoom *this,CMsgGetZoom *param_1)
|
|
|
|
{
|
|
undefined4 uVar1;
|
|
ulong uVar2;
|
|
long lVar3;
|
|
long lVar4;
|
|
|
|
if (this == param_1) {
|
|
return;
|
|
}
|
|
*(undefined4 *)&this[1].data.offset_0x0 = 0;
|
|
*(undefined4 *)&this[1].vftablePtr = 0;
|
|
if (((this->data).offset_0x0 & 1) != 0) {
|
|
FUN_002a4470(&this->data);
|
|
}
|
|
lVar3 = FUN_0039e006(param_1,&google::protobuf::Message::typeinfo,&typeinfo,0);
|
|
if (lVar3 != 0) {
|
|
uVar2 = *(ulong *)(lVar3 + 8);
|
|
if ((uVar2 & 1) != 0) {
|
|
if ((uVar2 & 1) == 0) {
|
|
lVar4 = (*(code *)(ulong)((uint)uVar2 & 1))();
|
|
}
|
|
else {
|
|
lVar4 = (uVar2 & 0xfffffffffffffffc) + 8;
|
|
}
|
|
FUN_002921f0(&this->data,lVar4);
|
|
}
|
|
if ((*(byte *)(lVar3 + 0x10) & 1) != 0) {
|
|
uVar1 = *(undefined4 *)(lVar3 + 0x18);
|
|
*(uint *)&this[1].vftablePtr = *(uint *)&this[1].vftablePtr | 1;
|
|
*(undefined4 *)&this[1].data.offset_0x0 = uVar1;
|
|
}
|
|
return;
|
|
}
|
|
FUN_0034dd68(param_1,this);
|
|
return;
|
|
}
|
|
|
|
|