{"type": "func", "start": 6443508544, "end": 6443508644, "name": "sub_180102340", "pseudocode": "// \n// sub_180102340 from 0x180102340 to 0x1801023a4 (100 bytes)\n// \n// 9 xrefs:\n// > sub_18000EBC0 @ 0x18000ec12\n// > sub_1800107D0 @ 0x1800109e5\n// > sub_1800107D0 @ 0x180010d80\n// > sub_180096C50 @ 0x180096c9a\n// > sub_180098710 @ 0x18009878c\n// > sub_1800BCE10 @ 0x1800bd197\n// > sub_1800C7270 @ 0x1800c7688\n// > <???> @ 0x180201250\n// > <???> @ 0x18020125c\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:29 +0000\n// \n\n__int64 __fastcall sub_180102340(__int64 a1)\n{\n  __int64 v2; // r8\n  __int64 result; // rax\n\n  if ( !*(_QWORD *)(a1 + 69528) )\n    return 0;\n  v2 = *(_QWORD *)(a1 + 70432);\n  if ( !v2 )\n    return 28;\n  *(_QWORD *)(a1 + 70432) = 0;\n  *(_BYTE *)(a1 + 70440) = 0;\n  result = sub_1800E2320(a1, 0x100004u, v2, 0);\n  if ( !(_DWORD)result )\n  {\n    result = FMOD_OS_CriticalSection_Leave(*(struct _RTL_CRITICAL_SECTION **)(a1 + 69528));\n    if ( !(_DWORD)result )\n      return 0;\n  }\n  return result;\n}", "assembly": "; \n; sub_180102340 from 0x180102340 to 0x1801023a4 (100 bytes)\n; \n; 9 xrefs:\n; > sub_18000EBC0 @ 0x18000ec12\n; > sub_1800107D0 @ 0x1800109e5\n; > sub_1800107D0 @ 0x180010d80\n; > sub_180096C50 @ 0x180096c9a\n; > sub_180098710 @ 0x18009878c\n; > sub_1800BCE10 @ 0x1800bd197\n; > sub_1800C7270 @ 0x1800c7688\n; > <???> @ 0x180201250\n; > <???> @ 0x18020125c\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:29 +0000\n; \npush    rbx                                                            ; +0x0, 0x180102340\nsub     rsp, 20h                                                       ; +0x2, 0x180102342\ncmp     qword ptr [rcx+10F98h], 0                                      ; +0x6, 0x180102346\nmov     rbx, rcx                                                       ; +0xe, 0x18010234e\njz      short loc_18010239C                                            ; +0x11, 0x180102351\nmov     r8, [rcx+11320h]                                               ; +0x13, 0x180102353\ntest    r8, r8                                                         ; +0x1a, 0x18010235a\njnz     short loc_180102369                                            ; +0x1d, 0x18010235d\nlea     eax, [r8+1Ch]                                                  ; +0x1f, 0x18010235f\nadd     rsp, 20h                                                       ; +0x23, 0x180102363\npop     rbx                                                            ; +0x27, 0x180102367\nretn                                                                   ; +0x28, 0x180102368\nxor     r9d, r9d                                                       ; +0x29, 0x180102369\nmov     qword ptr [rcx+11320h], 0                                      ; +0x2c, 0x18010236c\nmov     edx, 100004h                                                   ; +0x37, 0x180102377\nmov     byte ptr [rcx+11328h], 0                                       ; +0x3c, 0x18010237c\ncall    sub_1800E2320                                                  ; +0x43, 0x180102383\ntest    eax, eax                                                       ; +0x48, 0x180102388\njnz     short loc_18010239E                                            ; +0x4a, 0x18010238a\nmov     rcx, [rbx+10F98h]                                              ; +0x4c, 0x18010238c\ncall    FMOD_OS_CriticalSection_Leave                                  ; +0x53, 0x180102393\ntest    eax, eax                                                       ; +0x58, 0x180102398\njnz     short loc_18010239E                                            ; +0x5a, 0x18010239a\nxor     eax, eax                                                       ; +0x5c, 0x18010239c\nadd     rsp, 20h                                                       ; +0x5e, 0x18010239e\npop     rbx                                                            ; +0x62, 0x1801023a2\nretn                                                                   ; +0x63, 0x1801023a3", "xrefs": ["sub_18000EBC0 @ 0x18000ec12", "sub_1800107D0 @ 0x1800109e5", "sub_1800107D0 @ 0x180010d80", "sub_180096C50 @ 0x180096c9a", "sub_180098710 @ 0x18009878c", "sub_1800BCE10 @ 0x1800bd197", "sub_1800C7270 @ 0x1800c7688", "<???> @ 0x180201250", "<???> @ 0x18020125c"], "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"}