{"type": "func", "start": 6443088288, "end": 6443088385, "name": "sub_18009B9A0", "pseudocode": "// \n// sub_18009B9A0 from 0x18009b9a0 to 0x18009ba01 (97 bytes)\n// \n// 3 xrefs:\n// > sub_18009BA10 @ 0x18009bbd2\n// > sub_18009BA10 @ 0x18009bbf0\n// > <???> @ 0x1801fabcc\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_18009B9A0(__int64 a1, _BYTE *a2, char a3)\n{\n  char v3; // al\n\n  v3 = a2[530];\n  if ( a3 )\n  {\n    if ( !v3 )\n    {\n      a2[530] = 1;\n      ++*(_DWORD *)(*(_QWORD *)(a1 + 168) + 67936LL);\n      return 0;\n    }\n  }\n  else if ( v3 )\n  {\n    memset(a2, 0, 0x214u);\n    --*(_DWORD *)(*(_QWORD *)(a1 + 168) + 67936LL);\n  }\n  return 0;\n}", "assembly": "; \n; sub_18009B9A0 from 0x18009b9a0 to 0x18009ba01 (97 bytes)\n; \n; 3 xrefs:\n; > sub_18009BA10 @ 0x18009bbd2\n; > sub_18009BA10 @ 0x18009bbf0\n; > <???> @ 0x1801fabcc\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\npush    rbx                                                            ; +0x0, 0x18009b9a0\nsub     rsp, 20h                                                       ; +0x2, 0x18009b9a2\nmovzx   eax, byte ptr [rdx+212h]                                       ; +0x6, 0x18009b9a6\nmov     r9, rdx                                                        ; +0xd, 0x18009b9ad\nmov     rbx, rcx                                                       ; +0x10, 0x18009b9b0\ntest    r8b, r8b                                                       ; +0x13, 0x18009b9b3\njz      short loc_18009B9D8                                            ; +0x16, 0x18009b9b6\ntest    al, al                                                         ; +0x18, 0x18009b9b8\njnz     short loc_18009B9F9                                            ; +0x1a, 0x18009b9ba\nmov     byte ptr [rdx+212h], 1                                         ; +0x1c, 0x18009b9bc\nmov     rax, [rcx+0A8h]                                                ; +0x23, 0x18009b9c3\ninc     dword ptr [rax+10960h]                                         ; +0x2a, 0x18009b9ca\nxor     eax, eax                                                       ; +0x30, 0x18009b9d0\nadd     rsp, 20h                                                       ; +0x32, 0x18009b9d2\npop     rbx                                                            ; +0x36, 0x18009b9d6\nretn                                                                   ; +0x37, 0x18009b9d7\ntest    al, al                                                         ; +0x38, 0x18009b9d8\njz      short loc_18009B9F9                                            ; +0x3a, 0x18009b9da\nxor     edx, edx; Val                                                  ; +0x3c, 0x18009b9dc\nmov     r8d, 214h; Size                                                ; +0x3e, 0x18009b9de\nmov     rcx, r9; void *                                                ; +0x44, 0x18009b9e4\ncall    memset                                                         ; +0x47, 0x18009b9e7\nmov     rax, [rbx+0A8h]                                                ; +0x4c, 0x18009b9ec\ndec     dword ptr [rax+10960h]                                         ; +0x53, 0x18009b9f3\nxor     eax, eax                                                       ; +0x59, 0x18009b9f9\nadd     rsp, 20h                                                       ; +0x5b, 0x18009b9fb\npop     rbx                                                            ; +0x5f, 0x18009b9ff\nretn                                                                   ; +0x60, 0x18009ba00", "xrefs": ["sub_18009BA10 @ 0x18009bbd2", "sub_18009BA10 @ 0x18009bbf0", "<???> @ 0x1801fabcc"], "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"}