{"type": "func", "start": 6443536672, "end": 6443536725, "name": "sub_180109120", "pseudocode": "// \n// sub_180109120 from 0x180109120 to 0x180109155 (53 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x1801b0810\n// > <???> @ 0x1802016ac\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 sub_180109120()\n{\n  int v0; // eax\n  __int64 result; // rax\n\n  v0 = dword_1801F2538;\n  if ( !dword_1801F2538 )\n  {\n    result = FMOD_OS_CriticalSection_Create(&lpCriticalSection, 0);\n    if ( (_DWORD)result )\n      return result;\n    v0 = dword_1801F2538;\n  }\n  dword_1801F2538 = v0 + 1;\n  return 0;\n}", "assembly": "; \n; sub_180109120 from 0x180109120 to 0x180109155 (53 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x1801b0810\n; > <???> @ 0x1802016ac\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\nsub     rsp, 28h                                                       ; +0x0, 0x180109120\nmov     eax, cs:dword_1801F2538                                        ; +0x4, 0x180109124\ntest    eax, eax                                                       ; +0xa, 0x18010912a\njnz     short loc_180109146                                            ; +0xc, 0x18010912c\nxor     edx, edx                                                       ; +0xe, 0x18010912e\nlea     rcx, lpCriticalSection                                         ; +0x10, 0x180109130\ncall    FMOD_OS_CriticalSection_Create                                 ; +0x17, 0x180109137\ntest    eax, eax                                                       ; +0x1c, 0x18010913c\njnz     short loc_180109150                                            ; +0x1e, 0x18010913e\nmov     eax, cs:dword_1801F2538                                        ; +0x20, 0x180109140\ninc     eax                                                            ; +0x26, 0x180109146\nmov     cs:dword_1801F2538, eax                                        ; +0x28, 0x180109148\nxor     eax, eax                                                       ; +0x2e, 0x18010914e\nadd     rsp, 28h                                                       ; +0x30, 0x180109150\nretn                                                                   ; +0x34, 0x180109154", "xrefs": ["<???> @ 0x1801b0810", "<???> @ 0x1802016ac"], "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"}