; ; 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 ; mov [rsp+arg_0], rbx ; +0x0, 0x1800c0f50 mov [rsp+arg_8], rsi ; +0x5, 0x1800c0f55 push rdi ; +0xa, 0x1800c0f5a sub rsp, 40h ; +0xb, 0x1800c0f5b xor eax, eax ; +0xf, 0x1800c0f5f movzx esi, r9b ; +0x11, 0x1800c0f61 lea r9, [rsp+48h+NumberOfBytesWritten]; lpNumberOfBytesWritten ; +0x15, 0x1800c0f65 mov [rsp+48h+NumberOfBytesWritten], eax ; +0x1a, 0x1800c0f6a mov [rsp+48h+lpOverlapped], rax; lpOverlapped ; +0x1e, 0x1800c0f6e mov ebx, r8d ; +0x23, 0x1800c0f73 mov rdi, rcx ; +0x26, 0x1800c0f76 call cs:WriteFile ; +0x29, 0x1800c0f79 test eax, eax ; +0x2f, 0x1800c0f7f jz short loc_1800C0FAD ; +0x31, 0x1800c0f81 cmp [rsp+48h+NumberOfBytesWritten], ebx ; +0x33, 0x1800c0f83 jnz short loc_1800C0FAD ; +0x37, 0x1800c0f87 test sil, sil ; +0x39, 0x1800c0f89 jz short loc_1800C0F9B ; +0x3c, 0x1800c0f8c mov rcx, rdi; hFile ; +0x3e, 0x1800c0f8e call cs:FlushFileBuffers ; +0x41, 0x1800c0f91 test eax, eax ; +0x47, 0x1800c0f97 jz short loc_1800C0FAD ; +0x49, 0x1800c0f99 xor eax, eax ; +0x4b, 0x1800c0f9b mov rbx, [rsp+48h+arg_0] ; +0x4d, 0x1800c0f9d mov rsi, [rsp+48h+arg_8] ; +0x52, 0x1800c0fa2 add rsp, 40h ; +0x57, 0x1800c0fa7 pop rdi ; +0x5b, 0x1800c0fab retn ; +0x5c, 0x1800c0fac mov rbx, [rsp+48h+arg_0] ; +0x5d, 0x1800c0fad mov eax, 0Dh ; +0x62, 0x1800c0fb2 mov rsi, [rsp+48h+arg_8] ; +0x67, 0x1800c0fb7 add rsp, 40h ; +0x6c, 0x1800c0fbc pop rdi ; +0x70, 0x1800c0fc0 retn ; +0x71, 0x1800c0fc1