{"type": "func", "start": 6443572960, "end": 6443573049, "name": "sub_180111EE0", "pseudocode": "// \n// sub_180111EE0 from 0x180111ee0 to 0x180111f39 (89 bytes)\n// \n// 2 xrefs:\n// > sub_1801124D0 @ 0x180112559\n// > <???> @ 0x180201b98\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_180111EE0(__int64 a1, int a2)\n{\n  struct _RTL_CRITICAL_SECTION *v2; // rsi\n  unsigned int v5; // ebx\n\n  v2 = *(struct _RTL_CRITICAL_SECTION **)(a1 + 32);\n  FMOD_OS_CriticalSection_Enter(v2);\n  if ( a2 )\n  {\n    *(_DWORD *)(a1 + 16) += a2;\n    if ( *(_DWORD *)(a1 + 16) == *(_DWORD *)(a1 + 12) )\n      *(_QWORD *)(a1 + 12) = 0;\n  }\n  v5 = sub_1801123F0(a1);\n  FMOD_OS_CriticalSection_Leave(v2);\n  return v5;\n}", "assembly": "; \n; sub_180111EE0 from 0x180111ee0 to 0x180111f39 (89 bytes)\n; \n; 2 xrefs:\n; > sub_1801124D0 @ 0x180112559\n; > <???> @ 0x180201b98\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, 0x180111ee0\nmov     [rsp+arg_8], rsi                                               ; +0x5, 0x180111ee5\npush    rdi                                                            ; +0xa, 0x180111eea\nsub     rsp, 20h                                                       ; +0xb, 0x180111eeb\nmov     rsi, [rcx+20h]                                                 ; +0xf, 0x180111eef\nmov     rbx, rcx                                                       ; +0x13, 0x180111ef3\nmov     rcx, rsi                                                       ; +0x16, 0x180111ef6\nmov     edi, edx                                                       ; +0x19, 0x180111ef9\ncall    FMOD_OS_CriticalSection_Enter                                  ; +0x1b, 0x180111efb\ntest    edi, edi                                                       ; +0x20, 0x180111f00\njz      short loc_180111F15                                            ; +0x22, 0x180111f02\nadd     [rbx+10h], edi                                                 ; +0x24, 0x180111f04\nmov     eax, [rbx+10h]                                                 ; +0x27, 0x180111f07\ncmp     eax, [rbx+0Ch]                                                 ; +0x2a, 0x180111f0a\njnz     short loc_180111F15                                            ; +0x2d, 0x180111f0d\nxor     eax, eax                                                       ; +0x2f, 0x180111f0f\nmov     [rbx+0Ch], rax                                                 ; +0x31, 0x180111f11\nmov     rcx, rbx                                                       ; +0x35, 0x180111f15\ncall    sub_1801123F0                                                  ; +0x38, 0x180111f18\nmov     rcx, rsi                                                       ; +0x3d, 0x180111f1d\nmov     ebx, eax                                                       ; +0x40, 0x180111f20\ncall    FMOD_OS_CriticalSection_Leave                                  ; +0x42, 0x180111f22\nmov     rsi, [rsp+28h+arg_8]                                           ; +0x47, 0x180111f27\nmov     eax, ebx                                                       ; +0x4c, 0x180111f2c\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x4e, 0x180111f2e\nadd     rsp, 20h                                                       ; +0x53, 0x180111f33\npop     rdi                                                            ; +0x57, 0x180111f37\nretn                                                                   ; +0x58, 0x180111f38", "xrefs": ["sub_1801124D0 @ 0x180112559", "<???> @ 0x180201b98"], "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"}