// // ItemInfoPopup::init from 0x1403842f0 to 0x140386380 (8336 bytes) // // 2 xrefs: // > ItemInfoPopup::create @ 0x14038429a // > @ 0x140922a84 // // 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:31:07 +0000 // // Hidden C++ exception states: #wind=21 bool __fastcall ItemInfoPopup::init(__int64 a1, int a2, int a3) { int v3; // r13d __int64 v5; // r12 bool result; // al __int64 v7; // rdx __int64 v8; // rdx __int64 v9; // rcx __int64 v10; // rax __int64 v11; // rax __int64 v12; // rdi __int64 v13; // rbx __int64 v14; // rax __int64 v15; // rax __int64 v16; // rax _QWORD *v17; // rdi void (__fastcall **v18)(_QWORD, _QWORD); // rdx void (__fastcall *v19)(_QWORD *, _QWORD); // r8 __int64 v20; // rbx __int64 v21; // rax size_t v22; // rsi const char *v23; // rdx cocos2d::CCString *v24; // rax const char *CString; // rax size_t v26; // r8 void **v27; // rcx struct cocos2d::CCLabelBMFont *v28; // rdi __int64 v29; // rbx __int64 v30; // rax __int64 v31; // rdx __int64 v32; // rcx __int64 v33; // r8 __int64 v34; // rax __int64 v35; // rdx __int64 v36; // r8 __int64 v37; // rcx __int64 v38; // r14 unsigned __int64 v39; // rdi void **v40; // r12 unsigned __int64 v41; // rbx __int64 v42; // rax void **v43; // rdx __int64 AchievementsWithID; // rax cocos2d::CCString *v45; // rbx void *v46; // r8 int v47; // ebx int v48; // edi __int64 v49; // rbx unsigned __int64 v50; // rdi _BYTE *v51; // rbx __int64 v52; // rcx char *v53; // r13 void *v54; // rcx unsigned __int64 v55; // rdi void **v56; // rbx __int64 v57; // rcx __int64 v58; // r13 _WORD *v59; // rbx void *v60; // rcx void **v61; // rcx struct cocos2d::CCSprite *v62; // rdi __int64 v63; // rbx __int64 v64; // rax __int64 v65; // rax void *v66; // rcx char *BrowserItem; // rbx __int64 v68; // rax __int64 v69; // rcx __int64 v70; // rax int v71; // eax cocos2d::CCObject *v72; // rax __int64 v73; // rdi __int64 v74; // rbx __int64 v75; // rax __int64 v76; // rcx __int64 v77; // rcx int ItemUnlockState; // r12d unsigned int v79; // eax __int64 v80; // r9 __int64 v81; // rdx __int64 v82; // rcx char isIconUnlocked; // bl __int64 v84; // r8 const char *v85; // rdx cocos2d::CCString *v86; // rax char *v87; // rax size_t v88; // r8 _QWORD *v89; // rcx const char *v90; // r8 const char *v91; // rdx cocos2d::CCString *v92; // rax char *v93; // rax size_t v94; // r8 void **v95; // rax __int64 v96; // rcx bool v97; // sf bool v98; // of const char *v99; // rdx cocos2d::CCString *v100; // rax const char *v101; // rdx cocos2d::CCString *v102; // rax const char *v103; // rdx cocos2d::CCString *v104; // rax const char *v105; // rdx cocos2d::CCString *v106; // rax const char *v107; // rdx cocos2d::CCString *v108; // rax char *v109; // rax size_t v110; // r8 void **v111; // rax unsigned __int64 v112; // rdi _BYTE *v113; // rbx unsigned __int64 v114; // rcx __int64 v115; // rbx char *v116; // r13 void *v117; // rcx const char *v118; // rdx cocos2d::CCString *v119; // rax char *v120; // rax size_t v121; // r8 void **v122; // rax __int64 v123; // rax __int64 v124; // rdx __int64 v125; // rcx __int64 v126; // r8 _QWORD *v127; // rbx __int64 v128; // rax __int64 v129; // rax cocos2d::CCString *v130; // rax const char *v131; // rax size_t v132; // r8 void *v133; // rcx void *v134; // rcx const char *v135; // r8 const char *v136; // rdx cocos2d::CCString *v137; // rax char *v138; // rax unsigned __int64 v139; // rdi void **v140; // rbx __int64 v141; // rcx __int64 v142; // r13 _WORD *v143; // rbx void *v144; // rcx const char *v145; // rdx cocos2d::CCString *v146; // rax char *v147; // rax unsigned __int64 v148; // rbx int v149; // eax unsigned __int64 v150; // rdi __int64 v151; // rcx __int64 v152; // r13 _WORD *v153; // rbx void *v154; // rcx const char *v155; // rdx cocos2d::CCString *v156; // rax void **v157; // rdi __int64 *v158; // rdx __int64 v159; // rcx __int64 v160; // r13 void **v161; // rbx __int64 v162; // rcx __int64 v163; // r13 const struct cocos2d::CCPoint *v164; // rax char *v165; // rdi __int64 v166; // r14 __int64 v167; // rax void **v168; // rcx struct cocos2d::CCLabelBMFont *v169; // rbx __int64 v170; // rax __int64 v171; // rdx __int64 v172; // rax __int64 v173; // rbx __int64 v174; // rax void **v175; // rcx cocos2d::CCLabelBMFont *v176; // rbx __int64 v177; // rax __int64 v178; // r8 __int64 *v179; // r9 __int64 *v180; // rax __int64 *v181; // rdx int v182; // eax int v183; // ecx __int64 *v184; // r9 __int64 *v185; // rax __int64 *v186; // rdx unsigned __int64 v187; // rax __int64 v188; // rcx void **v189; // rdx cocos2d::CCString *v190; // rax const char *v191; // rax struct cocos2d::CCLabelBMFont *v192; // rsi cocos2d::CCObject *v193; // rdi __int64 v194; // rbx __int64 v195; // rax void *v196; // rcx void *v197; // rcx void *v198; // rcx void *v199; // rcx void *v200; // rcx char v201; // [rsp+48h] [rbp-C0h] __int64 v202; // [rsp+50h] [rbp-B8h] BYREF void **v203; // [rsp+58h] [rbp-B0h] BYREF void **v204; // [rsp+60h] [rbp-A8h] BYREF float v205[2]; // [rsp+68h] [rbp-A0h] BYREF __int64 v206; // [rsp+70h] [rbp-98h] BYREF float v207; // [rsp+78h] [rbp-90h] BYREF float v208; // [rsp+7Ch] [rbp-8Ch] char v209[8]; // [rsp+80h] [rbp-88h] BYREF void *v210[2]; // [rsp+88h] [rbp-80h] BYREF __int128 v211; // [rsp+98h] [rbp-70h] void *v212[2]; // [rsp+A8h] [rbp-60h] BYREF __int128 v213; // [rsp+B8h] [rbp-50h] void *v214[2]; // [rsp+C8h] [rbp-40h] BYREF __int64 v215; // [rsp+D8h] [rbp-30h] unsigned __int64 v216; // [rsp+E0h] [rbp-28h] void *Block[2]; // [rsp+E8h] [rbp-20h] BYREF __int64 v218; // [rsp+F8h] [rbp-10h] unsigned __int64 v219; // [rsp+100h] [rbp-8h] _QWORD v220[3]; // [rsp+108h] [rbp+0h] BYREF unsigned __int64 v221; // [rsp+120h] [rbp+18h] void *v222[2]; // [rsp+128h] [rbp+20h] BYREF unsigned __int64 v223; // [rsp+138h] [rbp+30h] unsigned __int64 v224; // [rsp+140h] [rbp+38h] void *v225[2]; // [rsp+148h] [rbp+40h] BYREF __int64 v226; // [rsp+158h] [rbp+50h] unsigned __int64 v227; // [rsp+160h] [rbp+58h] _QWORD v228[3]; // [rsp+168h] [rbp+60h] BYREF unsigned __int64 v229; // [rsp+180h] [rbp+78h] void *Src[2]; // [rsp+188h] [rbp+80h] BYREF unsigned __int64 v231; // [rsp+198h] [rbp+90h] unsigned __int64 v232; // [rsp+1A0h] [rbp+98h] _QWORD v233[4]; // [rsp+1A8h] [rbp+A0h] BYREF v3 = a3; LODWORD(v202) = a3; v5 = a1; v206 = a1; result = FLAlertLayer::init_1(a1, 150); if ( !result ) return result; LOBYTE(v7) = 1; (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v5 + 992LL))(v5, v7); LOBYTE(v8) = 1; (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v5 + 920LL))(v5, v8); *(_DWORD *)(v5 + 664) = a2; *(_DWORD *)(v5 + 668) = v3; v10 = cocos2d::CCDirector::sharedDirector(v9); cocos2d::CCDirector::getWinSize(v10, &v207); cocos2d::CCRect::CCRect((cocos2d::CCRect *)v212, 0.0, 0.0, 80.0, 80.0); v12 = cocos2d::extension::CCScale9Sprite::create("GJ_square01.png", v11); v13 = *(_QWORD *)v12; cocos2d::CCSize::CCSize((cocos2d::CCSize *)&v203, 300.0, 230.0); (*(void (__fastcall **)(__int64, __int64))(v13 + 312))(v12, v14); (*(void (__fastcall **)(_QWORD, __int64, __int64))(**(_QWORD **)(v5 + 584) + 456LL))( *(_QWORD *)(v5 + 584), v12, 4294967294LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v205, v207 * 0.5, v208 * 0.5); (*(void (__fastcall **)(__int64, float *))(*(_QWORD *)v12 + 184LL))(v12, v205); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v203, 0.0, -22.0); cocos2d::CCPoint::operator+(v205, v209, v15); cocos2d::CCRect::CCRect((cocos2d::CCRect *)v212, 0.0, 0.0, 80.0, 80.0); v17 = (_QWORD *)cocos2d::extension::CCScale9Sprite::create("GJ_square01.png", v16); (*(void (__fastcall **)(_QWORD *, void *))v17[40])(v17 + 40, &unk_140703468); v18 = (void (__fastcall **)(_QWORD, _QWORD))v17[40]; v19 = (void (__fastcall *)(_QWORD *, _QWORD))v18[5]; LOBYTE(v18) = 60; v19(v17 + 40, v18); v20 = *v17; cocos2d::CCSize::CCSize((cocos2d::CCSize *)&v203, 260.0, 90.0); (*(void (__fastcall **)(_QWORD *, __int64))(v20 + 312))(v17, v21); v22 = -1; (*(void (__fastcall **)(_QWORD, _QWORD *, __int64))(**(_QWORD **)(v5 + 584) + 456LL))( *(_QWORD *)(v5 + 584), v17, 0xFFFFFFFFLL); (*(void (__fastcall **)(_QWORD *, char *))(*v17 + 184LL))(v17, v209); ItemInfoPopup::nameForUnlockType(v220, (unsigned int)a2, (unsigned int)v3); v23 = (const char *)v220; if ( v221 > 0xF ) v23 = (const char *)v220[0]; v24 = cocos2d::CCString::createWithFormat("%s %i", v23, a2); CString = cocos2d::CCString::getCString(v24); *(_OWORD *)v225 = 0; v226 = 0; v227 = 0; v26 = -1; do ++v26; while ( CString[v26] ); sub_14003D230(v225, CString, v26); v27 = v225; if ( v227 > 0xF ) v27 = (void **)v225[0]; v28 = cocos2d::CCLabelBMFont::create((const char *)v27, "goldFont.fnt"); v29 = *(_QWORD *)v28; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v203, v205[0], (float)(v205[1] + 115.0) - 16.0); (*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *, __int64))(v29 + 184))(v28, v30); (*(void (__fastcall **)(_QWORD, struct cocos2d::CCLabelBMFont *))(**(_QWORD **)(v5 + 584) + 464LL))( *(_QWORD *)(v5 + 584), v28); (*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *))(*(_QWORD *)v28 + 160LL))(v28); v34 = AchievementManager::sharedState(v32, v31, v33); AchievementManager::achievementForUnlock(v34, Src, a2, v3); v37 = 22; v38 = 0x7FFFFFFFFFFFFFFFLL; v39 = v231; if ( v231 ) { v203 = v212; *(_OWORD *)v212 = 0; v213 = 0u; v40 = Src; if ( v232 > 0xF ) v40 = (void **)Src[0]; if ( v231 > 0x7FFFFFFFFFFFFFFFLL ) sub_140009D90(22); if ( v231 > 0xF ) { v41 = v231 | 0xF; if ( (v231 | 0xF) <= 0x7FFFFFFFFFFFFFFFLL ) { if ( v41 < 0x16 ) v41 = 22; } else { v41 = 0x7FFFFFFFFFFFFFFFLL; } v212[0] = sub_14003D460(v41 + 1); *(_QWORD *)&v213 = v39; *((_QWORD *)&v213 + 1) = v41; memcpy(v212[0], v40, v39 + 1); } else { *(_QWORD *)&v213 = v231; *((_QWORD *)&v213 + 1) = 15; *(_OWORD *)v212 = *(_OWORD *)v40; } v204 = v212; v42 = AchievementManager::sharedState(v37, v35, v36); v43 = v212; if ( *((_QWORD *)&v213 + 1) > 0xFu ) v43 = (void **)v212[0]; AchievementsWithID = AchievementManager::getAchievementsWithID(v42, (__int64)v43); if ( !AchievementsWithID ) goto LABEL_66; *(_OWORD *)Block = 0; v218 = 6; v219 = 15; strcpy((char *)Block, "limits"); v45 = (cocos2d::CCString *)cocos2d::CCDictionary::objectForKey(AchievementsWithID, Block); if ( v219 > 0xF ) { v46 = Block[0]; if ( v219 + 1 >= 0x1000 ) { v46 = *((void **)Block[0] - 1); if ( (unsigned __int64)((char *)Block[0] - (char *)v46 - 8) > 0x1F ) invoke_watson(nullptr, nullptr, nullptr, 0, 0); } j_j_free(v46); } v218 = 0; v219 = 15; LOBYTE(Block[0]) = 0; if ( v45 ) { v47 = cocos2d::CCString::intValue(v45); sub_14003D310((__int64)v212); v48 = v47; if ( v47 == 2 || v47 == 3 || v47 == 4 ) { *(_OWORD *)v212 = 0; v213 = 0u; v212[0] = sub_14003D460(0x20u); *(_QWORD *)&v213 = 22; v49 = 31; *((_QWORD *)&v213 + 1) = 31; strcpy((char *)v212[0], "gj_subzeroLogo_001.png"); if ( v48 == 2 ) { v50 = *((_QWORD *)&v213 + 1); if ( *((_QWORD *)&v213 + 1) >= 0x14u ) { v51 = v212[0]; *(_QWORD *)&v213 = 20; memmove(v212[0], "gj_worldLogo_001.png", 0x14u); v51[20] = 0; LABEL_59: v61 = v212; if ( *((_QWORD *)&v213 + 1) > 0xFu ) v61 = (void **)v212[0]; v62 = cocos2d::CCSprite::createWithSpriteFrameName((const char *)v61); v5 = v206; (*(void (__fastcall **)(_QWORD, struct cocos2d::CCSprite *))(**(_QWORD **)(v206 + 584) + 464LL))( *(_QWORD *)(v206 + 584), v62); v63 = *(_QWORD *)v62; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v204, 0.0, 1.0); (*(void (__fastcall **)(struct cocos2d::CCSprite *, __int64))(v63 + 288))(v62, v64); (*(void (__fastcall **)(struct cocos2d::CCSprite *))(*(_QWORD *)v62 + 160LL))(v62); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v204, -140.0, 105.0); cocos2d::CCPoint::operator+(v205, &v203, v65); (*(void (__fastcall **)(struct cocos2d::CCSprite *, void ***))(*(_QWORD *)v62 + 184LL))(v62, &v203); if ( *((_QWORD *)&v213 + 1) > 0xFu ) { v66 = v212[0]; if ( (unsigned __int64)(*((_QWORD *)&v213 + 1) + 1LL) >= 0x1000 ) { v66 = *((void **)v212[0] - 1); if ( (unsigned __int64)((char *)v212[0] - (char *)v66 - 8) > 0x1F ) invoke_watson(nullptr, nullptr, nullptr, 0, 0); } j_j_free(v66); } goto LABEL_68; } v52 = *((_QWORD *)&v213 + 1) >> 1; if ( *((_QWORD *)&v213 + 1) <= (unsigned __int64)(0x7FFFFFFFFFFFFFFFLL - (*((_QWORD *)&v213 + 1) >> 1)) ) { if ( (unsigned __int64)(*((_QWORD *)&v213 + 1) + v52) > 0x1F ) v49 = *((_QWORD *)&v213 + 1) + v52; } else { v49 = 0x7FFFFFFFFFFFFFFFLL; } v53 = (char *)sub_14003D460(v49 + 1); *(_QWORD *)&v213 = 20; *((_QWORD *)&v213 + 1) = v49; strcpy(v53, "gj_worldLogo_001.png"); if ( v50 <= 0xF ) goto LABEL_42; v54 = v212[0]; if ( v50 + 1 < 0x1000 || (v54 = *((void **)v212[0] - 1), (unsigned __int64)((char *)v212[0] - (char *)v54 - 8) <= 0x1F) ) { j_j_free(v54); LABEL_42: v212[0] = v53; LABEL_58: v3 = v202; goto LABEL_59; } LABEL_55: invoke_watson(nullptr, nullptr, nullptr, 0, 0); } if ( v48 != 4 ) goto LABEL_59; v55 = *((_QWORD *)&v213 + 1); if ( *((_QWORD *)&v213 + 1) >= 0xDu ) { v56 = v212; if ( *((_QWORD *)&v213 + 1) > 0xFu ) v56 = (void **)v212[0]; *(_QWORD *)&v213 = 13; memmove(v56, "GJ_md_001.png", 0xDu); *((_BYTE *)v56 + 13) = 0; goto LABEL_59; } v57 = *((_QWORD *)&v213 + 1) >> 1; if ( *((_QWORD *)&v213 + 1) <= (unsigned __int64)(0x7FFFFFFFFFFFFFFFLL - (*((_QWORD *)&v213 + 1) >> 1)) ) { v58 = 15; if ( (unsigned __int64)(*((_QWORD *)&v213 + 1) + v57) > 0xF ) v58 = *((_QWORD *)&v213 + 1) + v57; } else { v58 = 0x7FFFFFFFFFFFFFFFLL; } v59 = sub_14003D460(v58 + 1); *(_QWORD *)&v213 = 13; *((_QWORD *)&v213 + 1) = v58; qmemcpy(v59, "GJ_md_001.pn", 12); v59[6] = (unsigned __int8)aGjMd001Png[12]; if ( v55 > 0xF ) { v60 = v212[0]; if ( v55 + 1 >= 0x1000 ) { v60 = *((void **)v212[0] - 1); if ( (unsigned __int64)((char *)v212[0] - (char *)v60 - 8) > 0x1F ) goto LABEL_55; } j_j_free(v60); } v212[0] = v59; goto LABEL_58; } } else { LABEL_66: sub_14003D310((__int64)v212); } v5 = v206; } LABEL_68: BrowserItem = GJItemIcon::createBrowserItem(v3, a2); (*(void (__fastcall **)(char *))(*(_QWORD *)BrowserItem + 160LL))(BrowserItem); (*(void (__fastcall **)(_QWORD, char *, __int64))(**(_QWORD **)(v5 + 584) + 456LL))( *(_QWORD *)(v5 + 584), BrowserItem, 12); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v204, 0.0, 56.0); cocos2d::CCPoint::operator+(v205, &v203, v68); (*(void (__fastcall **)(char *, void ***))(*(_QWORD *)BrowserItem + 184LL))(BrowserItem, &v203); v70 = cocos2d::CCMenu::create(v69); *(_QWORD *)(v5 + 552) = v70; (*(void (__fastcall **)(_QWORD, __int64, __int64))(**(_QWORD **)(v5 + 584) + 456LL))(*(_QWORD *)(v5 + 584), v70, 10); v71 = (unsigned int)ButtonSprite::create_1( (int)"OK", 0, 0, 1.0, 0, (__int64)"goldFont.fnt", (__int64)"GJ_button_01.png", 0); v72 = CCMenuItemSpriteExtra::create(v71, 0, v5, (__int64)PagedListPopup::onClose); (*(void (__fastcall **)(_QWORD, cocos2d::CCObject *))(**(_QWORD **)(v5 + 552) + 464LL))(*(_QWORD *)(v5 + 552), v72); v73 = **(_QWORD **)(v5 + 552); v74 = *(_QWORD *)(v5 + 552); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v204, v207 * 0.5, (float)((float)(v208 * 0.5) - 115.0) + 25.0); (*(void (__fastcall **)(__int64, __int64))(v73 + 184))(v74, v75); v76 = qword_14090BFE0; if ( !qword_14090BFE0 ) { v203 = (void **)operator new(0x3E8u); qword_14090BFE0 = sub_1402D6480((__int64)v203); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFE0 + 72LL))(qword_14090BFE0); v76 = qword_14090BFE0; } ItemUnlockState = GameStatsManager::getItemUnlockState(v76, a2, v3); if ( !qword_14090BFD0 ) { v204 = (void **)operator new(0x6E8u); qword_14090BFD0 = GameManager::GameManager((__int64)v204); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0); if ( !qword_14090BFD0 ) { v204 = (void **)operator new(0x6E8u); qword_14090BFD0 = GameManager::GameManager((__int64)v204); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0); } } v79 = GameManager::unlockTypeToIconType(v77, v3); isIconUnlocked = GameManager::isIconUnlocked(v80, a2, v79); v201 = isIconUnlocked; *(_OWORD *)v222 = 0; v223 = 0; v224 = 15; LOBYTE(v222[0]) = 0; *(_OWORD *)v214 = 0; v215 = 0; v216 = 15; LOBYTE(v214[0]) = 0; *(_OWORD *)v210 = 0; *(_QWORD *)&v211 = 0; *((_QWORD *)&v211 + 1) = 15; LOBYTE(v210[0]) = 0; switch ( ItemUnlockState ) { case 5: *(_QWORD *)&v211 = 11; strcpy((char *)v210, "Secret Shop"); v85 = (const char *)v220; if ( v221 > 0xF ) v85 = (const char *)v220[0]; v86 = cocos2d::CCString::createWithFormat( "There may or may not exist a shop where you can buy this %s.", v85); v87 = (char *)cocos2d::CCString::getCString(v86); v88 = -1; do ++v88; while ( v87[v88] ); LABEL_78: sub_1400405A0(v222, v87, v88); break; case 6: *(_QWORD *)&v211 = 14; strcpy((char *)v210, "Community Shop"); v99 = (const char *)v220; if ( v221 > 0xF ) v99 = (const char *)v220[0]; v100 = cocos2d::CCString::createWithFormat( "You can buy this %s in the community shop!", v99); v87 = (char *)cocos2d::CCString::getCString(v100); v88 = -1; do ++v88; while ( v87[v88] ); goto LABEL_78; case 7: *(_QWORD *)&v211 = 13; strcpy((char *)v210, "Mechanic Shop"); v101 = (const char *)v220; if ( v221 > 0xF ) v101 = (const char *)v220[0]; v102 = cocos2d::CCString::createWithFormat("You can buy this %s at the Mechanic!", v101); v87 = (char *)cocos2d::CCString::getCString(v102); v88 = -1; do ++v88; while ( v87[v88] ); goto LABEL_78; case 8: *(_QWORD *)&v211 = 12; strcpy((char *)v210, "Diamond Shop"); v103 = (const char *)v220; if ( v221 > 0xF ) v103 = (const char *)v220[0]; v104 = cocos2d::CCString::createWithFormat( "You can buy this %s in the diamond shop!", v103); v87 = (char *)cocos2d::CCString::getCString(v104); v88 = -1; do ++v88; while ( v87[v88] ); goto LABEL_78; case 4: *(_QWORD *)&v211 = 4; strcpy((char *)v210, "Shop"); v105 = (const char *)v220; if ( v221 > 0xF ) v105 = (const char *)v220[0]; v106 = cocos2d::CCString::createWithFormat("You can buy this %s in the shop!", v105); v87 = (char *)cocos2d::CCString::getCString(v106); v88 = -1; do ++v88; while ( v87[v88] ); goto LABEL_78; case 2: *(_QWORD *)&v211 = 12; strcpy((char *)v210, "Secret Chest"); v107 = (const char *)v220; if ( v221 > 0xF ) v107 = (const char *)v220[0]; v108 = cocos2d::CCString::createWithFormat( "You can find this %s in a secret chest!", v107); v109 = (char *)cocos2d::CCString::getCString(v108); v110 = -1; do ++v110; while ( v109[v110] ); sub_1400405A0(v222, v109, v110); v111 = v214; if ( v216 > 0xF ) v111 = (void **)v214[0]; v215 = 0; *(_BYTE *)v111 = 0; switch ( ~(int)(float)((float)((float)rand() / -32767.0) * 10.0) ) { case 0: sub_140040580(v214, "Nothing happened."); goto LABEL_79; case 1: sub_140040580(v214, "Without a key, it cannot be."); goto LABEL_79; case 2: sub_140040580(v214, "Why you click?"); goto LABEL_79; case 3: sub_140040580(v214, "You are not yet ready."); goto LABEL_79; case 4: sub_140040580(v214, "A key, you must have."); goto LABEL_79; case 5: sub_140040580(v214, "The lock wont budge."); goto LABEL_79; case 6: sub_140040580(v214, "A demon guards it. Find him."); goto LABEL_79; case 7: sub_140040580(v214, "You have no power here."); goto LABEL_79; case 8: sub_140040580(v214, "Forget about this one."); goto LABEL_79; default: v112 = v216; if ( v216 < 0x20 ) { v114 = v216 >> 1; if ( v216 <= 0x7FFFFFFFFFFFFFFFLL - (v216 >> 1) ) { v115 = 47; if ( v216 + v114 > 0x2F ) v115 = v216 + v114; } else { v115 = 0x7FFFFFFFFFFFFFFFLL; } v116 = (char *)sub_14003D460(v115 + 1); v215 = 32; v216 = v115; strcpy(v116, "A key... My kingdom for a key..."); if ( v112 > 0xF ) { v117 = v214[0]; if ( v112 + 1 >= 0x1000 ) { v117 = *((void **)v214[0] - 1); if ( (unsigned __int64)((char *)v214[0] - (char *)v117 - 8) > 0x1F ) goto LABEL_242; } j_j_free(v117); } v214[0] = v116; v3 = v202; isIconUnlocked = v201; } else { v113 = v214[0]; v215 = 32; memmove(v214[0], "A key... My kingdom for a key...", 0x20u); v113[32] = 0; isIconUnlocked = v201; } break; } break; case 3: *(_QWORD *)&v211 = 13; strcpy((char *)v210, "Special Chest"); v118 = (const char *)v220; if ( v221 > 0xF ) v118 = (const char *)v220[0]; v119 = cocos2d::CCString::createWithFormat( "You can find this %s in a special chest!", v118); v120 = (char *)cocos2d::CCString::getCString(v119); v121 = -1; do ++v121; while ( v120[v121] ); sub_1400405A0(v222, v120, v121); v122 = v214; if ( v216 > 0xF ) v122 = (void **)v214[0]; v215 = 0; *(_BYTE *)v122 = 0; switch ( ~(int)(float)((float)((float)rand() / -32767.0) * 10.0) ) { case 0: sub_140040580(v214, "That wont work."); break; case 1: sub_140040580(v214, "You must do something."); break; case 2: sub_140040580(v214, "It cannot be done."); break; case 3: sub_140040580(v214, "Prove that you are worthy."); break; case 4: sub_140040580(v214, "Need. More. Power."); break; case 5: sub_140040580(v214, "Player used tap.\nIt's not very effective."); break; case 6: sub_140040580(v214, "A wild lock appeared!"); break; case 7: sub_140040580(v214, "You are not ready."); break; case 8: sub_140040580(v214, "ehehehehehe..."); break; default: sub_140040580(v214, "IMPOSSIBRU!"); break; } break; case 1: v123 = AchievementManager::sharedState(v82, v81, v84); AchievementManager::achievementForUnlock(v123, v228, a2, v3); v127 = v228; if ( v229 > 0xF ) v127 = (_QWORD *)v228[0]; v128 = AchievementManager::sharedState(v125, v124, v126); v129 = AchievementManager::getAchievementsWithID(v128, (__int64)v127); *(_OWORD *)Block = 0; v218 = 5; v219 = 15; strcpy((char *)Block, "title"); v130 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(v129, Block); v131 = cocos2d::CCString::getCString(v130); *(_OWORD *)v212 = 0; v213 = 0u; v132 = -1; do ++v132; while ( v131[v132] ); sub_14003D230(v212, v131, v132); if ( v219 > 0xF ) { v133 = Block[0]; if ( v219 + 1 >= 0x1000 ) { v133 = *((void **)Block[0] - 1); if ( (unsigned __int64)((char *)Block[0] - (char *)v133 - 8) > 0x1F ) invoke_watson(nullptr, nullptr, nullptr, 0, 0); } j_j_free(v133); } v218 = 0; v219 = 15; LOBYTE(Block[0]) = 0; sub_14003D310((__int64)v228); if ( *((_QWORD *)&v211 + 1) > 0xFu ) { v134 = v210[0]; if ( (unsigned __int64)(*((_QWORD *)&v211 + 1) + 1LL) >= 0x1000 ) { v134 = *((void **)v210[0] - 1); if ( (unsigned __int64)((char *)v210[0] - (char *)v134 - 8) > 0x1F ) invoke_watson(nullptr, nullptr, nullptr, 0, 0); } j_j_free(v134); } *(_OWORD *)v210 = *(_OWORD *)v212; v211 = v213; GJGarageLayer::descriptionForUnlock(v233, (unsigned int)a2, (unsigned int)v3); v135 = (const char *)v220; if ( v221 > 0xF ) v135 = (const char *)v220[0]; v136 = (const char *)v233; if ( v233[3] > 0xFu ) v136 = (const char *)v233[0]; v137 = cocos2d::CCString::createWithFormat("%s to unlock this %s!", v136, v135); v138 = (char *)cocos2d::CCString::getCString(v137); do ++v22; while ( v138[v22] ); sub_1400405A0(v222, v138, v22); sub_14003D310((__int64)v233); goto LABEL_227; } LABEL_79: v89 = (_QWORD *)qword_14090BFE0; if ( !qword_14090BFE0 ) { v204 = (void **)operator new(0x3E8u); qword_14090BFE0 = sub_1402D6480((__int64)v204); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFE0 + 72LL))(qword_14090BFE0); v89 = (_QWORD *)qword_14090BFE0; } GameStatsManager::getSpecialUnlockDescription(v89, (__int64)v228, a2, v3); if ( v228[2] ) { v90 = (const char *)v220; if ( v221 > 0xF ) v90 = (const char *)v220[0]; v91 = (const char *)v228; if ( v229 > 0xF ) v91 = (const char *)v228[0]; v92 = cocos2d::CCString::createWithFormat("%s to unlock this %s!", v91, v90); v93 = (char *)cocos2d::CCString::getCString(v92); v94 = -1; do ++v94; while ( v93[v94] ); sub_1400405A0(v222, v93, v94); v95 = v214; if ( v216 > 0xF ) v95 = (void **)v214[0]; v215 = 0; *(_BYTE *)v95 = 0; } sub_14003D310((__int64)v228); if ( !ItemUnlockState ) { if ( !isIconUnlocked ) { v148 = v223; if ( v223 ) { LABEL_228: v204 = Block; *(_OWORD *)Block = 0; v218 = 0; v219 = 0; v157 = v222; if ( v224 > 0xF ) v157 = (void **)v222[0]; if ( v148 > 0x7FFFFFFFFFFFFFFFLL ) sub_140009D90(v96); if ( v148 > 0xF ) { if ( (v148 | 0xF) <= 0x7FFFFFFFFFFFFFFFLL ) { v38 = v148 | 0xF; if ( (v148 | 0xF) < 0x16 ) v38 = 22; } Block[0] = sub_14003D460(v38 + 1); v218 = v148; v219 = v38; memcpy(Block[0], v157, v148 + 1); } else { v218 = v148; v219 = 15; *(_OWORD *)Block = *(_OWORD *)v157; } cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v202, 0.5, 1.0); v165 = TextArea::create((__int64)Block, &qword_140704F78, 1.0, 600.0, v164, 1109917696, 0, 0); v166 = v206; (*(void (__fastcall **)(_QWORD, char *, __int64))(**(_QWORD **)(v206 + 584) + 456LL))( *(_QWORD *)(v206 + 584), v165, 10); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v204, 0.0, -2.0); cocos2d::CCPoint::operator+(v209, &v203, v167); (*(void (__fastcall **)(char *, void ***))(*(_QWORD *)v165 + 184LL))(v165, &v203); (*(void (__fastcall **)(char *))(*(_QWORD *)v165 + 160LL))(v165); if ( v215 ) { v168 = v214; if ( v216 > 0xF ) v168 = (void **)v214[0]; v169 = cocos2d::CCLabelBMFont::create((const char *)v168, "chatFont.fnt"); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v204, 0.0, -35.0); cocos2d::CCPoint::operator+(v209, &v203, v170); (*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *, void ***))(*(_QWORD *)v169 + 184LL))(v169, &v203); (*(void (__fastcall **)(_QWORD, struct cocos2d::CCLabelBMFont *))(**(_QWORD **)(v166 + 584) + 464LL))( *(_QWORD *)(v166 + 584), v169); (*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *))(*(_QWORD *)v169 + 160LL))(v169); (**((void (__fastcall ***)(__int64, void *))v169 + 46))((__int64)v169 + 368, &unk_140703468); LOBYTE(v171) = 75; (*(void (__fastcall **)(__int64, __int64))(*((_QWORD *)v169 + 46) + 40LL))((__int64)v169 + 368, v171); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v212, 0.0, 5.0); v173 = v172; v174 = (*(__int64 (__fastcall **)(char *))(*(_QWORD *)v165 + 200LL))(v165); cocos2d::CCPoint::operator+(v174, &v203, v173); (*(void (__fastcall **)(char *, void ***))(*(_QWORD *)v165 + 184LL))(v165, &v203); } goto LABEL_274; } v149 = rand(); switch ( (int)roundf((float)((float)v149 / 32767.0) * 10.0) ) { case 0: v150 = *((_QWORD *)&v211 + 1); if ( *((_QWORD *)&v211 + 1) >= 7u ) goto LABEL_253; v151 = *((_QWORD *)&v211 + 1) >> 1; if ( *((_QWORD *)&v211 + 1) <= (unsigned __int64)(0x7FFFFFFFFFFFFFFFLL - (*((_QWORD *)&v211 + 1) >> 1)) ) { v152 = 15; if ( (unsigned __int64)(v151 + *((_QWORD *)&v211 + 1)) > 0xF ) v152 = v151 + *((_QWORD *)&v211 + 1); } else { v152 = 0x7FFFFFFFFFFFFFFFLL; } v153 = sub_14003D460(v152 + 1); *(_QWORD *)&v211 = 7; *((_QWORD *)&v211 + 1) = v152; *(_DWORD *)v153 = 1852796755; v153[2] = 11822; v153[3] = 46; if ( v150 <= 0xF ) goto LABEL_221; v154 = v210[0]; if ( v150 + 1 < 0x1000 ) goto LABEL_220; v154 = *((void **)v210[0] - 1); if ( (unsigned __int64)((char *)v210[0] - (char *)v154 - 8) <= 0x1F ) goto LABEL_220; goto LABEL_242; case 1: v150 = *((_QWORD *)&v211 + 1); if ( *((_QWORD *)&v211 + 1) < 7u ) { v159 = *((_QWORD *)&v211 + 1) >> 1; if ( *((_QWORD *)&v211 + 1) <= (unsigned __int64)(0x7FFFFFFFFFFFFFFFLL - (*((_QWORD *)&v211 + 1) >> 1)) ) { v160 = 15; if ( (unsigned __int64)(v159 + *((_QWORD *)&v211 + 1)) > 0xF ) v160 = v159 + *((_QWORD *)&v211 + 1); } else { v160 = 0x7FFFFFFFFFFFFFFFLL; } v153 = sub_14003D460(v160 + 1); *(_QWORD *)&v211 = 7; *((_QWORD *)&v211 + 1) = v160; qmemcpy(v153, "Not ye", 6); v153[3] = (unsigned __int8)aNotYet[6]; if ( v150 > 0xF ) { v154 = v210[0]; if ( v150 + 1 >= 0x1000 ) { v154 = *((void **)v210[0] - 1); if ( (unsigned __int64)((char *)v210[0] - (char *)v154 - 8) > 0x1F ) goto LABEL_242; } LABEL_220: j_j_free(v154); } LABEL_221: v3 = v202; v210[0] = v153; } else { v158 = (__int64 *)"Not yet"; LABEL_254: v161 = v210; *(_QWORD *)&v211 = 7; if ( v150 > 0xF ) v161 = (void **)v210[0]; memmove(v161, v158, 7u); *((_BYTE *)v161 + 7) = 0; } LABEL_222: v155 = (const char *)v220; if ( v221 > 0xF ) v155 = (const char *)v220[0]; v156 = cocos2d::CCString::createWithFormat( "This %s can be unlocked in update 2.21.", v155); v147 = (char *)cocos2d::CCString::getCString(v156); do ++v22; while ( v147[v22] ); goto LABEL_226; case 2: sub_140040580(v210, "Huh?"); goto LABEL_222; case 3: sub_140040580(v210, "Stay tuned!"); goto LABEL_222; case 4: sub_140040580(v210, "Coming soon!"); goto LABEL_222; case 5: sub_140040580(v210, "In the oven"); goto LABEL_222; case 6: sub_140040580(v210, "It's cooking"); goto LABEL_222; case 7: sub_140040580(v210, "Wait for it"); goto LABEL_222; case 8: sub_140040580(v210, "Not now"); goto LABEL_222; case 9: sub_140040580(v210, "Unavailable"); goto LABEL_222; case 10: sub_140040580(v210, "Almost there"); goto LABEL_222; default: v150 = *((_QWORD *)&v211 + 1); if ( *((_QWORD *)&v211 + 1) >= 7u ) { LABEL_253: v158 = &qword_14076EDA8; goto LABEL_254; } v162 = *((_QWORD *)&v211 + 1) >> 1; if ( *((_QWORD *)&v211 + 1) <= (unsigned __int64)(0x7FFFFFFFFFFFFFFFLL - (*((_QWORD *)&v211 + 1) >> 1)) ) { v163 = 15; if ( (unsigned __int64)(v162 + *((_QWORD *)&v211 + 1)) > 0xF ) v163 = v162 + *((_QWORD *)&v211 + 1); } else { v163 = 0x7FFFFFFFFFFFFFFFLL; } v153 = sub_14003D460(v163 + 1); *(_QWORD *)&v211 = 7; *((_QWORD *)&v211 + 1) = v163; *(_DWORD *)v153 = 1852796755; v153[2] = 11822; v153[3] = 46; if ( v150 <= 0xF ) goto LABEL_221; v154 = v210[0]; if ( v150 + 1 >= 0x1000 ) { v154 = *((void **)v210[0] - 1); if ( (unsigned __int64)((char *)v210[0] - (char *)v154 - 8) > 0x1F ) invoke_watson(nullptr, nullptr, nullptr, 0, 0); } goto LABEL_220; } } if ( v3 == 1 ) { v98 = __OFSUB__(a2, 5); v97 = a2 - 5 < 0; goto LABEL_191; } if ( (unsigned int)(v3 - 2) <= 1 ) { v98 = __OFSUB__(a2, 4); v97 = a2 - 4 < 0; LABEL_191: if ( v97 == v98 ) goto LABEL_227; goto LABEL_192; } if ( a2 < 2 ) { LABEL_192: v139 = *((_QWORD *)&v211 + 1); if ( *((_QWORD *)&v211 + 1) >= 7u ) { v140 = v210; if ( *((_QWORD *)&v211 + 1) > 0xFu ) v140 = (void **)v210[0]; *(_QWORD *)&v211 = 7; memmove(v140, "Default", 7u); *((_BYTE *)v140 + 7) = 0; goto LABEL_205; } v141 = *((_QWORD *)&v211 + 1) >> 1; if ( *((_QWORD *)&v211 + 1) <= (unsigned __int64)(0x7FFFFFFFFFFFFFFFLL - (*((_QWORD *)&v211 + 1) >> 1)) ) { v142 = 15; if ( (unsigned __int64)(v141 + *((_QWORD *)&v211 + 1)) > 0xF ) v142 = v141 + *((_QWORD *)&v211 + 1); } else { v142 = 0x7FFFFFFFFFFFFFFFLL; } v143 = sub_14003D460(v142 + 1); *(_QWORD *)&v211 = 7; *((_QWORD *)&v211 + 1) = v142; qmemcpy(v143, "Defaul", 6); v143[3] = (unsigned __int8)aDefault[6]; if ( v139 <= 0xF ) { LABEL_204: v3 = v202; v210[0] = v143; LABEL_205: v145 = (const char *)v220; if ( v221 > 0xF ) v145 = (const char *)v220[0]; v146 = cocos2d::CCString::createWithFormat("This %s is unlocked by default.", v145); v147 = (char *)cocos2d::CCString::getCString(v146); do ++v22; while ( v147[v22] ); LABEL_226: sub_1400405A0(v222, v147, v22); goto LABEL_227; } v144 = v210[0]; if ( v139 + 1 < 0x1000 || (v144 = *((void **)v210[0] - 1), (unsigned __int64)((char *)v210[0] - (char *)v144 - 8) <= 0x1F) ) { j_j_free(v144); goto LABEL_204; } LABEL_242: invoke_watson(nullptr, nullptr, nullptr, 0, 0); } } LABEL_227: v148 = v223; if ( v223 ) goto LABEL_228; v166 = v206; LABEL_274: if ( (_QWORD)v211 ) { v175 = v210; if ( *((_QWORD *)&v211 + 1) > 0xFu ) v175 = (void **)v210[0]; v176 = cocos2d::CCLabelBMFont::create((const char *)v175, "goldFont.fnt"); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v204, 0.0, 30.0); cocos2d::CCPoint::operator+(v209, &v206, v177); (*(void (__fastcall **)(cocos2d::CCLabelBMFont *, __int64 *))(*(_QWORD *)v176 + 184LL))(v176, &v206); (*(void (__fastcall **)(_QWORD, cocos2d::CCLabelBMFont *))(**(_QWORD **)(v166 + 584) + 464LL))( *(_QWORD *)(v166 + 584), v176); cocos2d::CCLabelBMFont::limitLabelWidth(v176, 180.0, 0.55000001, 0.0); if ( ItemUnlockState == 4 ) (*(void (__fastcall **)(cocos2d::CCLabelBMFont *))(*(_QWORD *)v176 + 160LL))(v176); } v178 = qword_14090BFE0; if ( !qword_14090BFE0 ) { v204 = (void **)operator new(0x3E8u); qword_14090BFE0 = sub_1402D6480((__int64)v204); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFE0 + 72LL))(qword_14090BFE0); v178 = qword_14090BFE0; } v179 = *(__int64 **)(v178 + 944); v180 = (__int64 *)v179[1]; v181 = v179; while ( !*((_BYTE *)v180 + 25) ) { if ( *((_DWORD *)v180 + 7) < a2 || *((_DWORD *)v180 + 7) <= a2 && *((_DWORD *)v180 + 8) < v3 ) { v180 = (__int64 *)v180[2]; } else { v181 = v180; v180 = (__int64 *)*v180; } } if ( *((_BYTE *)v181 + 25) || a2 < *((_DWORD *)v181 + 7) || a2 <= *((_DWORD *)v181 + 7) && v3 < *((_DWORD *)v181 + 8) || v181 == v179 ) { v182 = 0; } else { v182 = *((_DWORD *)v181 + 9); } *(_DWORD *)(v166 + 672) = v182; if ( v182 ) { if ( !v178 ) { v204 = (void **)operator new(0x3E8u); qword_14090BFE0 = sub_1402D6480((__int64)v204); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFE0 + 72LL))(qword_14090BFE0); v178 = qword_14090BFE0; } v183 = *(_DWORD *)(v166 + 672); v184 = *(__int64 **)(v178 + 960); v185 = (__int64 *)v184[1]; v186 = v184; while ( !*((_BYTE *)v185 + 25) ) { if ( *((_DWORD *)v185 + 8) >= v183 ) { v186 = v185; v185 = (__int64 *)*v185; } else { v185 = (__int64 *)v185[2]; } } if ( *((_BYTE *)v186 + 25) || v183 < *((_DWORD *)v186 + 8) || v186 == v184 ) { *(_OWORD *)Block = 0; v188 = 0; v218 = 0; v187 = 15; v219 = 15; LOBYTE(Block[0]) = 0; } else { sub_14003F4F0((__int64)Block, (__int64)(v186 + 5)); v187 = v219; v188 = v218; } if ( v188 ) { v189 = Block; if ( v187 > 0xF ) v189 = (void **)Block[0]; v190 = cocos2d::CCString::createWithFormat("By %s", (const char *)v189); v191 = cocos2d::CCString::getCString(v190); v192 = cocos2d::CCLabelBMFont::create(v191, "goldFont.fnt"); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)&v203, (float)((float)(v207 * 0.5) + 150.0) - 60.0, (float)((float)(v208 * 0.5) - 115.0) + 21.0); cocos2d::CCLabelBMFont::limitLabelWidth(v192, 100.0, 0.5, 0.0); v193 = CCMenuItemSpriteExtra::create((int)v192, 0, v166, (__int64)ItemInfoPopup::onCredit); (*(void (__fastcall **)(_QWORD, cocos2d::CCObject *))(**(_QWORD **)(v166 + 552) + 464LL))( *(_QWORD *)(v166 + 552), v193); v194 = *(_QWORD *)v193; cocos2d::CCNode::convertToNodeSpace(*(_QWORD *)(v166 + 552), v212, &v203); (*(void (__fastcall **)(cocos2d::CCObject *, __int64))(v194 + 184))(v193, v195); if ( *(int *)(v166 + 672) <= 0 ) { LOWORD(v202) = -166; BYTE2(v202) = -1; (**((void (__fastcall ***)(__int64, __int64 *))v192 + 46))((__int64)v192 + 368, &v202); (*(void (__fastcall **)(cocos2d::CCObject *, _QWORD))(*(_QWORD *)v193 + 936LL))(v193, 0); } v187 = v219; } if ( v187 > 0xF ) { v196 = Block[0]; if ( v187 + 1 >= 0x1000 ) { v196 = *((void **)Block[0] - 1); if ( (unsigned __int64)((char *)Block[0] - (char *)v196 - 8) > 0x1F ) invoke_watson(nullptr, nullptr, nullptr, 0, 0); } j_j_free(v196); } } if ( *((_QWORD *)&v211 + 1) > 0xFu ) { v197 = v210[0]; if ( (unsigned __int64)(*((_QWORD *)&v211 + 1) + 1LL) >= 0x1000 ) { v197 = *((void **)v210[0] - 1); if ( (unsigned __int64)((char *)v210[0] - (char *)v197 - 8) > 0x1F ) invoke_watson(nullptr, nullptr, nullptr, 0, 0); } j_j_free(v197); } *(_QWORD *)&v211 = 0; *((_QWORD *)&v211 + 1) = 15; LOBYTE(v210[0]) = 0; if ( v216 > 0xF ) { v198 = v214[0]; if ( v216 + 1 >= 0x1000 ) { v198 = *((void **)v214[0] - 1); if ( (unsigned __int64)((char *)v214[0] - (char *)v198 - 8) > 0x1F ) invoke_watson(nullptr, nullptr, nullptr, 0, 0); } j_j_free(v198); } v215 = 0; v216 = 15; LOBYTE(v214[0]) = 0; if ( v224 > 0xF ) { v199 = v222[0]; if ( v224 + 1 >= 0x1000 ) { v199 = *((void **)v222[0] - 1); if ( (unsigned __int64)((char *)v222[0] - (char *)v199 - 8) > 0x1F ) invoke_watson(nullptr, nullptr, nullptr, 0, 0); } j_j_free(v199); } v223 = 0; v224 = 15; LOBYTE(v222[0]) = 0; sub_14003D310((__int64)Src); if ( v227 > 0xF ) { v200 = v225[0]; if ( v227 + 1 >= 0x1000 ) { v200 = *((void **)v225[0] - 1); if ( (unsigned __int64)((char *)v225[0] - (char *)v200 - 8) > 0x1F ) invoke_watson(nullptr, nullptr, nullptr, 0, 0); } j_j_free(v200); } v226 = 0; v227 = 15; LOBYTE(v225[0]) = 0; sub_14003D310((__int64)v220); return 1; }
GD Web Decomp Icon

GD Web Decomp

Raw Source