add agent manager release decomp
This commit is contained in:
parent
31ff800b2a
commit
fac6117145
7019 changed files with 254032 additions and 5 deletions
83
decomp/AgentManager_Release_x64/full/functions/0x1400a71c0.c
Normal file
83
decomp/AgentManager_Release_x64/full/functions/0x1400a71c0.c
Normal file
|
|
@ -0,0 +1,83 @@
|
|||
/* AgentManager_Release_x64.exe sha256 8fd8ca91725858651a7839d34257b10c2970ac16c97e60c523b8b0c983fcb186
|
||||
* Ghidra 12.1.2 decompiler output for 0x1400a71c0 FUN_1400a71c0
|
||||
* Pseudocode, not original source. */
|
||||
|
||||
ulonglong *
|
||||
FUN_1400a71c0(ulonglong *param_1,undefined8 param_2,undefined8 param_3,undefined8 param_4)
|
||||
|
||||
{
|
||||
int iVar1;
|
||||
undefined8 *puVar2;
|
||||
int *piVar3;
|
||||
ulonglong uVar4;
|
||||
int **ppiVar5;
|
||||
undefined1 uVar6;
|
||||
undefined7 uVar7;
|
||||
bool bVar8;
|
||||
int *local_res10;
|
||||
|
||||
uVar6 = (undefined1)param_3;
|
||||
uVar7 = (undefined7)((ulonglong)param_3 >> 8);
|
||||
LOCK();
|
||||
bVar8 = DAT_140179500 == 0;
|
||||
if (bVar8) {
|
||||
DAT_140179500 = 1;
|
||||
}
|
||||
UNLOCK();
|
||||
if (bVar8) {
|
||||
puVar2 = (undefined8 *)FUN_14003e840(0x2c0);
|
||||
if (puVar2 == (undefined8 *)0x0) {
|
||||
puVar2 = (undefined8 *)0x0;
|
||||
}
|
||||
else {
|
||||
puVar2 = FUN_1400c7f30(puVar2,param_2,CONCAT71(uVar7,uVar6),param_4);
|
||||
}
|
||||
if (puVar2 == (undefined8 *)0x0) {
|
||||
local_res10 = (int *)0x0;
|
||||
}
|
||||
else {
|
||||
piVar3 = (int *)FUN_14003e840(0x48);
|
||||
if (piVar3 != (int *)0x0) {
|
||||
local_res10 = piVar3;
|
||||
uVar4 = FUN_140094860();
|
||||
uVar6 = 1;
|
||||
FUN_14003cf60(piVar3,uVar4 & 0xffffffff,CONCAT71(uVar7,1),param_4);
|
||||
}
|
||||
local_res10 = piVar3;
|
||||
FUN_14003d040(piVar3);
|
||||
piVar3[0x10] = 1;
|
||||
piVar3[0x11] = 0;
|
||||
*(undefined8 **)(piVar3 + 0xe) = puVar2;
|
||||
FUN_14003d0d0((longlong)piVar3);
|
||||
}
|
||||
ppiVar5 = &local_res10;
|
||||
FUN_14009d690((ulonglong *)&DAT_140179508,(ulonglong *)ppiVar5,CONCAT71(uVar7,uVar6),param_4);
|
||||
FUN_14009d3d0((longlong *)&local_res10,ppiVar5,CONCAT71(uVar7,uVar6),param_4);
|
||||
LOCK();
|
||||
UNLOCK();
|
||||
DAT_140179500 = 2;
|
||||
}
|
||||
else {
|
||||
LOCK();
|
||||
iVar1 = DAT_140179500;
|
||||
if (DAT_140179500 == 9999) {
|
||||
DAT_140179500 = 999;
|
||||
iVar1 = 9999;
|
||||
}
|
||||
UNLOCK();
|
||||
while (iVar1 != 2) {
|
||||
Sleep(5);
|
||||
LOCK();
|
||||
iVar1 = DAT_140179500;
|
||||
if (DAT_140179500 == 9999) {
|
||||
DAT_140179500 = 999;
|
||||
iVar1 = 9999;
|
||||
}
|
||||
UNLOCK();
|
||||
}
|
||||
}
|
||||
*param_1 = 0;
|
||||
FUN_14009d690(param_1,(ulonglong *)&DAT_140179508,CONCAT71(uVar7,uVar6),param_4);
|
||||
return param_1;
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue