41 lines
1.4 KiB
C
41 lines
1.4 KiB
C
/* AgentManager_Release_x64.exe sha256 8fd8ca91725858651a7839d34257b10c2970ac16c97e60c523b8b0c983fcb186
|
|
* Ghidra 12.1.2 decompiler output for 0x1400ef910 FUN_1400ef910
|
|
* Pseudocode, not original source. */
|
|
|
|
void FUN_1400ef910(longlong param_1,undefined8 param_2,undefined8 param_3,undefined8 param_4)
|
|
|
|
{
|
|
errno_t eVar1;
|
|
undefined *puVar2;
|
|
|
|
EnterCriticalSection(DAT_14017cf60);
|
|
if ((DAT_14017d378 & 1) == 0) {
|
|
DAT_14017d378 = DAT_14017d378 | 1;
|
|
FUN_1400ee280();
|
|
atexit((_func_5014 *)&LAB_140104350);
|
|
}
|
|
if (DAT_14017d370 != 200) {
|
|
if ((DAT_14017d378 & 1) == 0) {
|
|
DAT_14017d378 = DAT_14017d378 | 1;
|
|
FUN_1400ee280();
|
|
atexit((_func_5014 *)&LAB_140104350);
|
|
}
|
|
if (DAT_14017d370 != 1000) goto LAB_1400ef9aa;
|
|
}
|
|
_wsetlocale(0,L"korean");
|
|
LAB_1400ef9aa:
|
|
setlocale(0,(char *)0x0);
|
|
printf("Locale is: %s\n");
|
|
puVar2 = &DAT_140130d48;
|
|
eVar1 = fopen_s((FILE **)(param_1 + 0xb8),"Log\\AgentManagerServer.log","w");
|
|
if (eVar1 != 0) {
|
|
*(undefined8 *)(param_1 + 0xb8) = 0;
|
|
FUN_1400ef7a0(param_1,L"MBLOG open error",puVar2,param_4);
|
|
}
|
|
FUN_1400ef370(DAT_14017c8a8,"MBLOG %s writting\n","Log\\AgentManagerServer.log",param_4);
|
|
/* WARNING: Could not recover jumptable at 0x0001400efa29. Too many branches */
|
|
/* WARNING: Treating indirect jump as call */
|
|
LeaveCriticalSection(DAT_14017cf60);
|
|
return;
|
|
}
|
|
|