65 lines
2.5 KiB
C
65 lines
2.5 KiB
C
/* Agent_Release_x64.exe sha256 6f2be7b8eb799ba51b359d1958720aac5baee5b7ee0d1d36684d3cbd72d45469
|
|
* Ghidra 12.1.2 decompiler output for 0x14004cd40 FUN_14004cd40
|
|
* Pseudocode, not original source. */
|
|
|
|
/* WARNING: Globals starting with '_' overlap smaller symbols at the same address */
|
|
|
|
void FUN_14004cd40(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_14004c590(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_140155158 < 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_14015de10;
|
|
(**(code **)(*(longlong *)(param_1 + 0x4a8) + 0x130))();
|
|
}
|
|
lVar1 = 0;
|
|
if (lVar2 != 0) {
|
|
lVar1 = *(longlong *)(lVar2 + 0x18);
|
|
}
|
|
}
|
|
/* WARNING: Subroutine does not return */
|
|
FUN_14000b450(0x80004005);
|
|
}
|
|
|