{"type": "func", "start": 6443227936, "end": 6443228084, "name": "cocos2d::CCConfiguration::setObject", "pseudocode": "// \n// cocos2d::CCConfiguration::setObject from 0x1800bdb20 to 0x1800bdbb4 (148 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x1801438a8\n// > <???> @ 0x1801b90fc\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// Hidden C++ exception states: #wind=1\nvoid __fastcall cocos2d::CCConfiguration::setObject(\n        cocos2d::CCConfiguration *this,\n        char *a2,\n        struct cocos2d::CCObject *a3)\n{\n  void *v5; // rcx\n  void *Block[3]; // [rsp+20h] [rbp-38h] BYREF\n  unsigned __int64 v7; // [rsp+38h] [rbp-20h]\n\n  sub_180005910(Block, a2);\n  cocos2d::CCDictionary::setObject(*((_QWORD *)this + 11), a3, (unsigned __int8 *)Block);\n  if ( v7 > 0xF )\n  {\n    v5 = Block[0];\n    if ( v7 + 1 >= 0x1000 )\n    {\n      v5 = *((void **)Block[0] - 1);\n      if ( (unsigned __int64)((char *)Block[0] - (char *)v5 - 8) > 0x1F )\n        invalid_parameter_noinfo_noreturn();\n    }\n    j_j_free_0(v5);\n  }\n}", "assembly": "; \n; cocos2d::CCConfiguration::setObject from 0x1800bdb20 to 0x1800bdbb4 (148 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x1801438a8\n; > <???> @ 0x1801b90fc\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_18], rbx                                              ; +0x0, 0x1800bdb20\npush    rdi                                                            ; +0x5, 0x1800bdb25\nsub     rsp, 50h                                                       ; +0x6, 0x1800bdb26\nmov     rax, cs:__security_cookie                                      ; +0xa, 0x1800bdb2a\nxor     rax, rsp                                                       ; +0x11, 0x1800bdb31\nmov     [rsp+58h+var_18], rax                                          ; +0x14, 0x1800bdb34\nmov     rdi, r8                                                        ; +0x19, 0x1800bdb39\nmov     rbx, rcx                                                       ; +0x1c, 0x1800bdb3c\nlea     rcx, [rsp+58h+Block]                                           ; +0x1f, 0x1800bdb3f\ncall    sub_180005910                                                  ; +0x24, 0x1800bdb44\nnop                                                                    ; +0x29, 0x1800bdb49\nlea     r8, [rsp+58h+Block]                                            ; +0x2a, 0x1800bdb4a\nmov     rdx, rdi                                                       ; +0x2f, 0x1800bdb4f\nmov     rcx, [rbx+58h]                                                 ; +0x32, 0x1800bdb52\ncall    ?setObject@CCDictionary@cocos2d@@QEAAXPEAVCCObject@2@AEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z; cocos2d::CCDictionary::setObject(cocos2d::CCObject *,std::string const &) ; +0x36, 0x1800bdb56\nnop                                                                    ; +0x3b, 0x1800bdb5b\nmov     rdx, [rsp+58h+var_20]                                          ; +0x3c, 0x1800bdb5c\ncmp     rdx, 0Fh                                                       ; +0x41, 0x1800bdb61\njbe     short loc_1800BDB9C                                            ; +0x45, 0x1800bdb65\ninc     rdx                                                            ; +0x47, 0x1800bdb67\nmov     rcx, [rsp+58h+Block]; Block                                    ; +0x4a, 0x1800bdb6a\nmov     rax, rcx                                                       ; +0x4f, 0x1800bdb6f\ncmp     rdx, 1000h                                                     ; +0x52, 0x1800bdb72\njb      short loc_1800BDB97                                            ; +0x59, 0x1800bdb79\nadd     rdx, 27h ; '''                                                 ; +0x5b, 0x1800bdb7b\nmov     rcx, [rcx-8]                                                   ; +0x5f, 0x1800bdb7f\nsub     rax, rcx                                                       ; +0x63, 0x1800bdb83\nadd     rax, 0FFFFFFFFFFFFFFF8h                                        ; +0x66, 0x1800bdb86\ncmp     rax, 1Fh                                                       ; +0x6a, 0x1800bdb8a\njbe     short loc_1800BDB97                                            ; +0x6e, 0x1800bdb8e\ncall    cs:_invalid_parameter_noinfo_noreturn                          ; +0x70, 0x1800bdb90\ndb 0CCh                                                                ; +0x76, 0x1800bdb96\ncall    j_j_free_0                                                     ; +0x77, 0x1800bdb97\nmov     rcx, [rsp+58h+var_18]                                          ; +0x7c, 0x1800bdb9c\nxor     rcx, rsp; StackCookie                                          ; +0x81, 0x1800bdba1\ncall    __security_check_cookie                                        ; +0x84, 0x1800bdba4\nmov     rbx, [rsp+58h+arg_18]                                          ; +0x89, 0x1800bdba9\nadd     rsp, 50h                                                       ; +0x8e, 0x1800bdbae\npop     rdi                                                            ; +0x92, 0x1800bdbb2\nretn                                                                   ; +0x93, 0x1800bdbb3", "xrefs": ["<???> @ 0x1801438a8", "<???> @ 0x1801b90fc"], "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"}