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

38 lines
1 KiB
C

/* MessageServer_Release_x64.exe sha256 7911b15c4379625eaa12ff227708aa3a033bc6ac2cf6b34283136e3a62df25f1
* Ghidra 12.1.2 decompiler output for 0x14000a750 FUN_14000a750
* Pseudocode, not original source. */
/* WARNING: Function: __security_check_cookie replaced with injection: security_check_cookie */
undefined8 FUN_14000a750(byte param_1,longlong param_2)
{
HANDLE hConsoleOutput;
BOOL BVar1;
undefined8 uVar2;
undefined1 auStack_58 [32];
HANDLE local_38;
_CONSOLE_SCREEN_BUFFER_INFO local_30;
ulonglong local_18;
local_18 = DAT_1401ac5a0 ^ (ulonglong)auStack_58;
if (param_2 == 0) {
uVar2 = 0;
}
else {
local_38 = (HANDLE)0xffffffffffffffff;
BVar1 = FUN_14000a6f0(&local_38,&local_30);
hConsoleOutput = local_38;
if (BVar1 == 0) {
wprintf(L"%s");
}
else {
SetConsoleTextAttribute(local_38,(ushort)(param_1 & 0xf) | local_30.wAttributes & 0xf0);
wprintf(L"%s");
SetConsoleTextAttribute(hConsoleOutput,local_30.wAttributes);
}
uVar2 = 1;
}
return uVar2;
}