56 lines
1.8 KiB
C
56 lines
1.8 KiB
C
/* MessageServer_Release_x64.exe sha256 7911b15c4379625eaa12ff227708aa3a033bc6ac2cf6b34283136e3a62df25f1
|
|
* Ghidra 12.1.2 decompiler output for 0x1400ade40 FUN_1400ade40
|
|
* Pseudocode, not original source. */
|
|
|
|
uint FUN_1400ade40(longlong param_1,uint param_2,undefined8 param_3)
|
|
|
|
{
|
|
undefined8 *puVar1;
|
|
uint uVar2;
|
|
int *piVar3;
|
|
undefined8 uVar4;
|
|
longlong *local_res8;
|
|
|
|
piVar3 = (int *)(**(code **)(*(longlong *)(param_1 + -0x70) + 0x58))(param_1 + -0x70);
|
|
FUN_14006b350(piVar3);
|
|
if (param_2 == 1) {
|
|
*(undefined8 *)(param_1 + 0x14f8) = param_3;
|
|
FUN_14006b3e0((longlong)piVar3);
|
|
uVar2 = 1;
|
|
}
|
|
else if (param_2 == *(uint *)(param_1 + 0x1508)) {
|
|
*(undefined8 *)(param_1 + 0x17f8) = param_3;
|
|
uVar4 = FUN_14006b3e0((longlong)piVar3);
|
|
uVar2 = (uint)CONCAT71((int7)((ulonglong)uVar4 >> 8),1);
|
|
}
|
|
else {
|
|
FUN_1400aca90((longlong *)(param_1 + -0x70),(longlong *)&local_res8,param_2);
|
|
if ((local_res8 == (longlong *)0x0) || (*local_res8 == 0)) {
|
|
if ((local_res8 != (longlong *)0x0) &&
|
|
(local_res8[1] = local_res8[1] + -1, local_res8[1] == 0)) {
|
|
puVar1 = (undefined8 *)*local_res8;
|
|
if (puVar1 != (undefined8 *)0x0) {
|
|
(**(code **)*puVar1)(puVar1,1);
|
|
}
|
|
FUN_14006cc60(local_res8);
|
|
}
|
|
uVar2 = FUN_14006b3e0((longlong)piVar3);
|
|
uVar2 = uVar2 & 0xffffff00;
|
|
}
|
|
else {
|
|
*(undefined8 *)(*local_res8 + 0x678) = param_3;
|
|
if ((local_res8 != (longlong *)0x0) &&
|
|
(local_res8[1] = local_res8[1] + -1, local_res8[1] == 0)) {
|
|
puVar1 = (undefined8 *)*local_res8;
|
|
if (puVar1 != (undefined8 *)0x0) {
|
|
(**(code **)*puVar1)(puVar1,1);
|
|
}
|
|
FUN_14006cc60(local_res8);
|
|
}
|
|
uVar4 = FUN_14006b3e0((longlong)piVar3);
|
|
uVar2 = (uint)CONCAT71((int7)((ulonglong)uVar4 >> 8),1);
|
|
}
|
|
}
|
|
return uVar2;
|
|
}
|
|
|