server-re/decomp/Agent_Release_x64/full/functions/0x1400de550.c
2026-10-14 16:45:19 -04:00

35 lines
1.1 KiB
C

/* Agent_Release_x64.exe sha256 6f2be7b8eb799ba51b359d1958720aac5baee5b7ee0d1d36684d3cbd72d45469
* Ghidra 12.1.2 decompiler output for 0x1400de550 FUN_1400de550
* Pseudocode, not original source. */
/* WARNING: Function: __security_check_cookie replaced with injection: security_check_cookie */
void FUN_1400de550(longlong param_1,char *param_2,undefined8 param_3,undefined8 param_4)
{
int iVar1;
undefined8 local_res18;
undefined8 local_res20;
undefined1 auStack_248 [32];
char local_228 [512];
ulonglong local_28;
local_28 = DAT_1401555a0 ^ (ulonglong)auStack_248;
local_res18 = param_3;
local_res20 = param_4;
EnterCriticalSection(DAT_140162d80);
iVar1 = _vscprintf(param_2,(va_list)&local_res18);
vsprintf_s(local_228,(longlong)(iVar1 + 1),param_2,(va_list)&local_res18);
if ((*(byte *)(param_1 + 0x10) & 2) != 0) {
printf(local_228);
}
if ((*(byte *)(param_1 + 0x10) & 4) != 0) {
OutputDebugStringA(local_228);
}
if ((*(FILE **)(param_1 + 0xb8) != (FILE *)0x0) && ((*(byte *)(param_1 + 0x10) & 8) != 0)) {
fprintf(*(FILE **)(param_1 + 0xb8),"%s");
}
LeaveCriticalSection(DAT_140162d80);
return;
}