add agent manager release decomp
This commit is contained in:
parent
31ff800b2a
commit
fac6117145
7019 changed files with 254032 additions and 5 deletions
50
decomp/AgentManager_Release_x64/full/functions/0x1400ef7a0.c
Normal file
50
decomp/AgentManager_Release_x64/full/functions/0x1400ef7a0.c
Normal file
|
|
@ -0,0 +1,50 @@
|
|||
/* AgentManager_Release_x64.exe sha256 8fd8ca91725858651a7839d34257b10c2970ac16c97e60c523b8b0c983fcb186
|
||||
* Ghidra 12.1.2 decompiler output for 0x1400ef7a0 FUN_1400ef7a0
|
||||
* Pseudocode, not original source. */
|
||||
|
||||
/* WARNING: Function: __security_check_cookie replaced with injection: security_check_cookie */
|
||||
|
||||
void FUN_1400ef7a0(longlong param_1,wchar_t *param_2,undefined8 param_3,undefined8 param_4)
|
||||
|
||||
{
|
||||
int iVar1;
|
||||
undefined8 local_res18;
|
||||
undefined8 local_res20;
|
||||
undefined1 auStack_458 [32];
|
||||
undefined8 local_438;
|
||||
wchar_t local_428 [516];
|
||||
ulonglong local_20;
|
||||
|
||||
local_438 = 0xfffffffffffffffe;
|
||||
local_20 = DAT_14016f5a0 ^ (ulonglong)auStack_458;
|
||||
local_res18 = param_3;
|
||||
local_res20 = param_4;
|
||||
EnterCriticalSection(DAT_14017cf60);
|
||||
if ((DAT_14017d378 & 1) == 0) {
|
||||
DAT_14017d378 = DAT_14017d378 | 1;
|
||||
FUN_1400ee280();
|
||||
atexit((_func_5014 *)&LAB_140104350);
|
||||
}
|
||||
if ((DAT_14017d370 == 200) && ((DAT_14017d378 & 1) == 0)) {
|
||||
DAT_14017d378 = DAT_14017d378 | 1;
|
||||
FUN_1400ee280();
|
||||
atexit((_func_5014 *)&LAB_140104350);
|
||||
if (DAT_14017d370 == 1000) goto LAB_1400ef8dd;
|
||||
}
|
||||
iVar1 = _vscwprintf(param_2,(va_list)&local_res18);
|
||||
vswprintf_s(local_428,(longlong)(iVar1 + 1),param_2,(va_list)&local_res18);
|
||||
wcscat_s(local_428,0x200,L"\n");
|
||||
if ((*(byte *)(param_1 + 0x10) & 4) != 0) {
|
||||
OutputDebugStringW(local_428);
|
||||
}
|
||||
if ((*(byte *)(param_1 + 0x10) & 2) != 0) {
|
||||
wprintf(local_428);
|
||||
}
|
||||
if ((*(FILE **)(param_1 + 0xb8) != (FILE *)0x0) && ((*(byte *)(param_1 + 0x10) & 8) != 0)) {
|
||||
fwprintf(*(FILE **)(param_1 + 0xb8),L"%s");
|
||||
}
|
||||
LAB_1400ef8dd:
|
||||
LeaveCriticalSection(DAT_14017cf60);
|
||||
return;
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue