{"type": "func", "start": 6442973456, "end": 6442973642, "name": "sub_18007F910", "pseudocode": "// \n// sub_18007F910 from 0x18007f910 to 0x18007f9ca (186 bytes)\n// \n// 23 xrefs:\n// > DS_Dictionary::setArrayForKey @ 0x18001e785\n// > DS_Dictionary::setBoolForKey @ 0x18001e95c\n// > DS_Dictionary::setFloatForKey @ 0x18001ef6c\n// > DS_Dictionary::setFloatForKey @ 0x18001f050\n// > DS_Dictionary::setIntegerForKey @ 0x18001f1fe\n// > DS_Dictionary::setIntegerForKey @ 0x18001f2e2\n// > DS_Dictionary::setRectArrayForKey @ 0x18001f632\n// > DS_Dictionary::setRectArrayForKey @ 0x18001f915\n// > DS_Dictionary::setRectForKey @ 0x18001fc4e\n// > DS_Dictionary::setRectForKey @ 0x18001fcba\n// > DS_Dictionary::setStringArrayForKey @ 0x18001feac\n// > DS_Dictionary::setStringArrayForKey @ 0x18001ff5e\n// > DS_Dictionary::setStringForKey @ 0x1800200ee\n// > DS_Dictionary::setStringForKey @ 0x180020153\n// > DS_Dictionary::setSubDictForKey @ 0x180020200\n// > DS_Dictionary::setSubDictForKey @ 0x18002035c\n// > DS_Dictionary::setVec2ArrayForKey @ 0x180020552\n// > DS_Dictionary::setVec2ArrayForKey @ 0x1800207e7\n// > DS_Dictionary::setVec2ForKey @ 0x180020adc\n// > DS_Dictionary::setVec2ForKey @ 0x180020b48\n// > <???> @ 0x18013c25c\n// > <???> @ 0x18013c26c\n// > <???> @ 0x1801b5034\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_QWORD *__fastcall sub_18007F910(_QWORD **a1, _QWORD *a2, __int64 a3)\n{\n  _QWORD *v3; // rcx\n  int v4; // esi\n  _DWORD *v6; // rax\n  _DWORD *v7; // rbx\n\n  v3 = *a1;\n  v4 = a3;\n  if ( !v3\n    || (*(_DWORD *)v3 & 7u) > 1\n    || (unsigned int)a3 <= 1\n    || (*(_DWORD *)v3 & 7) != 0 && (unsigned int)(a3 - 7) <= 1 )\n  {\n    *a2 = 0;\n    return a2;\n  }\n  else\n  {\n    v6 = (_DWORD *)sub_18007F9D0(v3, *(_QWORD *)(*v3 & 0xFFFFFFFFFFFFFFE0uLL), a3);\n    v7 = v6;\n    if ( v4 == 7 && v6 && ((*v6 & 7) == 1 || (*v6 & 7u) - 5 <= 1) )\n      sub_180085720(v6 + 4, v6, 16, \"xml\");\n    *a2 = v7;\n    return a2;\n  }\n}", "assembly": "; \n; sub_18007F910 from 0x18007f910 to 0x18007f9ca (186 bytes)\n; \n; 23 xrefs:\n; > DS_Dictionary::setArrayForKey @ 0x18001e785\n; > DS_Dictionary::setBoolForKey @ 0x18001e95c\n; > DS_Dictionary::setFloatForKey @ 0x18001ef6c\n; > DS_Dictionary::setFloatForKey @ 0x18001f050\n; > DS_Dictionary::setIntegerForKey @ 0x18001f1fe\n; > DS_Dictionary::setIntegerForKey @ 0x18001f2e2\n; > DS_Dictionary::setRectArrayForKey @ 0x18001f632\n; > DS_Dictionary::setRectArrayForKey @ 0x18001f915\n; > DS_Dictionary::setRectForKey @ 0x18001fc4e\n; > DS_Dictionary::setRectForKey @ 0x18001fcba\n; > DS_Dictionary::setStringArrayForKey @ 0x18001feac\n; > DS_Dictionary::setStringArrayForKey @ 0x18001ff5e\n; > DS_Dictionary::setStringForKey @ 0x1800200ee\n; > DS_Dictionary::setStringForKey @ 0x180020153\n; > DS_Dictionary::setSubDictForKey @ 0x180020200\n; > DS_Dictionary::setSubDictForKey @ 0x18002035c\n; > DS_Dictionary::setVec2ArrayForKey @ 0x180020552\n; > DS_Dictionary::setVec2ArrayForKey @ 0x1800207e7\n; > DS_Dictionary::setVec2ForKey @ 0x180020adc\n; > DS_Dictionary::setVec2ForKey @ 0x180020b48\n; > <???> @ 0x18013c25c\n; > <???> @ 0x18013c26c\n; > <???> @ 0x1801b5034\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     [rsp+arg_8], rsi                                               ; +0x0, 0x18007f910\npush    rdi                                                            ; +0x5, 0x18007f915\nsub     rsp, 20h                                                       ; +0x6, 0x18007f916\nmov     rcx, [rcx]                                                     ; +0xa, 0x18007f91a\nmov     esi, r8d                                                       ; +0xd, 0x18007f91d\nmov     rdi, rdx                                                       ; +0x10, 0x18007f920\ntest    rcx, rcx                                                       ; +0x13, 0x18007f923\njz      loc_18007F9B5                                                  ; +0x16, 0x18007f926\nmov     eax, [rcx]                                                     ; +0x1c, 0x18007f92c\nand     eax, 7                                                         ; +0x1e, 0x18007f92e\ninc     eax                                                            ; +0x21, 0x18007f931\ncmp     eax, 1                                                         ; +0x23, 0x18007f933\njz      short loc_18007F93D                                            ; +0x26, 0x18007f936\ncmp     eax, 2                                                         ; +0x28, 0x18007f938\njnz     short loc_18007F9B5                                            ; +0x2b, 0x18007f93b\ncmp     esi, 1                                                         ; +0x2d, 0x18007f93d\njbe     short loc_18007F9B5                                            ; +0x30, 0x18007f940\ncmp     eax, 1                                                         ; +0x32, 0x18007f942\njz      short loc_18007F950                                            ; +0x35, 0x18007f945\nlea     eax, [r8-7]                                                    ; +0x37, 0x18007f947\ncmp     eax, 1                                                         ; +0x3b, 0x18007f94b\njbe     short loc_18007F9B5                                            ; +0x3e, 0x18007f94e\nmov     rax, [rcx]                                                     ; +0x40, 0x18007f950\nand     rax, 0FFFFFFFFFFFFFFE0h                                        ; +0x43, 0x18007f953\nmov     [rsp+28h+arg_0], rbx                                           ; +0x47, 0x18007f957\nmov     rdx, [rax]                                                     ; +0x4c, 0x18007f95c\ncall    sub_18007F9D0                                                  ; +0x4f, 0x18007f95f\nmov     rbx, rax                                                       ; +0x54, 0x18007f964\ncmp     esi, 7                                                         ; +0x57, 0x18007f967\njnz     short loc_18007F99F                                            ; +0x5a, 0x18007f96a\ntest    rax, rax                                                       ; +0x5c, 0x18007f96c\njz      short loc_18007F99F                                            ; +0x5f, 0x18007f96f\nmov     ecx, [rax]                                                     ; +0x61, 0x18007f971\nand     ecx, esi                                                       ; +0x63, 0x18007f973\ninc     ecx                                                            ; +0x65, 0x18007f975\nsub     ecx, 2                                                         ; +0x67, 0x18007f977\njz      short loc_18007F986                                            ; +0x6a, 0x18007f97a\nsub     ecx, 4                                                         ; +0x6c, 0x18007f97c\njz      short loc_18007F986                                            ; +0x6f, 0x18007f97f\ncmp     ecx, 1                                                         ; +0x71, 0x18007f981\njnz     short loc_18007F99F                                            ; +0x74, 0x18007f984\nlea     rcx, [rax+10h]                                                 ; +0x76, 0x18007f986\nmov     r8d, 10h                                                       ; +0x7a, 0x18007f98a\nlea     r9, aXml; \"xml\"                                                ; +0x80, 0x18007f990\nmov     rdx, rbx                                                       ; +0x87, 0x18007f997\ncall    sub_180085720                                                  ; +0x8a, 0x18007f99a\nmov     [rdi], rbx                                                     ; +0x8f, 0x18007f99f\nmov     rax, rdi                                                       ; +0x92, 0x18007f9a2\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x95, 0x18007f9a5\nmov     rsi, [rsp+28h+arg_8]                                           ; +0x9a, 0x18007f9aa\nadd     rsp, 20h                                                       ; +0x9f, 0x18007f9af\npop     rdi                                                            ; +0xa3, 0x18007f9b3\nretn                                                                   ; +0xa4, 0x18007f9b4\nmov     rsi, [rsp+28h+arg_8]                                           ; +0xa5, 0x18007f9b5\nmov     rax, rdi                                                       ; +0xaa, 0x18007f9ba\nmov     qword ptr [rdx], 0                                             ; +0xad, 0x18007f9bd\nadd     rsp, 20h                                                       ; +0xb4, 0x18007f9c4\npop     rdi                                                            ; +0xb8, 0x18007f9c8\nretn                                                                   ; +0xb9, 0x18007f9c9", "xrefs": ["DS_Dictionary::setArrayForKey @ 0x18001e785", "DS_Dictionary::setBoolForKey @ 0x18001e95c", "DS_Dictionary::setFloatForKey @ 0x18001ef6c", "DS_Dictionary::setFloatForKey @ 0x18001f050", "DS_Dictionary::setIntegerForKey @ 0x18001f1fe", "DS_Dictionary::setIntegerForKey @ 0x18001f2e2", "DS_Dictionary::setRectArrayForKey @ 0x18001f632", "DS_Dictionary::setRectArrayForKey @ 0x18001f915", "DS_Dictionary::setRectForKey @ 0x18001fc4e", "DS_Dictionary::setRectForKey @ 0x18001fcba", "DS_Dictionary::setStringArrayForKey @ 0x18001feac", "DS_Dictionary::setStringArrayForKey @ 0x18001ff5e", "DS_Dictionary::setStringForKey @ 0x1800200ee", "DS_Dictionary::setStringForKey @ 0x180020153", "DS_Dictionary::setSubDictForKey @ 0x180020200", "DS_Dictionary::setSubDictForKey @ 0x18002035c", "DS_Dictionary::setVec2ArrayForKey @ 0x180020552", "DS_Dictionary::setVec2ArrayForKey @ 0x1800207e7", "DS_Dictionary::setVec2ForKey @ 0x180020adc", "DS_Dictionary::setVec2ForKey @ 0x180020b48", "<???> @ 0x18013c25c", "<???> @ 0x18013c26c", "<???> @ 0x1801b5034"], "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"}