{"type": "func", "start": 6443320768, "end": 6443320855, "name": "sub_1800D45C0", "pseudocode": "// \n// sub_1800D45C0 from 0x1800d45c0 to 0x1800d4617 (87 bytes)\n// \n// 2 xrefs:\n// > FMOD_System_Create @ 0x1800c6940\n// > <???> @ 0x1801feda8\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_1800D45C0(__int64 a1)\n{\n  __int64 result; // rax\n\n  if ( *(_DWORD *)a1\n    || (result = FMOD_OS_CriticalSection_Create((struct _RTL_CRITICAL_SECTION **)(a1 + 288), 0), !(_DWORD)result)\n    && (result = FMOD_OS_CriticalSection_Create((struct _RTL_CRITICAL_SECTION **)(a1 + 280), 0), !(_DWORD)result)\n    && (result = FMOD_OS_CriticalSection_Create((struct _RTL_CRITICAL_SECTION **)(a1 + 296), 0), !(_DWORD)result)\n    && (result = sub_1800C0FD0(), !(_DWORD)result) )\n  {\n    ++*(_DWORD *)a1;\n    return 0;\n  }\n  return result;\n}", "assembly": "; \n; sub_1800D45C0 from 0x1800d45c0 to 0x1800d4617 (87 bytes)\n; \n; 2 xrefs:\n; > FMOD_System_Create @ 0x1800c6940\n; > <???> @ 0x1801feda8\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, 0x1800d45c0\nsub     rsp, 20h                                                       ; +0x2, 0x1800d45c2\ncmp     dword ptr [rcx], 0                                             ; +0x6, 0x1800d45c6\nmov     rbx, rcx                                                       ; +0x9, 0x1800d45c9\njnz     short loc_1800D460D                                            ; +0xc, 0x1800d45cc\nadd     rcx, 120h                                                      ; +0xe, 0x1800d45ce\nxor     edx, edx                                                       ; +0x15, 0x1800d45d5\ncall    FMOD_OS_CriticalSection_Create                                 ; +0x17, 0x1800d45d7\ntest    eax, eax                                                       ; +0x1c, 0x1800d45dc\njnz     short loc_1800D4611                                            ; +0x1e, 0x1800d45de\nlea     rcx, [rbx+118h]                                                ; +0x20, 0x1800d45e0\nxor     edx, edx                                                       ; +0x27, 0x1800d45e7\ncall    FMOD_OS_CriticalSection_Create                                 ; +0x29, 0x1800d45e9\ntest    eax, eax                                                       ; +0x2e, 0x1800d45ee\njnz     short loc_1800D4611                                            ; +0x30, 0x1800d45f0\nlea     rcx, [rbx+128h]                                                ; +0x32, 0x1800d45f2\nxor     edx, edx                                                       ; +0x39, 0x1800d45f9\ncall    FMOD_OS_CriticalSection_Create                                 ; +0x3b, 0x1800d45fb\ntest    eax, eax                                                       ; +0x40, 0x1800d4600\njnz     short loc_1800D4611                                            ; +0x42, 0x1800d4602\ncall    sub_1800C0FD0                                                  ; +0x44, 0x1800d4604\ntest    eax, eax                                                       ; +0x49, 0x1800d4609\njnz     short loc_1800D4611                                            ; +0x4b, 0x1800d460b\ninc     dword ptr [rbx]                                                ; +0x4d, 0x1800d460d\nxor     eax, eax                                                       ; +0x4f, 0x1800d460f\nadd     rsp, 20h                                                       ; +0x51, 0x1800d4611\npop     rbx                                                            ; +0x55, 0x1800d4615\nretn                                                                   ; +0x56, 0x1800d4616", "xrefs": ["FMOD_System_Create @ 0x1800c6940", "<???> @ 0x1801feda8"], "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"}