{"type": "func", "start": 6443241136, "end": 6443241239, "name": "FMOD_OS_File_Read", "pseudocode": "// \n// FMOD_OS_File_Read from 0x1800c0eb0 to 0x1800c0f17 (103 bytes)\n// \n// 5 xrefs:\n// > sub_1800B41E0 @ 0x1800b4233\n// > sub_1800B41E0 @ 0x1800b4255\n// > sub_1801146F0 @ 0x18011487b\n// > <???> @ 0x180194348\n// > <???> @ 0x1801fdb54\n// \n// This function is hookable on this platform!\n// \n// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings\n// \n\n__int64 __fastcall FMOD_OS_File_Read(void *a1, void *a2, DWORD a3, DWORD *a4)\n{\n  unsigned int v4; // ebx\n  bool v8; // zf\n  DWORD NumberOfBytesRead; // [rsp+58h] [rbp+20h] BYREF\n\n  v4 = 0;\n  *a4 = 0;\n  NumberOfBytesRead = 0;\n  if ( !ReadFile(a1, a2, a3, &NumberOfBytesRead, nullptr) )\n    return 13;\n  v8 = NumberOfBytesRead == a3;\n  *a4 = NumberOfBytesRead;\n  if ( !v8 )\n    return 16;\n  return v4;\n}", "assembly": "; \n; FMOD_OS_File_Read from 0x1800c0eb0 to 0x1800c0f17 (103 bytes)\n; \n; 5 xrefs:\n; > sub_1800B41E0 @ 0x1800b4233\n; > sub_1800B41E0 @ 0x1800b4255\n; > sub_1801146F0 @ 0x18011487b\n; > <???> @ 0x180194348\n; > <???> @ 0x1801fdb54\n; \n; This function is hookable on this platform!\n; \n; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA\n; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings\n; \n\nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x1800c0eb0\nmov     [rsp+arg_8], rsi                                               ; +0x5, 0x1800c0eb5\npush    rdi                                                            ; +0xa, 0x1800c0eba\nsub     rsp, 30h                                                       ; +0xb, 0x1800c0ebb\nxor     ebx, ebx                                                       ; +0xf, 0x1800c0ebf\nmov     rdi, r9                                                        ; +0x11, 0x1800c0ec1\nmov     [r9], ebx                                                      ; +0x14, 0x1800c0ec4\nmov     esi, r8d                                                       ; +0x17, 0x1800c0ec7\nlea     r9, [rsp+38h+NumberOfBytesRead]; lpNumberOfBytesRead           ; +0x1a, 0x1800c0eca\nmov     [rsp+38h+NumberOfBytesRead], ebx                               ; +0x1f, 0x1800c0ecf\nmov     [rsp+38h+lpOverlapped], rbx; lpOverlapped                      ; +0x23, 0x1800c0ed3\ncall    cs:ReadFile                                                    ; +0x28, 0x1800c0ed8\ntest    eax, eax                                                       ; +0x2e, 0x1800c0ede\njnz     short loc_1800C0EF5                                            ; +0x30, 0x1800c0ee0\nlea     eax, [rbx+0Dh]                                                 ; +0x32, 0x1800c0ee2\nmov     rbx, [rsp+38h+arg_0]                                           ; +0x35, 0x1800c0ee5\nmov     rsi, [rsp+38h+arg_8]                                           ; +0x3a, 0x1800c0eea\nadd     rsp, 30h                                                       ; +0x3f, 0x1800c0eef\npop     rdi                                                            ; +0x43, 0x1800c0ef3\nretn                                                                   ; +0x44, 0x1800c0ef4\nmov     ecx, [rsp+38h+NumberOfBytesRead]                               ; +0x45, 0x1800c0ef5\nmov     eax, 10h                                                       ; +0x49, 0x1800c0ef9\ncmp     ecx, esi                                                       ; +0x4e, 0x1800c0efe\nmov     [rdi], ecx                                                     ; +0x50, 0x1800c0f00\nmov     rsi, [rsp+38h+arg_8]                                           ; +0x52, 0x1800c0f02\ncmovnz  ebx, eax                                                       ; +0x57, 0x1800c0f07\nmov     eax, ebx                                                       ; +0x5a, 0x1800c0f0a\nmov     rbx, [rsp+38h+arg_0]                                           ; +0x5c, 0x1800c0f0c\nadd     rsp, 30h                                                       ; +0x61, 0x1800c0f11\npop     rdi                                                            ; +0x65, 0x1800c0f15\nretn                                                                   ; +0x66, 0x1800c0f16", "xrefs": ["sub_1800B41E0 @ 0x1800b4233", "sub_1800B41E0 @ 0x1800b4255", "sub_1801146F0 @ 0x18011487b", "<???> @ 0x180194348", "<???> @ 0x1801fdb54"], "is_objc": false, "is_arm32": false, "is_arm64": false, "bida_info": "8.0.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings"}