add agent manager release decomp
This commit is contained in:
parent
31ff800b2a
commit
fac6117145
7019 changed files with 254032 additions and 5 deletions
63
decomp/AgentManager_Release_x64/full/functions/0x1400ef4d0.c
Normal file
63
decomp/AgentManager_Release_x64/full/functions/0x1400ef4d0.c
Normal file
|
|
@ -0,0 +1,63 @@
|
|||
/* AgentManager_Release_x64.exe sha256 8fd8ca91725858651a7839d34257b10c2970ac16c97e60c523b8b0c983fcb186
|
||||
* Ghidra 12.1.2 decompiler output for 0x1400ef4d0 FUN_1400ef4d0
|
||||
* Pseudocode, not original source. */
|
||||
|
||||
void FUN_1400ef4d0(undefined8 *param_1)
|
||||
|
||||
{
|
||||
LPCRITICAL_SECTION lpCriticalSection;
|
||||
undefined8 *puVar1;
|
||||
longlong lVar2;
|
||||
|
||||
*param_1 = MBCLog::vftable;
|
||||
param_1[1] = MBCLog::vftable;
|
||||
EnterCriticalSection(DAT_14017cf60);
|
||||
if ((FILE *)param_1[0x17] != (FILE *)0x0) {
|
||||
fclose((FILE *)param_1[0x17]);
|
||||
}
|
||||
puVar1 = param_1 + 0x19;
|
||||
lVar2 = 4;
|
||||
do {
|
||||
if ((FILE *)*puVar1 != (FILE *)0x0) {
|
||||
fclose((FILE *)*puVar1);
|
||||
}
|
||||
puVar1 = puVar1 + 1;
|
||||
lVar2 = lVar2 + -1;
|
||||
} while (lVar2 != 0);
|
||||
LeaveCriticalSection(DAT_14017cf60);
|
||||
if (7 < (ulonglong)param_1[0x15]) {
|
||||
operator_delete((void *)param_1[0x12]);
|
||||
}
|
||||
param_1[0x15] = 7;
|
||||
param_1[0x14] = 0;
|
||||
*(undefined2 *)(param_1 + 0x12) = 0;
|
||||
if (7 < (ulonglong)param_1[0x10]) {
|
||||
operator_delete((void *)param_1[0xd]);
|
||||
}
|
||||
param_1[0x10] = 7;
|
||||
param_1[0xf] = 0;
|
||||
*(undefined2 *)(param_1 + 0xd) = 0;
|
||||
if (7 < (ulonglong)param_1[0xb]) {
|
||||
operator_delete((void *)param_1[8]);
|
||||
}
|
||||
param_1[0xb] = 7;
|
||||
param_1[10] = 0;
|
||||
*(undefined2 *)(param_1 + 8) = 0;
|
||||
if (7 < (ulonglong)param_1[6]) {
|
||||
operator_delete((void *)param_1[3]);
|
||||
}
|
||||
lpCriticalSection = DAT_14017cf60;
|
||||
param_1[6] = 7;
|
||||
param_1[5] = 0;
|
||||
*(undefined2 *)(param_1 + 3) = 0;
|
||||
param_1[1] = MBMultiThreadSync<MBCLog>::vftable;
|
||||
if (lpCriticalSection != (LPCRITICAL_SECTION)0x0) {
|
||||
DeleteCriticalSection(lpCriticalSection);
|
||||
operator_delete(lpCriticalSection);
|
||||
}
|
||||
DAT_14017cf60 = (LPCRITICAL_SECTION)0x0;
|
||||
DAT_14017c8a8 = 0;
|
||||
*param_1 = MBISingleton<MBCLog>::vftable;
|
||||
return;
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue