{"type": "func", "start": 6442985504, "end": 6442985683, "name": "sub_180082820", "pseudocode": "// \n// sub_180082820 from 0x180082820 to 0x1800828d3 (179 bytes)\n// \n// 24 xrefs:\n// > DS_Dictionary::setArrayForKey @ 0x18001e8ab\n// > DS_Dictionary::setArrayForKey @ 0x18001e944\n// > DS_Dictionary::setBoolForKey @ 0x18001eb2c\n// > DS_Dictionary::setFloatForKey @ 0x18001f10c\n// > DS_Dictionary::setFloatForKey @ 0x18001f1f4\n// > DS_Dictionary::setIntegerForKey @ 0x18001f39e\n// > DS_Dictionary::setIntegerForKey @ 0x18001f486\n// > DS_Dictionary::setRectArrayForKey @ 0x18001f7ec\n// > DS_Dictionary::setRectArrayForKey @ 0x18001facb\n// > DS_Dictionary::setRectForKey @ 0x18001fe2c\n// > DS_Dictionary::setRectForKey @ 0x18001fe9b\n// > DS_Dictionary::setStringArrayForKey @ 0x1800200ac\n// > DS_Dictionary::setStringArrayForKey @ 0x18002015e\n// > DS_Dictionary::setStringForKey @ 0x1800202ee\n// > DS_Dictionary::setStringForKey @ 0x180020353\n// > DS_Dictionary::setSubDictForKey @ 0x180020400\n// > DS_Dictionary::setSubDictForKey @ 0x18002055c\n// > DS_Dictionary::setVec2ArrayForKey @ 0x18002074c\n// > DS_Dictionary::setVec2ArrayForKey @ 0x1800209e6\n// > DS_Dictionary::setVec2ForKey @ 0x180020d01\n// > DS_Dictionary::setVec2ForKey @ 0x180020d70\n// > <???> @ 0x1801455b0\n// > <???> @ 0x1801455c0\n// > <???> @ 0x1801bf2f8\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:22:03 +0000\n// \n\n_QWORD *__fastcall sub_180082820(_QWORD **a1, _QWORD *a2, __int64 a3)\n{\n  _QWORD *v3; // rcx\n  int v4; // esi\n  unsigned int v6; // eax\n  _DWORD *v7; // rax\n  _DWORD *v8; // rbx\n\n  v3 = *a1;\n  v4 = a3;\n  if ( !v3 || (v6 = *(_DWORD *)v3 & 7, v6 > 1) || (unsigned int)a3 <= 1 || v6 && (unsigned int)(a3 - 7) <= 1 )\n  {\n    *a2 = 0;\n    return a2;\n  }\n  else\n  {\n    v7 = (_DWORD *)sub_1800828E0(v3, *(_QWORD *)(*v3 & 0xFFFFFFFFFFFFFFE0uLL), a3);\n    v8 = v7;\n    if ( v4 == 7 && v7 && ((*v7 & 7) == 1 || (*v7 & 7u) - 5 <= 1) )\n      sub_180088820(v7 + 4, v7, 16, \"xml\");\n    *a2 = v8;\n    return a2;\n  }\n}", "assembly": "; \n; sub_180082820 from 0x180082820 to 0x1800828d3 (179 bytes)\n; \n; 24 xrefs:\n; > DS_Dictionary::setArrayForKey @ 0x18001e8ab\n; > DS_Dictionary::setArrayForKey @ 0x18001e944\n; > DS_Dictionary::setBoolForKey @ 0x18001eb2c\n; > DS_Dictionary::setFloatForKey @ 0x18001f10c\n; > DS_Dictionary::setFloatForKey @ 0x18001f1f4\n; > DS_Dictionary::setIntegerForKey @ 0x18001f39e\n; > DS_Dictionary::setIntegerForKey @ 0x18001f486\n; > DS_Dictionary::setRectArrayForKey @ 0x18001f7ec\n; > DS_Dictionary::setRectArrayForKey @ 0x18001facb\n; > DS_Dictionary::setRectForKey @ 0x18001fe2c\n; > DS_Dictionary::setRectForKey @ 0x18001fe9b\n; > DS_Dictionary::setStringArrayForKey @ 0x1800200ac\n; > DS_Dictionary::setStringArrayForKey @ 0x18002015e\n; > DS_Dictionary::setStringForKey @ 0x1800202ee\n; > DS_Dictionary::setStringForKey @ 0x180020353\n; > DS_Dictionary::setSubDictForKey @ 0x180020400\n; > DS_Dictionary::setSubDictForKey @ 0x18002055c\n; > DS_Dictionary::setVec2ArrayForKey @ 0x18002074c\n; > DS_Dictionary::setVec2ArrayForKey @ 0x1800209e6\n; > DS_Dictionary::setVec2ForKey @ 0x180020d01\n; > DS_Dictionary::setVec2ForKey @ 0x180020d70\n; > <???> @ 0x1801455b0\n; > <???> @ 0x1801455c0\n; > <???> @ 0x1801bf2f8\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:22:03 +0000\n; \nmov     [rsp+arg_8], rsi                                               ; +0x0, 0x180082820\npush    rdi                                                            ; +0x5, 0x180082825\nsub     rsp, 20h                                                       ; +0x6, 0x180082826\nmov     rcx, [rcx]                                                     ; +0xa, 0x18008282a\nmov     esi, r8d                                                       ; +0xd, 0x18008282d\nmov     rdi, rdx                                                       ; +0x10, 0x180082830\ntest    rcx, rcx                                                       ; +0x13, 0x180082833\njz      loc_1800828BE                                                  ; +0x16, 0x180082836\nmov     eax, [rcx]                                                     ; +0x1c, 0x18008283c\nand     eax, 7                                                         ; +0x1e, 0x18008283e\ncmp     eax, 1                                                         ; +0x21, 0x180082841\nja      short loc_1800828BE                                            ; +0x24, 0x180082844\ncmp     r8d, 1                                                         ; +0x26, 0x180082846\njbe     short loc_1800828BE                                            ; +0x2a, 0x18008284a\ntest    eax, eax                                                       ; +0x2c, 0x18008284c\njz      short loc_180082859                                            ; +0x2e, 0x18008284e\nlea     eax, [r8-7]                                                    ; +0x30, 0x180082850\ncmp     eax, 1                                                         ; +0x34, 0x180082854\njbe     short loc_1800828BE                                            ; +0x37, 0x180082857\nmov     rdx, [rcx]                                                     ; +0x39, 0x180082859\nand     rdx, 0FFFFFFFFFFFFFFE0h                                        ; +0x3c, 0x18008285c\nmov     [rsp+28h+arg_0], rbx                                           ; +0x40, 0x180082860\nmov     rdx, [rdx]                                                     ; +0x45, 0x180082865\ncall    sub_1800828E0                                                  ; +0x48, 0x180082868\nmov     rbx, rax                                                       ; +0x4d, 0x18008286d\ncmp     esi, 7                                                         ; +0x50, 0x180082870\njnz     short loc_1800828A8                                            ; +0x53, 0x180082873\ntest    rax, rax                                                       ; +0x55, 0x180082875\njz      short loc_1800828A8                                            ; +0x58, 0x180082878\nmov     edx, [rax]                                                     ; +0x5a, 0x18008287a\nand     edx, esi                                                       ; +0x5c, 0x18008287c\ninc     edx                                                            ; +0x5e, 0x18008287e\nsub     edx, 2                                                         ; +0x60, 0x180082880\njz      short loc_18008288F                                            ; +0x63, 0x180082883\nsub     edx, 4                                                         ; +0x65, 0x180082885\njz      short loc_18008288F                                            ; +0x68, 0x180082888\ncmp     edx, 1                                                         ; +0x6a, 0x18008288a\njnz     short loc_1800828A8                                            ; +0x6d, 0x18008288d\nlea     rcx, [rax+10h]                                                 ; +0x6f, 0x18008288f\nmov     r8d, 10h                                                       ; +0x73, 0x180082893\nlea     r9, aXml; \"xml\"                                                ; +0x79, 0x180082899\nmov     rdx, rbx                                                       ; +0x80, 0x1800828a0\ncall    sub_180088820                                                  ; +0x83, 0x1800828a3\nmov     [rdi], rbx                                                     ; +0x88, 0x1800828a8\nmov     rax, rdi                                                       ; +0x8b, 0x1800828ab\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x8e, 0x1800828ae\nmov     rsi, [rsp+28h+arg_8]                                           ; +0x93, 0x1800828b3\nadd     rsp, 20h                                                       ; +0x98, 0x1800828b8\npop     rdi                                                            ; +0x9c, 0x1800828bc\nretn                                                                   ; +0x9d, 0x1800828bd\nmov     rsi, [rsp+28h+arg_8]                                           ; +0x9e, 0x1800828be\nmov     rax, rdi                                                       ; +0xa3, 0x1800828c3\nmov     qword ptr [rdx], 0                                             ; +0xa6, 0x1800828c6\nadd     rsp, 20h                                                       ; +0xad, 0x1800828cd\npop     rdi                                                            ; +0xb1, 0x1800828d1\nretn                                                                   ; +0xb2, 0x1800828d2", "xrefs": ["DS_Dictionary::setArrayForKey @ 0x18001e8ab", "DS_Dictionary::setArrayForKey @ 0x18001e944", "DS_Dictionary::setBoolForKey @ 0x18001eb2c", "DS_Dictionary::setFloatForKey @ 0x18001f10c", "DS_Dictionary::setFloatForKey @ 0x18001f1f4", "DS_Dictionary::setIntegerForKey @ 0x18001f39e", "DS_Dictionary::setIntegerForKey @ 0x18001f486", "DS_Dictionary::setRectArrayForKey @ 0x18001f7ec", "DS_Dictionary::setRectArrayForKey @ 0x18001facb", "DS_Dictionary::setRectForKey @ 0x18001fe2c", "DS_Dictionary::setRectForKey @ 0x18001fe9b", "DS_Dictionary::setStringArrayForKey @ 0x1800200ac", "DS_Dictionary::setStringArrayForKey @ 0x18002015e", "DS_Dictionary::setStringForKey @ 0x1800202ee", "DS_Dictionary::setStringForKey @ 0x180020353", "DS_Dictionary::setSubDictForKey @ 0x180020400", "DS_Dictionary::setSubDictForKey @ 0x18002055c", "DS_Dictionary::setVec2ArrayForKey @ 0x18002074c", "DS_Dictionary::setVec2ArrayForKey @ 0x1800209e6", "DS_Dictionary::setVec2ForKey @ 0x180020d01", "DS_Dictionary::setVec2ForKey @ 0x180020d70", "<???> @ 0x1801455b0", "<???> @ 0x1801455c0", "<???> @ 0x1801bf2f8"], "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"}