{"type": "func", "start": 6443087760, "end": 6443087830, "name": "sub_18009B790", "pseudocode": "// \n// sub_18009B790 from 0x18009b790 to 0x18009b7d6 (70 bytes)\n// \n// 8 xrefs:\n// > sub_180018DF0 @ 0x18001b859\n// > sub_180018DF0 @ 0x18001b906\n// > sub_180018DF0 @ 0x18001ba4f\n// > sub_180020140 @ 0x180020d16\n// > sub_180026050 @ 0x1800271fc\n// > sub_1800364B0 @ 0x1800378ee\n// > sub_18003DB30 @ 0x18003f053\n// > sub_1800FC980 @ 0x1800fcd5d\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_18009B790(__int64 a1, char a2, char a3)\n{\n  if ( a3 && a2 != ((*(_DWORD *)(a1 + 100) & 0x2000) != 0) )\n    *(_DWORD *)(*(_QWORD *)(*(_QWORD *)(a1 + 168) + 67512LL) + 48LL) = 1;\n  if ( a2 )\n    _InterlockedOr((volatile signed __int32 *)(a1 + 100), 0x2000u);\n  else\n    _InterlockedAnd((volatile signed __int32 *)(a1 + 100), 0xFFFFDFFF);\n  return 0;\n}", "assembly": "; \n; sub_18009B790 from 0x18009b790 to 0x18009b7d6 (70 bytes)\n; \n; 8 xrefs:\n; > sub_180018DF0 @ 0x18001b859\n; > sub_180018DF0 @ 0x18001b906\n; > sub_180018DF0 @ 0x18001ba4f\n; > sub_180020140 @ 0x180020d16\n; > sub_180026050 @ 0x1800271fc\n; > sub_1800364B0 @ 0x1800378ee\n; > sub_18003DB30 @ 0x18003f053\n; > sub_1800FC980 @ 0x1800fcd5d\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     r9, rcx                                                        ; +0x0, 0x18009b790\ntest    r8b, r8b                                                       ; +0x3, 0x18009b793\njz      short loc_18009B7BA                                            ; +0x6, 0x18009b796\nmov     eax, [rcx+64h]                                                 ; +0x8, 0x18009b798\nnop                                                                    ; +0xb, 0x18009b79b\nshr     eax, 0Dh                                                       ; +0xc, 0x18009b79c\nand     al, 1                                                          ; +0xf, 0x18009b79f\ncmp     dl, al                                                         ; +0x11, 0x18009b7a1\njz      short loc_18009B7BA                                            ; +0x13, 0x18009b7a3\nmov     rax, [rcx+0A8h]                                                ; +0x15, 0x18009b7a5\nmov     rcx, [rax+107B8h]                                              ; +0x1c, 0x18009b7ac\nmov     dword ptr [rcx+30h], 1                                         ; +0x23, 0x18009b7b3\ntest    dl, dl                                                         ; +0x2a, 0x18009b7ba\njz      short loc_18009B7CA                                            ; +0x2c, 0x18009b7bc\nlock or dword ptr [r9+64h], 2000h                                      ; +0x2e, 0x18009b7be\nxor     eax, eax                                                       ; +0x37, 0x18009b7c7\nretn                                                                   ; +0x39, 0x18009b7c9\nlock and dword ptr [r9+64h], 0FFFFDFFFh                                ; +0x3a, 0x18009b7ca\nxor     eax, eax                                                       ; +0x43, 0x18009b7d3\nretn                                                                   ; +0x45, 0x18009b7d5", "xrefs": ["sub_180018DF0 @ 0x18001b859", "sub_180018DF0 @ 0x18001b906", "sub_180018DF0 @ 0x18001ba4f", "sub_180020140 @ 0x180020d16", "sub_180026050 @ 0x1800271fc", "sub_1800364B0 @ 0x1800378ee", "sub_18003DB30 @ 0x18003f053", "sub_1800FC980 @ 0x1800fcd5d"], "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"}