// // __acrt_stdio_flush_nolock from 0x18013898c to 0x180138a06 (122 bytes) // // 5 xrefs: // > _fclose_nolock @ 0x18012fa30 // > __acrt_stdio_end_temporary_buffering_nolock @ 0x180138619 // > unknown_libname_69 @ 0x180138a20 // > _lambda_b4f66040be5f354a654fb75160c27bfc_::operator @ 0x18013943f // > @ 0x1802036c8 // // 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 // __int64 __fastcall _acrt_stdio_flush_nolock(FILE *Stream) { int base_high; // ecx signed int v3; // edi char *v4; // rsi int v5; // eax base_high = HIDWORD(Stream->_base); if ( (base_high & 3) == 2 && (base_high & 0xC0) != 0 ) { v3 = LODWORD(Stream->_ptr) - Stream->_cnt; LODWORD(Stream->_base) = 0; v4 = *(char **)&Stream->_cnt; Stream->_ptr = v4; if ( v3 > 0 ) { v5 = fileno(Stream); if ( v3 != write(v5, v4, v3) ) { _InterlockedOr((volatile signed __int32 *)&Stream->_base + 1, 0x10u); return 0xFFFFFFFFLL; } if ( (HIDWORD(Stream->_base) & 4) != 0 ) _InterlockedAnd((volatile signed __int32 *)&Stream->_base + 1, 0xFFFFFFFD); } } return 0; }