{"type": "func", "start": 6443508320, "end": 6443508466, "name": "sub_180102260", "pseudocode": "// \n// sub_180102260 from 0x180102260 to 0x1801022f2 (146 bytes)\n// \n// 8 xrefs:\n// > sub_18000EBC0 @ 0x18000ebe6\n// > sub_1800107D0 @ 0x1800109b6\n// > sub_1800107D0 @ 0x180010d54\n// > sub_180096C50 @ 0x180096c7a\n// > sub_180098710 @ 0x180098765\n// > sub_1800BCE10 @ 0x1800bd163\n// > sub_1800C7270 @ 0x1800c7669\n// > <???> @ 0x180201244\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_180102260(__int64 a1, unsigned __int8 a2)\n{\n  unsigned int v3; // esi\n  struct _RTL_CRITICAL_SECTION *v4; // rcx\n  __int64 result; // rax\n  __int64 v6; // r8\n\n  v3 = a2;\n  v4 = *(struct _RTL_CRITICAL_SECTION **)(a1 + 69528);\n  if ( !v4 )\n    return 0;\n  result = FMOD_OS_CriticalSection_Enter(v4);\n  if ( (_DWORD)result )\n    return result;\n  if ( *(_QWORD *)(a1 + 70432) )\n    return 28;\n  result = sub_1800C1750((_QWORD *)(a1 + 70432));\n  if ( (_DWORD)result )\n    return result;\n  v6 = *(_QWORD *)(a1 + 70432);\n  if ( !v6 )\n    return 28;\n  *(_BYTE *)(a1 + 70440) = v3;\n  result = sub_1800E2320(a1, 0x100002u, v6, v3);\n  if ( !(_DWORD)result )\n    return 0;\n  return result;\n}", "assembly": "; \n; sub_180102260 from 0x180102260 to 0x1801022f2 (146 bytes)\n; \n; 8 xrefs:\n; > sub_18000EBC0 @ 0x18000ebe6\n; > sub_1800107D0 @ 0x1800109b6\n; > sub_1800107D0 @ 0x180010d54\n; > sub_180096C50 @ 0x180096c7a\n; > sub_180098710 @ 0x180098765\n; > sub_1800BCE10 @ 0x1800bd163\n; > sub_1800C7270 @ 0x1800c7669\n; > <???> @ 0x180201244\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, 0x180102260\nmov     [rsp+arg_8], rsi                                               ; +0x5, 0x180102265\npush    rdi                                                            ; +0xa, 0x18010226a\nsub     rsp, 20h                                                       ; +0xb, 0x18010226b\nmov     rdi, rcx                                                       ; +0xf, 0x18010226f\nmovzx   esi, dl                                                        ; +0x12, 0x180102272\nmov     rcx, [rcx+10F98h]                                              ; +0x15, 0x180102275\ntest    rcx, rcx                                                       ; +0x1c, 0x18010227c\njz      short loc_1801022CB                                            ; +0x1f, 0x18010227f\ncall    FMOD_OS_CriticalSection_Enter                                  ; +0x21, 0x180102281\ntest    eax, eax                                                       ; +0x26, 0x180102286\njnz     short loc_1801022CD                                            ; +0x28, 0x180102288\ncmp     qword ptr [rdi+11320h], 0                                      ; +0x2a, 0x18010228a\njnz     short loc_1801022DD                                            ; +0x32, 0x180102292\nlea     rcx, [rdi+11320h]                                              ; +0x34, 0x180102294\ncall    sub_1800C1750                                                  ; +0x3b, 0x18010229b\ntest    eax, eax                                                       ; +0x40, 0x1801022a0\njnz     short loc_1801022CD                                            ; +0x42, 0x1801022a2\nmov     r8, [rdi+11320h]                                               ; +0x44, 0x1801022a4\ntest    r8, r8                                                         ; +0x4b, 0x1801022ab\njz      short loc_1801022DD                                            ; +0x4e, 0x1801022ae\nmov     r9d, esi                                                       ; +0x50, 0x1801022b0\nmov     [rdi+11328h], sil                                              ; +0x53, 0x1801022b3\nmov     edx, 100002h                                                   ; +0x5a, 0x1801022ba\nmov     rcx, rdi                                                       ; +0x5f, 0x1801022bf\ncall    sub_1800E2320                                                  ; +0x62, 0x1801022c2\ntest    eax, eax                                                       ; +0x67, 0x1801022c7\njnz     short loc_1801022CD                                            ; +0x69, 0x1801022c9\nxor     eax, eax                                                       ; +0x6b, 0x1801022cb\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x6d, 0x1801022cd\nmov     rsi, [rsp+28h+arg_8]                                           ; +0x72, 0x1801022d2\nadd     rsp, 20h                                                       ; +0x77, 0x1801022d7\npop     rdi                                                            ; +0x7b, 0x1801022db\nretn                                                                   ; +0x7c, 0x1801022dc\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x7d, 0x1801022dd\nmov     eax, 1Ch                                                       ; +0x82, 0x1801022e2\nmov     rsi, [rsp+28h+arg_8]                                           ; +0x87, 0x1801022e7\nadd     rsp, 20h                                                       ; +0x8c, 0x1801022ec\npop     rdi                                                            ; +0x90, 0x1801022f0\nretn                                                                   ; +0x91, 0x1801022f1", "xrefs": ["sub_18000EBC0 @ 0x18000ebe6", "sub_1800107D0 @ 0x1800109b6", "sub_1800107D0 @ 0x180010d54", "sub_180096C50 @ 0x180096c7a", "sub_180098710 @ 0x180098765", "sub_1800BCE10 @ 0x1800bd163", "sub_1800C7270 @ 0x1800c7669", "<???> @ 0x180201244"], "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"}