// // 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 (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:54:03 +0000 // __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; } }