decompiled agent_release
This commit is contained in:
parent
baac905ef2
commit
11a3488883
6439 changed files with 229565 additions and 1 deletions
47
decomp/Agent_Release_x64/full/functions/0x1400cb6f0.c
Normal file
47
decomp/Agent_Release_x64/full/functions/0x1400cb6f0.c
Normal file
|
|
@ -0,0 +1,47 @@
|
|||
/* Agent_Release_x64.exe sha256 6f2be7b8eb799ba51b359d1958720aac5baee5b7ee0d1d36684d3cbd72d45469
|
||||
* Ghidra 12.1.2 decompiler output for 0x1400cb6f0 FUN_1400cb6f0
|
||||
* Pseudocode, not original source. */
|
||||
|
||||
undefined8 FUN_1400cb6f0(longlong *param_1,void *param_2,uint param_3)
|
||||
|
||||
{
|
||||
undefined8 uVar1;
|
||||
uint uVar2;
|
||||
|
||||
if (((param_1 != (longlong *)0x0) && (param_2 != (void *)0x0)) && (*(uint *)(param_1 + 5) < 0x41))
|
||||
{
|
||||
while( true ) {
|
||||
while( true ) {
|
||||
if (param_3 == 0) {
|
||||
return 0;
|
||||
}
|
||||
if (((int)param_1[5] == 0) && (0x3f < param_3)) break;
|
||||
uVar2 = 0x40 - (int)param_1[5];
|
||||
if (param_3 < uVar2) {
|
||||
uVar2 = param_3;
|
||||
}
|
||||
memcpy((void *)((ulonglong)*(uint *)(param_1 + 5) + 0x2c + (longlong)param_1),param_2,
|
||||
(ulonglong)uVar2);
|
||||
*(uint *)(param_1 + 5) = (int)param_1[5] + uVar2;
|
||||
param_2 = (void *)((longlong)param_2 + (ulonglong)uVar2);
|
||||
param_3 = param_3 - uVar2;
|
||||
if ((int)param_1[5] == 0x40) {
|
||||
uVar1 = FUN_1400c9ce0((longlong)param_1,(longlong)param_1 + 0x2c);
|
||||
if ((int)uVar1 != 0) {
|
||||
return uVar1;
|
||||
}
|
||||
*param_1 = *param_1 + 0x200;
|
||||
*(undefined4 *)(param_1 + 5) = 0;
|
||||
}
|
||||
}
|
||||
uVar1 = FUN_1400c9ce0((longlong)param_1,(longlong)param_2);
|
||||
if ((int)uVar1 != 0) break;
|
||||
*param_1 = *param_1 + 0x200;
|
||||
param_2 = (void *)((longlong)param_2 + 0x40);
|
||||
param_3 = param_3 - 0x40;
|
||||
}
|
||||
return uVar1;
|
||||
}
|
||||
return 0x10;
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue