add agent manager release decomp
This commit is contained in:
parent
31ff800b2a
commit
fac6117145
7019 changed files with 254032 additions and 5 deletions
95
decomp/AgentManager_Release_x64/full/functions/0x14005c800.c
Normal file
95
decomp/AgentManager_Release_x64/full/functions/0x14005c800.c
Normal file
|
|
@ -0,0 +1,95 @@
|
|||
/* AgentManager_Release_x64.exe sha256 8fd8ca91725858651a7839d34257b10c2970ac16c97e60c523b8b0c983fcb186
|
||||
* Ghidra 12.1.2 decompiler output for 0x14005c800 FUN_14005c800
|
||||
* Pseudocode, not original source. */
|
||||
|
||||
ulonglong * FUN_14005c800(ulonglong *param_1,undefined8 param_2,undefined8 param_3,longlong param_4)
|
||||
|
||||
{
|
||||
longlong *plVar1;
|
||||
int iVar2;
|
||||
undefined1 *puVar3;
|
||||
int *piVar4;
|
||||
ulonglong uVar5;
|
||||
int **ppiVar6;
|
||||
undefined1 uVar7;
|
||||
undefined7 uVar8;
|
||||
bool bVar9;
|
||||
int *local_res10;
|
||||
|
||||
uVar7 = (undefined1)param_3;
|
||||
uVar8 = (undefined7)((ulonglong)param_3 >> 8);
|
||||
LOCK();
|
||||
bVar9 = DAT_140178180 == 0;
|
||||
if (bVar9) {
|
||||
DAT_140178180 = 1;
|
||||
}
|
||||
UNLOCK();
|
||||
if (bVar9) {
|
||||
puVar3 = operator_new(0xc0);
|
||||
if (puVar3 == (undefined1 *)0x0) {
|
||||
puVar3 = (undefined1 *)0x0;
|
||||
}
|
||||
else {
|
||||
puVar3 = FUN_140085b30(puVar3,param_2,CONCAT71(uVar8,uVar7),param_4);
|
||||
}
|
||||
if (puVar3 == (undefined1 *)0x0) {
|
||||
piVar4 = (int *)0x0;
|
||||
local_res10 = (int *)0x0;
|
||||
}
|
||||
else {
|
||||
piVar4 = (int *)FUN_14003e840(0x48);
|
||||
if (piVar4 != (int *)0x0) {
|
||||
local_res10 = piVar4;
|
||||
uVar5 = FUN_140094860();
|
||||
uVar7 = 1;
|
||||
FUN_14003cf60(piVar4,uVar5 & 0xffffffff,CONCAT71(uVar8,1),param_4);
|
||||
}
|
||||
local_res10 = piVar4;
|
||||
FUN_14003d040(piVar4);
|
||||
piVar4[0x10] = 1;
|
||||
piVar4[0x11] = 0;
|
||||
*(undefined1 **)(piVar4 + 0xe) = puVar3;
|
||||
FUN_14003d0d0((longlong)piVar4);
|
||||
}
|
||||
ppiVar6 = &local_res10;
|
||||
FUN_140051320(&DAT_140178188,(ulonglong *)ppiVar6,CONCAT71(uVar8,uVar7),param_4);
|
||||
if (piVar4 != (int *)0x0) {
|
||||
FUN_14003d040(piVar4);
|
||||
plVar1 = (longlong *)(piVar4 + 0x10);
|
||||
*plVar1 = *plVar1 + -1;
|
||||
if (*plVar1 == 0) {
|
||||
FUN_14003d0d0((longlong)piVar4);
|
||||
FUN_14004e4b0(piVar4,ppiVar6,CONCAT71(uVar8,uVar7),param_4);
|
||||
}
|
||||
else {
|
||||
FUN_14003d0d0((longlong)piVar4);
|
||||
}
|
||||
}
|
||||
LOCK();
|
||||
UNLOCK();
|
||||
DAT_140178180 = 2;
|
||||
}
|
||||
else {
|
||||
LOCK();
|
||||
iVar2 = DAT_140178180;
|
||||
if (DAT_140178180 == 9999) {
|
||||
DAT_140178180 = 999;
|
||||
iVar2 = 9999;
|
||||
}
|
||||
UNLOCK();
|
||||
while (iVar2 != 2) {
|
||||
Sleep(5);
|
||||
LOCK();
|
||||
iVar2 = DAT_140178180;
|
||||
if (DAT_140178180 == 9999) {
|
||||
DAT_140178180 = 999;
|
||||
iVar2 = 9999;
|
||||
}
|
||||
UNLOCK();
|
||||
}
|
||||
}
|
||||
*param_1 = 0;
|
||||
FUN_140051320(param_1,&DAT_140178188,CONCAT71(uVar8,uVar7),param_4);
|
||||
return param_1;
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue