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

46 lines
1.4 KiB
C

/* MessageServer_Release_x64.exe sha256 7911b15c4379625eaa12ff227708aa3a033bc6ac2cf6b34283136e3a62df25f1
* Ghidra 12.1.2 decompiler output for 0x14000abd0 FUN_14000abd0
* Pseudocode, not original source. */
/* WARNING: Function: __security_check_cookie replaced with injection: security_check_cookie */
undefined8 FUN_14000abd0(char *param_1,undefined8 param_2,undefined8 param_3,undefined8 param_4)
{
undefined8 uVar1;
undefined8 local_res10;
undefined8 local_res18;
undefined8 local_res20;
undefined1 auStack_348 [32];
char local_328;
undefined1 local_327 [255];
char local_228;
undefined1 local_227 [255];
char local_128;
undefined1 local_127 [271];
ulonglong local_18;
local_18 = DAT_1401ac5a0 ^ (ulonglong)auStack_348;
local_res10 = param_2;
local_res18 = param_3;
local_res20 = param_4;
EnterCriticalSection((LPCRITICAL_SECTION)&DAT_1401bcfc8);
local_228 = '\0';
memset(local_227,0,0xff);
vsprintf_s(&local_228,0x100,param_1,(va_list)&local_res10);
local_128 = '\0';
memset(local_127,0,0x103);
local_328 = '\0';
memset(local_327,0,0xff);
uVar1 = FUN_14000a1a0(&local_328,&local_128,(longlong)&local_228);
if ((int)uVar1 == 0) {
LeaveCriticalSection((LPCRITICAL_SECTION)&DAT_1401bcfc8);
return 0;
}
FUN_14000a5e0((longlong)&local_128,(longlong)&local_328);
OutputDebugStringA(&local_328);
printf("%s");
LeaveCriticalSection((LPCRITICAL_SECTION)&DAT_1401bcfc8);
return 1;
}