server-re/decomp/MessageServer_Release_x64/full/functions/0x140088f60.c

65 lines
2.6 KiB
C

/* MessageServer_Release_x64.exe sha256 7911b15c4379625eaa12ff227708aa3a033bc6ac2cf6b34283136e3a62df25f1
* Ghidra 12.1.2 decompiler output for 0x140088f60 FUN_140088f60
* Pseudocode, not original source. */
/* WARNING: Globals starting with '_' overlap smaller symbols at the same address */
void FUN_140088f60(longlong param_1,uint *param_2,TypeDescriptor *param_3,TypeDescriptor *param_4)
{
longlong lVar1;
longlong lVar2;
TypeDescriptor *pTVar3;
double dVar4;
void *local_res20;
pTVar3 = param_3;
dVar4 = (double)(**(code **)(*(longlong *)(param_1 + 0x118) + 8))();
lVar1 = 0;
if (*(longlong *)(param_2 + 10) != 0) {
lVar1 = *(longlong *)(param_2 + 6);
}
while( true ) {
lVar2 = lVar1;
if (lVar2 == 0) {
*(void **)(param_2 + 0x24) = param_3->pVFTable;
*(void **)(param_2 + 0x26) = param_3->spare;
*(void **)(param_2 + 0x28) = param_3[1].pVFTable;
*(void **)(param_2 + 0x2a) = param_3[1].spare;
*(void **)(param_2 + 0x2c) = param_3[2].pVFTable;
*(void **)(param_2 + 0x2e) = param_3[2].spare;
*(void **)(param_2 + 0x30) = param_3[3].pVFTable;
*(undefined1 *)(param_2 + 0x22) = 1;
if ((param_2[0x1e] == 0) && (*(longlong *)(param_2 + 10) != 0)) {
FUN_1400887b0(param_1,param_2,(longlong)pTVar3,param_4);
}
return;
}
local_res20 = (void *)0x0;
if (lVar2 == 0) break;
param_4 = &Proud::CRemoteClient_S::RTTI_Type_Descriptor;
pTVar3 = &Proud::CP2PGroupMemberBase_S::RTTI_Type_Descriptor;
local_res20 = (void *)__RTDynamicCast(*(undefined8 *)(lVar2 + 0x10),0,
&Proud::CP2PGroupMemberBase_S::RTTI_Type_Descriptor,
&Proud::CRemoteClient_S::RTTI_Type_Descriptor,0);
if (((local_res20 != (void *)0x0) && (*(double *)((longlong)local_res20 + 0x188) == 0.0)) ||
(_DAT_1401ac158 < dVar4 - *(double *)((longlong)local_res20 + 0x188))) {
*(double *)((longlong)local_res20 + 0x188) = dVar4;
local_res20._1_7_ = (uint7)((ulonglong)local_res20 >> 8);
local_res20 = (void *)CONCAT71(local_res20._1_7_,1);
if ((double)param_3[2].pVFTable <= 0.0) {
local_res20 = (void *)((ulonglong)local_res20._1_7_ << 8);
}
param_4 = (TypeDescriptor *)&local_res20;
pTVar3 = (TypeDescriptor *)&DAT_1401b6110;
(**(code **)(*(longlong *)(param_1 + 0x4a8) + 0x130))();
}
lVar1 = 0;
if (lVar2 != 0) {
lVar1 = *(longlong *)(lVar2 + 0x18);
}
}
/* WARNING: Subroutine does not return */
FUN_1400064e0(0x80004005);
}