{"type": "func", "start": 6443535648, "end": 6443535777, "name": "sub_180108D20", "pseudocode": "// \n// sub_180108D20 from 0x180108d20 to 0x180108da1 (129 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x1801b0788\n// > <???> @ 0x180201664\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_180108D20(__int64 *a1)\n{\n  __int64 v1; // rbx\n  struct _RTL_CRITICAL_SECTION *v2; // rdi\n  unsigned int v3; // ebx\n\n  v1 = *a1;\n  if ( *(_DWORD *)(*a1 + 552) == 1 )\n  {\n    v2 = lpCriticalSection;\n    FMOD_OS_CriticalSection_Enter(lpCriticalSection);\n    v3 = sub_180109C70(qword_1801F24F0[*(int *)(v1 + 224)] + 112LL * *(int *)(v1 + 748), v1 + 568, 0xFFFFFFFFLL);\n    if ( v3 )\n    {\n      FMOD_OS_CriticalSection_Leave(v2);\n      return v3;\n    }\n    FMOD_OS_CriticalSection_Leave(v2);\n  }\n  return 0;\n}", "assembly": "; \n; sub_180108D20 from 0x180108d20 to 0x180108da1 (129 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x1801b0788\n; > <???> @ 0x180201664\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, 0x180108d20\npush    rdi                                                            ; +0x5, 0x180108d25\nsub     rsp, 20h                                                       ; +0x6, 0x180108d26\nmov     rbx, [rcx]                                                     ; +0xa, 0x180108d2a\ncmp     dword ptr [rbx+228h], 1                                        ; +0xd, 0x180108d2d\njnz     short loc_180108D94                                            ; +0x14, 0x180108d34\nmov     rdi, cs:lpCriticalSection                                      ; +0x16, 0x180108d36\nmov     rcx, rdi                                                       ; +0x1d, 0x180108d3d\ncall    FMOD_OS_CriticalSection_Enter                                  ; +0x20, 0x180108d40\nmovsxd  r8, dword ptr [rbx+0E0h]                                       ; +0x25, 0x180108d45\nlea     r9, qword_1801F24F0                                            ; +0x2c, 0x180108d4c\nmovsxd  rax, dword ptr [rbx+2ECh]                                      ; +0x33, 0x180108d53\nlea     rdx, [rbx+238h]                                                ; +0x3a, 0x180108d5a\nimul    rcx, rax, 70h ; 'p'                                            ; +0x41, 0x180108d61\nadd     rcx, [r9+r8*8]                                                 ; +0x45, 0x180108d65\nmov     r8d, 0FFFFFFFFh                                                ; +0x49, 0x180108d69\ncall    sub_180109C70                                                  ; +0x4f, 0x180108d6f\nmov     ebx, eax                                                       ; +0x54, 0x180108d74\nmov     rcx, rdi                                                       ; +0x56, 0x180108d76\ntest    eax, eax                                                       ; +0x59, 0x180108d79\njz      short loc_180108D8F                                            ; +0x5b, 0x180108d7b\ncall    FMOD_OS_CriticalSection_Leave                                  ; +0x5d, 0x180108d7d\nmov     eax, ebx                                                       ; +0x62, 0x180108d82\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x64, 0x180108d84\nadd     rsp, 20h                                                       ; +0x69, 0x180108d89\npop     rdi                                                            ; +0x6d, 0x180108d8d\nretn                                                                   ; +0x6e, 0x180108d8e\ncall    FMOD_OS_CriticalSection_Leave                                  ; +0x6f, 0x180108d8f\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x74, 0x180108d94\nxor     eax, eax                                                       ; +0x79, 0x180108d99\nadd     rsp, 20h                                                       ; +0x7b, 0x180108d9b\npop     rdi                                                            ; +0x7f, 0x180108d9f\nretn                                                                   ; +0x80, 0x180108da0", "xrefs": ["<???> @ 0x1801b0788", "<???> @ 0x180201664"], "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"}