add agent manager release decomp
This commit is contained in:
parent
31ff800b2a
commit
fac6117145
7019 changed files with 254032 additions and 5 deletions
65
decomp/AgentManager_Release_x64/full/functions/0x1400e5dd8.c
Normal file
65
decomp/AgentManager_Release_x64/full/functions/0x1400e5dd8.c
Normal file
|
|
@ -0,0 +1,65 @@
|
|||
/* AgentManager_Release_x64.exe sha256 8fd8ca91725858651a7839d34257b10c2970ac16c97e60c523b8b0c983fcb186
|
||||
* Ghidra 12.1.2 decompiler output for 0x1400e5dd8 FUN_1400e5dd8
|
||||
* Pseudocode, not original source. */
|
||||
|
||||
undefined8 FUN_1400e5dd8(longlong param_1,int param_2)
|
||||
|
||||
{
|
||||
longlong lVar1;
|
||||
int iVar2;
|
||||
longlong lVar3;
|
||||
uint uVar4;
|
||||
uint uVar5;
|
||||
|
||||
lVar1 = *(longlong *)(param_1 + 0x28);
|
||||
if (*(longlong *)(lVar1 + 0x38) == 0) {
|
||||
lVar3 = (**(code **)(param_1 + 0x30))
|
||||
(*(undefined8 *)(param_1 + 0x40),
|
||||
1 << ((byte)*(undefined4 *)(lVar1 + 0x28) & 0x1f),1);
|
||||
*(longlong *)(lVar1 + 0x38) = lVar3;
|
||||
if (lVar3 == 0) {
|
||||
return 1;
|
||||
}
|
||||
}
|
||||
if (*(int *)(lVar1 + 0x2c) == 0) {
|
||||
*(undefined8 *)(lVar1 + 0x30) = 0;
|
||||
*(int *)(lVar1 + 0x2c) = 1 << ((byte)*(undefined4 *)(lVar1 + 0x28) & 0x1f);
|
||||
}
|
||||
uVar4 = param_2 - *(int *)(param_1 + 0x18);
|
||||
uVar5 = *(uint *)(lVar1 + 0x2c);
|
||||
if (uVar4 < uVar5) {
|
||||
uVar5 = uVar5 - *(int *)(lVar1 + 0x34);
|
||||
if (uVar4 < uVar5) {
|
||||
uVar5 = uVar4;
|
||||
}
|
||||
memcpy((void *)((ulonglong)*(uint *)(lVar1 + 0x34) + *(longlong *)(lVar1 + 0x38)),
|
||||
(void *)(*(longlong *)(param_1 + 0x10) - (ulonglong)uVar4),(ulonglong)uVar5);
|
||||
uVar4 = uVar4 - uVar5;
|
||||
if (uVar4 == 0) {
|
||||
*(int *)(lVar1 + 0x34) = *(int *)(lVar1 + 0x34) + uVar5;
|
||||
uVar4 = *(uint *)(lVar1 + 0x34);
|
||||
if (*(uint *)(lVar1 + 0x34) == *(uint *)(lVar1 + 0x2c)) {
|
||||
uVar4 = 0;
|
||||
}
|
||||
*(uint *)(lVar1 + 0x34) = uVar4;
|
||||
if (*(uint *)(lVar1 + 0x2c) <= *(uint *)(lVar1 + 0x30)) {
|
||||
return 0;
|
||||
}
|
||||
iVar2 = *(uint *)(lVar1 + 0x30) + uVar5;
|
||||
goto LAB_1400e5eb4;
|
||||
}
|
||||
memcpy(*(void **)(lVar1 + 0x38),(void *)(*(longlong *)(param_1 + 0x10) - (ulonglong)uVar4),
|
||||
(ulonglong)uVar4);
|
||||
*(uint *)(lVar1 + 0x34) = uVar4;
|
||||
}
|
||||
else {
|
||||
memcpy(*(void **)(lVar1 + 0x38),(void *)(*(longlong *)(param_1 + 0x10) - (ulonglong)uVar5),
|
||||
(ulonglong)uVar5);
|
||||
*(undefined4 *)(lVar1 + 0x34) = 0;
|
||||
}
|
||||
iVar2 = *(int *)(lVar1 + 0x2c);
|
||||
LAB_1400e5eb4:
|
||||
*(int *)(lVar1 + 0x30) = iVar2;
|
||||
return 0;
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue