{"type": "func", "start": 6443239664, "end": 6443239910, "name": "cocos2d::CCConfiguration::getCString", "pseudocode": "// \n// cocos2d::CCConfiguration::getCString from 0x1800c08f0 to 0x1800c09e6 (246 bytes)\n// \n// 4 xrefs:\n// > cocos2d::CCDirector::setDefaultValues @ 0x1800c2d11\n// > cocos2d::CCDirector::setDefaultValues @ 0x1800c2d81\n// > <???> @ 0x18014cf68\n// > <???> @ 0x1801c336c\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:22:25 +0000\n// \n\n// Hidden C++ exception states: #wind=1\nconst char *__fastcall cocos2d::CCConfiguration::getCString(cocos2d::CCConfiguration *this, char *a2, const char *a3)\n{\n  __int64 v5; // rbx\n  void *v6; // r8\n  cocos2d::CCString *v7; // rax\n  void *Block[2]; // [rsp+30h] [rbp-38h] BYREF\n  __m128i si128; // [rsp+40h] [rbp-28h]\n\n  sub_180005A10(Block, a2);\n  v5 = cocos2d::CCDictionary::objectForKey(*((_QWORD *)this + 11), (__int64)Block);\n  if ( si128.m128i_i64[1] > 0xFuLL )\n  {\n    v6 = Block[0];\n    if ( (unsigned __int64)(si128.m128i_i64[1] + 1) >= 0x1000 )\n    {\n      v6 = *((void **)Block[0] - 1);\n      if ( (unsigned __int64)((char *)Block[0] - (char *)v6 - 8) > 0x1F )\n        invoke_watson(nullptr, nullptr, nullptr, 0, 0);\n    }\n    j_j_free_0(v6);\n  }\n  si128 = _mm_load_si128((const __m128i *)&xmmword_1800EC500);\n  LOBYTE(Block[0]) = 0;\n  if ( v5\n    && (v7 = (cocos2d::CCString *)_RTDynamicCast(\n                                    v5,\n                                    0,\n                                    &cocos2d::CCObject `RTTI Type Descriptor',\n                                    &cocos2d::CCString `RTTI Type Descriptor',\n                                    0)) != nullptr )\n  {\n    return cocos2d::CCString::getCString(v7);\n  }\n  else\n  {\n    return a3;\n  }\n}", "assembly": "; \n; cocos2d::CCConfiguration::getCString from 0x1800c08f0 to 0x1800c09e6 (246 bytes)\n; \n; 4 xrefs:\n; > cocos2d::CCDirector::setDefaultValues @ 0x1800c2d11\n; > cocos2d::CCDirector::setDefaultValues @ 0x1800c2d81\n; > <???> @ 0x18014cf68\n; > <???> @ 0x1801c336c\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:22:25 +0000\n; \nmov     [rsp+arg_10], rbx                                              ; +0x0, 0x1800c08f0\npush    rdi                                                            ; +0x5, 0x1800c08f5\nsub     rsp, 60h                                                       ; +0x6, 0x1800c08f6\nmov     rax, cs:__security_cookie                                      ; +0xa, 0x1800c08fa\nxor     rax, rsp                                                       ; +0x11, 0x1800c0901\nmov     [rsp+68h+var_18], rax                                          ; +0x14, 0x1800c0904\nmov     rdi, r8                                                        ; +0x19, 0x1800c0909\nmov     rbx, rcx                                                       ; +0x1c, 0x1800c090c\nlea     rcx, [rsp+68h+Block]; void *                                   ; +0x1f, 0x1800c090f\ncall    sub_180005A10                                                  ; +0x24, 0x1800c0914\nnop                                                                    ; +0x29, 0x1800c0919\nlea     rdx, [rsp+68h+Block]                                           ; +0x2a, 0x1800c091a\nmov     rcx, [rbx+58h]                                                 ; +0x2f, 0x1800c091f\ncall    ?objectForKey@CCDictionary@cocos2d@@QEAAPEAVCCObject@2@AEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z; cocos2d::CCDictionary::objectForKey(std::string const &) ; +0x33, 0x1800c0923\nmov     rbx, rax                                                       ; +0x38, 0x1800c0928\nmov     rdx, [rsp+68h+var_20]                                          ; +0x3b, 0x1800c092b\ncmp     rdx, 0Fh                                                       ; +0x40, 0x1800c0930\njbe     short loc_1800C0981                                            ; +0x44, 0x1800c0934\ninc     rdx                                                            ; +0x46, 0x1800c0936\nmov     r8, [rsp+68h+Block]                                            ; +0x49, 0x1800c0939\nmov     rcx, r8                                                        ; +0x4e, 0x1800c093e\ncmp     rdx, 1000h                                                     ; +0x51, 0x1800c0941\njb      short loc_1800C0979                                            ; +0x58, 0x1800c0948\nadd     rdx, 27h ; '''                                                 ; +0x5a, 0x1800c094a\nmov     r8, [r8-8]                                                     ; +0x5e, 0x1800c094e\nsub     rcx, r8                                                        ; +0x62, 0x1800c0952\nsub     rcx, 8                                                         ; +0x65, 0x1800c0955\ncmp     rcx, 1Fh                                                       ; +0x69, 0x1800c0959\njbe     short loc_1800C0979                                            ; +0x6d, 0x1800c095d\nmov     [rsp+68h+Reserved], 0; Reserved                                ; +0x6f, 0x1800c095f\nxor     r9d, r9d; LineNo                                               ; +0x78, 0x1800c0968\nxor     r8d, r8d; FileName                                             ; +0x7b, 0x1800c096b\nxor     edx, edx; FunctionName                                         ; +0x7e, 0x1800c096e\nxor     ecx, ecx; Expression                                           ; +0x80, 0x1800c0970\ncall    cs:_invoke_watson                                              ; +0x82, 0x1800c0972\ndb 0CCh                                                                ; +0x88, 0x1800c0978\nmov     rcx, r8; Block                                                 ; +0x89, 0x1800c0979\ncall    j_j_free_0                                                     ; +0x8c, 0x1800c097c\nmovdqa  xmm0, cs:xmmword_1800EC500                                     ; +0x91, 0x1800c0981\nmovdqu  xmmword ptr [rsp+40h], xmm0                                    ; +0x99, 0x1800c0989\nmov     byte ptr [rsp+68h+Block], 0                                    ; +0x9f, 0x1800c098f\ntest    rbx, rbx                                                       ; +0xa4, 0x1800c0994\njz      short loc_1800C09C8                                            ; +0xa7, 0x1800c0997\nmov     dword ptr [rsp+68h+Reserved], 0                                ; +0xa9, 0x1800c0999\nlea     r9, ??_R0?AVCCString@cocos2d@@@8; cocos2d::CCString `RTTI Type Descriptor' ; +0xb1, 0x1800c09a1\nlea     r8, ??_R0?AVCCObject@cocos2d@@@8; cocos2d::CCObject `RTTI Type Descriptor' ; +0xb8, 0x1800c09a8\nxor     edx, edx                                                       ; +0xbf, 0x1800c09af\nmov     rcx, rbx                                                       ; +0xc1, 0x1800c09b1\ncall    __RTDynamicCast                                                ; +0xc4, 0x1800c09b4\ntest    rax, rax                                                       ; +0xc9, 0x1800c09b9\njz      short loc_1800C09C8                                            ; +0xcc, 0x1800c09bc\nmov     rcx, rax; this                                                 ; +0xce, 0x1800c09be\ncall    ?getCString@CCString@cocos2d@@QEBAPEBDXZ; cocos2d::CCString::getCString(void) ; +0xd1, 0x1800c09c1\njmp     short loc_1800C09CB                                            ; +0xd6, 0x1800c09c6\nmov     rax, rdi                                                       ; +0xd8, 0x1800c09c8\nmov     rcx, [rsp+68h+var_18]                                          ; +0xdb, 0x1800c09cb\nxor     rcx, rsp; StackCookie                                          ; +0xe0, 0x1800c09d0\ncall    __security_check_cookie                                        ; +0xe3, 0x1800c09d3\nmov     rbx, [rsp+68h+arg_10]                                          ; +0xe8, 0x1800c09d8\nadd     rsp, 60h                                                       ; +0xf0, 0x1800c09e0\npop     rdi                                                            ; +0xf4, 0x1800c09e4\nretn                                                                   ; +0xf5, 0x1800c09e5", "xrefs": ["cocos2d::CCDirector::setDefaultValues @ 0x1800c2d11", "cocos2d::CCDirector::setDefaultValues @ 0x1800c2d81", "<???> @ 0x18014cf68", "<???> @ 0x1801c336c"], "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"}