45 lines
1 KiB
C
45 lines
1 KiB
C
/* Agent_Release_x64.exe sha256 6f2be7b8eb799ba51b359d1958720aac5baee5b7ee0d1d36684d3cbd72d45469
|
|
* Ghidra 12.1.2 decompiler output for 0x14002ea30 FUN_14002ea30
|
|
* Pseudocode, not original source. */
|
|
|
|
void FUN_14002ea30(longlong *param_1,int param_2)
|
|
|
|
{
|
|
int *piVar1;
|
|
undefined *puVar2;
|
|
int iVar3;
|
|
int iVar4;
|
|
|
|
puVar2 = (undefined *)*param_1;
|
|
iVar4 = 0;
|
|
if (0 < param_2) {
|
|
iVar4 = param_2;
|
|
}
|
|
if (puVar2 == (undefined *)0x0) {
|
|
iVar3 = 0;
|
|
}
|
|
else if (puVar2 == PTR_DAT_140155008) {
|
|
iVar3 = 0;
|
|
}
|
|
else {
|
|
iVar3 = *(int *)(puVar2 + -8);
|
|
}
|
|
if (iVar3 <= iVar4) {
|
|
if (puVar2 == (undefined *)0x0) {
|
|
iVar4 = 0;
|
|
}
|
|
else if (puVar2 == PTR_DAT_140155008) {
|
|
iVar4 = 0;
|
|
}
|
|
else {
|
|
iVar4 = *(int *)(puVar2 + -8);
|
|
}
|
|
}
|
|
if (((puVar2 != PTR_DAT_140155008) && (puVar2 != (undefined *)0x0)) &&
|
|
(piVar1 = (int *)(puVar2 + -8), piVar1 != (int *)0x0)) {
|
|
*piVar1 = iVar4;
|
|
*(undefined1 *)((longlong)iVar4 + 8 + (longlong)piVar1) = 0;
|
|
}
|
|
return;
|
|
}
|
|
|