65 lines
2.6 KiB
C
65 lines
2.6 KiB
C
/* AgentManager_Release_x64.exe sha256 8fd8ca91725858651a7839d34257b10c2970ac16c97e60c523b8b0c983fcb186
|
|
* Ghidra 12.1.2 decompiler output for 0x14005a3d0 FUN_14005a3d0
|
|
* Pseudocode, not original source. */
|
|
|
|
/* WARNING: Globals starting with '_' overlap smaller symbols at the same address */
|
|
|
|
void FUN_14005a3d0(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_140059c20(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_14016f158 < 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_140177f90;
|
|
(**(code **)(*(longlong *)(param_1 + 0x4a8) + 0x130))();
|
|
}
|
|
lVar1 = 0;
|
|
if (lVar2 != 0) {
|
|
lVar1 = *(longlong *)(lVar2 + 0x18);
|
|
}
|
|
}
|
|
/* WARNING: Subroutine does not return */
|
|
FUN_1400050d0(0x80004005);
|
|
}
|
|
|