//
// __crt_seh_guarded_call::operator from 0x18013f8c4 to 0x18013f950 (140 bytes)
//
// 2 xrefs:
// > _commit @ 0x18013f9c2
// > ??> @ 0x180203bc0
//
// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 10:55:04 +0000
//
__int64 __fastcall __crt_seh_guarded_call::operator()<_lambda_a37b2b86f63e897a80ea819b0eb08c01_,_lambda_38ce7e780aa69e748d6df282ebc68efe_ &,_lambda_99fb1378e971ab6e7edea83e3a7a83a2_>(
__int64 a1,
int *a2,
int **a3,
int *a4)
{
void *osfhandle; // rax
unsigned int v7; // ebx
unsigned int *v8; // rbx
sub_180136164(*a2);
if ( (*(_BYTE *)(qword_1801F5160[(__int64)**a3 >> 6] + 72LL * (**a3 & 0x3F) + 56) & 1) == 0 )
goto LABEL_4;
osfhandle = (void *)get_osfhandle(**a3);
v7 = 0;
if ( !FlushFileBuffers(osfhandle) )
{
v8 = _doserrno();
*v8 = GetLastError();
LABEL_4:
*errno() = 9;
v7 = -1;
}
sub_18013618C(*a4);
return v7;
}