// // DS_Dictionary::setStringArrayForKey from 0x18001fda0 to 0x18001ffc3 (547 bytes) // // 3 xrefs: // > DS_Dictionary::setStringArrayForKey @ 0x18001fd93 // > @ 0x1801438a8 // > @ 0x1801aed10 // // This function is hookable on this platform! // // Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings // __int64 __fastcall DS_Dictionary::setStringArrayForKey(DS_Dictionary *a1, char *a2, __int64 *a3, char a4) { const char *v8; // rsi const char *v9; // r8 char *v10; // rax const char *v11; // r8 __int64 *v12; // rax __int64 v13; // rax const char *v14; // r8 __int64 *v15; // rax __int64 v16; // rdx int v17; // ebp __int64 v18; // rcx __int64 v19; // rax __int64 result; // rax __int64 v21; // rsi _QWORD *v22; // rbx const char *v23; // r8 __int64 v24; // rax __int64 v25; // rax __int64 v26; // [rsp+20h] [rbp-38h] BYREF _BYTE v27[48]; // [rsp+28h] [rbp-30h] BYREF __int64 v28; // [rsp+60h] [rbp+8h] BYREF __int64 v29; // [rsp+70h] [rbp+18h] BYREF DS_Dictionary::removeKey(a1, a2); pugi::xml_node::xml_node((cocos2d::CCThread *)&v29); pugi::xml_node::xml_node((cocos2d::CCThread *)&v26); v8 = "k"; if ( !a4 ) goto LABEL_9; v9 = "k"; if ( a1->compatible ) v9 = "key"; sub_18007FB10(&a1->dictTree._Mypair._Myval2._Mylast[-1], &v28, v9); if ( sub_18007F4E0(&v28) ) { while ( 1 ) { v10 = (char *)sub_18007FB70(&v28); if ( !sub_1800190E0(v10, a2) ) break; v11 = "k"; if ( a1->compatible ) v11 = "key"; v28 = *(_QWORD *)sub_180081A50(&v28, v27, v11); if ( !sub_18007F4E0(&v28) ) goto LABEL_9; } if ( a1->compatible ) v8 = "key"; v12 = (__int64 *)sub_180081070(&a1->dictTree._Mypair._Myval2._Mylast[-1], v27, v8, &v28); } else { LABEL_9: if ( a1->compatible ) v8 = "key"; v12 = (__int64 *)sub_18007F870(&a1->dictTree._Mypair._Myval2._Mylast[-1], v27, v8); } v29 = *v12; v13 = sub_18007F910(&v29, &v28, 3); sub_180085410(v13, a2); v14 = "a"; if ( a1->compatible ) v14 = "array"; v15 = (__int64 *)sub_180080EE0(&a1->dictTree._Mypair._Myval2._Mylast[-1], &v28, v14, &v29); v16 = *a3; v17 = 0; v18 = *v15; v19 = a3[1] - *a3; v26 = v18; result = v19 >> 5; if ( result ) { v21 = 0; do { v22 = (_QWORD *)(v21 + v16); if ( *(_QWORD *)(v21 + v16 + 24) > 0xFu ) v22 = (_QWORD *)*v22; v23 = "s"; if ( a1->compatible ) v23 = "string"; v24 = sub_18007F870(&v26, &v28, v23); v25 = sub_18007F910(v24, v27, 3); sub_180085410(v25, v22); v16 = *a3; ++v17; v21 += 32; result = v17; } while ( v17 < (unsigned __int64)((a3[1] - *a3) >> 5) ); } return result; }