server-re/decomp/MessageServer_Release_x64/full/functions/0x14006c450.c

46 lines
1.2 KiB
C

/* MessageServer_Release_x64.exe sha256 7911b15c4379625eaa12ff227708aa3a033bc6ac2cf6b34283136e3a62df25f1
* Ghidra 12.1.2 decompiler output for 0x14006c450 FUN_14006c450
* Pseudocode, not original source. */
/* WARNING: Function: __security_check_cookie replaced with injection: security_check_cookie */
/* WARNING: Globals starting with '_' overlap smaller symbols at the same address */
undefined * FUN_14006c450(void)
{
bool bVar1;
int iVar2;
char cVar3;
undefined1 auStack_58 [32];
undefined *local_38;
char local_30;
undefined8 local_28;
CHAR local_20 [8];
ulonglong local_18;
local_28 = 0xfffffffffffffffe;
local_18 = DAT_1401ac5a0 ^ (ulonglong)auStack_58;
local_38 = &DAT_1401b4248;
local_30 = '\0';
bVar1 = FUN_14006b3f0((int *)&DAT_1401b4248);
cVar3 = '\0';
if ((bVar1) && (cVar3 = local_30, DAT_1401ac000 != '\0')) {
local_30 = '\x01';
FUN_14006b350((int *)&DAT_1401b4248);
cVar3 = '\x01';
}
if ((DAT_1401b4208 & 1) == 0) {
DAT_1401b4208 = DAT_1401b4208 | 1;
_DAT_1401b4204 = 0;
iVar2 = GetLocaleInfoA(0x800,5,local_20,7);
if (iVar2 != 0) {
_DAT_1401b4204 = atoi(local_20);
}
}
DAT_1401ac000 = 0;
if (cVar3 != '\0') {
FUN_14006b3e0(0x1401b4248);
}
return &DAT_1401b4204;
}