//
// _lambda_6e4b09c48022b2350581041d5f6b0c4c_::operator from 0x18013182c to 0x1801318ed (193 bytes)
//
// 3 xrefs:
// > __crt_seh_guarded_call::operator @ 0x180131814
// > ??> @ 0x180202f00
// > ??> @ 0x180202f0c
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
int *__fastcall _lambda_6e4b09c48022b2350581041d5f6b0c4c_::operator()(int **a1)
{
int v2; // ecx
_onexit_table_t *v3; // rcx
int *result; // rax
if ( byte_1801F4BE8 )
return result;
_InterlockedExchange(&dword_1801F4BDC, 1);
v2 = **a1;
if ( !v2 )
{
if ( qword_1801F4BE0 != _security_cookie )
((void (__fastcall *)(_QWORD, _QWORD, _QWORD))__ROR8__(
qword_1801F4BE0 ^ _security_cookie,
_security_cookie & 0x3F))(
0,
0,
0);
v3 = &stru_1801F4D18;
goto LABEL_8;
}
if ( v2 == 1 )
{
v3 = &stru_1801F4D30;
LABEL_8:
execute_onexit_table(v3);
}
if ( !**a1 )
initterm((_PVFV *)&qword_180144558, (_PVFV *)&qword_180144578);
initterm((_PVFV *)&qword_180144580, (_PVFV *)&qword_180144588);
result = a1[1];
if ( !*result )
{
byte_1801F4BE8 = 1;
result = a1[2];
*(_BYTE *)result = 1;
}
return result;
}