// // AchievementCell::loadFromDict from 0x1401470f0 to 0x14014879b (5803 bytes) // // 2 xrefs: // > CustomListView::loadCell @ 0x140145a9f // > @ 0x1409175a0 // // 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:27:12 +0000 // // Hidden C++ exception states: #wind=8 void __fastcall AchievementCell::loadFromDict(__int64 a1, __int64 a2) { __int64 v2; // r12 __int64 v3; // r13 __int64 v4; // rdx cocos2d::CCString *v5; // rax const char *CString; // rbx void *v7; // r8 __int64 v8; // rax float v9; // xmm6_4 size_t v10; // r14 struct cocos2d::CCSprite *v11; // r15 struct cocos2d::CCSprite *v12; // rdi __int64 v13; // rbx __int64 v14; // rax int v15; // edi __int64 v16; // rbx void *v17; // r8 cocos2d::CCString *v18; // rax const char *v19; // rbx void *v20; // rax size_t v21; // r8 cocos2d::CCArray *v22; // r15 cocos2d::CCString *v23; // rax const char *v24; // rbx cocos2d::CCString *v25; // rax size_t v26; // r8 void **v27; // rcx char *v28; // r15 size_t v29; // r8 int v30; // r12d char *v31; // rax size_t v32; // r8 void **v33; // rcx char *v34; // r15 size_t v35; // r8 int v36; // r12d char *v37; // rax size_t v38; // r8 void **v39; // rcx unsigned __int64 v40; // r13 size_t v41; // r8 int v42; // r15d size_t v43; // r8 void **v44; // rcx char *v45; // r12 unsigned __int64 v46; // r13 size_t v47; // r8 int v48; // r15d char *v49; // rax size_t v50; // r8 void **v51; // rcx unsigned __int64 v52; // r12 size_t v53; // r8 int v54; // edi size_t v55; // r8 void **v56; // rcx char *v57; // rdi size_t v58; // r8 int v59; // r12d char *v60; // rax size_t v61; // r8 void **v62; // rcx unsigned __int64 v63; // r13 size_t v64; // r8 int v65; // edi size_t v66; // r8 void **v67; // rcx char *v68; // r12 size_t v69; // r8 int v70; // r13d char *v71; // rax size_t v72; // r8 int v73; // r12d void *v74; // r8 size_t v75; // r8 void **v76; // rcx char *v77; // r12 size_t v78; // r8 int v79; // r13d char *v80; // rax __int128 v81; // xmm0 size_t v82; // r8 void **v83; // rcx char *v84; // r12 unsigned __int64 v85; // r13 size_t v86; // r8 int v87; // edi char *v88; // rax bool v89; // zf size_t v90; // r8 void **v91; // rcx char *v92; // rdi size_t v93; // r8 int v94; // r12d char *v95; // rax size_t v96; // r8 void **v97; // rcx unsigned __int64 v98; // r12 size_t v99; // r8 int v100; // ebx __int64 v101; // rbx __int64 v102; // rax __int64 v103; // r13 __int64 v104; // rdi float *v105; // rax __int64 v106; // rbx __int64 v107; // rax cocos2d::CCString *v108; // rbx const char *v109; // rax struct cocos2d::CCLabelBMFont *v110; // rdi __int64 v111; // rbx __int64 v112; // rax __int64 v113; // rbx _QWORD *v114; // rax cocos2d::CCString *v115; // rax char *v116; // rax size_t v117; // r8 void *v118; // rcx cocos2d::CCString *v119; // rax char *v120; // rax size_t v121; // r8 const struct cocos2d::CCPoint *v122; // rax char *v123; // r12 __int64 v124; // rbx __int64 v125; // rax __int64 v126; // rbx __int64 v127; // rax void **v128; // rdx float v129; // xmm6_4 float v130; // xmm8_4 float v131; // xmm7_4 __int64 v132; // rbx __int64 v133; // rax __int64 v134; // rbx __int64 v135; // rax __int64 v136; // rax int v137; // eax cocos2d::CCString *v138; // rax const char *v139; // rax struct cocos2d::CCLabelBMFont *v140; // rdi __int64 v141; // rax __int64 v142; // rbx __int64 v143; // rax struct cocos2d::CCSprite *v144; // rdi __int64 v145; // rbx __int64 v146; // rax __int64 v147; // r14 __int64 v148; // rbx __int64 v149; // rax void *v150; // rcx __int16 v151; // [rsp+50h] [rbp-B0h] BYREF char v152; // [rsp+52h] [rbp-AEh] __int16 v153; // [rsp+60h] [rbp-A0h] BYREF char v154; // [rsp+62h] [rbp-9Eh] void **v155; // [rsp+70h] [rbp-90h] BYREF int v156; // [rsp+78h] [rbp-88h] __int64 v157; // [rsp+80h] [rbp-80h] int v158; // [rsp+88h] [rbp-78h] __int64 v159; // [rsp+90h] [rbp-70h] BYREF const char *v160; // [rsp+98h] [rbp-68h] BYREF void *Buf2[2]; // [rsp+A0h] [rbp-60h] BYREF unsigned __int64 v162; // [rsp+B0h] [rbp-50h] unsigned __int64 v163; // [rsp+B8h] [rbp-48h] void *Buf1[2]; // [rsp+C0h] [rbp-40h] BYREF unsigned __int64 v165; // [rsp+D0h] [rbp-30h] unsigned __int64 v166; // [rsp+D8h] [rbp-28h] void *Block[2]; // [rsp+E0h] [rbp-20h] BYREF __int64 v168; // [rsp+F0h] [rbp-10h] unsigned __int64 v169; // [rsp+F8h] [rbp-8h] void *v170[2]; // [rsp+100h] [rbp+0h] BYREF __int64 v171; // [rsp+110h] [rbp+10h] unsigned __int64 v172; // [rsp+118h] [rbp+18h] v2 = a2; v159 = a2; v3 = a1; v157 = a1; LOBYTE(a2) = -1; (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)(*(_QWORD *)(a1 + 536) + 408LL) + 40LL))( *(_QWORD *)(a1 + 536) + 408LL, a2); LOBYTE(v4) = 1; (*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(v3 + 544) + 576LL))(*(_QWORD *)(v3 + 544), v4); Block[1] = (void *)29285; v168 = 10; v169 = 15; Block[0] = (void *)0x696669746E656469LL; v5 = (cocos2d::CCString *)cocos2d::CCDictionary::objectForKey(v2, Block); CString = cocos2d::CCString::getCString(v5); v160 = CString; if ( v169 > 0xF ) { v7 = Block[0]; if ( v169 + 1 >= 0x1000 ) { v7 = *((void **)Block[0] - 1); if ( (unsigned __int64)((char *)Block[0] - (char *)v7 - 8) > 0x1F ) invoke_watson(nullptr, nullptr, nullptr, 0, 0); } j_j_free(v7); } v168 = 0; v169 = 15; LOBYTE(Block[0]) = 0; v8 = AchievementManager::sharedState(); v156 = AchievementManager::percentForAchievement(v8, (__int64)CString); v9 = 0.0; v10 = -1; if ( v156 < 100 ) { v11 = cocos2d::CCSprite::createWithSpriteFrameName("playerSquare_001.png"); v12 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_lock_001.png"); (*(void (__fastcall **)(struct cocos2d::CCSprite *, struct cocos2d::CCSprite *))(*(_QWORD *)v11 + 464LL))(v11, v12); v13 = *(_QWORD *)v12; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v159, *((float *)v11 + 108) * 0.5, *((float *)v11 + 109) * 0.5); (*(void (__fastcall **)(struct cocos2d::CCSprite *, __int64))(v13 + 184))(v12, v14); v151 = -20561; v152 = -81; (**((void (__fastcall ***)(__int64, __int16 *))v11 + 40))((__int64)v11 + 320, &v151); goto LABEL_217; } *(_OWORD *)Buf2 = 0; v15 = 4; v162 = 4; v163 = 15; strcpy((char *)Buf2, "icon"); v16 = cocos2d::CCDictionary::objectForKey(v2, Buf2); if ( v163 > 0xF ) { v17 = Buf2[0]; if ( v163 + 1 >= 0x1000 ) { v17 = *((void **)Buf2[0] - 1); if ( (unsigned __int64)((char *)Buf2[0] - (char *)v17 - 8) > 0x1F ) invoke_watson(nullptr, nullptr, nullptr, 0, 0); } j_j_free(v17); } if ( v16 ) { *(_OWORD *)Buf1 = 0; v165 = 4; v166 = 15; strcpy((char *)Buf1, "icon"); v18 = (cocos2d::CCString *)cocos2d::CCDictionary::objectForKey(v2, Buf1); v19 = cocos2d::CCString::getCString(v18); if ( v166 > 0xF ) { v20 = Buf1[0]; if ( v166 + 1 >= 0x1000 ) { v20 = *((void **)Buf1[0] - 1); if ( (unsigned __int64)((char *)Buf1[0] - (char *)v20 - 8) > 0x1F ) invoke_watson(nullptr, nullptr, nullptr, 0, 0); } j_j_free(v20); } v165 = 0; v166 = 15; LOBYTE(Buf1[0]) = 0; *(_OWORD *)Buf2 = 0; v162 = 0; v163 = 0; v21 = -1; do ++v21; while ( v19[v21] ); sub_14003D230(Buf2, v19, v21); v22 = sub_1400959D0((__int64 *)Buf2); sub_14003D310((__int64)Buf2); if ( cocos2d::CCArray::count(v22) >= 2 ) { v23 = cocos2d::CCArray::objectAtIndex(v22, 0); v24 = cocos2d::CCString::getCString(v23); v25 = cocos2d::CCArray::objectAtIndex(v22, 1u); v158 = cocos2d::CCString::intValue(v25); *(_OWORD *)Buf2 = 0; v162 = 4; v163 = 15; strcpy((char *)Buf2, "ship"); *(_OWORD *)Buf1 = 0; v165 = 0; v166 = 0; v26 = -1; do ++v26; while ( v24[v26] ); sub_14003D230(Buf1, v24, v26); v27 = Buf1; v28 = (char *)Buf1[0]; if ( v166 > 0xF ) v27 = (void **)Buf1[0]; v29 = v165; if ( v165 > 4 ) v29 = 4; v30 = memcmp(v27, Buf2, v29); if ( !v30 ) { if ( v165 >= 4 ) v30 = v165 > 4; else v30 = -1; } if ( v166 > 0xF ) { v31 = v28; if ( v166 + 1 >= 0x1000 ) { v28 = *((char **)v28 - 1); if ( (unsigned __int64)(v31 - v28 - 8) > 0x1F ) invoke_watson(nullptr, nullptr, nullptr, 0, 0); } j_j_free(v28); } if ( v30 ) { *(_OWORD *)Buf2 = 0; v162 = 4; v163 = 15; strcpy((char *)Buf2, "ball"); *(_OWORD *)Buf1 = 0; v165 = 0; v166 = 0; v32 = -1; do ++v32; while ( v24[v32] ); sub_14003D230(Buf1, v24, v32); v33 = Buf1; v34 = (char *)Buf1[0]; if ( v166 > 0xF ) v33 = (void **)Buf1[0]; v35 = v165; if ( v165 > 4 ) v35 = 4; v36 = memcmp(v33, Buf2, v35); if ( !v36 ) { if ( v165 >= 4 ) v36 = v165 > 4; else v36 = -1; } if ( v166 > 0xF ) { v37 = v34; if ( v166 + 1 >= 0x1000 ) { v34 = *((char **)v34 - 1); if ( (unsigned __int64)(v37 - v34 - 8) > 0x1F ) invoke_watson(nullptr, nullptr, nullptr, 0, 0); } j_j_free(v34); } if ( v36 ) { *(_OWORD *)Buf1 = 0; v165 = 4; v166 = 15; strcpy((char *)Buf1, "bird"); *(_OWORD *)Buf2 = 0; v162 = 0; v163 = 0; v38 = -1; do ++v38; while ( v24[v38] ); sub_14003D230(Buf2, v24, v38); v39 = Buf2; if ( v163 > 0xF ) v39 = (void **)Buf2[0]; v40 = v162; v41 = v162; if ( v162 > 4 ) v41 = 4; v42 = memcmp(v39, Buf1, v41); if ( !v42 ) { if ( v40 >= 4 ) v42 = v40 > 4; else v42 = -1; } sub_14003D310((__int64)Buf2); if ( v42 ) { *(_OWORD *)Buf1 = 0; v165 = 4; v166 = 15; strcpy((char *)Buf1, "dart"); *(_OWORD *)Buf2 = 0; v162 = 0; v163 = 0; v43 = -1; do ++v43; while ( v24[v43] ); sub_14003D230(Buf2, v24, v43); v44 = Buf2; v45 = (char *)Buf2[0]; if ( v163 > 0xF ) v44 = (void **)Buf2[0]; v46 = v162; v47 = v162; if ( v162 > 4 ) v47 = 4; v48 = memcmp(v44, Buf1, v47); if ( !v48 ) { if ( v46 >= 4 ) v48 = v46 > 4; else v48 = -1; } if ( v163 > 0xF ) { v49 = v45; if ( v163 + 1 >= 0x1000 ) { v45 = *((char **)v45 - 1); if ( (unsigned __int64)(v49 - v45 - 8) > 0x1F ) invoke_watson(nullptr, nullptr, nullptr, 0, 0); } j_j_free(v45); } sub_14003D310((__int64)Buf1); if ( v48 ) { *(_OWORD *)Buf1 = 0; v165 = 5; v166 = 15; strcpy((char *)Buf1, "robot"); *(_OWORD *)Buf2 = 0; v162 = 0; v163 = 0; v50 = -1; do ++v50; while ( v24[v50] ); sub_14003D230(Buf2, v24, v50); v51 = Buf2; if ( v163 > 0xF ) v51 = (void **)Buf2[0]; v52 = v162; v53 = v162; if ( v162 > 5 ) v53 = 5; v54 = memcmp(v51, Buf1, v53); if ( !v54 ) { if ( v52 >= 5 ) v54 = v52 > 5; else v54 = -1; } sub_14003D310((__int64)Buf2); if ( v54 ) { *(_OWORD *)Buf2 = 0; v162 = 6; v163 = 15; strcpy((char *)Buf2, "spider"); *(_OWORD *)Buf1 = 0; v165 = 0; v166 = 0; v55 = -1; do ++v55; while ( v24[v55] ); sub_14003D230(Buf1, v24, v55); v56 = Buf1; v57 = (char *)Buf1[0]; if ( v166 > 0xF ) v56 = (void **)Buf1[0]; v58 = v165; if ( v165 > 6 ) v58 = 6; v59 = memcmp(v56, Buf2, v58); if ( !v59 ) { if ( v165 >= 6 ) v59 = v165 > 6; else v59 = -1; } if ( v166 > 0xF ) { v60 = v57; if ( v166 + 1 >= 0x1000 ) { v57 = *((char **)v57 - 1); if ( (unsigned __int64)(v60 - v57 - 8) > 0x1F ) invoke_watson(nullptr, nullptr, nullptr, 0, 0); } j_j_free(v57); } if ( v59 ) { *(_OWORD *)Buf1 = 0; v165 = 5; v166 = 15; strcpy((char *)Buf1, "death"); *(_OWORD *)Buf2 = 0; v162 = 0; v163 = 0; v61 = -1; do ++v61; while ( v24[v61] ); sub_14003D230(Buf2, v24, v61); v62 = Buf2; if ( v163 > 0xF ) v62 = (void **)Buf2[0]; v63 = v162; v64 = v162; if ( v162 > 5 ) v64 = 5; v65 = memcmp(v62, Buf1, v64); if ( !v65 ) { if ( v63 >= 5 ) v65 = v63 > 5; else v65 = -1; } sub_14003D310((__int64)Buf2); if ( v65 ) { Buf2[1] = nullptr; v162 = 7; v163 = 15; Buf2[0] = (void *)0x6C616963657073LL; *(_OWORD *)Buf1 = 0; v165 = 0; v166 = 0; v66 = -1; do ++v66; while ( v24[v66] ); sub_14003D230(Buf1, v24, v66); v67 = Buf1; v68 = (char *)Buf1[0]; if ( v166 > 0xF ) v67 = (void **)Buf1[0]; v69 = v165; if ( v165 > 7 ) v69 = 7; v70 = memcmp(v67, Buf2, v69); if ( !v70 ) { if ( v165 >= 7 ) v70 = v165 > 7; else v70 = -1; } if ( v166 > 0xF ) { v71 = v68; if ( v166 + 1 >= 0x1000 ) { v68 = *((char **)v68 - 1); if ( (unsigned __int64)(v71 - v68 - 8) > 0x1F ) invoke_watson(nullptr, nullptr, nullptr, 0, 0); } j_j_free(v68); } if ( v70 ) { *(_OWORD *)Buf2 = 0; v162 = 5; v163 = 15; strcpy((char *)Buf2, "swing"); *(_OWORD *)Buf1 = 0; v165 = 0; v166 = 0; v72 = -1; do ++v72; while ( v24[v72] ); sub_14003D230(Buf1, v24, v72); v73 = sub_14003D160(Buf1, Buf2); if ( v166 > 0xF ) { v74 = Buf1[0]; if ( v166 + 1 >= 0x1000 ) { v74 = *((void **)Buf1[0] - 1); if ( (unsigned __int64)((char *)Buf1[0] - (char *)v74 - 8) > 0x1F ) invoke_watson(nullptr, nullptr, nullptr, 0, 0); } j_j_free(v74); } if ( v73 ) { Buf1[1] = nullptr; v165 = 7; v166 = 15; Buf1[0] = (void *)0x6B63617074656ALL; *(_OWORD *)Buf2 = 0; v162 = 0; v163 = 0; v75 = -1; do ++v75; while ( v24[v75] ); sub_14003D230(Buf2, v24, v75); v76 = Buf2; v77 = (char *)Buf2[0]; if ( v163 > 0xF ) v76 = (void **)Buf2[0]; v78 = v162; if ( v162 > 7 ) v78 = 7; v79 = memcmp(v76, Buf1, v78); if ( !v79 ) { if ( v162 >= 7 ) v79 = v162 > 7; else v79 = -1; } if ( v163 > 0xF ) { v80 = v77; if ( v163 + 1 >= 0x1000 ) { v77 = *((char **)v77 - 1); if ( (unsigned __int64)(v80 - v77 - 8) > 0x1F ) invoke_watson(nullptr, nullptr, nullptr, 0, 0); } j_j_free(v77); } if ( v79 ) { v81 = 0; v165 = 10; v166 = 15; *(_QWORD *)&v81 = 0x6572747370696873LL; *(_OWORD *)Buf1 = v81; strcpy((char *)&Buf1[1], "ak"); *(_OWORD *)Buf2 = 0; v162 = 0; v163 = 0; v82 = -1; do ++v82; while ( v24[v82] ); sub_14003D230(Buf2, v24, v82); v83 = Buf2; v84 = (char *)Buf2[0]; if ( v163 > 0xF ) v83 = (void **)Buf2[0]; v85 = v162; v86 = v162; if ( v162 > 0xA ) v86 = 10; v87 = memcmp(v83, Buf1, v86); if ( !v87 ) { if ( v85 >= 0xA ) v87 = v85 > 0xA; else v87 = -1; } if ( v163 > 0xF ) { v88 = v84; if ( v163 + 1 >= 0x1000 ) { v84 = *((char **)v84 - 1); if ( (unsigned __int64)(v88 - v84 - 8) > 0x1F ) invoke_watson(nullptr, nullptr, nullptr, 0, 0); } j_j_free(v84); } sub_14003D310((__int64)Buf1); v89 = v87 == 0; v15 = 15; if ( !v89 ) { *(_OWORD *)Buf1 = 0; v165 = 5; v166 = 15; strcpy((char *)Buf1, "color"); *(_OWORD *)Buf2 = 0; v162 = 0; v163 = 0; v90 = -1; do ++v90; while ( v24[v90] ); sub_14003D230(Buf2, v24, v90); v91 = Buf2; v92 = (char *)Buf2[0]; if ( v163 > 0xF ) v91 = (void **)Buf2[0]; v93 = v162; if ( v162 > 5 ) v93 = 5; v94 = memcmp(v91, Buf1, v93); if ( !v94 ) { if ( v162 >= 5 ) v94 = v162 > 5; else v94 = -1; } if ( v163 > 0xF ) { v95 = v92; if ( v163 + 1 >= 0x1000 ) { v92 = *((char **)v92 - 1); if ( (unsigned __int64)(v95 - v92 - 8) > 0x1F ) invoke_watson(nullptr, nullptr, nullptr, 0, 0); } j_j_free(v92); } if ( v94 ) { *(_OWORD *)Buf1 = 0; v165 = 6; v166 = 15; strcpy((char *)Buf1, "color2"); *(_OWORD *)Buf2 = 0; v162 = 0; v163 = 0; v96 = -1; do ++v96; while ( v24[v96] ); sub_14003D230(Buf2, v24, v96); v97 = Buf2; if ( v163 > 0xF ) v97 = (void **)Buf2[0]; v98 = v162; v99 = v162; if ( v162 > 6 ) v99 = 6; v100 = memcmp(v97, Buf1, v99); if ( !v100 ) { if ( v98 >= 6 ) v100 = v98 > 6; else v100 = -1; } sub_14003D310((__int64)Buf2); v15 = 1; if ( !v100 ) v15 = 3; } else { v15 = 2; } } } else { v15 = 14; } } else { v15 = 13; } } else { v15 = 10; } } else { v15 = 11; } } else { v15 = 9; } } else { v15 = 8; } } else { v15 = 7; } } else { v15 = 6; v9 = -5.0; } } else { v15 = 5; } } v151 = -1; v153 = -20561; v11 = (struct cocos2d::CCSprite *)operator new(0x278u); v155 = (void **)v11; cocos2d::CCSprite::CCSprite(v11); *(_QWORD *)v11 = &GJItemIcon::`vftable'; *((_QWORD *)v11 + 40) = &GJItemIcon::`vftable'; *((_QWORD *)v11 + 43) = &GJItemIcon::`vftable'; *((_QWORD *)v11 + 75) = 0; *((_DWORD *)v11 + 152) = 0; cocos2d::CCSize::CCSize((struct cocos2d::CCSprite *)((char *)v11 + 612)); *((_BYTE *)v11 + 620) = 0; *((_QWORD *)v11 + 78) = 0; v152 = -1; v154 = -81; if ( (unsigned __int8)GJItemIcon::init((_DWORD)v11, v15, v158, (unsigned int)&v153, (__int64)&v151, 0) ) { cocos2d::CCObject::autorelease(v11); } else { (*(void (__fastcall **)(struct cocos2d::CCSprite *, __int64))(*(_QWORD *)v11 + 8LL))(v11, 1); v11 = nullptr; } v2 = v159; v3 = v157; LABEL_217: if ( v11 ) goto LABEL_219; } } v11 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_achImage_001.png"); LABEL_219: v101 = *(_QWORD *)v11; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v155, 35.0, (float)(*(float *)(v3 + 532) * 0.5) + v9); (*(void (__fastcall **)(struct cocos2d::CCSprite *, __int64))(v101 + 184))(v11, v102); (*(void (__fastcall **)(_QWORD, struct cocos2d::CCSprite *))(**(_QWORD **)(v3 + 544) + 464LL))( *(_QWORD *)(v3 + 544), v11); (*(void (__fastcall **)(struct cocos2d::CCSprite *))(*(_QWORD *)v11 + 160LL))(v11); v103 = cocos2d::CCNode::create(); v104 = v157; (*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(v157 + 544) + 464LL))(*(_QWORD *)(v157 + 544), v103); v105 = (float *)(*(__int64 (__fastcall **)(struct cocos2d::CCSprite *))(*(_QWORD *)v11 + 200LL))(v11); v106 = *(_QWORD *)v103; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v155, *v105 + 32.0, *(float *)(v104 + 532) * 0.5); (*(void (__fastcall **)(__int64, __int64))(v106 + 184))(v103, v107); *(_OWORD *)Buf2 = 0; v162 = 5; v163 = 15; strcpy((char *)Buf2, "title"); v108 = (cocos2d::CCString *)cocos2d::CCDictionary::objectForKey(v2, Buf2); sub_14003D310((__int64)Buf2); v109 = cocos2d::CCString::getCString(v108); v110 = cocos2d::CCLabelBMFont::create(v109, "goldFont.fnt"); (*(void (__fastcall **)(__int64, struct cocos2d::CCLabelBMFont *))(*(_QWORD *)v103 + 464LL))(v103, v110); v111 = *(_QWORD *)v110; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v155, 0.0, 0.5); (*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *, __int64))(v111 + 288))(v110, v112); (*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *))(*(_QWORD *)v110 + 160LL))(v110); if ( *(float *)(*(__int64 (__fastcall **)(struct cocos2d::CCLabelBMFont *))(*(_QWORD *)v110 + 320LL))(v110) > 200.0 ) { v113 = *(_QWORD *)v110; (*(__int64 (__fastcall **)(struct cocos2d::CCLabelBMFont *))(*(_QWORD *)v110 + 320LL))(v110); (*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *))(v113 + 160))(v110); } fminf( 0.69999999, COERCE_FLOAT(COERCE_UNSIGNED_INT64((*(double (__fastcall **)(struct cocos2d::CCLabelBMFont *))(*(_QWORD *)v110 + 168LL))(v110)))); (*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *))(*(_QWORD *)v110 + 160LL))(v110); *(_OWORD *)v170 = 0; v171 = 0; v172 = 15; LOBYTE(v170[0]) = 0; *(_OWORD *)Buf2 = 0; v162 = 0; v163 = 0; v114 = sub_14003D460(0x20u); Buf2[0] = v114; v163 = 31; if ( v156 < 100 ) { v162 = 21; strcpy((char *)v114, "unachievedDescription"); v119 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(v2, Buf2); v120 = (char *)cocos2d::CCString::getCString(v119); v121 = -1; do ++v121; while ( v120[v121] ); sub_1400405A0(v170, v120, v121); sub_14003D310((__int64)Buf2); } else { v162 = 19; strcpy((char *)v114, "achievedDescription"); v115 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(v2, Buf2); v116 = (char *)cocos2d::CCString::getCString(v115); v117 = -1; do ++v117; while ( v116[v117] ); sub_1400405A0(v170, v116, v117); if ( v163 > 0xF ) { v118 = Buf2[0]; if ( v163 + 1 >= 0x1000 ) { v118 = *((void **)Buf2[0] - 1); if ( (unsigned __int64)((char *)Buf2[0] - (char *)v118 - 8) > 0x1F ) invoke_watson(nullptr, nullptr, nullptr, 0, 0); } j_j_free(v118); } } v155 = Buf2; *(_OWORD *)Buf2 = 0; v162 = 1; v163 = 15; LOWORD(Buf2[0]) = (unsigned __int8)asc_1406ED6E4[0]; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v159, 0.0, 1.0); v123 = TextArea::create((__int64)Buf2, "chatFont.fnt", 1.0, 209.0, v122, 1101004800, 0, 0); (*(void (__fastcall **)(__int64, char *))(*(_QWORD *)v103 + 464LL))(v103, v123); v124 = *(_QWORD *)v123; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v155, 0.0, 0.5); (*(void (__fastcall **)(char *, __int64))(v124 + 288))(v123, v125); v126 = *(_QWORD *)v123; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v155, 0.0, 5.0); (*(void (__fastcall **)(char *, __int64))(v126 + 184))(v123, v127); *((_DWORD *)v123 + 166) = 1098907648; v128 = v170; if ( v172 > 0xF ) v128 = (void **)v170[0]; *(_OWORD *)Buf1 = 0; v165 = 0; v166 = 0; do ++v10; while ( *((_BYTE *)v128 + v10) ); sub_14003D230(Buf1, v128, v10); TextArea::setString((__int64 *)v123, (__int64)Buf1); v129 = *(float *)((*(__int64 (__fastcall **)(struct cocos2d::CCLabelBMFont *))(*(_QWORD *)v110 + 320LL))(v110) + 4); v130 = *(float *)((*(__int64 (__fastcall **)(char *))(*(_QWORD *)v123 + 320LL))(v123) + 4) + 17.0; v131 = (float)(v130 + v129) * 0.5; v132 = *(_QWORD *)v110; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v155, 0.0, (float)((float)(v131 - (float)(v129 * 0.5)) + 3.0) + 2.0); (*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *, __int64))(v132 + 184))(v110, v133); v134 = *(_QWORD *)v123; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v155, 0.0, (float)(16.0 - (float)(v131 - (float)(v130 * 0.5))) - 2.0); (*(void (__fastcall **)(char *, __int64))(v134 + 184))(v123, v135); v136 = AchievementManager::sharedState(); v137 = AchievementManager::percentForAchievement(v136, (__int64)v160); if ( !v137 || v137 == 100 ) { if ( v156 < 100 ) goto LABEL_242; } else if ( v156 < 100 ) { v138 = cocos2d::CCString::createWithFormat("%i%%", v137); v139 = cocos2d::CCString::getCString(v138); v140 = cocos2d::CCLabelBMFont::create(v139, "goldFont.fnt"); (*(void (__fastcall **)(_QWORD, struct cocos2d::CCLabelBMFont *, __int64))(**(_QWORD **)(v157 + 544) + 456LL))( *(_QWORD *)(v157 + 544), v140, 10); (*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *))(*(_QWORD *)v140 + 160LL))(v140); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v155, 0.0, -25.0); v142 = v141; v143 = (*(__int64 (__fastcall **)(struct cocos2d::CCSprite *))(*(_QWORD *)v11 + 200LL))(v11); cocos2d::CCPoint::operator+(v143, &v160, v142); (*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *, const char **))(*(_QWORD *)v140 + 184LL))(v140, &v160); goto LABEL_242; } v144 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_completesIcon_001.png"); v145 = *(_QWORD *)v144; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v155, 0.0, 0.5); (*(void (__fastcall **)(struct cocos2d::CCSprite *, __int64))(v145 + 288))(v144, v146); v147 = v157; (*(void (__fastcall **)(_QWORD, struct cocos2d::CCSprite *))(**(_QWORD **)(v157 + 544) + 464LL))( *(_QWORD *)(v157 + 544), v144); (*(void (__fastcall **)(struct cocos2d::CCSprite *))(*(_QWORD *)v144 + 160LL))(v144); v148 = *(_QWORD *)v144; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v155, *(float *)(v147 + 528) - 40.0, *(float *)(v147 + 532) * 0.5); (*(void (__fastcall **)(struct cocos2d::CCSprite *, __int64))(v148 + 184))(v144, v149); LABEL_242: if ( v172 > 0xF ) { v150 = v170[0]; if ( v172 + 1 >= 0x1000 ) { v150 = *((void **)v170[0] - 1); if ( (unsigned __int64)((char *)v170[0] - (char *)v150 - 8) > 0x1F ) invoke_watson(nullptr, nullptr, nullptr, 0, 0); } j_j_free(v150); } }