// // _commit from 0x18013f950 to 0x18013f9e1 (145 bytes) // // 3 xrefs: // > unknown_libname_69 @ 0x180138a3d // > @ 0x180203bc0 // > @ 0x180203bcc // // 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 __cdecl commit(int FileHandle) { int *v2; // [rsp+20h] [rbp-18h] BYREF int v3; // [rsp+40h] [rbp+8h] BYREF char v4; // [rsp+48h] [rbp+10h] BYREF int v5; // [rsp+50h] [rbp+18h] BYREF int v6; // [rsp+58h] [rbp+20h] BYREF v3 = FileHandle; if ( FileHandle == -2 ) { *errno() = 9; } else { if ( FileHandle >= 0 && FileHandle < (unsigned int)dword_1801F5560 && (*(_BYTE *)(qword_1801F5160[(__int64)FileHandle >> 6] + 72LL * (FileHandle & 0x3F) + 56) & 1) != 0 ) { v5 = FileHandle; v6 = FileHandle; v2 = &v3; return __crt_seh_guarded_call::operator()<_lambda_a37b2b86f63e897a80ea819b0eb08c01_,_lambda_38ce7e780aa69e748d6df282ebc68efe_ &,_lambda_99fb1378e971ab6e7edea83e3a7a83a2_>( (__int64)&v4, &v6, &v2, &v5); } *errno() = 9; invalid_parameter_noinfo(); } return -1; }