// // FMOD_OS_File_Write from 0x1800c0f50 to 0x1800c0fc2 (114 bytes) // // 9 xrefs: // > sub_18003B250 @ 0x18003b3f9 // > sub_18003B250 @ 0x18003b410 // > sub_18003B250 @ 0x18003b427 // > sub_18003B250 @ 0x18003b43d // > sub_18003B250 @ 0x18003b454 // > sub_1800BF120 @ 0x1800bf1ed // > sub_1800BF560 @ 0x1800bf5ad // > @ 0x180194348 // > @ 0x1801fdb6c // // 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 FMOD_OS_File_Write(HANDLE hFile, const void *a2, DWORD a3, char a4) { DWORD NumberOfBytesWritten; // [rsp+30h] [rbp-18h] BYREF NumberOfBytesWritten = 0; if ( WriteFile(hFile, a2, a3, &NumberOfBytesWritten, nullptr) && NumberOfBytesWritten == a3 && (!a4 || FlushFileBuffers(hFile)) ) { return 0; } else { return 13; } }