add agent manager release decomp
This commit is contained in:
parent
31ff800b2a
commit
fac6117145
7019 changed files with 254032 additions and 5 deletions
125
decomp/AgentManager_Release_x64/full/functions/0x1400bfd50.c
Normal file
125
decomp/AgentManager_Release_x64/full/functions/0x1400bfd50.c
Normal file
|
|
@ -0,0 +1,125 @@
|
|||
/* AgentManager_Release_x64.exe sha256 8fd8ca91725858651a7839d34257b10c2970ac16c97e60c523b8b0c983fcb186
|
||||
* Ghidra 12.1.2 decompiler output for 0x1400bfd50 FUN_1400bfd50
|
||||
* Pseudocode, not original source. */
|
||||
|
||||
void FUN_1400bfd50(longlong param_1,longlong *param_2,SIZE_T param_3,undefined8 param_4)
|
||||
|
||||
{
|
||||
undefined1 uVar1;
|
||||
longlong lVar2;
|
||||
undefined8 uVar3;
|
||||
uint uVar4;
|
||||
longlong lVar5;
|
||||
undefined8 *_Dst;
|
||||
undefined8 *_Src;
|
||||
undefined8 *puVar6;
|
||||
size_t _Size;
|
||||
ulonglong uVar7;
|
||||
ulonglong uVar8;
|
||||
exception local_98 [144];
|
||||
|
||||
if (*(longlong *)(param_1 + 8) == 0) {
|
||||
if (*(longlong *)(param_1 + 0x10) == 0) {
|
||||
/* WARNING: Subroutine does not return */
|
||||
FUN_14008a420(param_1,param_2,param_3,param_4);
|
||||
}
|
||||
uVar4 = *(uint *)(param_1 + 0x18);
|
||||
}
|
||||
else {
|
||||
uVar4 = *(uint *)(*(longlong *)(param_1 + 8) + 0x18);
|
||||
}
|
||||
if ((int)uVar4 < 0) {
|
||||
/* WARNING: Subroutine does not return */
|
||||
FUN_14003dec0();
|
||||
}
|
||||
if (param_2[1] == 0) {
|
||||
lVar5 = *param_2;
|
||||
if ((int)uVar4 < 1) {
|
||||
if (lVar5 == 0) goto LAB_1400bfdbe;
|
||||
uVar4 = 0;
|
||||
}
|
||||
else if (lVar5 == 0) {
|
||||
/* WARNING: Subroutine does not return */
|
||||
FUN_14008a420(0,(ulonglong)uVar4,param_3,param_4);
|
||||
}
|
||||
FUN_14002a050(lVar5,uVar4,param_3);
|
||||
}
|
||||
else {
|
||||
if (*(int *)((longlong)param_2 + 0x14) < (int)uVar4) {
|
||||
/* WARNING: Subroutine does not return */
|
||||
FUN_14003dec0();
|
||||
}
|
||||
*(uint *)(param_2 + 2) = uVar4;
|
||||
lVar5 = param_1;
|
||||
}
|
||||
LAB_1400bfdbe:
|
||||
lVar2 = *(longlong *)(param_1 + 8);
|
||||
if (lVar2 == 0) {
|
||||
if (*(longlong *)(param_1 + 0x10) == 0) {
|
||||
/* WARNING: Subroutine does not return */
|
||||
FUN_14008a420(lVar5,0,param_3,param_4);
|
||||
}
|
||||
uVar4 = *(uint *)(param_1 + 0x18);
|
||||
}
|
||||
else {
|
||||
uVar4 = *(uint *)(lVar2 + 0x18);
|
||||
}
|
||||
if (*(longlong *)(param_1 + 0x10) == 0) {
|
||||
if (lVar2 == 0) {
|
||||
/* WARNING: Subroutine does not return */
|
||||
FUN_14008a420(lVar5,0,param_3,param_4);
|
||||
}
|
||||
if (*(int *)(lVar2 + 0x18) == 0) {
|
||||
_Src = (undefined8 *)0x0;
|
||||
}
|
||||
else {
|
||||
_Src = *(undefined8 **)(lVar2 + 0x10);
|
||||
}
|
||||
}
|
||||
else {
|
||||
_Src = *(undefined8 **)(param_1 + 0x10);
|
||||
if (_Src == (undefined8 *)0x0) {
|
||||
FUN_14003db10(local_98,(wchar_t *)PTR_u_ArrayWithExternalBuffer_is_unini_140170368,param_3,
|
||||
param_4);
|
||||
/* WARNING: Subroutine does not return */
|
||||
_CxxThrowException(local_98,(ThrowInfo *)&DAT_14016c210);
|
||||
}
|
||||
}
|
||||
_Dst = (undefined8 *)param_2[1];
|
||||
if (_Dst == (undefined8 *)0x0) {
|
||||
lVar5 = *param_2;
|
||||
if (lVar5 == 0) {
|
||||
/* WARNING: Subroutine does not return */
|
||||
FUN_14008a420(0,_Src,param_3,param_4);
|
||||
}
|
||||
if (*(int *)(lVar5 + 0x18) == 0) {
|
||||
_Dst = (undefined8 *)0x0;
|
||||
}
|
||||
else {
|
||||
_Dst = *(undefined8 **)(lVar5 + 0x10);
|
||||
}
|
||||
}
|
||||
_Size = (size_t)(int)uVar4;
|
||||
if (0x20 < _Size) {
|
||||
memcpy(_Dst,_Src,_Size);
|
||||
return;
|
||||
}
|
||||
uVar8 = (ulonglong)(uVar4 & 7);
|
||||
for (uVar7 = _Size >> 3; uVar7 != 0; uVar7 = uVar7 - 1) {
|
||||
uVar3 = *_Src;
|
||||
_Src = _Src + 1;
|
||||
*_Dst = uVar3;
|
||||
_Dst = _Dst + 1;
|
||||
}
|
||||
if (uVar8 != 0) {
|
||||
puVar6 = _Src;
|
||||
do {
|
||||
uVar1 = *(undefined1 *)puVar6;
|
||||
puVar6 = (undefined8 *)((longlong)puVar6 + 1);
|
||||
uVar8 = uVar8 - 1;
|
||||
*(undefined1 *)((longlong)_Dst + (-1 - (longlong)_Src) + (longlong)puVar6) = uVar1;
|
||||
} while (uVar8 != 0);
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue