{"type": "func", "start": 6442579168, "end": 6442579604, "name": "DS_Dictionary::setObjectForKey", "pseudocode": "// \n// DS_Dictionary::setObjectForKey from 0x18001f4e0 to 0x18001f694 (436 bytes)\n// \n// 4 xrefs:\n// > DS_Dictionary::setArrayForKey @ 0x18001e9cc\n// > DS_Dictionary::setDictForKey @ 0x18001ef13\n// > <???> @ 0x18014cf68\n// > <???> @ 0x1801b8dc4\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:27 +0000\n// \n\n// Hidden C++ exception states: #wind=1\nvoid __fastcall DS_Dictionary::setObjectForKey(DS_Dictionary *this, const char *a2, struct cocos2d::CCObject *a3)\n{\n  const char *CString; // rbx\n  size_t v7; // rax\n  void *v8; // rcx\n  __int128 v9; // [rsp+30h] [rbp-68h] BYREF\n  __int128 v10; // [rsp+40h] [rbp-58h]\n  void *Block[2]; // [rsp+58h] [rbp-40h] BYREF\n  __int128 v12; // [rsp+68h] [rbp-30h]\n\n  if ( _RTDynamicCast(a3, 0, &cocos2d::CCObject `RTTI Type Descriptor', &cocos2d::CCString `RTTI Type Descriptor', 0) )\n  {\n    CString = cocos2d::CCString::getCString(a3);\n    v9 = 0;\n    v10 = 0u;\n    v7 = strlen(CString);\n    sub_18000CEF0(&v9, CString, v7);\n    *(_OWORD *)Block = v9;\n    v12 = v10;\n    DS_Dictionary::setStringForKey(this, a2, Block, 0);\n    if ( *((_QWORD *)&v12 + 1) > 0xFu )\n    {\n      v8 = Block[0];\n      if ( (unsigned __int64)(*((_QWORD *)&v12 + 1) + 1LL) >= 0x1000 )\n      {\n        v8 = *((void **)Block[0] - 1);\n        if ( (unsigned __int64)((char *)Block[0] - (char *)v8 - 8) > 0x1F )\n          invoke_watson(nullptr, nullptr, nullptr, 0, 0);\n      }\n      j_j_free_0(v8);\n    }\n  }\n  else if ( _RTDynamicCast(\n              a3,\n              0,\n              &cocos2d::CCObject `RTTI Type Descriptor',\n              &cocos2d::CCDictionary `RTTI Type Descriptor',\n              0) )\n  {\n    DS_Dictionary::setDictForKey(this, a2, a3);\n  }\n  else if ( _RTDynamicCast(\n              a3,\n              0,\n              &cocos2d::CCObject `RTTI Type Descriptor',\n              &cocos2d::CCArray `RTTI Type Descriptor',\n              0) )\n  {\n    DS_Dictionary::setArrayForKey(this, a2, a3);\n  }\n  else if ( (*(unsigned __int8 (__fastcall **)(struct cocos2d::CCObject *))(*(_QWORD *)a3 + 48LL))(a3) )\n  {\n    DS_Dictionary::setSubDictForKey(this, a2, 0, 1);\n    (*(void (__fastcall **)(struct cocos2d::CCObject *, DS_Dictionary *))(*(_QWORD *)a3 + 40LL))(a3, this);\n    DS_Dictionary::stepOutOfSubDict(this);\n  }\n}", "assembly": "; \n; DS_Dictionary::setObjectForKey from 0x18001f4e0 to 0x18001f694 (436 bytes)\n; \n; 4 xrefs:\n; > DS_Dictionary::setArrayForKey @ 0x18001e9cc\n; > DS_Dictionary::setDictForKey @ 0x18001ef13\n; > <???> @ 0x18014cf68\n; > <???> @ 0x1801b8dc4\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:27 +0000\n; \nmov     [rsp+arg_18], rbx                                              ; +0x0, 0x18001f4e0\npush    rbp                                                            ; +0x5, 0x18001f4e5\npush    rsi                                                            ; +0x6, 0x18001f4e6\npush    rdi                                                            ; +0x7, 0x18001f4e7\nsub     rsp, 80h                                                       ; +0x8, 0x18001f4e8\nmov     rax, cs:__security_cookie                                      ; +0xf, 0x18001f4ef\nxor     rax, rsp                                                       ; +0x16, 0x18001f4f6\nmov     [rsp+98h+var_20], rax                                          ; +0x19, 0x18001f4f9\nmov     rbx, r8                                                        ; +0x1e, 0x18001f4fe\nmov     rsi, rdx                                                       ; +0x21, 0x18001f501\nmov     rdi, rcx                                                       ; +0x24, 0x18001f504\nxor     ebp, ebp                                                       ; +0x27, 0x18001f507\nmov     dword ptr [rsp+98h+Reserved], ebp                              ; +0x29, 0x18001f509\nlea     r9, ??_R0?AVCCString@cocos2d@@@8; cocos2d::CCString `RTTI Type Descriptor' ; +0x2d, 0x18001f50d\nlea     r8, ??_R0?AVCCObject@cocos2d@@@8; cocos2d::CCObject `RTTI Type Descriptor' ; +0x34, 0x18001f514\nxor     edx, edx                                                       ; +0x3b, 0x18001f51b\nmov     rcx, rbx                                                       ; +0x3d, 0x18001f51d\ncall    __RTDynamicCast                                                ; +0x40, 0x18001f520\nmov     rcx, rbx; this                                                 ; +0x45, 0x18001f525\ntest    rax, rax                                                       ; +0x48, 0x18001f528\njz      loc_18001F5E3                                                  ; +0x4b, 0x18001f52b\ncall    ?getCString@CCString@cocos2d@@QEBAPEBDXZ; cocos2d::CCString::getCString(void) ; +0x51, 0x18001f531\nmov     rbx, rax                                                       ; +0x56, 0x18001f536\nxorps   xmm0, xmm0                                                     ; +0x59, 0x18001f539\nmovups  [rsp+98h+var_68], xmm0                                         ; +0x5c, 0x18001f53c\nmov     qword ptr [rsp+98h+var_58], rbp                                ; +0x61, 0x18001f541\nmov     qword ptr [rsp+98h+var_58+8], rbp                              ; +0x66, 0x18001f546\nmov     rcx, rax; Str                                                  ; +0x6b, 0x18001f54b\ncall    strlen                                                         ; +0x6e, 0x18001f54e\nmov     r8, rax                                                        ; +0x73, 0x18001f553\nmov     rdx, rbx                                                       ; +0x76, 0x18001f556\nlea     rcx, [rsp+98h+var_68]                                          ; +0x79, 0x18001f559\ncall    sub_18000CEF0                                                  ; +0x7e, 0x18001f55e\nmovups  xmm0, [rsp+98h+var_68]                                         ; +0x83, 0x18001f563\nmovups  xmmword ptr [rsp+98h+Block], xmm0                              ; +0x88, 0x18001f568\nmovups  xmm1, [rsp+98h+var_58]                                         ; +0x8d, 0x18001f56d\nmovups  [rsp+98h+var_30], xmm1                                         ; +0x92, 0x18001f572\nxor     r9d, r9d                                                       ; +0x97, 0x18001f577\nlea     r8, [rsp+98h+Block]                                            ; +0x9a, 0x18001f57a\nmov     rdx, rsi                                                       ; +0x9f, 0x18001f57f\nmov     rcx, rdi                                                       ; +0xa2, 0x18001f582\ncall    ?setStringForKey@DS_Dictionary@@QEAAXPEBDAEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@_N@Z; DS_Dictionary::setStringForKey(char const *,std::string const &,bool) ; +0xa5, 0x18001f585\nnop                                                                    ; +0xaa, 0x18001f58a\nmov     rdx, qword ptr [rsp+98h+var_30+8]                              ; +0xab, 0x18001f58b\ncmp     rdx, 0Fh                                                       ; +0xb0, 0x18001f590\njbe     loc_18001F674                                                  ; +0xb4, 0x18001f594\ninc     rdx                                                            ; +0xba, 0x18001f59a\nmov     rcx, [rsp+98h+Block]; Block                                    ; +0xbd, 0x18001f59d\nmov     rax, rcx                                                       ; +0xc2, 0x18001f5a2\ncmp     rdx, 1000h                                                     ; +0xc5, 0x18001f5a5\njb      short loc_18001F5D9                                            ; +0xcc, 0x18001f5ac\nadd     rdx, 27h ; '''                                                 ; +0xce, 0x18001f5ae\nmov     rcx, [rcx-8]                                                   ; +0xd2, 0x18001f5b2\nsub     rax, rcx                                                       ; +0xd6, 0x18001f5b6\nsub     rax, 8                                                         ; +0xd9, 0x18001f5b9\ncmp     rax, 1Fh                                                       ; +0xdd, 0x18001f5bd\njbe     short loc_18001F5D9                                            ; +0xe1, 0x18001f5c1\nmov     [rsp+98h+Reserved], rbp; Reserved                              ; +0xe3, 0x18001f5c3\nxor     r9d, r9d; LineNo                                               ; +0xe8, 0x18001f5c8\nxor     r8d, r8d; FileName                                             ; +0xeb, 0x18001f5cb\nxor     edx, edx; FunctionName                                         ; +0xee, 0x18001f5ce\nxor     ecx, ecx; Expression                                           ; +0xf0, 0x18001f5d0\ncall    cs:_invoke_watson                                              ; +0xf2, 0x18001f5d2\ndb 0CCh                                                                ; +0xf8, 0x18001f5d8\ncall    j_j_free_0                                                     ; +0xf9, 0x18001f5d9\njmp     loc_18001F674                                                  ; +0xfe, 0x18001f5de\nmov     dword ptr [rsp+98h+Reserved], ebp                              ; +0x103, 0x18001f5e3\nlea     r9, ??_R0?AVCCDictionary@cocos2d@@@8; cocos2d::CCDictionary `RTTI Type Descriptor' ; +0x107, 0x18001f5e7\nlea     r8, ??_R0?AVCCObject@cocos2d@@@8; cocos2d::CCObject `RTTI Type Descriptor' ; +0x10e, 0x18001f5ee\nxor     edx, edx                                                       ; +0x115, 0x18001f5f5\ncall    __RTDynamicCast                                                ; +0x117, 0x18001f5f7\ntest    rax, rax                                                       ; +0x11c, 0x18001f5fc\njz      short loc_18001F611                                            ; +0x11f, 0x18001f5ff\nmov     r8, rbx; struct cocos2d::CCDictionary *                        ; +0x121, 0x18001f601\nmov     rdx, rsi; char *                                               ; +0x124, 0x18001f604\nmov     rcx, rdi; this                                                 ; +0x127, 0x18001f607\ncall    ?setDictForKey@DS_Dictionary@@QEAAXPEBDPEAVCCDictionary@cocos2d@@@Z; DS_Dictionary::setDictForKey(char const *,cocos2d::CCDictionary *) ; +0x12a, 0x18001f60a\njmp     short loc_18001F674                                            ; +0x12f, 0x18001f60f\nmov     dword ptr [rsp+98h+Reserved], ebp                              ; +0x131, 0x18001f611\nlea     r9, ??_R0?AVCCArray@cocos2d@@@8; cocos2d::CCArray `RTTI Type Descriptor' ; +0x135, 0x18001f615\nlea     r8, ??_R0?AVCCObject@cocos2d@@@8; cocos2d::CCObject `RTTI Type Descriptor' ; +0x13c, 0x18001f61c\nxor     edx, edx                                                       ; +0x143, 0x18001f623\nmov     rcx, rbx                                                       ; +0x145, 0x18001f625\ncall    __RTDynamicCast                                                ; +0x148, 0x18001f628\ntest    rax, rax                                                       ; +0x14d, 0x18001f62d\njz      short loc_18001F642                                            ; +0x150, 0x18001f630\nmov     r8, rbx; struct cocos2d::CCArray *                             ; +0x152, 0x18001f632\nmov     rdx, rsi; char *                                               ; +0x155, 0x18001f635\nmov     rcx, rdi; this                                                 ; +0x158, 0x18001f638\ncall    ?setArrayForKey@DS_Dictionary@@QEAAXPEBDPEAVCCArray@cocos2d@@@Z; DS_Dictionary::setArrayForKey(char const *,cocos2d::CCArray *) ; +0x15b, 0x18001f63b\njmp     short loc_18001F674                                            ; +0x160, 0x18001f640\nmov     rax, [rbx]                                                     ; +0x162, 0x18001f642\nmov     rcx, rbx                                                       ; +0x165, 0x18001f645\ncall    qword ptr [rax+30h]                                            ; +0x168, 0x18001f648\ntest    al, al                                                         ; +0x16b, 0x18001f64b\njz      short loc_18001F674                                            ; +0x16d, 0x18001f64d\nmov     r9b, 1; bool                                                   ; +0x16f, 0x18001f64f\nxor     r8d, r8d; bool                                                 ; +0x172, 0x18001f652\nmov     rdx, rsi; char *                                               ; +0x175, 0x18001f655\nmov     rcx, rdi; this                                                 ; +0x178, 0x18001f658\ncall    ?setSubDictForKey@DS_Dictionary@@QEAAXPEBD_N1@Z; DS_Dictionary::setSubDictForKey(char const *,bool,bool) ; +0x17b, 0x18001f65b\nmov     rax, [rbx]                                                     ; +0x180, 0x18001f660\nmov     rdx, rdi                                                       ; +0x183, 0x18001f663\nmov     rcx, rbx                                                       ; +0x186, 0x18001f666\ncall    qword ptr [rax+28h]                                            ; +0x189, 0x18001f669\nmov     rcx, rdi; this                                                 ; +0x18c, 0x18001f66c\ncall    ?stepOutOfSubDict@DS_Dictionary@@QEAAXXZ; DS_Dictionary::stepOutOfSubDict(void) ; +0x18f, 0x18001f66f\nmov     rcx, [rsp+98h+var_20]                                          ; +0x194, 0x18001f674\nxor     rcx, rsp; StackCookie                                          ; +0x199, 0x18001f679\ncall    __security_check_cookie                                        ; +0x19c, 0x18001f67c\nmov     rbx, [rsp+98h+arg_18]                                          ; +0x1a1, 0x18001f681\nadd     rsp, 80h                                                       ; +0x1a9, 0x18001f689\npop     rdi                                                            ; +0x1b0, 0x18001f690\npop     rsi                                                            ; +0x1b1, 0x18001f691\npop     rbp                                                            ; +0x1b2, 0x18001f692\nretn                                                                   ; +0x1b3, 0x18001f693", "xrefs": ["DS_Dictionary::setArrayForKey @ 0x18001e9cc", "DS_Dictionary::setDictForKey @ 0x18001ef13", "<???> @ 0x18014cf68", "<???> @ 0x1801b8dc4"], "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"}