decompiled agent_release
This commit is contained in:
parent
baac905ef2
commit
11a3488883
6439 changed files with 229565 additions and 1 deletions
125
decomp/Agent_Release_x64/full/functions/0x1400a4210.c
Normal file
125
decomp/Agent_Release_x64/full/functions/0x1400a4210.c
Normal file
|
|
@ -0,0 +1,125 @@
|
|||
/* Agent_Release_x64.exe sha256 6f2be7b8eb799ba51b359d1958720aac5baee5b7ee0d1d36684d3cbd72d45469
|
||||
* Ghidra 12.1.2 decompiler output for 0x1400a4210 FUN_1400a4210
|
||||
* Pseudocode, not original source. */
|
||||
|
||||
void FUN_1400a4210(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_140095370(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_14002f590();
|
||||
}
|
||||
if (param_2[1] == 0) {
|
||||
lVar5 = *param_2;
|
||||
if ((int)uVar4 < 1) {
|
||||
if (lVar5 == 0) goto LAB_1400a427e;
|
||||
uVar4 = 0;
|
||||
}
|
||||
else if (lVar5 == 0) {
|
||||
/* WARNING: Subroutine does not return */
|
||||
FUN_140095370(0,(ulonglong)uVar4,param_3,param_4);
|
||||
}
|
||||
FUN_14001bc70(lVar5,uVar4,param_3);
|
||||
}
|
||||
else {
|
||||
if (*(int *)((longlong)param_2 + 0x14) < (int)uVar4) {
|
||||
/* WARNING: Subroutine does not return */
|
||||
FUN_14002f590();
|
||||
}
|
||||
*(uint *)(param_2 + 2) = uVar4;
|
||||
lVar5 = param_1;
|
||||
}
|
||||
LAB_1400a427e:
|
||||
lVar2 = *(longlong *)(param_1 + 8);
|
||||
if (lVar2 == 0) {
|
||||
if (*(longlong *)(param_1 + 0x10) == 0) {
|
||||
/* WARNING: Subroutine does not return */
|
||||
FUN_140095370(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_140095370(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_14002f1e0(local_98,(wchar_t *)PTR_u_ArrayWithExternalBuffer_is_unini_1401569a0,param_3,
|
||||
param_4);
|
||||
/* WARNING: Subroutine does not return */
|
||||
_CxxThrowException(local_98,(ThrowInfo *)&DAT_140151b88);
|
||||
}
|
||||
}
|
||||
_Dst = (undefined8 *)param_2[1];
|
||||
if (_Dst == (undefined8 *)0x0) {
|
||||
lVar5 = *param_2;
|
||||
if (lVar5 == 0) {
|
||||
/* WARNING: Subroutine does not return */
|
||||
FUN_140095370(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