{"type": "func", "start": 6443225456, "end": 6443225680, "name": "cocos2d::CCConfiguration::getCString", "pseudocode": "// \n// cocos2d::CCConfiguration::getCString from 0x1800bd170 to 0x1800bd250 (224 bytes)\n// \n// 4 xrefs:\n// > cocos2d::CCDirector::setDefaultValues @ 0x1800bf4bc\n// > cocos2d::CCDirector::setDefaultValues @ 0x1800bf53f\n// > <???> @ 0x1801438a8\n// > <???> @ 0x1801b90b4\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\nstd::string *__fastcall cocos2d::CCConfiguration::getCString(cocos2d::CCConfiguration *this, char *a2, const char *a3)\n{\n  __int64 v5; // rbx\n  void *v6; // rcx\n  cocos2d::CCString *v7; // rax\n  void *Block[2]; // [rsp+30h] [rbp-38h] BYREF\n  __m128i si128; // [rsp+40h] [rbp-28h]\n\n  sub_180005910(Block, a2);\n  v5 = cocos2d::CCDictionary::objectForKey(*((_QWORD *)this + 11), (unsigned __int8 *)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        invalid_parameter_noinfo_noreturn();\n    }\n    j_j_free_0(v6);\n  }\n  si128 = _mm_load_si128((const __m128i *)&xmmword_1800E7160);\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 (std::string *)a3;\n  }\n}", "assembly": "; \n; cocos2d::CCConfiguration::getCString from 0x1800bd170 to 0x1800bd250 (224 bytes)\n; \n; 4 xrefs:\n; > cocos2d::CCDirector::setDefaultValues @ 0x1800bf4bc\n; > cocos2d::CCDirector::setDefaultValues @ 0x1800bf53f\n; > <???> @ 0x1801438a8\n; > <???> @ 0x1801b90b4\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_10], rbx                                              ; +0x0, 0x1800bd170\npush    rdi                                                            ; +0x5, 0x1800bd175\nsub     rsp, 60h                                                       ; +0x6, 0x1800bd176\nmov     rax, cs:__security_cookie                                      ; +0xa, 0x1800bd17a\nxor     rax, rsp                                                       ; +0x11, 0x1800bd181\nmov     [rsp+68h+var_18], rax                                          ; +0x14, 0x1800bd184\nmov     rdi, r8                                                        ; +0x19, 0x1800bd189\nmov     rbx, rcx                                                       ; +0x1c, 0x1800bd18c\nlea     rcx, [rsp+68h+Block]                                           ; +0x1f, 0x1800bd18f\ncall    sub_180005910                                                  ; +0x24, 0x1800bd194\nnop                                                                    ; +0x29, 0x1800bd199\nlea     rdx, [rsp+68h+Block]                                           ; +0x2a, 0x1800bd19a\nmov     rcx, [rbx+58h]                                                 ; +0x2f, 0x1800bd19f\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, 0x1800bd1a3\nmov     rbx, rax                                                       ; +0x38, 0x1800bd1a8\nmov     rdx, [rsp+68h+var_20]                                          ; +0x3b, 0x1800bd1ab\ncmp     rdx, 0Fh                                                       ; +0x40, 0x1800bd1b0\njbe     short loc_1800BD1EB                                            ; +0x44, 0x1800bd1b4\ninc     rdx                                                            ; +0x46, 0x1800bd1b6\nmov     rcx, [rsp+68h+Block]; Block                                    ; +0x49, 0x1800bd1b9\nmov     rax, rcx                                                       ; +0x4e, 0x1800bd1be\ncmp     rdx, 1000h                                                     ; +0x51, 0x1800bd1c1\njb      short loc_1800BD1E6                                            ; +0x58, 0x1800bd1c8\nadd     rdx, 27h ; '''                                                 ; +0x5a, 0x1800bd1ca\nmov     rcx, [rcx-8]                                                   ; +0x5e, 0x1800bd1ce\nsub     rax, rcx                                                       ; +0x62, 0x1800bd1d2\nadd     rax, 0FFFFFFFFFFFFFFF8h                                        ; +0x65, 0x1800bd1d5\ncmp     rax, 1Fh                                                       ; +0x69, 0x1800bd1d9\njbe     short loc_1800BD1E6                                            ; +0x6d, 0x1800bd1dd\ncall    cs:_invalid_parameter_noinfo_noreturn                          ; +0x6f, 0x1800bd1df\nalign 2                                                                ; +0x75, 0x1800bd1e5\ncall    j_j_free_0                                                     ; +0x76, 0x1800bd1e6\nmovdqa  xmm0, cs:xmmword_1800E7160                                     ; +0x7b, 0x1800bd1eb\nmovdqu  xmmword ptr [rsp+40h], xmm0                                    ; +0x83, 0x1800bd1f3\nmov     byte ptr [rsp+68h+Block], 0                                    ; +0x89, 0x1800bd1f9\ntest    rbx, rbx                                                       ; +0x8e, 0x1800bd1fe\njz      short loc_1800BD232                                            ; +0x91, 0x1800bd201\nmov     [rsp+68h+var_48], 0                                            ; +0x93, 0x1800bd203\nlea     r9, ??_R0?AVCCString@cocos2d@@@8; cocos2d::CCString `RTTI Type Descriptor' ; +0x9b, 0x1800bd20b\nlea     r8, ??_R0?AVCCObject@cocos2d@@@8; cocos2d::CCObject `RTTI Type Descriptor' ; +0xa2, 0x1800bd212\nxor     edx, edx                                                       ; +0xa9, 0x1800bd219\nmov     rcx, rbx                                                       ; +0xab, 0x1800bd21b\ncall    __RTDynamicCast                                                ; +0xae, 0x1800bd21e\ntest    rax, rax                                                       ; +0xb3, 0x1800bd223\njz      short loc_1800BD232                                            ; +0xb6, 0x1800bd226\nmov     rcx, rax; this                                                 ; +0xb8, 0x1800bd228\ncall    ?getCString@CCString@cocos2d@@QEBAPEBDXZ; cocos2d::CCString::getCString(void) ; +0xbb, 0x1800bd22b\njmp     short loc_1800BD235                                            ; +0xc0, 0x1800bd230\nmov     rax, rdi                                                       ; +0xc2, 0x1800bd232\nmov     rcx, [rsp+68h+var_18]                                          ; +0xc5, 0x1800bd235\nxor     rcx, rsp; StackCookie                                          ; +0xca, 0x1800bd23a\ncall    __security_check_cookie                                        ; +0xcd, 0x1800bd23d\nmov     rbx, [rsp+68h+arg_10]                                          ; +0xd2, 0x1800bd242\nadd     rsp, 60h                                                       ; +0xda, 0x1800bd24a\npop     rdi                                                            ; +0xde, 0x1800bd24e\nretn                                                                   ; +0xdf, 0x1800bd24f", "xrefs": ["cocos2d::CCDirector::setDefaultValues @ 0x1800bf4bc", "cocos2d::CCDirector::setDefaultValues @ 0x1800bf53f", "<???> @ 0x1801438a8", "<???> @ 0x1801b90b4"], "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"}