{"type": "func", "start": 6443574368, "end": 6443574478, "name": "sub_180112460", "pseudocode": "// \n// sub_180112460 from 0x180112460 to 0x1801124ce (110 bytes)\n// \n// 2 xrefs:\n// > sub_180113070 @ 0x1801131a2\n// > <???> @ 0x180201c1c\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_180112460(__int64 a1)\n{\n  struct _RTL_CRITICAL_SECTION *v1; // rbp\n  int v3; // ebx\n  unsigned int v4; // esi\n\n  v1 = *(struct _RTL_CRITICAL_SECTION **)(a1 + 32);\n  FMOD_OS_CriticalSection_Enter(v1);\n  v3 = 0;\n  if ( *(int *)(a1 + 56) <= 0 )\n  {\nLABEL_4:\n    *(_DWORD *)(a1 + 56) = 0;\n    v4 = 0;\n  }\n  else\n  {\n    while ( 1 )\n    {\n      v4 = sub_1800C14F0(*(void **)(a1 + 40));\n      if ( v4 )\n        break;\n      if ( ++v3 >= *(_DWORD *)(a1 + 56) )\n        goto LABEL_4;\n    }\n  }\n  FMOD_OS_CriticalSection_Leave(v1);\n  return v4;\n}", "assembly": "; \n; sub_180112460 from 0x180112460 to 0x1801124ce (110 bytes)\n; \n; 2 xrefs:\n; > sub_180113070 @ 0x1801131a2\n; > <???> @ 0x180201c1c\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, 0x180112460\nmov     [rsp+arg_8], rbp                                               ; +0x5, 0x180112465\nmov     [rsp+arg_10], rsi                                              ; +0xa, 0x18011246a\npush    rdi                                                            ; +0xf, 0x18011246f\nsub     rsp, 20h                                                       ; +0x10, 0x180112470\nmov     rbp, [rcx+20h]                                                 ; +0x14, 0x180112474\nmov     rdi, rcx                                                       ; +0x18, 0x180112478\nmov     rcx, rbp                                                       ; +0x1b, 0x18011247b\ncall    FMOD_OS_CriticalSection_Enter                                  ; +0x1e, 0x18011247e\nxor     ebx, ebx                                                       ; +0x23, 0x180112483\ncmp     [rdi+38h], ebx                                                 ; +0x25, 0x180112485\njle     short loc_1801124A6                                            ; +0x28, 0x180112488\nnop     word ptr [rax+rax+00h]                                         ; +0x2a, 0x18011248a\nmov     rcx, [rdi+28h]                                                 ; +0x30, 0x180112490\ncall    sub_1800C14F0                                                  ; +0x34, 0x180112494\nmov     esi, eax                                                       ; +0x39, 0x180112499\ntest    eax, eax                                                       ; +0x3b, 0x18011249b\njnz     short loc_1801124AF                                            ; +0x3d, 0x18011249d\ninc     ebx                                                            ; +0x3f, 0x18011249f\ncmp     ebx, [rdi+38h]                                                 ; +0x41, 0x1801124a1\njl      short loc_180112490                                            ; +0x44, 0x1801124a4\nmov     dword ptr [rdi+38h], 0                                         ; +0x46, 0x1801124a6\nxor     esi, esi                                                       ; +0x4d, 0x1801124ad\nmov     rcx, rbp                                                       ; +0x4f, 0x1801124af\ncall    FMOD_OS_CriticalSection_Leave                                  ; +0x52, 0x1801124b2\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x57, 0x1801124b7\nmov     eax, esi                                                       ; +0x5c, 0x1801124bc\nmov     rsi, [rsp+28h+arg_10]                                          ; +0x5e, 0x1801124be\nmov     rbp, [rsp+28h+arg_8]                                           ; +0x63, 0x1801124c3\nadd     rsp, 20h                                                       ; +0x68, 0x1801124c8\npop     rdi                                                            ; +0x6c, 0x1801124cc\nretn                                                                   ; +0x6d, 0x1801124cd", "xrefs": ["sub_180113070 @ 0x1801131a2", "<???> @ 0x180201c1c"], "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"}