add agent manager release decomp
This commit is contained in:
parent
31ff800b2a
commit
fac6117145
7019 changed files with 254032 additions and 5 deletions
37
decomp/AgentManager_Release_x64/full/functions/0x1400d5e80.c
Normal file
37
decomp/AgentManager_Release_x64/full/functions/0x1400d5e80.c
Normal file
|
|
@ -0,0 +1,37 @@
|
|||
/* AgentManager_Release_x64.exe sha256 8fd8ca91725858651a7839d34257b10c2970ac16c97e60c523b8b0c983fcb186
|
||||
* Ghidra 12.1.2 decompiler output for 0x1400d5e80 FUN_1400d5e80
|
||||
* Pseudocode, not original source. */
|
||||
|
||||
int FUN_1400d5e80(int *param_1)
|
||||
|
||||
{
|
||||
uint uVar1;
|
||||
int *piVar2;
|
||||
uint uVar3;
|
||||
int iVar4;
|
||||
int iVar5;
|
||||
|
||||
iVar5 = *param_1;
|
||||
if (iVar5 == 0) {
|
||||
return 0;
|
||||
}
|
||||
iVar4 = 0;
|
||||
if (0 < iVar5) {
|
||||
piVar2 = *(int **)(param_1 + 4);
|
||||
do {
|
||||
if (*piVar2 != 0) break;
|
||||
iVar4 = iVar4 + 1;
|
||||
piVar2 = piVar2 + 1;
|
||||
} while (iVar4 < iVar5);
|
||||
}
|
||||
iVar5 = iVar4 * 0x1c;
|
||||
uVar1 = *(uint *)(*(longlong *)(param_1 + 4) + (longlong)iVar4 * 4);
|
||||
uVar3 = uVar1 & 1;
|
||||
while (uVar3 == 0) {
|
||||
uVar3 = uVar1 & 0xf;
|
||||
iVar5 = iVar5 + *(int *)(&DAT_140125710 + (ulonglong)uVar3 * 4);
|
||||
uVar1 = uVar1 >> 4;
|
||||
}
|
||||
return iVar5;
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue