{"type": "func", "start": 6442582608, "end": 6442583055, "name": "DS_Dictionary::setSubDictForKey", "pseudocode": "// \n// DS_Dictionary::setSubDictForKey from 0x180020250 to 0x18002040f (447 bytes)\n// \n// 4 xrefs:\n// > DS_Dictionary::setArrayForKey @ 0x18001e730\n// > DS_Dictionary::setObjectForKey @ 0x18001f49f\n// > <???> @ 0x1801438a8\n// > <???> @ 0x1801aed58\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\nvoid __fastcall DS_Dictionary::setSubDictForKey(DS_Dictionary *this, char *a2, char a3, char a4)\n{\n  const char *v8; // rsi\n  const char *v9; // r8\n  char *v10; // rax\n  const char *v11; // r8\n  __int64 *v12; // rax\n  __int64 v13; // rax\n  const char *v14; // r8\n  std::_Vector_val<std::_Simple_types<pugi::xml_node>>::pointer Mylast; // rdx\n  __int64 v16; // [rsp+20h] [rbp-38h] BYREF\n  pugi::xml_node_struct *v17; // [rsp+28h] [rbp-30h] BYREF\n  _BYTE v18[40]; // [rsp+30h] [rbp-28h] BYREF\n  __int64 v19; // [rsp+60h] [rbp+8h] BYREF\n\n  pugi::xml_node::xml_node((cocos2d::CCThread *)&v16);\n  v8 = \"k\";\n  if ( !a3 )\n    goto LABEL_9;\n  v9 = \"k\";\n  if ( this->compatible )\n    v9 = \"key\";\n  sub_18007FB10(&this->dictTree._Mypair._Myval2._Mylast[-1], &v19, v9);\n  if ( sub_18007F4E0(&v19) )\n  {\n    while ( 1 )\n    {\n      v10 = (char *)sub_18007FB70(&v19);\n      if ( !sub_1800190E0(v10, a2) )\n        break;\n      v11 = \"k\";\n      if ( this->compatible )\n        v11 = \"key\";\n      v19 = *(_QWORD *)sub_180081A50(&v19, v18, v11);\n      if ( !sub_18007F4E0(&v19) )\n        goto LABEL_9;\n    }\n    if ( this->compatible )\n      v8 = \"key\";\n    v12 = (__int64 *)sub_180081070(&this->dictTree._Mypair._Myval2._Mylast[-1], v18, v8, &v19);\n  }\n  else\n  {\nLABEL_9:\n    if ( this->compatible )\n      v8 = \"key\";\n    v12 = (__int64 *)sub_18007F870(&this->dictTree._Mypair._Myval2._Mylast[-1], v18, v8);\n  }\n  v16 = *v12;\n  v13 = sub_18007F910(&v16, &v19, 3);\n  sub_180085410(v13, a2);\n  v14 = \"d\";\n  if ( this->compatible )\n    v14 = \"dict\";\n  sub_180080EE0(&this->dictTree._Mypair._Myval2._Mylast[-1], &v17, v14, &v16);\n  if ( a4 )\n  {\n    Mylast = this->dictTree._Mypair._Myval2._Mylast;\n    if ( Mylast == this->dictTree._Mypair._Myval2._Myend )\n    {\n      sub_180015D80((const void **)&this->dictTree._Mypair._Myval2._Myfirst, Mylast, &v17);\n    }\n    else\n    {\n      Mylast->_root = v17;\n      ++this->dictTree._Mypair._Myval2._Mylast;\n    }\n  }\n}", "assembly": "; \n; DS_Dictionary::setSubDictForKey from 0x180020250 to 0x18002040f (447 bytes)\n; \n; 4 xrefs:\n; > DS_Dictionary::setArrayForKey @ 0x18001e730\n; > DS_Dictionary::setObjectForKey @ 0x18001f49f\n; > <???> @ 0x1801438a8\n; > <???> @ 0x1801aed58\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], rbx                                               ; +0x0, 0x180020250\nmov     [rsp+arg_10], rbp                                              ; +0x5, 0x180020255\nmov     [rsp+arg_18], rsi                                              ; +0xa, 0x18002025a\npush    rdi                                                            ; +0xf, 0x18002025f\npush    r14                                                            ; +0x10, 0x180020260\npush    r15                                                            ; +0x12, 0x180020262\nsub     rsp, 40h                                                       ; +0x14, 0x180020264\nmov     rdi, rcx                                                       ; +0x18, 0x180020268\nmovzx   r14d, r9b                                                      ; +0x1b, 0x18002026b\nlea     rcx, [rsp+58h+var_38]; this                                    ; +0x1f, 0x18002026f\nmovzx   ebx, r8b                                                       ; +0x24, 0x180020274\nmov     rbp, rdx                                                       ; +0x28, 0x180020278\ncall    pugi__xml_node__xml_node                                       ; +0x2b, 0x18002027b\nlea     r15, aKey; \"key\"                                               ; +0x30, 0x180020280\nlea     rsi, aK; \"k\"                                                   ; +0x37, 0x180020287\ntest    bl, bl                                                         ; +0x3e, 0x18002028e\njz      loc_180020321                                                  ; +0x40, 0x180020290\ncmp     byte ptr [rdi+0E8h], 0                                         ; +0x46, 0x180020296\nlea     rdx, [rsp+58h+arg_0]                                           ; +0x4d, 0x18002029d\nmov     rcx, [rdi+0D8h]                                                ; +0x52, 0x1800202a2\nmov     r8, rsi                                                        ; +0x59, 0x1800202a9\ncmovnz  r8, r15                                                        ; +0x5c, 0x1800202ac\nsub     rcx, 8                                                         ; +0x60, 0x1800202b0\ncall    sub_18007FB10                                                  ; +0x64, 0x1800202b4\nlea     rcx, [rsp+58h+arg_0]                                           ; +0x69, 0x1800202b9\ncall    sub_18007F4E0                                                  ; +0x6e, 0x1800202be\ntest    rax, rax                                                       ; +0x73, 0x1800202c3\njz      short loc_180020321                                            ; +0x76, 0x1800202c6\nnop     dword ptr [rax+rax+00000000h]                                  ; +0x78, 0x1800202c8\nlea     rcx, [rsp+58h+arg_0]                                           ; +0x80, 0x1800202d0\ncall    sub_18007FB70                                                  ; +0x85, 0x1800202d5\nmov     rcx, rax; String1                                              ; +0x8a, 0x1800202da\nmov     rdx, rbp; String2                                              ; +0x8d, 0x1800202dd\ncall    sub_1800190E0                                                  ; +0x90, 0x1800202e0\nlea     rdx, [rsp+58h+var_28]                                          ; +0x95, 0x1800202e5\ntest    eax, eax                                                       ; +0x9a, 0x1800202ea\njz      loc_1800203C4                                                  ; +0x9c, 0x1800202ec\ncmp     byte ptr [rdi+0E8h], 0                                         ; +0xa2, 0x1800202f2\nlea     rcx, [rsp+58h+arg_0]                                           ; +0xa9, 0x1800202f9\nmov     r8, rsi                                                        ; +0xae, 0x1800202fe\ncmovnz  r8, r15                                                        ; +0xb1, 0x180020301\ncall    sub_180081A50                                                  ; +0xb5, 0x180020305\nmov     rcx, [rax]                                                     ; +0xba, 0x18002030a\nmov     [rsp+58h+arg_0], rcx                                           ; +0xbd, 0x18002030d\nlea     rcx, [rsp+58h+arg_0]                                           ; +0xc2, 0x180020312\ncall    sub_18007F4E0                                                  ; +0xc7, 0x180020317\ntest    rax, rax                                                       ; +0xcc, 0x18002031c\njnz     short loc_1800202D0                                            ; +0xcf, 0x18002031f\nmov     rcx, [rdi+0D8h]                                                ; +0xd1, 0x180020321\nlea     rdx, [rsp+58h+var_28]                                          ; +0xd8, 0x180020328\nsub     rcx, 8                                                         ; +0xdd, 0x18002032d\ncmp     byte ptr [rdi+0E8h], 0                                         ; +0xe1, 0x180020331\ncmovnz  rsi, r15                                                       ; +0xe8, 0x180020338\nmov     r8, rsi                                                        ; +0xec, 0x18002033c\ncall    sub_18007F870                                                  ; +0xef, 0x18002033f\nmov     rax, [rax]                                                     ; +0xf4, 0x180020344\nlea     rdx, [rsp+58h+arg_0]                                           ; +0xf7, 0x180020347\nmov     r8d, 3                                                         ; +0xfc, 0x18002034c\nmov     [rsp+58h+var_38], rax                                          ; +0x102, 0x180020352\nlea     rcx, [rsp+58h+var_38]                                          ; +0x107, 0x180020357\ncall    sub_18007F910                                                  ; +0x10c, 0x18002035c\nmov     rcx, rax                                                       ; +0x111, 0x180020361\nmov     rdx, rbp                                                       ; +0x114, 0x180020364\ncall    sub_180085410                                                  ; +0x117, 0x180020367\ncmp     byte ptr [rdi+0E8h], 0                                         ; +0x11c, 0x18002036c\nlea     rax, aDict_1; \"dict\"                                           ; +0x123, 0x180020373\nmov     rcx, [rdi+0D8h]                                                ; +0x12a, 0x18002037a\nlea     r8, aD; \"d\"                                                    ; +0x131, 0x180020381\ncmovnz  r8, rax                                                        ; +0x138, 0x180020388\nlea     r9, [rsp+58h+var_38]                                           ; +0x13c, 0x18002038c\nsub     rcx, 8                                                         ; +0x141, 0x180020391\nlea     rdx, [rsp+58h+var_30]                                          ; +0x145, 0x180020395\ncall    sub_180080EE0                                                  ; +0x14a, 0x18002039a\ntest    r14b, r14b                                                     ; +0x14f, 0x18002039f\njz      short loc_1800203F6                                            ; +0x152, 0x1800203a2\nlea     rcx, [rdi+0D0h]                                                ; +0x154, 0x1800203a4\nmov     rdx, [rcx+8]                                                   ; +0x15b, 0x1800203ab\ncmp     rdx, [rcx+10h]                                                 ; +0x15f, 0x1800203af\njz      short loc_1800203EC                                            ; +0x163, 0x1800203b3\nmov     rax, [rsp+58h+var_30]                                          ; +0x165, 0x1800203b5\nmov     [rdx], rax                                                     ; +0x16a, 0x1800203ba\nadd     qword ptr [rcx+8], 8                                           ; +0x16d, 0x1800203bd\njmp     short loc_1800203F6                                            ; +0x172, 0x1800203c2\nmov     rcx, [rdi+0D8h]                                                ; +0x174, 0x1800203c4\nlea     r9, [rsp+58h+arg_0]                                            ; +0x17b, 0x1800203cb\nsub     rcx, 8                                                         ; +0x180, 0x1800203d0\ncmp     byte ptr [rdi+0E8h], 0                                         ; +0x184, 0x1800203d4\ncmovnz  rsi, r15                                                       ; +0x18b, 0x1800203db\nmov     r8, rsi                                                        ; +0x18f, 0x1800203df\ncall    sub_180081070                                                  ; +0x192, 0x1800203e2\njmp     loc_180020344                                                  ; +0x197, 0x1800203e7\nlea     r8, [rsp+58h+var_30]                                           ; +0x19c, 0x1800203ec\ncall    sub_180015D80                                                  ; +0x1a1, 0x1800203f1\nmov     rbx, [rsp+58h+arg_8]                                           ; +0x1a6, 0x1800203f6\nmov     rbp, [rsp+58h+arg_10]                                          ; +0x1ab, 0x1800203fb\nmov     rsi, [rsp+58h+arg_18]                                          ; +0x1b0, 0x180020400\nadd     rsp, 40h                                                       ; +0x1b5, 0x180020405\npop     r15                                                            ; +0x1b9, 0x180020409\npop     r14                                                            ; +0x1bb, 0x18002040b\npop     rdi                                                            ; +0x1bd, 0x18002040d\nretn                                                                   ; +0x1be, 0x18002040e", "xrefs": ["DS_Dictionary::setArrayForKey @ 0x18001e730", "DS_Dictionary::setObjectForKey @ 0x18001f49f", "<???> @ 0x1801438a8", "<???> @ 0x1801aed58"], "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"}