decompiled agent_release
This commit is contained in:
parent
baac905ef2
commit
11a3488883
6439 changed files with 229565 additions and 1 deletions
66
decomp/Agent_Release_x64/full/functions/0x1400cd2c0.c
Normal file
66
decomp/Agent_Release_x64/full/functions/0x1400cd2c0.c
Normal file
|
|
@ -0,0 +1,66 @@
|
|||
/* Agent_Release_x64.exe sha256 6f2be7b8eb799ba51b359d1958720aac5baee5b7ee0d1d36684d3cbd72d45469
|
||||
* Ghidra 12.1.2 decompiler output for 0x1400cd2c0 FUN_1400cd2c0
|
||||
* Pseudocode, not original source. */
|
||||
|
||||
ulonglong FUN_1400cd2c0(uint *param_1,uint param_2,uint *param_3,undefined8 *param_4)
|
||||
|
||||
{
|
||||
uint *puVar1;
|
||||
ulonglong uVar2;
|
||||
ulonglong uVar3;
|
||||
byte bVar4;
|
||||
uint uVar5;
|
||||
uint uVar6;
|
||||
int iVar7;
|
||||
uint local_28 [8];
|
||||
|
||||
if ((int)param_2 < 1) {
|
||||
uVar2 = FUN_1400c6e70(param_1,param_3);
|
||||
uVar2 = uVar2 & 0xffffffff;
|
||||
if (param_4 != (undefined8 *)0x0) {
|
||||
FUN_1400cd030((undefined4 *)param_4);
|
||||
}
|
||||
}
|
||||
else {
|
||||
uVar2 = FUN_1400c6d70(local_28);
|
||||
if ((int)uVar2 == 0) {
|
||||
if (param_4 != (undefined8 *)0x0) {
|
||||
uVar2 = FUN_1400d2dd0(param_1,param_2,local_28);
|
||||
if ((int)uVar2 != 0) {
|
||||
FUN_1400c6dd0((int *)local_28);
|
||||
return uVar2 & 0xffffffff;
|
||||
}
|
||||
}
|
||||
uVar3 = FUN_1400c6e70(param_1,param_3);
|
||||
uVar2 = uVar3 & 0xffffffff;
|
||||
if ((int)uVar3 == 0) {
|
||||
if (0x1b < (int)param_2) {
|
||||
FUN_1400cef60((int *)param_3,(int)param_2 / 0x1c);
|
||||
}
|
||||
if ((int)param_2 % 0x1c != 0) {
|
||||
uVar5 = 0;
|
||||
bVar4 = (byte)((int)param_2 % 0x1c);
|
||||
iVar7 = *param_3 - 1;
|
||||
puVar1 = (uint *)(*(longlong *)(param_3 + 4) + (longlong)iVar7 * 4);
|
||||
for (; -1 < iVar7; iVar7 = iVar7 + -1) {
|
||||
uVar6 = uVar5 << (0x1c - bVar4 & 0x1f);
|
||||
uVar5 = *puVar1 & (1 << (bVar4 & 0x1f)) - 1U;
|
||||
*puVar1 = *puVar1 >> (bVar4 & 0x1f) | uVar6;
|
||||
puVar1 = puVar1 + -1;
|
||||
}
|
||||
}
|
||||
FUN_1400ccef0((int *)param_3);
|
||||
if (param_4 != (undefined8 *)0x0) {
|
||||
FUN_1400cef30((undefined8 *)local_28,param_4);
|
||||
}
|
||||
FUN_1400c6dd0((int *)local_28);
|
||||
uVar2 = 0;
|
||||
}
|
||||
else {
|
||||
FUN_1400c6dd0((int *)local_28);
|
||||
}
|
||||
}
|
||||
}
|
||||
return uVar2;
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue