{"type": "func", "start": 6443348384, "end": 6443348464, "name": "sub_1800DB1A0", "pseudocode": "// \n// sub_1800DB1A0 from 0x1800db1a0 to 0x1800db1f0 (80 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x18016cf68\n// > <???> @ 0x1801ff39c\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:13 +0000\n// \n\n__int64 __fastcall sub_1800DB1A0(__int64 a1, __int64 a2)\n{\n  __int64 v2; // r9\n  int v4; // eax\n  __int64 result; // rax\n  __int64 (__fastcall ***v6)(_QWORD, __int64, _QWORD); // rcx\n\n  v2 = *(_QWORD *)(a1 + 88);\n  if ( !v2 )\n    return 0;\n  v4 = *(_DWORD *)(a2 + 8);\n  if ( v4 >= 1 )\n    return 28;\n  v6 = *(__int64 (__fastcall ****)(_QWORD, __int64, _QWORD))a2;\n  *(_DWORD *)(a2 + 8) = v4 + 1;\n  result = (**v6)(v6, v2, 0);\n  if ( (_DWORD)result == 45 )\n    result = 0;\n  if ( !(_DWORD)result )\n  {\n    *(_QWORD *)(a1 + 88) = 0;\n    return 0;\n  }\n  return result;\n}", "assembly": "; \n; sub_1800DB1A0 from 0x1800db1a0 to 0x1800db1f0 (80 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x18016cf68\n; > <???> @ 0x1801ff39c\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:13 +0000\n; \npush    rbx                                                            ; +0x0, 0x1800db1a0\nsub     rsp, 20h                                                       ; +0x2, 0x1800db1a2\nmov     r9, [rcx+58h]                                                  ; +0x6, 0x1800db1a6\nmov     rbx, rcx                                                       ; +0xa, 0x1800db1aa\ntest    r9, r9                                                         ; +0xd, 0x1800db1ad\njz      short loc_1800DB1E8                                            ; +0x10, 0x1800db1b0\nmov     eax, [rdx+8]                                                   ; +0x12, 0x1800db1b2\ncmp     eax, 1                                                         ; +0x15, 0x1800db1b5\njl      short loc_1800DB1C5                                            ; +0x18, 0x1800db1b8\nmov     eax, 1Ch                                                       ; +0x1a, 0x1800db1ba\nadd     rsp, 20h                                                       ; +0x1f, 0x1800db1bf\npop     rbx                                                            ; +0x23, 0x1800db1c3\nretn                                                                   ; +0x24, 0x1800db1c4\nmov     rcx, [rdx]                                                     ; +0x25, 0x1800db1c5\ninc     eax                                                            ; +0x28, 0x1800db1c8\nmov     [rdx+8], eax                                                   ; +0x2a, 0x1800db1ca\nxor     r8d, r8d                                                       ; +0x2d, 0x1800db1cd\nmov     rdx, r9                                                        ; +0x30, 0x1800db1d0\nmov     rax, [rcx]                                                     ; +0x33, 0x1800db1d3\ncall    qword ptr [rax]                                                ; +0x36, 0x1800db1d6\nxor     ecx, ecx                                                       ; +0x38, 0x1800db1d8\ncmp     eax, 2Dh ; '-'                                                 ; +0x3a, 0x1800db1da\ncmovz   eax, ecx                                                       ; +0x3d, 0x1800db1dd\ntest    eax, eax                                                       ; +0x40, 0x1800db1e0\njnz     short loc_1800DB1EA                                            ; +0x42, 0x1800db1e2\nmov     [rbx+58h], rcx                                                 ; +0x44, 0x1800db1e4\nxor     eax, eax                                                       ; +0x48, 0x1800db1e8\nadd     rsp, 20h                                                       ; +0x4a, 0x1800db1ea\npop     rbx                                                            ; +0x4e, 0x1800db1ee\nretn                                                                   ; +0x4f, 0x1800db1ef", "xrefs": ["<???> @ 0x18016cf68", "<???> @ 0x1801ff39c"], "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"}