{"type": "func", "start": 6442550944, "end": 6442551099, "name": "sub_1800186A0", "pseudocode": "// \n// sub_1800186A0 from 0x1800186a0 to 0x18001873b (155 bytes)\n// \n// 5 xrefs:\n// > DS_Dictionary::getDictForKey @ 0x180019e56\n// > sub_18001C710 @ 0x18001c81d\n// > DS_Dictionary::stepIntoSubDictWithKey @ 0x180021852\n// > sub_180025630 @ 0x180025767\n// > <???> @ 0x1801b8920\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 11:21:25 +0000\n// \n\n__int64 __fastcall sub_1800186A0(__int64 a1, __int64 a2, __int64 a3, __int64 a4)\n{\n  _QWORD *v6; // rcx\n  __int64 result; // rax\n\n  v6 = *(_QWORD **)a1;\n  if ( v6 )\n  {\n    if ( ((*(_QWORD *)(a1 + 16) - (_QWORD)v6) & 0xFFFFFFFFFFFFFFF8uLL) >= 0x1000 )\n    {\n      if ( (unsigned __int64)v6 - *(v6 - 1) - 8 > 0x1F )\n        invoke_watson(nullptr, nullptr, nullptr, 0, 0);\n      v6 = (_QWORD *)*(v6 - 1);\n    }\n    j_j_free_0(v6);\n  }\n  *(_QWORD *)a1 = a2;\n  *(_QWORD *)(a1 + 8) = a2 + 8 * a3;\n  result = a2 + 8 * a4;\n  *(_QWORD *)(a1 + 16) = result;\n  return result;\n}", "assembly": "; \n; sub_1800186A0 from 0x1800186a0 to 0x18001873b (155 bytes)\n; \n; 5 xrefs:\n; > DS_Dictionary::getDictForKey @ 0x180019e56\n; > sub_18001C710 @ 0x18001c81d\n; > DS_Dictionary::stepIntoSubDictWithKey @ 0x180021852\n; > sub_180025630 @ 0x180025767\n; > <???> @ 0x1801b8920\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 11:21:25 +0000\n; \nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x1800186a0\nmov     [rsp+arg_8], rbp                                               ; +0x5, 0x1800186a5\nmov     [rsp+arg_10], rsi                                              ; +0xa, 0x1800186aa\npush    rdi                                                            ; +0xf, 0x1800186af\nsub     rsp, 30h                                                       ; +0x10, 0x1800186b0\nmov     rbx, rcx                                                       ; +0x14, 0x1800186b4\nmov     rsi, r9                                                        ; +0x17, 0x1800186b7\nmov     rcx, [rcx]                                                     ; +0x1a, 0x1800186ba\nmov     rbp, r8                                                        ; +0x1d, 0x1800186bd\nmov     rdi, rdx                                                       ; +0x20, 0x1800186c0\ntest    rcx, rcx                                                       ; +0x23, 0x1800186c3\njz      short loc_1800186F9                                            ; +0x26, 0x1800186c6\nmov     rdx, [rbx+10h]                                                 ; +0x28, 0x1800186c8\nsub     rdx, rcx                                                       ; +0x2c, 0x1800186cc\nand     rdx, 0FFFFFFFFFFFFFFF8h                                        ; +0x2f, 0x1800186cf\ncmp     rdx, 1000h                                                     ; +0x33, 0x1800186d3\njb      short loc_1800186F4                                            ; +0x3a, 0x1800186da\nmov     rax, [rcx-8]                                                   ; +0x3c, 0x1800186dc\nadd     rdx, 27h ; '''                                                 ; +0x40, 0x1800186e0\nsub     rcx, rax                                                       ; +0x44, 0x1800186e4\nsub     rcx, 8                                                         ; +0x47, 0x1800186e7\ncmp     rcx, 1Fh                                                       ; +0x4b, 0x1800186eb\nja      short loc_180018721                                            ; +0x4f, 0x1800186ef\nmov     rcx, rax; Block                                                ; +0x51, 0x1800186f1\ncall    j_j_free_0                                                     ; +0x54, 0x1800186f4\nlea     rax, [rdi+rbp*8]                                               ; +0x59, 0x1800186f9\nmov     [rbx], rdi                                                     ; +0x5d, 0x1800186fd\nmov     rbp, [rsp+38h+arg_8]                                           ; +0x60, 0x180018700\nmov     [rbx+8], rax                                                   ; +0x65, 0x180018705\nlea     rax, [rdi+rsi*8]                                               ; +0x69, 0x180018709\nmov     rsi, [rsp+38h+arg_10]                                          ; +0x6d, 0x18001870d\nmov     [rbx+10h], rax                                                 ; +0x72, 0x180018712\nmov     rbx, [rsp+38h+arg_0]                                           ; +0x76, 0x180018716\nadd     rsp, 30h                                                       ; +0x7b, 0x18001871b\npop     rdi                                                            ; +0x7f, 0x18001871f\nretn                                                                   ; +0x80, 0x180018720\nxor     r9d, r9d; LineNo                                               ; +0x81, 0x180018721\nmov     [rsp+38h+Reserved], 0; Reserved                                ; +0x84, 0x180018724\nxor     r8d, r8d; FileName                                             ; +0x8d, 0x18001872d\nxor     edx, edx; FunctionName                                         ; +0x90, 0x180018730\nxor     ecx, ecx; Expression                                           ; +0x92, 0x180018732\ncall    cs:_invoke_watson                                              ; +0x94, 0x180018734\ndb 0CCh                                                                ; +0x9a, 0x18001873a", "xrefs": ["DS_Dictionary::getDictForKey @ 0x180019e56", "sub_18001C710 @ 0x18001c81d", "DS_Dictionary::stepIntoSubDictWithKey @ 0x180021852", "sub_180025630 @ 0x180025767", "<???> @ 0x1801b8920"], "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"}