{"type": "func", "start": 6442517600, "end": 6442517819, "name": "cocos2d::CCString::createWithFormat", "pseudocode": "// \n// cocos2d::CCString::createWithFormat from 0x180010460 to 0x18001053b (219 bytes)\n// \n// 16 xrefs:\n// > cocos2d::CCNode::description @ 0x18000320e\n// > DS_Dictionary::setArrayForKey @ 0x18001e7f6\n// > cocos2d::CCAction::description @ 0x18002428e\n// > cocos2d::CCBMFontConfiguration::description @ 0x1800486eb\n// > cocos2d::CCLabelTTF::description @ 0x18004e01c\n// > cocos2d::CCEGLView::onGLFWError @ 0x180077714\n// > sub_180077760 @ 0x180077783\n// > cocos2d::CCGLProgram::description @ 0x18008696d\n// > cocos2d::CCTexture2D::description @ 0x1800a4ef2\n// > cocos2d::CCTextureAtlas::description @ 0x1800a632e\n// > cocos2d::CCTextureCache::description @ 0x1800a92b6\n// > cocos2d::CCTileMapAtlas::setTile @ 0x1800ab4cd\n// > cocos2d::CCTileMapAtlas::updateAtlasValues @ 0x1800ab9a4\n// > cocos2d::CCCamera::description @ 0x1800bc1c2\n// > <???> @ 0x1801438a8\n// > <???> @ 0x1801ae11c\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=2\nstruct cocos2d::CCString *cocos2d::CCString::createWithFormat(const char *a1, ...)\n{\n  cocos2d::CCString *v1; // rbx\n  unsigned __int64 v2; // rdi\n  void *v3; // rax\n  void *v4; // rcx\n  void *Block[2]; // [rsp+28h] [rbp-40h] BYREF\n  __int64 v7; // [rsp+38h] [rbp-30h]\n  __int64 v8; // [rsp+40h] [rbp-28h]\n  va_list va; // [rsp+78h] [rbp+10h] BYREF\n\n  va_start(va, a1);\n  *(_OWORD *)Block = 0;\n  v1 = nullptr;\n  v7 = 0;\n  v2 = 15;\n  v8 = 15;\n  LOBYTE(Block[0]) = 0;\n  v3 = operator new(0x58u);\n  if ( v3 )\n  {\n    v1 = (cocos2d::CCString *)cocos2d::CCString::CCString((__int64)v3, (__int64)Block);\n    v2 = v8;\n  }\n  cocos2d::CCObject::autorelease(v1);\n  if ( v2 > 0xF )\n  {\n    v4 = Block[0];\n    if ( v2 + 1 >= 0x1000 )\n    {\n      v4 = *((void **)Block[0] - 1);\n      if ( (unsigned __int64)((char *)Block[0] - (char *)v4 - 8) > 0x1F )\n        invalid_parameter_noinfo_noreturn();\n    }\n    j_j_free_0(v4);\n  }\n  cocos2d::CCString::initWithFormatAndValist(v1, a1, va);\n  return v1;\n}", "assembly": "; \n; cocos2d::CCString::createWithFormat from 0x180010460 to 0x18001053b (219 bytes)\n; \n; 16 xrefs:\n; > cocos2d::CCNode::description @ 0x18000320e\n; > DS_Dictionary::setArrayForKey @ 0x18001e7f6\n; > cocos2d::CCAction::description @ 0x18002428e\n; > cocos2d::CCBMFontConfiguration::description @ 0x1800486eb\n; > cocos2d::CCLabelTTF::description @ 0x18004e01c\n; > cocos2d::CCEGLView::onGLFWError @ 0x180077714\n; > sub_180077760 @ 0x180077783\n; > cocos2d::CCGLProgram::description @ 0x18008696d\n; > cocos2d::CCTexture2D::description @ 0x1800a4ef2\n; > cocos2d::CCTextureAtlas::description @ 0x1800a632e\n; > cocos2d::CCTextureCache::description @ 0x1800a92b6\n; > cocos2d::CCTileMapAtlas::setTile @ 0x1800ab4cd\n; > cocos2d::CCTileMapAtlas::updateAtlasValues @ 0x1800ab9a4\n; > cocos2d::CCCamera::description @ 0x1800bc1c2\n; > <???> @ 0x1801438a8\n; > <???> @ 0x1801ae11c\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_0], rcx                                               ; +0x0, 0x180010460\nmov     qword ptr [rsp+arg_8], rdx                                     ; +0x5, 0x180010465\nmov     [rsp+arg_10], r8                                               ; +0xa, 0x18001046a\nmov     [rsp+arg_18], r9                                               ; +0xf, 0x18001046f\npush    rbx                                                            ; +0x14, 0x180010474\npush    rdi                                                            ; +0x15, 0x180010475\nsub     rsp, 58h                                                       ; +0x16, 0x180010476\nmov     rax, cs:__security_cookie                                      ; +0x1a, 0x18001047a\nxor     rax, rsp                                                       ; +0x21, 0x180010481\nmov     [rsp+68h+var_20], rax                                          ; +0x24, 0x180010484\nxorps   xmm0, xmm0                                                     ; +0x29, 0x180010489\nmovups  xmmword ptr [rsp+68h+Block], xmm0                              ; +0x2c, 0x18001048c\nxor     ebx, ebx                                                       ; +0x31, 0x180010491\nmov     [rsp+68h+var_30], rbx                                          ; +0x33, 0x180010493\nmov     edi, 0Fh                                                       ; +0x38, 0x180010498\nmov     [rsp+68h+var_28], rdi                                          ; +0x3d, 0x18001049d\nmov     byte ptr [rsp+68h+Block], bl                                   ; +0x42, 0x1800104a2\nlea     ecx, [rbx+58h]; Size                                           ; +0x46, 0x1800104a6\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x49, 0x1800104a9\nmov     [rsp+68h+var_48], rax                                          ; +0x4e, 0x1800104ae\ntest    rax, rax                                                       ; +0x53, 0x1800104b3\njz      short loc_1800104CD                                            ; +0x56, 0x1800104b6\nlea     rdx, [rsp+68h+Block]                                           ; +0x58, 0x1800104b8\nmov     rcx, rax                                                       ; +0x5d, 0x1800104bd\ncall    ??0CCString@cocos2d@@QEAA@AEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z; cocos2d::CCString::CCString(std::string const &) ; +0x60, 0x1800104c0\nmov     rbx, rax                                                       ; +0x65, 0x1800104c5\nmov     rdi, [rsp+68h+var_28]                                          ; +0x68, 0x1800104c8\nmov     rcx, rbx; this                                                 ; +0x6d, 0x1800104cd\ncall    ?autorelease@CCObject@cocos2d@@QEAAPEAV12@XZ; cocos2d::CCObject::autorelease(void) ; +0x70, 0x1800104d0\nnop                                                                    ; +0x75, 0x1800104d5\ncmp     rdi, 0Fh                                                       ; +0x76, 0x1800104d6\njbe     short loc_180010512                                            ; +0x7a, 0x1800104da\nlea     rdx, [rdi+1]                                                   ; +0x7c, 0x1800104dc\nmov     rcx, [rsp+68h+Block]; Block                                    ; +0x80, 0x1800104e0\nmov     rax, rcx                                                       ; +0x85, 0x1800104e5\ncmp     rdx, 1000h                                                     ; +0x88, 0x1800104e8\njb      short loc_18001050D                                            ; +0x8f, 0x1800104ef\nadd     rdx, 27h ; '''                                                 ; +0x91, 0x1800104f1\nmov     rcx, [rcx-8]                                                   ; +0x95, 0x1800104f5\nsub     rax, rcx                                                       ; +0x99, 0x1800104f9\nadd     rax, 0FFFFFFFFFFFFFFF8h                                        ; +0x9c, 0x1800104fc\ncmp     rax, 1Fh                                                       ; +0xa0, 0x180010500\njbe     short loc_18001050D                                            ; +0xa4, 0x180010504\ncall    cs:_invalid_parameter_noinfo_noreturn                          ; +0xa6, 0x180010506\ndb 0CCh                                                                ; +0xac, 0x18001050c\ncall    j_j_free_0                                                     ; +0xad, 0x18001050d\nlea     r8, [rsp+68h+arg_8]; char *                                    ; +0xb2, 0x180010512\nmov     rdx, [rsp+68h+arg_0]; char *                                   ; +0xb7, 0x180010517\nmov     rcx, rbx; this                                                 ; +0xbc, 0x18001051c\ncall    ?initWithFormatAndValist@CCString@cocos2d@@AEAA_NPEBDPEAD@Z; cocos2d::CCString::initWithFormatAndValist(char const *,char *) ; +0xbf, 0x18001051f\nmov     rax, rbx                                                       ; +0xc4, 0x180010524\nmov     rcx, [rsp+68h+var_20]                                          ; +0xc7, 0x180010527\nxor     rcx, rsp; StackCookie                                          ; +0xcc, 0x18001052c\ncall    __security_check_cookie                                        ; +0xcf, 0x18001052f\nadd     rsp, 58h                                                       ; +0xd4, 0x180010534\npop     rdi                                                            ; +0xd8, 0x180010538\npop     rbx                                                            ; +0xd9, 0x180010539\nretn                                                                   ; +0xda, 0x18001053a", "xrefs": ["cocos2d::CCNode::description @ 0x18000320e", "DS_Dictionary::setArrayForKey @ 0x18001e7f6", "cocos2d::CCAction::description @ 0x18002428e", "cocos2d::CCBMFontConfiguration::description @ 0x1800486eb", "cocos2d::CCLabelTTF::description @ 0x18004e01c", "cocos2d::CCEGLView::onGLFWError @ 0x180077714", "sub_180077760 @ 0x180077783", "cocos2d::CCGLProgram::description @ 0x18008696d", "cocos2d::CCTexture2D::description @ 0x1800a4ef2", "cocos2d::CCTextureAtlas::description @ 0x1800a632e", "cocos2d::CCTextureCache::description @ 0x1800a92b6", "cocos2d::CCTileMapAtlas::setTile @ 0x1800ab4cd", "cocos2d::CCTileMapAtlas::updateAtlasValues @ 0x1800ab9a4", "cocos2d::CCCamera::description @ 0x1800bc1c2", "<???> @ 0x1801438a8", "<???> @ 0x1801ae11c"], "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"}