add agent manager release decomp
This commit is contained in:
parent
31ff800b2a
commit
fac6117145
7019 changed files with 254032 additions and 5 deletions
60
decomp/AgentManager_Release_x64/full/functions/0x14003c0a0.c
Normal file
60
decomp/AgentManager_Release_x64/full/functions/0x14003c0a0.c
Normal file
|
|
@ -0,0 +1,60 @@
|
|||
/* AgentManager_Release_x64.exe sha256 8fd8ca91725858651a7839d34257b10c2970ac16c97e60c523b8b0c983fcb186
|
||||
* Ghidra 12.1.2 decompiler output for 0x14003c0a0 FUN_14003c0a0
|
||||
* Pseudocode, not original source. */
|
||||
|
||||
void FUN_14003c0a0(undefined8 *param_1)
|
||||
|
||||
{
|
||||
int iVar1;
|
||||
undefined8 *puVar2;
|
||||
void *_Dst;
|
||||
undefined1 *puVar3;
|
||||
int iVar4;
|
||||
uint uVar5;
|
||||
undefined2 local_res8;
|
||||
|
||||
if ((param_1[1] != 0) && (0 < *(int *)(param_1[1] + 0x18))) {
|
||||
while( true ) {
|
||||
puVar2 = (undefined8 *)param_1[1];
|
||||
_Dst = (void *)param_1[2];
|
||||
EnterCriticalSection((LPCRITICAL_SECTION)(puVar2 + 4));
|
||||
if (*(int *)((longlong)puVar2 + 0x14) == 0) break;
|
||||
iVar4 = *(int *)(puVar2 + 1);
|
||||
iVar1 = *(int *)((longlong)puVar2 + 0xc);
|
||||
puVar3 = (undefined1 *)*puVar2;
|
||||
if (iVar1 == iVar4 + -1) {
|
||||
local_res8 = CONCAT11(*puVar3,puVar3[iVar1]);
|
||||
}
|
||||
else {
|
||||
local_res8 = *(ushort *)(puVar3 + iVar1);
|
||||
}
|
||||
iVar1 = *(int *)((longlong)puVar2 + 0xc);
|
||||
uVar5 = (uint)local_res8;
|
||||
if (iVar4 < (int)((uint)local_res8 + iVar1)) {
|
||||
iVar4 = iVar4 - iVar1;
|
||||
*(int *)((longlong)puVar2 + 0x4c) = iVar4;
|
||||
*(uint *)(puVar2 + 10) = uVar5 - iVar4;
|
||||
memcpy(_Dst,puVar3 + iVar1,(longlong)iVar4);
|
||||
memcpy((void *)((longlong)*(int *)((longlong)puVar2 + 0x4c) + (longlong)_Dst),
|
||||
(void *)*puVar2,(longlong)*(int *)(puVar2 + 10));
|
||||
*(undefined4 *)((longlong)puVar2 + 0xc) = *(undefined4 *)(puVar2 + 10);
|
||||
}
|
||||
else {
|
||||
memcpy(_Dst,puVar3 + iVar1,(ulonglong)local_res8);
|
||||
*(int *)((longlong)puVar2 + 0xc) = *(int *)((longlong)puVar2 + 0xc) + uVar5;
|
||||
iVar4 = *(int *)((longlong)puVar2 + 0xc);
|
||||
if (iVar4 == *(int *)(puVar2 + 1)) {
|
||||
iVar4 = 0;
|
||||
}
|
||||
*(int *)((longlong)puVar2 + 0xc) = iVar4;
|
||||
}
|
||||
*(int *)((longlong)puVar2 + 0x14) = *(int *)((longlong)puVar2 + 0x14) - uVar5;
|
||||
*(int *)(puVar2 + 3) = *(int *)(puVar2 + 3) + -1;
|
||||
LeaveCriticalSection((LPCRITICAL_SECTION)(puVar2 + 4));
|
||||
(**(code **)*param_1)(param_1,param_1[2]);
|
||||
}
|
||||
LeaveCriticalSection((LPCRITICAL_SECTION)(puVar2 + 4));
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue