{"type": "func", "start": 6442501456, "end": 6442501658, "name": "cocos2d::CCDictionary::valueForKey", "pseudocode": "// \n// cocos2d::CCDictionary::valueForKey from 0x18000c550 to 0x18000c61a (202 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x18014cf68\n// > <???> @ 0x1801b7e88\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:20 +0000\n// \n\nconst struct cocos2d::CCString *__fastcall cocos2d::CCDictionary::valueForKey(cocos2d::CCDictionary *this, __int64 a2)\n{\n  struct cocos2d::CCObject *v2; // rax\n  __int64 v3; // rbx\n  void *v4; // rcx\n  void *Block[3]; // [rsp+30h] [rbp-38h] BYREF\n  unsigned __int64 v7; // [rsp+48h] [rbp-20h]\n\n  v2 = cocos2d::CCDictionary::objectForKey(this, a2);\n  v3 = _RTDynamicCast(v2, 0, &cocos2d::CCObject `RTTI Type Descriptor', &cocos2d::CCString `RTTI Type Descriptor', 0);\n  if ( !v3 )\n  {\n    sub_180005A10(Block, (char *)Text);\n    v3 = cocos2d::CCString::create(Block);\n    if ( v7 > 0xF )\n    {\n      v4 = Block[0];\n      if ( v7 + 1 >= 0x1000 )\n      {\n        v4 = *((void **)Block[0] - 1);\n        if ( (unsigned __int64)((char *)Block[0] - (char *)v4 - 8) > 0x1F )\n          invoke_watson(nullptr, nullptr, nullptr, 0, 0);\n      }\n      j_j_free_0(v4);\n    }\n  }\n  return (const struct cocos2d::CCString *)v3;\n}", "assembly": "; \n; cocos2d::CCDictionary::valueForKey from 0x18000c550 to 0x18000c61a (202 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x18014cf68\n; > <???> @ 0x1801b7e88\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:20 +0000\n; \npush    rbx                                                            ; +0x0, 0x18000c550\nsub     rsp, 60h                                                       ; +0x2, 0x18000c552\nmov     rax, cs:__security_cookie                                      ; +0x6, 0x18000c556\nxor     rax, rsp                                                       ; +0xd, 0x18000c55d\nmov     [rsp+68h+var_18], rax                                          ; +0x10, 0x18000c560\ncall    ?objectForKey@CCDictionary@cocos2d@@QEAAPEAVCCObject@2@_J@Z; cocos2d::CCDictionary::objectForKey(__int64) ; +0x15, 0x18000c565\nmov     rcx, rax                                                       ; +0x1a, 0x18000c56a\nmov     dword ptr [rsp+68h+Reserved], 0                                ; +0x1d, 0x18000c56d\nlea     r9, ??_R0?AVCCString@cocos2d@@@8; cocos2d::CCString `RTTI Type Descriptor' ; +0x25, 0x18000c575\nlea     r8, ??_R0?AVCCObject@cocos2d@@@8; cocos2d::CCObject `RTTI Type Descriptor' ; +0x2c, 0x18000c57c\nxor     edx, edx                                                       ; +0x33, 0x18000c583\ncall    __RTDynamicCast                                                ; +0x35, 0x18000c585\nmov     rbx, rax                                                       ; +0x3a, 0x18000c58a\ntest    rax, rax                                                       ; +0x3d, 0x18000c58d\njnz     short loc_18000C604                                            ; +0x40, 0x18000c590\nlea     rdx, Text; Str                                                 ; +0x42, 0x18000c592\nlea     rcx, [rsp+68h+Block]; void *                                   ; +0x49, 0x18000c599\ncall    sub_180005A10                                                  ; +0x4e, 0x18000c59e\nnop                                                                    ; +0x53, 0x18000c5a3\nlea     rcx, [rsp+68h+Block]                                           ; +0x54, 0x18000c5a4\ncall    ?create@CCString@cocos2d@@SAPEAV12@AEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z; cocos2d::CCString::create(std::string const &) ; +0x59, 0x18000c5a9\nmov     rbx, rax                                                       ; +0x5e, 0x18000c5ae\nmov     rdx, [rsp+68h+var_20]                                          ; +0x61, 0x18000c5b1\ncmp     rdx, 0Fh                                                       ; +0x66, 0x18000c5b6\njbe     short loc_18000C604                                            ; +0x6a, 0x18000c5ba\ninc     rdx                                                            ; +0x6c, 0x18000c5bc\nmov     rcx, [rsp+68h+Block]; Block                                    ; +0x6f, 0x18000c5bf\nmov     rax, rcx                                                       ; +0x74, 0x18000c5c4\ncmp     rdx, 1000h                                                     ; +0x77, 0x18000c5c7\njb      short loc_18000C5FF                                            ; +0x7e, 0x18000c5ce\nadd     rdx, 27h ; '''                                                 ; +0x80, 0x18000c5d0\nmov     rcx, [rcx-8]                                                   ; +0x84, 0x18000c5d4\nsub     rax, rcx                                                       ; +0x88, 0x18000c5d8\nsub     rax, 8                                                         ; +0x8b, 0x18000c5db\ncmp     rax, 1Fh                                                       ; +0x8f, 0x18000c5df\njbe     short loc_18000C5FF                                            ; +0x93, 0x18000c5e3\nmov     [rsp+68h+Reserved], 0; Reserved                                ; +0x95, 0x18000c5e5\nxor     r9d, r9d; LineNo                                               ; +0x9e, 0x18000c5ee\nxor     r8d, r8d; FileName                                             ; +0xa1, 0x18000c5f1\nxor     edx, edx; FunctionName                                         ; +0xa4, 0x18000c5f4\nxor     ecx, ecx; Expression                                           ; +0xa6, 0x18000c5f6\ncall    cs:_invoke_watson                                              ; +0xa8, 0x18000c5f8\ndb 0CCh                                                                ; +0xae, 0x18000c5fe\ncall    j_j_free_0                                                     ; +0xaf, 0x18000c5ff\nmov     rax, rbx                                                       ; +0xb4, 0x18000c604\nmov     rcx, [rsp+68h+var_18]                                          ; +0xb7, 0x18000c607\nxor     rcx, rsp; StackCookie                                          ; +0xbc, 0x18000c60c\ncall    __security_check_cookie                                        ; +0xbf, 0x18000c60f\nadd     rsp, 60h                                                       ; +0xc4, 0x18000c614\npop     rbx                                                            ; +0xc8, 0x18000c618\nretn                                                                   ; +0xc9, 0x18000c619", "xrefs": ["<???> @ 0x18014cf68", "<???> @ 0x1801b7e88"], "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"}