59 lines
1.9 KiB
C
59 lines
1.9 KiB
C
/* MessageServer_Release_x64.exe sha256 7911b15c4379625eaa12ff227708aa3a033bc6ac2cf6b34283136e3a62df25f1
|
|
* Ghidra 12.1.2 decompiler output for 0x1400fafd0 FUN_1400fafd0
|
|
* Pseudocode, not original source. */
|
|
|
|
/* WARNING: Function: __security_check_cookie replaced with injection: security_check_cookie */
|
|
|
|
ulonglong FUN_1400fafd0(longlong param_1)
|
|
|
|
{
|
|
ulonglong uVar1;
|
|
ulonglong uVar2;
|
|
char *pcVar3;
|
|
int iVar4;
|
|
longlong *plVar5;
|
|
undefined1 auStack_138 [32];
|
|
longlong local_118 [14];
|
|
undefined1 local_a8 [128];
|
|
ulonglong local_28;
|
|
|
|
local_28 = DAT_1401ac5a0 ^ (ulonglong)auStack_138;
|
|
*(longlong *)(param_1 + 0x1028) = *(longlong *)(param_1 + 0x1028) + 1;
|
|
FUN_1401080d0(local_118);
|
|
uVar1 = FUN_140108120(local_118,(void *)(param_1 + 0xfe8),0x20);
|
|
uVar2 = uVar1 & 0xffffffff;
|
|
if ((int)uVar1 == 0) {
|
|
iVar4 = 0;
|
|
do {
|
|
if ((iVar4 != 0) && ((*(ulonglong *)(param_1 + 0x1028) >> ((char)iVar4 - 1U & 0x3f) & 1) != 0)
|
|
) break;
|
|
plVar5 = (longlong *)((longlong)iVar4 * 0x70 + param_1);
|
|
uVar1 = FUN_140108200(plVar5,local_a8);
|
|
if (((int)uVar1 != 0) ||
|
|
((uVar1 = FUN_140108120(local_118,local_a8,0x20), (int)uVar1 != 0 ||
|
|
(uVar1 = FUN_1401080d0(plVar5), (int)uVar1 != 0)))) {
|
|
FUN_140108200(local_118,local_a8);
|
|
return uVar1 & 0xffffffff;
|
|
}
|
|
iVar4 = iVar4 + 1;
|
|
} while (iVar4 < 0x20);
|
|
uVar2 = FUN_140108200(local_118,(undefined1 *)(param_1 + 0xfe8));
|
|
if (((int)uVar2 == 0) &&
|
|
(uVar2 = FUN_140105320((undefined1 *)(param_1 + 0xfe8),0x20,0,(uint *)(param_1 + 0xe00)),
|
|
(int)uVar2 == 0)) {
|
|
pcVar3 = (char *)(param_1 + 0x1008);
|
|
do {
|
|
*pcVar3 = *pcVar3 + '\x01';
|
|
if (*pcVar3 != '\0') break;
|
|
pcVar3 = pcVar3 + 1;
|
|
} while ((longlong)pcVar3 - (param_1 + 0x1008) < 0x10);
|
|
*(undefined8 *)(param_1 + 0x101c) = 0;
|
|
uVar2 = 0;
|
|
}
|
|
}
|
|
else {
|
|
FUN_140108200(local_118,local_a8);
|
|
}
|
|
return uVar2;
|
|
}
|
|
|