{"type": "func", "start": 6443233920, "end": 6443234112, "name": "sub_1800BF280", "pseudocode": "// \n// sub_1800BF280 from 0x1800bf280 to 0x1800bf340 (192 bytes)\n// \n// 2 xrefs:\n// > sub_1800BF5D0 @ 0x1800bf5fa\n// > <???> @ 0x1801fd944\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_1800BF280(_DWORD **a1)\n{\n  __int64 v1; // rbx\n  void *v3; // rcx\n  __int64 result; // rax\n  _DWORD *v5; // rdx\n\n  v1 = (__int64)*a1;\n  if ( !*a1 )\n    return 0;\n  v3 = *(void **)(v1 + 32);\n  if ( !v3\n    || (result = sub_18003B250(v3), !(_DWORD)result)\n    && (result = FMOD_OS_File_Close(*(_QWORD *)(v1 + 32)), !(_DWORD)result) )\n  {\n    v5 = *(_DWORD **)(v1 + 24);\n    if ( v5 )\n    {\n      sub_1800B6AA0(*((_QWORD *)off_1801AED20 + 52), v5);\n      *(_QWORD *)(v1 + 24) = 0;\n    }\n    if ( *a1 )\n    {\n      sub_1800B6AA0(*((_QWORD *)off_1801AED20 + 52), *a1);\n      *a1 = nullptr;\n    }\n    return 0;\n  }\n  return result;\n}", "assembly": "; \n; sub_1800BF280 from 0x1800bf280 to 0x1800bf340 (192 bytes)\n; \n; 2 xrefs:\n; > sub_1800BF5D0 @ 0x1800bf5fa\n; > <???> @ 0x1801fd944\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, 0x1800bf280\npush    rdi                                                            ; +0x5, 0x1800bf285\nsub     rsp, 30h                                                       ; +0x6, 0x1800bf286\nmov     rbx, [rcx]                                                     ; +0xa, 0x1800bf28a\nmov     rdi, rcx                                                       ; +0xd, 0x1800bf28d\ntest    rbx, rbx                                                       ; +0x10, 0x1800bf290\njz      loc_1800BF333                                                  ; +0x13, 0x1800bf293\nmov     rcx, [rbx+20h]; hFile                                          ; +0x19, 0x1800bf299\ntest    rcx, rcx                                                       ; +0x1d, 0x1800bf29d\njz      short loc_1800BF2C9                                            ; +0x20, 0x1800bf2a0\nmov     eax, [rbx+14h]                                                 ; +0x22, 0x1800bf2a2\nmov     r9d, [rbx]                                                     ; +0x25, 0x1800bf2a5\nmov     r8d, [rbx+4]                                                   ; +0x28, 0x1800bf2a8\nmov     edx, [rbx+10h]                                                 ; +0x2c, 0x1800bf2ac\nmov     [rsp+38h+var_18], eax; int                                     ; +0x2f, 0x1800bf2af\ncall    sub_18003B250                                                  ; +0x33, 0x1800bf2b3\ntest    eax, eax                                                       ; +0x38, 0x1800bf2b8\njnz     short loc_1800BF335                                            ; +0x3a, 0x1800bf2ba\nmov     rcx, [rbx+20h]                                                 ; +0x3c, 0x1800bf2bc\ncall    FMOD_OS_File_Close                                             ; +0x40, 0x1800bf2c0\ntest    eax, eax                                                       ; +0x45, 0x1800bf2c5\njnz     short loc_1800BF335                                            ; +0x47, 0x1800bf2c7\nmov     rdx, [rbx+18h]                                                 ; +0x49, 0x1800bf2c9\ntest    rdx, rdx                                                       ; +0x4d, 0x1800bf2cd\njz      short loc_1800BF2FF                                            ; +0x50, 0x1800bf2d0\nmov     rcx, cs:off_1801AED20                                          ; +0x52, 0x1800bf2d2\nlea     r8, aCBuildagent1Wo_44                                         ; +0x59, 0x1800bf2d9\nmov     r9d, 0A3h                                                      ; +0x60, 0x1800bf2e0\nmov     byte ptr [rsp+38h+var_18], 1                                   ; +0x66, 0x1800bf2e6\nmov     rcx, [rcx+1A0h]                                                ; +0x6b, 0x1800bf2eb\ncall    sub_1800B6AA0                                                  ; +0x72, 0x1800bf2f2\nmov     qword ptr [rbx+18h], 0                                         ; +0x77, 0x1800bf2f7\nmov     rdx, [rdi]                                                     ; +0x7f, 0x1800bf2ff\ntest    rdx, rdx                                                       ; +0x82, 0x1800bf302\njz      short loc_1800BF333                                            ; +0x85, 0x1800bf305\nmov     rcx, cs:off_1801AED20                                          ; +0x87, 0x1800bf307\nlea     r8, aCBuildagent1Wo_44                                         ; +0x8e, 0x1800bf30e\nmov     r9d, 0A6h                                                      ; +0x95, 0x1800bf315\nmov     byte ptr [rsp+38h+var_18], 1                                   ; +0x9b, 0x1800bf31b\nmov     rcx, [rcx+1A0h]                                                ; +0xa0, 0x1800bf320\ncall    sub_1800B6AA0                                                  ; +0xa7, 0x1800bf327\nmov     qword ptr [rdi], 0                                             ; +0xac, 0x1800bf32c\nxor     eax, eax                                                       ; +0xb3, 0x1800bf333\nmov     rbx, [rsp+38h+arg_0]                                           ; +0xb5, 0x1800bf335\nadd     rsp, 30h                                                       ; +0xba, 0x1800bf33a\npop     rdi                                                            ; +0xbe, 0x1800bf33e\nretn                                                                   ; +0xbf, 0x1800bf33f", "xrefs": ["sub_1800BF5D0 @ 0x1800bf5fa", "<???> @ 0x1801fd944"], "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"}