45 lines
1 KiB
C
45 lines
1 KiB
C
/* AgentManager_Release_x64.exe sha256 8fd8ca91725858651a7839d34257b10c2970ac16c97e60c523b8b0c983fcb186
|
|
* Ghidra 12.1.2 decompiler output for 0x14003d3c0 FUN_14003d3c0
|
|
* Pseudocode, not original source. */
|
|
|
|
void FUN_14003d3c0(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_14016f008) {
|
|
iVar3 = 0;
|
|
}
|
|
else {
|
|
iVar3 = *(int *)(puVar2 + -8);
|
|
}
|
|
if (iVar3 <= iVar4) {
|
|
if (puVar2 == (undefined *)0x0) {
|
|
iVar4 = 0;
|
|
}
|
|
else if (puVar2 == PTR_DAT_14016f008) {
|
|
iVar4 = 0;
|
|
}
|
|
else {
|
|
iVar4 = *(int *)(puVar2 + -8);
|
|
}
|
|
}
|
|
if (((puVar2 != PTR_DAT_14016f008) && (puVar2 != (undefined *)0x0)) &&
|
|
(piVar1 = (int *)(puVar2 + -8), piVar1 != (int *)0x0)) {
|
|
*piVar1 = iVar4;
|
|
*(undefined1 *)((longlong)iVar4 + 8 + (longlong)piVar1) = 0;
|
|
}
|
|
return;
|
|
}
|
|
|