// // ShareCommentLayer::init from 0x14062de70 to 0x14062f2fd (5261 bytes) // // 2 xrefs: // > ShareCommentLayer::create @ 0x14062de0d // > @ 0x1409309d4 // // This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True! // // Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings // Generated at Fri, 27 Nov 2026 11:35:28 +0000 // // Hidden C++ exception states: #wind=12 char __fastcall ShareCommentLayer::init(__int64 a1, const char *a2, int a3, unsigned int a4, int a5, __int64 a6) { char v10; // r14 __int64 v11; // rcx int v13; // eax bool v14; // al __int64 v15; // rax __int64 v16; // rax _QWORD *v17; // rdi __int64 v18; // rdx void (__fastcall *v19)(_QWORD *, __int64); // r8 float v20; // xmm6_4 float v21; // xmm9_4 float v22; // xmm11_4 int v23; // eax __int64 v24; // rbx __int64 v25; // rax const char *v26; // rcx struct cocos2d::CCLabelBMFont *v27; // rsi __int64 v28; // rbx float v29; // xmm6_4 __int64 v30; // rax __int64 v31; // rcx __int64 v32; // rcx unsigned __int64 v33; // rbx char v34; // di void *v35; // rcx void **v36; // rdx void **v37; // rcx struct cocos2d::CCLabelBMFont *v38; // rdi __int64 v39; // rax __int64 v40; // rbx __int64 v41; // rax void *v42; // rcx __int64 v43; // rax __int64 v44; // rcx __int64 *v45; // r14 __int64 v46; // rsi __int64 v47; // rbx __int64 v48; // rdi __int64 v49; // rax __int64 v50; // rax void **v51; // rdx int v52; // eax __int64 v53; // rbx __int64 v54; // rax __int64 v55; // rax char *v56; // r14 __int64 v57; // rsi __int64 v58; // rbx __int64 v59; // rdi __int64 v60; // rax __int64 v61; // rax __int64 v62; // rax struct cocos2d::CCSprite *v63; // r14 struct cocos2d::CCSprite *v64; // rbx cocos2d::CCMenuItem *v65; // rsi __int64 v66; // rdi __int64 v67; // rbx __int64 v68; // rax __int64 v69; // rax struct cocos2d::CCLabelBMFont *v70; // rax __int64 v71; // rdi __int64 v72; // rbx __int64 v73; // rax float *v74; // rax __int64 v75; // rax cocos2d::CCArray *v76; // rsi void **v77; // rcx int v78; // eax struct cocos2d::CCObject *v79; // rbx void **v80; // rcx int v81; // eax struct cocos2d::CCObject *v82; // rbx __int64 v83; // rax __int64 v84; // rbx __int64 v85; // rax __int64 v86; // rax __int64 v87; // rax _QWORD *v88; // rbx __int64 v89; // rdx _BYTE *v90; // rdi int v91; // eax _QWORD *v92; // rbx void **v93; // rcx __int64 v94; // rdx __int64 v95; // rcx size_t v96; // r8 char *v97; // rdx char *v98; // rax void **v99; // rax __int64 v100; // rdx __int64 v101; // rcx __int64 v102; // r8 unsigned int v103; // eax __int64 v104; // rcx int v105; // ecx const struct cocos2d::CCPoint *v106; // rax char *v107; // rax __int64 v108; // rcx __int64 v109; // rdx __int64 v110; // rcx __int64 v111; // r8 cocos2d::CCString *v112; // rax const char *CString; // rax struct cocos2d::CCLabelBMFont *v114; // rax __int64 v115; // rdi __int64 v116; // rbx __int64 v117; // rax __int64 v118; // rdx __int64 v119; // r8 __int64 v120; // rax _QWORD *v121; // rbx cocos2d::CCObject *v122; // rax __int64 v123; // r14 __int64 v124; // rbx __int64 v125; // rdi __int64 v126; // rsi __int64 v127; // rax __int64 v128; // rax __int64 v129; // rax __int64 v130; // rbx __int64 v131; // rax _QWORD *v132; // rax void *v133; // rcx void *v134; // rcx void *v135; // rcx float v136; // [rsp+48h] [rbp-C0h] BYREF float v137; // [rsp+50h] [rbp-B8h] BYREF float v138; // [rsp+54h] [rbp-B4h] void **v139; // [rsp+58h] [rbp-B0h] BYREF int v140; // [rsp+60h] [rbp-A8h] BYREF float v141[2]; // [rsp+68h] [rbp-A0h] BYREF _BYTE v142[8]; // [rsp+70h] [rbp-98h] BYREF __int64 v143; // [rsp+78h] [rbp-90h] BYREF __int64 v144; // [rsp+80h] [rbp-88h] _BYTE v145[16]; // [rsp+88h] [rbp-80h] BYREF const char *v146; // [rsp+98h] [rbp-70h] __int64 v147; // [rsp+A0h] [rbp-68h] void *Block[2]; // [rsp+A8h] [rbp-60h] BYREF __int64 v149; // [rsp+B8h] [rbp-50h] __int64 v150; // [rsp+C0h] [rbp-48h] void *Buf2[2]; // [rsp+C8h] [rbp-40h] BYREF size_t Size; // [rsp+D8h] [rbp-30h] unsigned __int64 v153; // [rsp+E0h] [rbp-28h] void *v154[2]; // [rsp+E8h] [rbp-20h] BYREF __int64 v155; // [rsp+F8h] [rbp-10h] unsigned __int64 v156; // [rsp+100h] [rbp-8h] void *Src[2]; // [rsp+108h] [rbp+0h] BYREF __int64 v158; // [rsp+118h] [rbp+10h] unsigned __int64 v159; // [rsp+120h] [rbp+18h] void *v160[2]; // [rsp+128h] [rbp+20h] BYREF __int64 v161; // [rsp+138h] [rbp+30h] unsigned __int64 v162; // [rsp+140h] [rbp+38h] v146 = a2; v144 = a6; v147 = a6; v10 = 0; v136 = 0.0; if ( !FLAlertLayer::init_1(a1, 150) ) { sub_14003D310((__int64)a2); sub_14003D310(a6); return 0; } *(_DWORD *)(a1 + 692) = a5; *(_DWORD *)(a1 + 688) = a3; *(_DWORD *)(a1 + 696) = a4; v14 = false; if ( a4 <= 9 ) { v13 = 735; if ( _bittest(&v13, a4) ) v14 = true; } *(_BYTE *)(a1 + 700) = v14; v15 = cocos2d::CCDirector::sharedDirector(v11); cocos2d::CCDirector::getWinSize(v15, v141); cocos2d::CCRect::CCRect((cocos2d::CCRect *)Src, 0.0, 0.0, 80.0, 80.0); v17 = (_QWORD *)cocos2d::extension::CCScale9Sprite::create("GJ_square01.png", v16); v18 = v17[40]; v19 = *(void (__fastcall **)(_QWORD *, __int64))(v18 + 40); LOBYTE(v18) = -1; v19(v17 + 40, v18); v20 = 135.0; v21 = 80.0; v136 = 7.0; v22 = 60.0; v23 = *(_DWORD *)(a1 + 696); if ( v23 == 2 ) { v20 = 160.0; v21 = 40.0; v136 = -5.0; } else if ( v23 == 4 || v23 == 9 ) { v20 = 270.0; v21 = 0.0; v22 = 180.0; } v24 = *v17; cocos2d::CCSize::CCSize((cocos2d::CCSize *)&v139, 400.0, v20); (*(void (__fastcall **)(_QWORD *, __int64))(v24 + 312))(v17, v25); (*(void (__fastcall **)(_QWORD, _QWORD *, __int64))(**(_QWORD **)(a1 + 584) + 456LL))( *(_QWORD *)(a1 + 584), v17, 0xFFFFFFFFLL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v137, v141[0] * 0.5, (float)(v141[1] * 0.5) + v21); (*(void (__fastcall **)(_QWORD *, float *))(*v17 + 184LL))(v17, &v137); v26 = a2; if ( *((_QWORD *)a2 + 3) > 0xFu ) v26 = *(const char **)a2; v27 = cocos2d::CCLabelBMFont::create(v26, &qword_140704F78); v28 = *(_QWORD *)v27; v29 = v20 * 0.5; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v139, v137, (float)(v29 + v138) - 16.0); (*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *, __int64))(v28 + 184))(v27, v30); (*(void (__fastcall **)(_QWORD, struct cocos2d::CCLabelBMFont *))(**(_QWORD **)(a1 + 584) + 464LL))( *(_QWORD *)(a1 + 584), v27); (*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *))(*(_QWORD *)v27 + 160LL))(v27); if ( *(_DWORD *)(a1 + 696) == 2 ) { v32 = *(_QWORD *)&qword_14090BFB0; if ( !*(_QWORD *)&qword_14090BFB0 ) { v139 = (void **)operator new(0x690u); *(_QWORD *)&qword_14090BFB0 = GameLevelManager::GameLevelManager((__int64)v139); (*(void (__fastcall **)(_QWORD))(**(_QWORD **)&qword_14090BFB0 + 72LL))(*(_QWORD *)&qword_14090BFB0); v32 = *(_QWORD *)&qword_14090BFB0; } GameLevelManager::tryGetUsername(v32, (__int64)Buf2, *(_DWORD *)(a1 + 692)); if ( Size ) { *(_OWORD *)Block = 0; v149 = 1; v33 = 15; v150 = 15; LOWORD(Block[0]) = 45; v10 = 1; if ( sub_14003D160(Block, Buf2) ) { v34 = 1; goto LABEL_22; } } else { v33 = v150; } v34 = 0; LABEL_22: if ( (v10 & 1) != 0 && v33 > 0xF ) { v35 = Block[0]; if ( v33 + 1 >= 0x1000 ) { v35 = *((void **)Block[0] - 1); if ( (unsigned __int64)((char *)Block[0] - (char *)v35 - 8) > 0x1F ) invoke_watson(nullptr, nullptr, nullptr, 0, 0); } j_j_free(v35); } if ( v34 ) { *(_OWORD *)Src = 0; v158 = 0; v159 = 0; Src[0] = sub_14003D460(0x20u); v158 = 23; v159 = 31; strcpy((char *)Src[0], "Send friend request to "); v36 = Buf2; if ( v153 > 0xF ) v36 = (void **)Buf2[0]; sub_140044D80(Src, v36, Size); v37 = Src; if ( v159 > 0xF ) v37 = (void **)Src[0]; v38 = cocos2d::CCLabelBMFont::create((const char *)v37, "goldFont.fnt"); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v139, 0.0, -20.0); v40 = v39; v41 = (*(__int64 (__fastcall **)(struct cocos2d::CCLabelBMFont *))(*(_QWORD *)v27 + 200LL))(v27); cocos2d::CCPoint::operator+(v41, &v140, v40); (*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *, int *))(*(_QWORD *)v38 + 184LL))(v38, &v140); (*(void (__fastcall **)(_QWORD, struct cocos2d::CCLabelBMFont *))(**(_QWORD **)(a1 + 584) + 464LL))( *(_QWORD *)(a1 + 584), v38); (*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *))(*(_QWORD *)v38 + 160LL))(v38); if ( v159 > 0xF ) { v42 = Src[0]; if ( v159 + 1 >= 0x1000 ) { v42 = *((void **)Src[0] - 1); if ( (unsigned __int64)((char *)Src[0] - (char *)v42 - 8) > 0x1F ) invoke_watson(nullptr, nullptr, nullptr, 0, 0); } j_j_free(v42); } } sub_14003D310((__int64)Buf2); } *(_DWORD *)(a1 + 640) = -1; v43 = cocos2d::CCMenu::create(v31); *(_QWORD *)(a1 + 552) = v43; (*(void (__fastcall **)(_QWORD, __int64, __int64))(**(_QWORD **)(a1 + 584) + 456LL))(*(_QWORD *)(a1 + 584), v43, 10); switch ( a4 ) { case 2u: v139 = Buf2; *(_OWORD *)Buf2 = 0; Size = 0; v153 = 0; Buf2[0] = sub_14003D460(0xC0u); Size = 176; v153 = 191; strcpy( (char *)Buf2[0], "A request can carry a short message only if the other player allows it in their Account Settings" ".\n" "A request that is not answered expires after 120 days."); v149 = 15; v150 = 15; qmemcpy(Block, "Friend Request", 14); HIWORD(Block[1]) = (unsigned __int8)aFriendRequests[14]; v45 = (__int64 *)InfoAlertButton::create((__int64)Block, (__int64)Buf2); (*(void (__fastcall **)(_QWORD, __int64 *))(**(_QWORD **)(a1 + 552) + 464LL))(*(_QWORD *)(a1 + 552), v45); v46 = *v45; v47 = *(_QWORD *)(a1 + 584); v48 = *(_QWORD *)(a1 + 552); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v139, (float)(v137 - 200.0) + 4.0, (float)(v29 + v138) - 4.0); cocos2d::CCNode::convertToWorldSpace(v47, &v140, v49); v51 = Src; LABEL_46: cocos2d::CCNode::convertToNodeSpace(v48, v51, v50); (*(void (__fastcall **)(__int64 *, __int64))(v46 + 184))(v45, v55); break; case 0u: case 7u: Src[0] = Buf2; *(_OWORD *)Buf2 = 0; Size = 0; v153 = 0; Buf2[0] = sub_14003D460(0x100u); Size = 253; v153 = 255; strcpy( (char *)Buf2[0], "1. Do not spam.\n" "2. Do not harass other players.\n" "3. Do not post inappropriate or controversial content.\n" "4. Do not try to bypass these rules.\n" "These rules and their enforcement are entirely at Moderators' discretion."); v149 = 13; v150 = 15; qmemcpy(Block, "Comment Rule", 12); HIDWORD(Block[1]) = (unsigned __int8)aCommentRules[12]; v56 = InfoAlertButton::create((__int64)Block, (__int64)Buf2); (*(void (__fastcall **)(_QWORD, char *))(**(_QWORD **)(a1 + 552) + 464LL))(*(_QWORD *)(a1 + 552), v56); v57 = *(_QWORD *)v56; v58 = *(_QWORD *)(a1 + 584); v59 = *(_QWORD *)(a1 + 552); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)Src, (float)(v137 - 200.0) + 4.0, (float)(v29 + v138) - 4.0); cocos2d::CCNode::convertToWorldSpace(v58, &v139, v60); cocos2d::CCNode::convertToNodeSpace(v59, &v140, v61); (*(void (__fastcall **)(char *, __int64))(v57 + 184))(v56, v62); if ( *(int *)(a1 + 692) > 0 ) { v63 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_checkOn_001.png"); v64 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_checkOff_001.png"); (*(void (__fastcall **)(struct cocos2d::CCSprite *))(*(_QWORD *)v63 + 160LL))(v63); (*(void (__fastcall **)(struct cocos2d::CCSprite *))(*(_QWORD *)v64 + 160LL))(v64); v65 = CCMenuItemToggler::create((int)v64, (int)v63, a1, (__int64)ShareCommentLayer::onPercent); (*(void (__fastcall **)(_QWORD, cocos2d::CCMenuItem *))(**(_QWORD **)(a1 + 552) + 464LL))( *(_QWORD *)(a1 + 552), v65); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v140, (float)(v137 - 200.0) + 20.0, (float)(v138 - v29) + 20.0); v66 = *(_QWORD *)v65; v67 = *(_QWORD *)(a1 + 552); cocos2d::CCNode::convertToWorldSpace(*(_QWORD *)(a1 + 584), Src, &v140); cocos2d::CCNode::convertToNodeSpace(v67, &v139, v68); (*(void (__fastcall **)(cocos2d::CCMenuItem *, __int64))(v66 + 184))(v65, v69); *(_DWORD *)(*((_QWORD *)v65 + 47) + 372LL) = 1069547520; *(_DWORD *)(*((_QWORD *)v65 + 48) + 372LL) = 1069547520; CCMenuItemToggler::toggle((__int64)v65, *((unsigned __int8 *)v65 + 392)); v70 = cocos2d::CCLabelBMFont::create("%", "chatFont.fnt"); *(_QWORD *)(a1 + 800) = v70; (*(void (__fastcall **)(_QWORD, struct cocos2d::CCLabelBMFont *))(**(_QWORD **)(a1 + 584) + 464LL))( *(_QWORD *)(a1 + 584), v70); v71 = **(_QWORD **)(a1 + 800); v72 = *(_QWORD *)(a1 + 800); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)Src, 0.0, 0.5); (*(void (__fastcall **)(__int64, __int64))(v71 + 288))(v72, v73); v74 = (float *)(*(__int64 (__fastcall **)(struct cocos2d::CCSprite *))(*(_QWORD *)v63 + 320LL))(v63); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)Src, (float)((float)(*v74 * 0.5) * 0.60000002) + 4.0, 0.0); cocos2d::CCPoint::operator+(&v140, &v139, v75); (*(void (__fastcall **)(_QWORD, void ***))(**(_QWORD **)(a1 + 800) + 184LL))(*(_QWORD *)(a1 + 800), &v139); (*(void (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 800) + 160LL))(*(_QWORD *)(a1 + 800)); ShareCommentLayer::updatePercentLabel(a1); } break; case 4u: case 9u: v52 = (unsigned int)cocos2d::CCSprite::createWithSpriteFrameName("GJ_resetBtn_001.png"); v45 = (__int64 *)CCMenuItemSpriteExtra::create(v52, 0, a1, (__int64)ShareCommentLayer::onClear); (*(void (__fastcall **)(_QWORD, __int64 *))(**(_QWORD **)(a1 + 552) + 464LL))(*(_QWORD *)(a1 + 552), v45); v46 = *v45; v53 = *(_QWORD *)(a1 + 584); v48 = *(_QWORD *)(a1 + 552); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)Src, (float)(v137 - 200.0) + 18.0, (float)(v29 + v138) - 18.0); cocos2d::CCNode::convertToWorldSpace(v53, &v139, v54); v51 = (void **)&v140; goto LABEL_46; } v76 = (cocos2d::CCArray *)cocos2d::CCArray::create(v44); *(_OWORD *)v154 = 0; v155 = 6; v156 = 15; strcpy((char *)v154, "Submit"); *(_OWORD *)v160 = 0; v161 = 6; v162 = 15; strcpy((char *)v160, "Cancel"); if ( a4 == 4 || a4 == 9 ) { v155 = 4; strcpy((char *)v154, "Save"); } else if ( a4 == 5 ) { v155 = 6; memmove(v154, &dword_14072428C, 6u); BYTE6(v154[0]) = 0; } v77 = v160; if ( v162 > 0xF ) LODWORD(v77) = v160[0]; v78 = (unsigned int)ButtonSprite::create_1( (int)v77, 0, 0, 1.0, 0, (__int64)"goldFont.fnt", (__int64)"GJ_button_01.png", 0); v79 = CCMenuItemSpriteExtra::create(v78, 0, a1, (__int64)ShareCommentLayer::onClose); (*(void (__fastcall **)(_QWORD, struct cocos2d::CCObject *))(**(_QWORD **)(a1 + 552) + 464LL))( *(_QWORD *)(a1 + 552), v79); cocos2d::CCArray::addObject(v76, v79); v80 = v154; if ( v156 > 0xF ) LODWORD(v80) = v154[0]; v81 = (unsigned int)ButtonSprite::create_1( (int)v80, 0, 0, 1.0, 0, (__int64)"goldFont.fnt", (__int64)"GJ_button_01.png", 0); v82 = CCMenuItemSpriteExtra::create(v81, 0, a1, (__int64)ShareCommentLayer::onShare); (*(void (__fastcall **)(_QWORD, struct cocos2d::CCObject *))(**(_QWORD **)(a1 + 552) + 464LL))( *(_QWORD *)(a1 + 552), v82); cocos2d::CCArray::addObject(v76, v82); v83 = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 584) + 200LL))(*(_QWORD *)(a1 + 584)); v84 = *(_QWORD *)(a1 + 552); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)Src, v137, (float)((float)(v138 - v29) + 24.0) + *(float *)(v83 + 4)); cocos2d::CCNode::convertToNodeSpace(v84, &v139, v85); GameToolbox::alignItemsHorisontally((__int64)v76, 15.0, v86, 0); cocos2d::CCRect::CCRect((cocos2d::CCRect *)v145, 0.0, 0.0, 80.0, 80.0); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v142, v137, v138 + v136); cocos2d::CCRect::CCRect((cocos2d::CCRect *)Src, (const struct cocos2d::CCRect *)v145); v88 = (_QWORD *)cocos2d::extension::CCScale9Sprite::create("square02b_001.png", v87); LOBYTE(v89) = 100; (*(void (__fastcall **)(_QWORD *, __int64))(v88[40] + 40LL))(v88 + 40, v89); cocos2d::CCSize::CCSize((cocos2d::CCSize *)&v143, 360.0, v22); (*(void (__fastcall **)(_QWORD *, __int64 *))(*v88 + 312LL))(v88, &v143); (*(void (__fastcall **)(_QWORD, _QWORD *, __int64))(**(_QWORD **)(a1 + 584) + 456LL))(*(_QWORD *)(a1 + 584), v88, 1); (*(void (__fastcall **)(_QWORD *, _BYTE *))(*v88 + 184LL))(v88, v142); LOWORD(v136) = 0; BYTE2(v136) = 0; (*(void (__fastcall **)(_QWORD *, float *))v88[40])(v88 + 40, &v136); *(_OWORD *)Buf2 = 0; v90 = sub_14003D460(0x70u); Buf2[0] = v90; Size = 97; v153 = 111; strcpy(v90, " abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789.,-!?:;)(/\\\"'`*=+-_%[]<>|@&^#{}%$~"); v91 = *(_DWORD *)(a1 + 696); v92 = (_QWORD *)(a1 + 760); v93 = (void **)(a1 + 760); if ( v91 == 5 ) { sub_1400405A0(v93, "Insert List Name", 0x10u); Size = 63; memmove(v90, " abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789", 0x3Fu); v90[63] = 0; } else { if ( v91 == 2 ) { v96 = 18; v97 = "[Optional Message]"; } else { v96 = 14; v97 = "Insert comment"; } sub_1400405A0(v93, v97, v96); } if ( *(_QWORD *)(a1 + 784) > 0xFu ) v92 = (_QWORD *)*v92; v98 = CCTextInputNode::create(v95, v94, (__int64)v92); *(_QWORD *)(a1 + 704) = v98; v98[624] = 0; (*(void (__fastcall **)(_QWORD, _QWORD, __int64))(**(_QWORD **)(a1 + 584) + 456LL))( *(_QWORD *)(a1 + 584), *(_QWORD *)(a1 + 704), 20); *(_QWORD *)(*(_QWORD *)(a1 + 704) + 600LL) = a1 + 544; (*(void (__fastcall **)(_QWORD, _BYTE *))(**(_QWORD **)(a1 + 704) + 184LL))(*(_QWORD *)(a1 + 704), v142); v99 = (void **)sub_14003F4F0((__int64)Block, (__int64)Buf2); CCTextInputNode::setAllowedChars(*(_QWORD *)(a1 + 704), v99); v103 = *(_DWORD *)(a1 + 696); if ( !v103 || v103 <= 9 && (v101 = 598, _bittest((const int *)&v101, v103)) ) { v104 = *(_QWORD *)(a1 + 704); *(_BYTE *)(v104 + 641) = 1; sub_1400405A0((void **)(v104 + 480), &byte_1406ED6E0, 0); } if ( *(_BYTE *)(a1 + 700) ) { ensureEmotesAreLoaded(v101, v100, v102, COERCE_DOUBLE(1117782016)); v105 = *(_DWORD *)(a1 + 688) + 17 * dword_1408FE3A4; } else { v105 = *(_DWORD *)(a1 + 688); } *(_DWORD *)(*(_QWORD *)(a1 + 704) + 608LL) = v105; Src[0] = Block; *(_OWORD *)Block = 0; v149 = 0; v150 = 15; LOBYTE(Block[0]) = 0; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v139, 0.5, 0.5); v107 = TextArea::create((__int64)Block, "chatFont.fnt", 1.0, 324.5, v106, 1101004800, 1, 0); CCTextInputNode::addTextArea(*(_QWORD *)(a1 + 704), (__int64)v107); LOWORD(v136) = -14136; v108 = *(_QWORD *)(a1 + 704); *(_WORD *)(v108 + 572) = -14136; *(_BYTE *)(v108 + 574) = -56; CCTextInputNode::refreshLabel(v108); if ( *(_BYTE *)(a1 + 700) ) { ensureEmotesAreLoaded(v110, v109, v111, COERCE_DOUBLE(1134706688)); CCTextInputNode::setParseEmotes(*(_QWORD *)(a1 + 704), dword_1408FE3A4); } v112 = cocos2d::CCString::createWithFormat((const char *)&word_1406ED6F8, *(unsigned int *)(a1 + 688)); CString = cocos2d::CCString::getCString(v112); v114 = cocos2d::CCLabelBMFont::create(CString, "chatFont.fnt"); *(_QWORD *)(a1 + 792) = v114; (*(void (__fastcall **)(_QWORD, struct cocos2d::CCLabelBMFont *, __int64))(**(_QWORD **)(a1 + 584) + 456LL))( *(_QWORD *)(a1 + 584), v114, 2); v115 = **(_QWORD **)(a1 + 792); v116 = *(_QWORD *)(a1 + 792); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)Src, 1.0, 0.5); (*(void (__fastcall **)(__int64, __int64))(v115 + 288))(v116, v117); (*(void (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 792) + 176LL))(*(_QWORD *)(a1 + 792)); if ( *(_BYTE *)(a1 + 700) ) { *(_OWORD *)Block = 0; v149 = 4; v150 = 15; strcpy((char *)Block, "easy"); v120 = EmoteSprite::defForName((__int64)Block, v118, v119, COERCE_DOUBLE(1134706688)); if ( v120 ) v121 = EmoteSprite::createWithDef(v120); else v121 = nullptr; sub_14003D310((__int64)Block); EmoteSprite::fitToHeight(v121, 18.0, 0.0); v122 = CCMenuItemSpriteExtra::create((int)v121, 0, a1, (__int64)ShareCommentLayer::onEmotes); *(_QWORD *)(a1 + 712) = v122; (*(void (__fastcall **)(_QWORD, cocos2d::CCObject *))(**(_QWORD **)(a1 + 552) + 464LL))(*(_QWORD *)(a1 + 552), v122); *(_DWORD *)(*(_QWORD *)(a1 + 712) + 372LL) = 1069547520; v123 = **(_QWORD **)(a1 + 712); v124 = *(_QWORD *)(a1 + 584); v125 = *(_QWORD *)(a1 + 552); v126 = *(_QWORD *)(a1 + 712); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)Src, (float)(v137 + 200.0) - 50.0, (float)(v29 + v138) - 16.0); cocos2d::CCNode::convertToWorldSpace(v124, &v139, v127); cocos2d::CCNode::convertToNodeSpace(v125, &v140, v128); (*(void (__fastcall **)(__int64, __int64))(v123 + 184))(v126, v129); } v130 = v144; v131 = sub_14003F4F0((__int64)Block, v144); ShareCommentLayer::updateDescText(a1, v131); if ( *(_QWORD *)(v130 + 16) ) { v132 = (_QWORD *)sub_14003F4F0((__int64)Block, v130); CCTextInputNode::setString(*(_QWORD **)(a1 + 704), v132); } if ( v153 > 0xF ) { v133 = Buf2[0]; if ( v153 + 1 >= 0x1000 ) { v133 = *((void **)Buf2[0] - 1); if ( (unsigned __int64)((char *)Buf2[0] - (char *)v133 - 8) > 0x1F ) invoke_watson(nullptr, nullptr, nullptr, 0, 0); } j_j_free(v133); } if ( v162 > 0xF ) { v134 = v160[0]; if ( v162 + 1 >= 0x1000 ) { v134 = *((void **)v160[0] - 1); if ( (unsigned __int64)((char *)v160[0] - (char *)v134 - 8) > 0x1F ) invoke_watson(nullptr, nullptr, nullptr, 0, 0); } j_j_free(v134); } v161 = 0; v162 = 15; LOBYTE(v160[0]) = 0; if ( v156 > 0xF ) { v135 = v154[0]; if ( v156 + 1 >= 0x1000 ) { v135 = *((void **)v154[0] - 1); if ( (unsigned __int64)((char *)v154[0] - (char *)v135 - 8) > 0x1F ) invoke_watson(nullptr, nullptr, nullptr, 0, 0); } j_j_free(v135); } v155 = 0; v156 = 15; LOBYTE(v154[0]) = 0; sub_14003D310((__int64)a2); sub_14003D310(v130); return 1; }
GD Web Decomp Icon

GD Web Decomp

Raw Source