62 lines
1.7 KiB
C
62 lines
1.7 KiB
C
/* MessageServer_Release_x64.exe sha256 7911b15c4379625eaa12ff227708aa3a033bc6ac2cf6b34283136e3a62df25f1
|
|
* Ghidra 12.1.2 decompiler output for 0x1400fb160 FUN_1400fb160
|
|
* Pseudocode, not original source. */
|
|
|
|
/* WARNING: Function: __security_check_cookie replaced with injection: security_check_cookie */
|
|
|
|
ulonglong FUN_1400fb160(longlong *param_1)
|
|
|
|
{
|
|
ulonglong uVar1;
|
|
ulonglong uVar2;
|
|
int iVar3;
|
|
longlong lVar4;
|
|
undefined1 auStack_b8 [32];
|
|
undefined1 local_98 [128];
|
|
ulonglong local_18;
|
|
|
|
local_18 = DAT_1401ac5a0 ^ (ulonglong)auStack_b8;
|
|
if (param_1 == (longlong *)0x0) {
|
|
uVar1 = 0x10;
|
|
}
|
|
else {
|
|
uVar2 = 0;
|
|
do {
|
|
iVar3 = (int)uVar2;
|
|
uVar1 = FUN_1401080d0(param_1 + (longlong)iVar3 * 0xe);
|
|
if ((int)uVar1 != 0) {
|
|
if (iVar3 < 1) {
|
|
return uVar1 & 0xffffffff;
|
|
}
|
|
do {
|
|
FUN_140108200(param_1,local_98);
|
|
param_1 = param_1 + 0xe;
|
|
uVar2 = uVar2 - 1;
|
|
} while (uVar2 != 0);
|
|
return uVar1 & 0xffffffff;
|
|
}
|
|
uVar2 = (ulonglong)(iVar3 + 1U);
|
|
} while ((int)(iVar3 + 1U) < 0x20);
|
|
lVar4 = 0x20;
|
|
*(undefined8 *)((longlong)param_1 + 0x101c) = 0;
|
|
*(undefined4 *)(param_1 + 0x203) = 0;
|
|
param_1[0x205] = 0;
|
|
FUN_1401083d0(param_1 + 0x1fd,0x20);
|
|
uVar2 = FUN_140105320((undefined1 *)(param_1 + 0x1fd),0x20,0,(uint *)(param_1 + 0x1c0));
|
|
uVar1 = uVar2 & 0xffffffff;
|
|
if ((int)uVar2 == 0) {
|
|
FUN_1401083d0(param_1 + 0x201,0x10);
|
|
InitializeCriticalSection((LPCRITICAL_SECTION)(param_1 + 0x206));
|
|
uVar1 = 0;
|
|
}
|
|
else {
|
|
do {
|
|
FUN_140108200(param_1,local_98);
|
|
param_1 = param_1 + 0xe;
|
|
lVar4 = lVar4 + -1;
|
|
} while (lVar4 != 0);
|
|
}
|
|
}
|
|
return uVar1;
|
|
}
|
|
|