{"type": "func", "start": 6443542448, "end": 6443542571, "name": "sub_18010A7B0", "pseudocode": "// \n// sub_18010A7B0 from 0x18010a7b0 to 0x18010a82b (123 bytes)\n// \n// 1 xrefs:\n// > <???> @ 0x1801b0908\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_18010A7B0(_QWORD *a1, int a2, int a3)\n{\n  _DWORD *v3; // rax\n\n  v3 = (_DWORD *)*a1;\n  if ( a2 == 1 )\n  {\n    if ( a3 >= 0 )\n    {\n      if ( a3 > 4 )\n        a3 = 4;\n      ++v3[161];\n      v3[169] = a3;\n      return 0;\n    }\n    else\n    {\n      ++v3[161];\n      v3[169] = 0;\n      return 0;\n    }\n  }\n  else if ( a2 == 4 )\n  {\n    if ( a3 >= 0 )\n    {\n      if ( a3 > 2 )\n        a3 = 2;\n      ++v3[161];\n      v3[172] = a3;\n      return 0;\n    }\n    else\n    {\n      ++v3[161];\n      v3[172] = 0;\n      return 0;\n    }\n  }\n  else\n  {\n    return 31;\n  }\n}", "assembly": "; \n; sub_18010A7B0 from 0x18010a7b0 to 0x18010a82b (123 bytes)\n; \n; 1 xrefs:\n; > <???> @ 0x1801b0908\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     rax, [rcx]                                                     ; +0x0, 0x18010a7b0\ncmp     edx, 1                                                         ; +0x3, 0x18010a7b3\njnz     short loc_18010A7EC                                            ; +0x6, 0x18010a7b6\ntest    r8d, r8d                                                       ; +0x8, 0x18010a7b8\njns     short loc_18010A7D0                                            ; +0xb, 0x18010a7bb\ninc     dword ptr [rax+284h]                                           ; +0xd, 0x18010a7bd\nxor     r8d, r8d                                                       ; +0x13, 0x18010a7c3\nmov     [rax+2A4h], r8d                                                ; +0x16, 0x18010a7c6\nxor     eax, eax                                                       ; +0x1d, 0x18010a7cd\nretn                                                                   ; +0x1f, 0x18010a7cf\nmov     ecx, 4                                                         ; +0x20, 0x18010a7d0\ncmp     r8d, ecx                                                       ; +0x25, 0x18010a7d5\ncmovg   r8d, ecx                                                       ; +0x28, 0x18010a7d8\ninc     dword ptr [rax+284h]                                           ; +0x2c, 0x18010a7dc\nmov     [rax+2A4h], r8d                                                ; +0x32, 0x18010a7e2\nxor     eax, eax                                                       ; +0x39, 0x18010a7e9\nretn                                                                   ; +0x3b, 0x18010a7eb\ncmp     edx, 4                                                         ; +0x3c, 0x18010a7ec\njnz     short loc_18010A825                                            ; +0x3f, 0x18010a7ef\ntest    r8d, r8d                                                       ; +0x41, 0x18010a7f1\njns     short loc_18010A809                                            ; +0x44, 0x18010a7f4\ninc     dword ptr [rax+284h]                                           ; +0x46, 0x18010a7f6\nxor     r8d, r8d                                                       ; +0x4c, 0x18010a7fc\nmov     [rax+2B0h], r8d                                                ; +0x4f, 0x18010a7ff\nxor     eax, eax                                                       ; +0x56, 0x18010a806\nretn                                                                   ; +0x58, 0x18010a808\nmov     ecx, 2                                                         ; +0x59, 0x18010a809\ncmp     r8d, ecx                                                       ; +0x5e, 0x18010a80e\ncmovg   r8d, ecx                                                       ; +0x61, 0x18010a811\ninc     dword ptr [rax+284h]                                           ; +0x65, 0x18010a815\nmov     [rax+2B0h], r8d                                                ; +0x6b, 0x18010a81b\nxor     eax, eax                                                       ; +0x72, 0x18010a822\nretn                                                                   ; +0x74, 0x18010a824\nmov     eax, 1Fh                                                       ; +0x75, 0x18010a825\nretn                                                                   ; +0x7a, 0x18010a82a", "xrefs": ["<???> @ 0x1801b0908"], "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"}