{"type": "func", "start": 6443573056, "end": 6443573176, "name": "sub_180111F40", "pseudocode": "// \n// sub_180111F40 from 0x180111f40 to 0x180111fb8 (120 bytes)\n// \n// 2 xrefs:\n// > sub_1800DA550 @ 0x1800da994\n// > <???> @ 0x180201ba4\n// \n// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 10:54:35 +0000\n// \n\n__int64 __fastcall sub_180111F40(__int64 a1, int *a2)\n{\n  int v2; // esi\n  __int64 v3; // rbx\n  struct _RTL_CRITICAL_SECTION *v4; // rdi\n  unsigned int v5; // ebx\n\n  v2 = *a2;\n  v3 = a1 + 1312;\n  v4 = *(struct _RTL_CRITICAL_SECTION **)(a1 + 1344);\n  FMOD_OS_CriticalSection_Enter(v4);\n  if ( v2 )\n  {\n    *(_DWORD *)(v3 + 16) += v2;\n    if ( *(_DWORD *)(v3 + 16) == *(_DWORD *)(v3 + 12) )\n      *(_QWORD *)(v3 + 12) = 0;\n  }\n  v5 = sub_1801123F0(v3);\n  FMOD_OS_CriticalSection_Leave(v4);\n  if ( v5 )\n    return v5;\n  else\n    return 0;\n}", "assembly": "; \n; sub_180111F40 from 0x180111f40 to 0x180111fb8 (120 bytes)\n; \n; 2 xrefs:\n; > sub_1800DA550 @ 0x1800da994\n; > <???> @ 0x180201ba4\n; \n; This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 10:54:35 +0000\n; \nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x180111f40\nmov     [rsp+arg_8], rsi                                               ; +0x5, 0x180111f45\npush    rdi                                                            ; +0xa, 0x180111f4a\nsub     rsp, 20h                                                       ; +0xb, 0x180111f4b\nmov     esi, [rdx]                                                     ; +0xf, 0x180111f4f\nlea     rbx, [rcx+520h]                                                ; +0x11, 0x180111f51\nmov     rdi, [rbx+20h]                                                 ; +0x18, 0x180111f58\nmov     rcx, rdi                                                       ; +0x1c, 0x180111f5c\ncall    FMOD_OS_CriticalSection_Enter                                  ; +0x1f, 0x180111f5f\ntest    esi, esi                                                       ; +0x24, 0x180111f64\njz      short loc_180111F79                                            ; +0x26, 0x180111f66\nadd     [rbx+10h], esi                                                 ; +0x28, 0x180111f68\nmov     eax, [rbx+10h]                                                 ; +0x2b, 0x180111f6b\ncmp     eax, [rbx+0Ch]                                                 ; +0x2e, 0x180111f6e\njnz     short loc_180111F79                                            ; +0x31, 0x180111f71\nxor     eax, eax                                                       ; +0x33, 0x180111f73\nmov     [rbx+0Ch], rax                                                 ; +0x35, 0x180111f75\nmov     rcx, rbx                                                       ; +0x39, 0x180111f79\ncall    sub_1801123F0                                                  ; +0x3c, 0x180111f7c\nmov     ebx, eax                                                       ; +0x41, 0x180111f81\nmov     rcx, rdi                                                       ; +0x43, 0x180111f83\ntest    eax, eax                                                       ; +0x46, 0x180111f86\njz      short loc_180111FA1                                            ; +0x48, 0x180111f88\ncall    FMOD_OS_CriticalSection_Leave                                  ; +0x4a, 0x180111f8a\nmov     eax, ebx                                                       ; +0x4f, 0x180111f8f\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x51, 0x180111f91\nmov     rsi, [rsp+28h+arg_8]                                           ; +0x56, 0x180111f96\nadd     rsp, 20h                                                       ; +0x5b, 0x180111f9b\npop     rdi                                                            ; +0x5f, 0x180111f9f\nretn                                                                   ; +0x60, 0x180111fa0\ncall    FMOD_OS_CriticalSection_Leave                                  ; +0x61, 0x180111fa1\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x66, 0x180111fa6\nxor     eax, eax                                                       ; +0x6b, 0x180111fab\nmov     rsi, [rsp+28h+arg_8]                                           ; +0x6d, 0x180111fad\nadd     rsp, 20h                                                       ; +0x72, 0x180111fb2\npop     rdi                                                            ; +0x76, 0x180111fb6\nretn                                                                   ; +0x77, 0x180111fb7", "xrefs": ["sub_1800DA550 @ 0x1800da994", "<???> @ 0x180201ba4"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}