add agent manager release decomp
This commit is contained in:
parent
31ff800b2a
commit
fac6117145
7019 changed files with 254032 additions and 5 deletions
40
decomp/AgentManager_Release_x64/full/functions/0x1400b7550.c
Normal file
40
decomp/AgentManager_Release_x64/full/functions/0x1400b7550.c
Normal file
|
|
@ -0,0 +1,40 @@
|
|||
/* AgentManager_Release_x64.exe sha256 8fd8ca91725858651a7839d34257b10c2970ac16c97e60c523b8b0c983fcb186
|
||||
* Ghidra 12.1.2 decompiler output for 0x1400b7550 FUN_1400b7550
|
||||
* Pseudocode, not original source. */
|
||||
|
||||
int FUN_1400b7550(undefined8 *param_1)
|
||||
|
||||
{
|
||||
undefined4 *puVar1;
|
||||
undefined8 uVar2;
|
||||
int *piVar3;
|
||||
int iVar4;
|
||||
int iVar5;
|
||||
|
||||
if (param_1 == (undefined8 *)0x0) {
|
||||
return 0x10;
|
||||
}
|
||||
iVar5 = 1;
|
||||
puVar1 = calloc(1,0x18);
|
||||
*param_1 = puVar1;
|
||||
if (puVar1 == (undefined4 *)0x0) {
|
||||
return 0xd;
|
||||
}
|
||||
uVar2 = FUN_1400d5ba0(puVar1);
|
||||
iVar4 = 0;
|
||||
piVar3 = &DAT_140121b80;
|
||||
do {
|
||||
if ((int)uVar2 == *piVar3) {
|
||||
iVar5 = *(int *)(&DAT_140121b84 + (longlong)iVar4 * 8);
|
||||
if (iVar5 == 0) {
|
||||
return 0;
|
||||
}
|
||||
break;
|
||||
}
|
||||
piVar3 = piVar3 + 2;
|
||||
iVar4 = iVar4 + 1;
|
||||
} while ((longlong)piVar3 < 0x140121b98);
|
||||
free((void *)*param_1);
|
||||
return iVar5;
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue