{"type": "func", "start": 6442518032, "end": 6442518262, "name": "cocos2d::CCString::createWithFormat", "pseudocode": "// \n// cocos2d::CCString::createWithFormat from 0x180010610 to 0x1800106f6 (230 bytes)\n// \n// 17 xrefs:\n// > cocos2d::CCNode::description @ 0x18000328e\n// > DS_Dictionary::setArrayForKey @ 0x18001e9b6\n// > cocos2d::CCAction::description @ 0x1800247de\n// > cocos2d::CCBMFontConfiguration::description @ 0x180049ceb\n// > cocos2d::CCLabelTTF::description @ 0x18004fe2c\n// > cocos2d::CCEGLView::onGLFWError @ 0x18007a494\n// > sub_18007A4E0 @ 0x18007a503\n// > cocos2d::CCGLProgram::description @ 0x180089b0d\n// > cocos2d::CCTexture2D::description @ 0x1800a89b2\n// > cocos2d::CCTextureAtlas::description @ 0x1800a9e4e\n// > cocos2d::CCTextureCache::description @ 0x1800acad6\n// > cocos2d::CCTileMapAtlas::setTile @ 0x1800aece9\n// > cocos2d::CCTileMapAtlas::updateAtlasValues @ 0x1800af1e3\n// > cocos2d::CCCamera::description @ 0x1800bf922\n// > <???> @ 0x18014cf68\n// > <???> @ 0x1801b81c4\n// > <???> @ 0x1801b81d0\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:22 +0000\n// \n\n// Hidden C++ exception states: #wind=2\nstruct cocos2d::CCString *cocos2d::CCString::createWithFormat(const char *a1, ...)\n{\n  __int64 v1; // rax\n  cocos2d::CCObject *v2; // rbx\n  void *v3; // rcx\n  void *Block[3]; // [rsp+38h] [rbp-30h] BYREF\n  unsigned __int64 v6; // [rsp+50h] [rbp-18h]\n  va_list va; // [rsp+78h] [rbp+10h] BYREF\n\n  va_start(va, a1);\n  sub_180005A10(Block, (char *)Text);\n  v1 = sub_1800E4AC0(0x58u);\n  if ( v1 )\n    v2 = (cocos2d::CCObject *)cocos2d::CCString::CCString(v1, (__int64)Block);\n  else\n    v2 = nullptr;\n  cocos2d::CCObject::autorelease(v2);\n  if ( v6 > 0xF )\n  {\n    v3 = Block[0];\n    if ( v6 + 1 >= 0x1000 )\n    {\n      v3 = *((void **)Block[0] - 1);\n      if ( (unsigned __int64)((char *)Block[0] - (char *)v3 - 8) > 0x1F )\n        invoke_watson(nullptr, nullptr, nullptr, 0, 0);\n    }\n    j_j_free_0(v3);\n  }\n  cocos2d::CCString::initWithFormatAndValist(v2, a1, va);\n  return v2;\n}", "assembly": "; \n; cocos2d::CCString::createWithFormat from 0x180010610 to 0x1800106f6 (230 bytes)\n; \n; 17 xrefs:\n; > cocos2d::CCNode::description @ 0x18000328e\n; > DS_Dictionary::setArrayForKey @ 0x18001e9b6\n; > cocos2d::CCAction::description @ 0x1800247de\n; > cocos2d::CCBMFontConfiguration::description @ 0x180049ceb\n; > cocos2d::CCLabelTTF::description @ 0x18004fe2c\n; > cocos2d::CCEGLView::onGLFWError @ 0x18007a494\n; > sub_18007A4E0 @ 0x18007a503\n; > cocos2d::CCGLProgram::description @ 0x180089b0d\n; > cocos2d::CCTexture2D::description @ 0x1800a89b2\n; > cocos2d::CCTextureAtlas::description @ 0x1800a9e4e\n; > cocos2d::CCTextureCache::description @ 0x1800acad6\n; > cocos2d::CCTileMapAtlas::setTile @ 0x1800aece9\n; > cocos2d::CCTileMapAtlas::updateAtlasValues @ 0x1800af1e3\n; > cocos2d::CCCamera::description @ 0x1800bf922\n; > <???> @ 0x18014cf68\n; > <???> @ 0x1801b81c4\n; > <???> @ 0x1801b81d0\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:22 +0000\n; \nmov     [rsp+arg_0], rcx                                               ; +0x0, 0x180010610\nmov     qword ptr [rsp+arg_8], rdx                                     ; +0x5, 0x180010615\nmov     [rsp+arg_10], r8                                               ; +0xa, 0x18001061a\nmov     [rsp+arg_18], r9                                               ; +0xf, 0x18001061f\npush    rbx                                                            ; +0x14, 0x180010624\nsub     rsp, 60h                                                       ; +0x15, 0x180010625\nmov     rax, cs:__security_cookie                                      ; +0x19, 0x180010629\nxor     rax, rsp                                                       ; +0x20, 0x180010630\nmov     [rsp+68h+var_10], rax                                          ; +0x23, 0x180010633\nlea     rdx, Text; Str                                                 ; +0x28, 0x180010638\nlea     rcx, [rsp+68h+Block]; void *                                   ; +0x2f, 0x18001063f\ncall    sub_180005A10                                                  ; +0x34, 0x180010644\nnop                                                                    ; +0x39, 0x180010649\nmov     ecx, 58h ; 'X'; Size                                           ; +0x3a, 0x18001064a\ncall    sub_1800E4AC0                                                  ; +0x3f, 0x18001064f\nmov     [rsp+68h+var_38], rax                                          ; +0x44, 0x180010654\ntest    rax, rax                                                       ; +0x49, 0x180010659\njz      short loc_180010670                                            ; +0x4c, 0x18001065c\nlea     rdx, [rsp+68h+Block]                                           ; +0x4e, 0x18001065e\nmov     rcx, rax                                                       ; +0x53, 0x180010663\ncall    ??0CCString@cocos2d@@QEAA@AEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z; cocos2d::CCString::CCString(std::string const &) ; +0x56, 0x180010666\nmov     rbx, rax                                                       ; +0x5b, 0x18001066b\njmp     short loc_180010672                                            ; +0x5e, 0x18001066e\nxor     ebx, ebx                                                       ; +0x60, 0x180010670\nmov     rcx, rbx; this                                                 ; +0x62, 0x180010672\ncall    ?autorelease@CCObject@cocos2d@@QEAAPEAV12@XZ; cocos2d::CCObject::autorelease(void) ; +0x65, 0x180010675\nnop                                                                    ; +0x6a, 0x18001067a\nmov     rdx, [rsp+68h+var_18]                                          ; +0x6b, 0x18001067b\ncmp     rdx, 0Fh                                                       ; +0x70, 0x180010680\njbe     short loc_1800106CE                                            ; +0x74, 0x180010684\ninc     rdx                                                            ; +0x76, 0x180010686\nmov     rcx, [rsp+68h+Block]; Block                                    ; +0x79, 0x180010689\nmov     rax, rcx                                                       ; +0x7e, 0x18001068e\ncmp     rdx, 1000h                                                     ; +0x81, 0x180010691\njb      short loc_1800106C9                                            ; +0x88, 0x180010698\nadd     rdx, 27h ; '''                                                 ; +0x8a, 0x18001069a\nmov     rcx, [rcx-8]                                                   ; +0x8e, 0x18001069e\nsub     rax, rcx                                                       ; +0x92, 0x1800106a2\nsub     rax, 8                                                         ; +0x95, 0x1800106a5\ncmp     rax, 1Fh                                                       ; +0x99, 0x1800106a9\njbe     short loc_1800106C9                                            ; +0x9d, 0x1800106ad\nmov     [rsp+68h+Reserved], 0; Reserved                                ; +0x9f, 0x1800106af\nxor     r9d, r9d; LineNo                                               ; +0xa8, 0x1800106b8\nxor     r8d, r8d; FileName                                             ; +0xab, 0x1800106bb\nxor     edx, edx; FunctionName                                         ; +0xae, 0x1800106be\nxor     ecx, ecx; Expression                                           ; +0xb0, 0x1800106c0\ncall    cs:_invoke_watson                                              ; +0xb2, 0x1800106c2\ndb 0CCh                                                                ; +0xb8, 0x1800106c8\ncall    j_j_free_0                                                     ; +0xb9, 0x1800106c9\nlea     r8, [rsp+68h+arg_8]; char *                                    ; +0xbe, 0x1800106ce\nmov     rdx, [rsp+68h+arg_0]; char *                                   ; +0xc3, 0x1800106d3\nmov     rcx, rbx; this                                                 ; +0xc8, 0x1800106d8\ncall    ?initWithFormatAndValist@CCString@cocos2d@@AEAA_NPEBDPEAD@Z; cocos2d::CCString::initWithFormatAndValist(char const *,char *) ; +0xcb, 0x1800106db\nmov     rax, rbx                                                       ; +0xd0, 0x1800106e0\nmov     rcx, [rsp+68h+var_10]                                          ; +0xd3, 0x1800106e3\nxor     rcx, rsp; StackCookie                                          ; +0xd8, 0x1800106e8\ncall    __security_check_cookie                                        ; +0xdb, 0x1800106eb\nadd     rsp, 60h                                                       ; +0xe0, 0x1800106f0\npop     rbx                                                            ; +0xe4, 0x1800106f4\nretn                                                                   ; +0xe5, 0x1800106f5", "xrefs": ["cocos2d::CCNode::description @ 0x18000328e", "DS_Dictionary::setArrayForKey @ 0x18001e9b6", "cocos2d::CCAction::description @ 0x1800247de", "cocos2d::CCBMFontConfiguration::description @ 0x180049ceb", "cocos2d::CCLabelTTF::description @ 0x18004fe2c", "cocos2d::CCEGLView::onGLFWError @ 0x18007a494", "sub_18007A4E0 @ 0x18007a503", "cocos2d::CCGLProgram::description @ 0x180089b0d", "cocos2d::CCTexture2D::description @ 0x1800a89b2", "cocos2d::CCTextureAtlas::description @ 0x1800a9e4e", "cocos2d::CCTextureCache::description @ 0x1800acad6", "cocos2d::CCTileMapAtlas::setTile @ 0x1800aece9", "cocos2d::CCTileMapAtlas::updateAtlasValues @ 0x1800af1e3", "cocos2d::CCCamera::description @ 0x1800bf922", "<???> @ 0x18014cf68", "<???> @ 0x1801b81c4", "<???> @ 0x1801b81d0"], "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"}