{"type": "func", "start": 6443234656, "end": 6443234756, "name": "sub_1800BF560", "pseudocode": "// \n// sub_1800BF560 from 0x1800bf560 to 0x1800bf5c4 (100 bytes)\n// \n// 2 xrefs:\n// > sub_1800BF5D0 @ 0x1800bf608\n// > <???> @ 0x1801fd968\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 sub_1800BF560(unsigned int **a1)\n{\n  _QWORD *v1; // rbx\n  __int64 result; // rax\n  _BYTE *v3; // rax\n  int i; // ecx\n\n  v1 = *a1;\n  result = ((__int64 (__fastcall *)(unsigned int **, _QWORD, _QWORD))a1[1])(a1, *((_QWORD *)*a1 + 3), (*a1)[2]);\n  if ( !(_DWORD)result )\n  {\n    if ( *((_DWORD *)v1 + 4) == 1 )\n    {\n      v3 = (_BYTE *)v1[3];\n      for ( i = 0; i < *((_DWORD *)v1 + 3); ++i )\n        *v3++ ^= 0x80u;\n    }\n    result = FMOD_OS_File_Write((HANDLE)v1[4]);\n    if ( !(_DWORD)result )\n    {\n      *((_DWORD *)v1 + 5) += *((_DWORD *)v1 + 3);\n      return 0;\n    }\n  }\n  return result;\n}", "assembly": "; \n; sub_1800BF560 from 0x1800bf560 to 0x1800bf5c4 (100 bytes)\n; \n; 2 xrefs:\n; > sub_1800BF5D0 @ 0x1800bf608\n; > <???> @ 0x1801fd968\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\npush    rbx                                                            ; +0x0, 0x1800bf560\nsub     rsp, 20h                                                       ; +0x2, 0x1800bf562\nmov     rbx, [rcx]                                                     ; +0x6, 0x1800bf566\nmov     r8d, [rbx+8]                                                   ; +0x9, 0x1800bf569\nmov     rdx, [rbx+18h]                                                 ; +0xd, 0x1800bf56d\ncall    qword ptr [rcx+8]                                              ; +0x11, 0x1800bf571\ntest    eax, eax                                                       ; +0x14, 0x1800bf574\njnz     short loc_1800BF5BE                                            ; +0x16, 0x1800bf576\ncmp     dword ptr [rbx+10h], 1                                         ; +0x18, 0x1800bf578\njnz     short loc_1800BF59E                                            ; +0x1c, 0x1800bf57c\nmov     rax, [rbx+18h]                                                 ; +0x1e, 0x1800bf57e\nxor     ecx, ecx                                                       ; +0x22, 0x1800bf582\ncmp     [rbx+0Ch], ecx                                                 ; +0x24, 0x1800bf584\njle     short loc_1800BF59E                                            ; +0x27, 0x1800bf587\nnop     dword ptr [rax+00000000h]                                      ; +0x29, 0x1800bf589\nxor     byte ptr [rax], 80h                                            ; +0x30, 0x1800bf590\nlea     rax, [rax+1]                                                   ; +0x33, 0x1800bf593\ninc     ecx                                                            ; +0x37, 0x1800bf597\ncmp     ecx, [rbx+0Ch]                                                 ; +0x39, 0x1800bf599\njl      short loc_1800BF590                                            ; +0x3c, 0x1800bf59c\nmov     r8d, [rbx+0Ch]                                                 ; +0x3e, 0x1800bf59e\nxor     r9d, r9d                                                       ; +0x42, 0x1800bf5a2\nmov     rdx, [rbx+18h]                                                 ; +0x45, 0x1800bf5a5\nmov     rcx, [rbx+20h]; hFile                                          ; +0x49, 0x1800bf5a9\ncall    FMOD_OS_File_Write                                             ; +0x4d, 0x1800bf5ad\ntest    eax, eax                                                       ; +0x52, 0x1800bf5b2\njnz     short loc_1800BF5BE                                            ; +0x54, 0x1800bf5b4\nmov     eax, [rbx+0Ch]                                                 ; +0x56, 0x1800bf5b6\nadd     [rbx+14h], eax                                                 ; +0x59, 0x1800bf5b9\nxor     eax, eax                                                       ; +0x5c, 0x1800bf5bc\nadd     rsp, 20h                                                       ; +0x5e, 0x1800bf5be\npop     rbx                                                            ; +0x62, 0x1800bf5c2\nretn                                                                   ; +0x63, 0x1800bf5c3", "xrefs": ["sub_1800BF5D0 @ 0x1800bf608", "<???> @ 0x1801fd968"], "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"}