add agent manager release decomp
This commit is contained in:
parent
31ff800b2a
commit
fac6117145
7019 changed files with 254032 additions and 5 deletions
76
decomp/AgentManager_Release_x64/full/functions/0x140001d10.c
Normal file
76
decomp/AgentManager_Release_x64/full/functions/0x140001d10.c
Normal file
|
|
@ -0,0 +1,76 @@
|
|||
/* AgentManager_Release_x64.exe sha256 8fd8ca91725858651a7839d34257b10c2970ac16c97e60c523b8b0c983fcb186
|
||||
* Ghidra 12.1.2 decompiler output for 0x140001d10 FUN_140001d10
|
||||
* Pseudocode, not original source. */
|
||||
|
||||
void FUN_140001d10(longlong *param_1,int param_2)
|
||||
|
||||
{
|
||||
undefined *puVar1;
|
||||
int *piVar2;
|
||||
int iVar3;
|
||||
undefined4 in_register_00000014;
|
||||
undefined *puVar4;
|
||||
undefined8 in_R8;
|
||||
ulonglong uVar5;
|
||||
undefined8 in_R9;
|
||||
|
||||
puVar4 = PTR_DAT_14016f010;
|
||||
puVar1 = (undefined *)*param_1;
|
||||
if ((undefined *)*param_1 == (undefined *)0x0) {
|
||||
puVar1 = PTR_DAT_14016f010;
|
||||
}
|
||||
*param_1 = (longlong)puVar1;
|
||||
if (param_2 < 0) {
|
||||
/* WARNING: Subroutine does not return */
|
||||
FUN_14003dec0();
|
||||
}
|
||||
if (param_2 == 0) {
|
||||
FUN_140002190(param_1,CONCAT44(in_register_00000014,param_2),in_R8,in_R9);
|
||||
return;
|
||||
}
|
||||
iVar3 = 0;
|
||||
if (puVar1 != (undefined *)0x0) {
|
||||
if (puVar1 == puVar4) {
|
||||
iVar3 = 0;
|
||||
}
|
||||
else {
|
||||
iVar3 = *(int *)(puVar1 + -8);
|
||||
}
|
||||
}
|
||||
if (param_2 != iVar3) {
|
||||
piVar2 = (int *)FUN_14003e840((longlong)param_2 * 2 + 10);
|
||||
if (piVar2 != (int *)0x0) {
|
||||
*piVar2 = 0;
|
||||
piVar2[1] = 1;
|
||||
}
|
||||
puVar1 = PTR_DAT_14016f010;
|
||||
*piVar2 = param_2;
|
||||
puVar4 = (undefined *)*param_1;
|
||||
if (puVar4 == (undefined *)0x0) {
|
||||
iVar3 = 0;
|
||||
}
|
||||
else if (puVar4 == puVar1) {
|
||||
iVar3 = 0;
|
||||
}
|
||||
else {
|
||||
iVar3 = *(int *)(puVar4 + -8);
|
||||
}
|
||||
if (iVar3 <= param_2) {
|
||||
if ((puVar4 == (undefined *)0x0) || (puVar4 == puVar1)) {
|
||||
param_2 = 0;
|
||||
}
|
||||
else {
|
||||
param_2 = *(int *)(puVar4 + -8);
|
||||
}
|
||||
}
|
||||
if (puVar4 == (undefined *)0x0) {
|
||||
puVar4 = puVar1;
|
||||
}
|
||||
uVar5 = (ulonglong)(uint)param_2;
|
||||
FUN_14003e650(piVar2 + 2,puVar4,param_2);
|
||||
FUN_140002190(param_1,puVar4,uVar5,in_R9);
|
||||
*param_1 = (longlong)(piVar2 + 2);
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue