{"type": "func", "start": 6443536736, "end": 6443536869, "name": "sub_180109160", "pseudocode": "// \n// sub_180109160 from 0x180109160 to 0x1801091e5 (133 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x1801b0818\n// > <???> @ 0x1802016b8\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_180109160(__int64 a1)\n{\n  _DWORD *v2; // rdx\n  __int64 result; // rax\n\n  v2 = (_DWORD *)qword_1801F24F0[*(int *)(a1 + 48)];\n  if ( v2 )\n  {\n    sub_1800B6AA0(*((_QWORD *)off_1801AED20 + 52), v2);\n    qword_1801F24F0[*(int *)(a1 + 48)] = 0;\n  }\n  if ( !--dword_1801F2538 )\n  {\n    result = FMOD_OS_CriticalSection_Free(lpCriticalSection, 0);\n    if ( (_DWORD)result )\n      return result;\n    lpCriticalSection = nullptr;\n  }\n  return 0;\n}", "assembly": "; \n; sub_180109160 from 0x180109160 to 0x1801091e5 (133 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x1801b0818\n; > <???> @ 0x1802016b8\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, 0x180109160\npush    rsi                                                            ; +0x5, 0x180109165\nsub     rsp, 30h                                                       ; +0x6, 0x180109166\nmovsxd  rax, dword ptr [rcx+30h]                                       ; +0xa, 0x18010916a\nlea     rsi, qword_1801F24F0                                           ; +0xe, 0x18010916e\nmov     rbx, rcx                                                       ; +0x15, 0x180109175\nmov     rdx, [rsi+rax*8]                                               ; +0x18, 0x180109178\ntest    rdx, rdx                                                       ; +0x1c, 0x18010917c\njz      short loc_1801091B2                                            ; +0x1f, 0x18010917f\nmov     rcx, cs:off_1801AED20                                          ; +0x21, 0x180109181\nlea     r8, aCBuildagent1Wo_79; \"C:\\\\buildagent1\\\\work\\\\570ad728b1678096\"... ; +0x28, 0x180109188\nmov     r9d, 3ADh                                                      ; +0x2f, 0x18010918f\nmov     [rsp+38h+var_18], 1                                            ; +0x35, 0x180109195\nmov     rcx, [rcx+1A0h]                                                ; +0x3a, 0x18010919a\ncall    sub_1800B6AA0                                                  ; +0x41, 0x1801091a1\nmovsxd  rax, dword ptr [rbx+30h]                                       ; +0x46, 0x1801091a6\nmov     qword ptr [rsi+rax*8], 0                                       ; +0x4a, 0x1801091aa\nsub     cs:dword_1801F2538, 1                                          ; +0x52, 0x1801091b2\njnz     short loc_1801091D8                                            ; +0x59, 0x1801091b9\nmov     rcx, cs:lpCriticalSection; lpCriticalSection                   ; +0x5b, 0x1801091bb\nxor     edx, edx                                                       ; +0x62, 0x1801091c2\ncall    FMOD_OS_CriticalSection_Free                                   ; +0x64, 0x1801091c4\ntest    eax, eax                                                       ; +0x69, 0x1801091c9\njnz     short loc_1801091DA                                            ; +0x6b, 0x1801091cb\nmov     cs:lpCriticalSection, 0                                        ; +0x6d, 0x1801091cd\nxor     eax, eax                                                       ; +0x78, 0x1801091d8\nmov     rbx, [rsp+38h+arg_0]                                           ; +0x7a, 0x1801091da\nadd     rsp, 30h                                                       ; +0x7f, 0x1801091df\npop     rsi                                                            ; +0x83, 0x1801091e3\nretn                                                                   ; +0x84, 0x1801091e4", "xrefs": ["<???> @ 0x1801b0818", "<???> @ 0x1802016b8"], "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"}