// // SecretLayer2::onSubmit from 0x14057ad00 to 0x14057ca4d (7501 bytes) // // 2 xrefs: // > SecretLayer2::init @ 0x140578c94 // > @ 0x14092c87c // // 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:34:24 +0000 // // Hidden C++ exception states: #wind=18 void __fastcall SecretLayer2::onSubmit(__int64 a1) { __int64 v2; // rcx _BYTE *v3; // rax size_t v4; // r8 __int64 v5; // rcx void **v6; // r15 unsigned __int64 v7; // rbx __int64 v8; // r14 unsigned __int64 v9; // r13 unsigned __int64 v10; // rdx unsigned int v11; // r15d __int64 v12; // r14 void **v13; // rcx void **v14; // rbx size_t v15; // r12 unsigned __int64 v16; // r8 unsigned __int64 v17; // r14 void **v18; // r10 void **v19; // r15 char *v20; // rbx __int64 v21; // rax char *v22; // r9 void *v23; // rcx void *v24; // rcx void **v25; // rcx unsigned __int64 v26; // r15 size_t v27; // r8 __int64 v28; // rdx __int64 v29; // rcx int v30; // ebx __int64 v31; // r8 __int64 v32; // rbx cocos2d::CCString *v33; // rax __int64 v34; // rcx int v35; // ebx __int64 v36; // r8 unsigned __int64 v37; // rdx void *v38; // r8 __int64 v39; // r14 __int64 v40; // rbx cocos2d::CCString *v41; // rax int v42; // ebx void *v43; // r8 __int64 v44; // rdx __int64 v45; // rcx __int64 v46; // r8 __int64 v47; // rax __int64 v48; // rcx int v49; // ebx void **v50; // rcx __int64 v51; // rdx __int64 v52; // rcx __int64 v53; // r8 __int64 v54; // rbx cocos2d::CCString *v55; // rax __int64 v56; // rcx int v57; // ebx __int64 v58; // r8 unsigned __int64 v59; // rdx void *v60; // r8 __int64 v61; // r14 __int64 v62; // rbx cocos2d::CCString *v63; // rax int v64; // ebx void *v65; // r8 __int64 v66; // rdx __int64 v67; // rcx __int64 v68; // r8 __int64 v69; // rax bool UGV; // al __int64 v71; // rdx __int64 v72; // rcx __int64 v73; // r8 unsigned __int64 v74; // r13 unsigned __int64 v75; // rbx unsigned __int64 v76; // r15 __int64 v77; // r14 void **v78; // rcx size_t v79; // r8 char v80; // r12 __int64 v81; // rax __int64 v82; // rbx cocos2d::CCString *v83; // rax int v84; // ebx void *v85; // r8 int v86; // ecx __int64 v87; // rdx __int64 v88; // rcx __int64 v89; // r8 __int64 v90; // r14 __int64 v91; // rbx cocos2d::CCString *v92; // rax int v93; // ebx void *v94; // r8 __int64 v95; // rdx __int64 v96; // rcx __int64 v97; // r8 __int64 v98; // rax __int64 v99; // rcx __int64 v100; // rcx void **v101; // rcx size_t v102; // r8 __int64 v103; // rcx unsigned int Stat; // eax cocos2d::CCString *v105; // rax const char *CString; // rax size_t v107; // r8 void **v108; // rdx _BYTE *v109; // r14 unsigned __int64 v110; // r13 void **v111; // rcx size_t v112; // r15 size_t v113; // r8 size_t v114; // r12 __int64 v115; // rdx __int64 v116; // rcx int v117; // ebx __int64 v118; // r8 _BYTE *v119; // rax __int64 v120; // rbx cocos2d::CCString *v121; // rax __int64 v122; // rcx int v123; // ebx __int64 v124; // r8 unsigned __int64 v125; // rdx void *v126; // r8 __int64 v127; // r14 __int64 v128; // rbx cocos2d::CCString *v129; // rax int v130; // ebx void *v131; // r8 __int64 v132; // rax __int64 v133; // rdx __int64 v134; // rcx __int64 v135; // r8 __int64 v136; // rax __int64 v137; // rax void **v138; // rcx unsigned __int64 v139; // r15 size_t v140; // r8 __int64 v141; // rdx __int64 v142; // rcx int v143; // ebx __int64 v144; // r8 __int64 v145; // rax __int64 v146; // rax float v147; // xmm1_4 void **v148; // rdx void **v149; // rcx size_t v150; // rbx size_t v151; // r8 size_t v152; // r14 bool v153; // bl __int64 v154; // rdx __int64 v155; // rcx __int64 v156; // r8 __int64 v157; // rax __int64 v158; // rax bool v159; // bl __int64 v160; // rdx __int64 v161; // rcx __int64 v162; // r8 __int64 v163; // rax __int64 v164; // rax bool v165; // bl __int64 v166; // rdx __int64 v167; // rcx __int64 v168; // r8 __int64 v169; // rax __int64 v170; // rax bool v171; // bl __int64 v172; // rax __int64 v173; // rax bool v174; // bl __int64 v175; // rax __int64 v176; // rax __int64 v177; // rbx __int64 v178; // rax bool v179; // bl __int64 ErrorMessage; // rax bool v181; // bl bool v182; // bl bool v183; // bl bool v184; // bl int v185; // ebx __int64 Message; // rax __int64 v187; // rdx __int64 v188; // rcx __int64 v189; // r8 __int64 v190; // rax __int64 v191; // rax __int64 v192; // rdx __int64 v193; // rcx __int64 v194; // r8 __int64 v195; // rbx cocos2d::CCString *v196; // rax __int64 v197; // rcx int v198; // ebx __int64 v199; // r8 unsigned __int64 v200; // rdx void *v201; // r8 __int64 v202; // r14 __int64 v203; // rbx cocos2d::CCString *v204; // rax int v205; // ebx void *v206; // r8 __int64 v207; // rdx __int64 v208; // rcx __int64 v209; // r8 __int64 v210; // rax __int64 v211; // [rsp+30h] [rbp-89h] BYREF void **v212; // [rsp+38h] [rbp-81h] void *Buf2[2]; // [rsp+40h] [rbp-79h] BYREF size_t v214; // [rsp+50h] [rbp-69h] unsigned __int64 v215; // [rsp+58h] [rbp-61h] void *Block[2]; // [rsp+60h] [rbp-59h] BYREF __int64 v217; // [rsp+70h] [rbp-49h] unsigned __int64 v218; // [rsp+78h] [rbp-41h] void *v219[2]; // [rsp+80h] [rbp-39h] BYREF size_t Size; // [rsp+90h] [rbp-29h] unsigned __int64 v221; // [rsp+98h] [rbp-21h] void *Buf1[2]; // [rsp+A0h] [rbp-19h] BYREF size_t v223; // [rsp+B0h] [rbp-9h] unsigned __int64 v224; // [rsp+B8h] [rbp-1h] void *Src[2]; // [rsp+C0h] [rbp+7h] BYREF size_t v226; // [rsp+D0h] [rbp+17h] unsigned __int64 v227; // [rsp+D8h] [rbp+1Fh] LODWORD(v211) = 0; v2 = *(_QWORD *)(*(_QWORD *)(a1 + 456) + 592LL) + 600LL; v3 = (_BYTE *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v2 + 8LL))(v2); *(_OWORD *)Src = 0; v226 = 0; v227 = 0; v4 = -1; do ++v4; while ( v3[v4] ); sub_14003D230(Src, v3, v4); LODWORD(v211) = 2; *(_OWORD *)Buf1 = 0; v223 = 0; v224 = 0; v6 = Src; if ( v227 > 0xF ) v6 = (void **)Src[0]; v7 = v226; v8 = 0x7FFFFFFFFFFFFFFFLL; if ( v226 > 0x7FFFFFFFFFFFFFFFLL ) sub_140009D90(v5); v9 = 15; if ( v226 > 0xF ) { if ( (v226 | 0xF) <= 0x7FFFFFFFFFFFFFFFLL ) { v8 = v226 | 0xF; if ( (v226 | 0xF) < 0x16 ) v8 = 22; } Buf1[0] = sub_14003D460(v8 + 1); v223 = v7; v224 = v8; memcpy(Buf1[0], v6, v7 + 1); v10 = v8; } else { v223 = v226; v10 = 15; v224 = 15; *(_OWORD *)Buf1 = *(_OWORD *)v6; } v11 = 0; if ( v7 ) { v12 = 0; do { v13 = Buf1; if ( v10 > 0xF ) v13 = (void **)Buf1[0]; v14 = Buf1; if ( v10 > 0xF ) v14 = (void **)Buf1[0]; *((_BYTE *)v14 + v12) = tolower(*((char *)v13 + v12)); v12 = ++v11; v7 = v223; v10 = v224; } while ( v11 < v223 ); } *(_OWORD *)Buf2 = 0; v15 = 0; v214 = 0; v215 = 15; LOBYTE(Buf2[0]) = 0; *(_OWORD *)Block = 0; v16 = 1; v217 = 1; v218 = 15; LOWORD(Block[0]) = (unsigned __int8)asc_1406ED6E4[0]; v17 = 0; while ( 1 ) { v18 = Block; if ( v218 > 0xF ) v18 = (void **)Block[0]; v19 = Buf1; if ( v10 > 0xF ) v19 = (void **)Buf1[0]; if ( v16 > v7 || v17 > v7 - v16 ) break; if ( v16 ) { v20 = (char *)v19 + v7; v21 = sub_1406774C0((char *)v19 + v17, v20, v18, v16); if ( (char *)v21 == v20 ) break; v17 = v21 - (_QWORD)v19; v16 = v217; } if ( v17 == -1 ) break; v22 = (char *)Buf2; if ( v9 > 0xF ) v22 = (char *)Buf2[0]; sub_140045CE0(Buf1, v17, v16, v22, v15); v15 = v214; v17 += v214; v10 = v224; v7 = v223; v9 = v215; v16 = v217; } if ( v218 > 0xF ) { v23 = Block[0]; if ( v218 + 1 >= 0x1000 ) { v23 = *((void **)Block[0] - 1); if ( (unsigned __int64)((char *)Block[0] - (char *)v23 - 8) > 0x1F ) invoke_watson(nullptr, nullptr, nullptr, 0, 0); } j_j_free(v23); } v217 = 0; v218 = 15; LOBYTE(Block[0]) = 0; if ( v9 > 0xF ) { v24 = Buf2[0]; if ( v9 + 1 >= 0x1000 ) { v24 = *((void **)Buf2[0] - 1); if ( (unsigned __int64)((char *)Buf2[0] - (char *)v24 - 8) > 0x1F ) invoke_watson(nullptr, nullptr, nullptr, 0, 0); } j_j_free(v24); } *(_OWORD *)v219 = 0; Size = 0; v221 = 15; LOBYTE(v219[0]) = 0; CCTextInputNode::setString(*(_QWORD **)(a1 + 456), v219); Buf2[1] = (void *)29285; v214 = 10; v215 = 15; Buf2[0] = (void *)0x776F706E69617262LL; v25 = Buf1; if ( v224 > 0xF ) v25 = (void **)Buf1[0]; v26 = v223; v27 = v223; if ( v223 > 0xA ) v27 = 10; v30 = memcmp(v25, Buf2, v27); if ( !v30 ) { if ( v26 >= 0xA ) v30 = v26 > 0xA; else v30 = -1; } if ( !v30 ) { v32 = AchievementManager::sharedState(v29, v28, v31); *(_OWORD *)Block = 0; v217 = 0; v218 = 0; Block[0] = sub_14003D460(0x20u); v217 = 24; v218 = 31; strcpy((char *)Block[0], "geometry.ach.v2.secret01"); v33 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(*(_QWORD *)(v32 + 352), Block); v35 = cocos2d::CCString::intValue(v33); v37 = v218; if ( v218 > 0xF ) { v38 = Block[0]; if ( v218 + 1 >= 0x1000 ) { v38 = *((void **)Block[0] - 1); if ( (unsigned __int64)((char *)Block[0] - (char *)v38 - 8) > 0x1F ) invoke_watson(nullptr, nullptr, nullptr, 0, 0); } j_j_free(v38); } v217 = 0; v218 = 15; LOBYTE(Block[0]) = 0; if ( v35 < 100 ) { v39 = qword_14090BFD0; if ( !qword_14090BFD0 ) { v212 = (void **)operator new(0x6E8u); qword_14090BFD0 = GameManager::GameManager((__int64)v212); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0); v39 = qword_14090BFD0; } v40 = AchievementManager::sharedState(v34, v37, v36); *(_OWORD *)Buf2 = 0; v214 = 0; v215 = 0; Buf2[0] = sub_14003D460(0x20u); v214 = 24; v215 = 31; strcpy((char *)Buf2[0], "geometry.ach.v2.secret01"); v41 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(*(_QWORD *)(v40 + 352), Buf2); v42 = cocos2d::CCString::intValue(v41); if ( v215 > 0xF ) { v43 = Buf2[0]; if ( v215 + 1 >= 0x1000 ) { v43 = *((void **)Buf2[0] - 1); if ( (unsigned __int64)((char *)Buf2[0] - (char *)v43 - 8) > 0x1F ) invoke_watson(nullptr, nullptr, nullptr, 0, 0); } j_j_free(v43); } if ( v42 < 100 ) { *(_OWORD *)Buf2 = 0; v214 = 0; v215 = 0; Buf2[0] = sub_14003D460(0x20u); v214 = 24; v215 = 31; strcpy((char *)Buf2[0], "geometry.ach.v2.secret01"); GameManager::completedAchievement(v39, (__int64)Buf2); v47 = AchievementManager::sharedState(v45, v44, v46); AchievementManager::reportAchievementWithID(v47, (__int64)"geometry.ach.v2.secret01", 100); } *(_OWORD *)Buf2 = 0; v214 = 0; v215 = 0; Buf2[0] = sub_14003D460(0x30u); v214 = 46; v215 = 47; strcpy((char *)Buf2[0], "O-oooooooooo AAAAE-A-A-I-A-U- JO-oooooooooooo!"); SecretLayer2::updateMessageLabel(a1, Buf2); LOWORD(v211) = -256; BYTE2(v211) = -1; (**(void (__fastcall ***)(__int64, __int64 *))(*(_QWORD *)(a1 + 464) + 368LL))( *(_QWORD *)(a1 + 464) + 368LL, &v211); cocos2d::CCLabelBMFont::limitLabelWidth(*(cocos2d::CCLabelBMFont **)(a1 + 464), 400.0, 0.80000001, 0.0); *(_DWORD *)(a1 + 440) = 0; goto LABEL_245; } LABEL_221: v185 = *(_DWORD *)(a1 + 440); Message = SecretLayer2::getMessage(a1, v219); SecretLayer2::updateMessageLabel(a1, Message); if ( v185 > 0 || *(int *)(a1 + 440) > 0 ) (**(void (__fastcall ***)(__int64, void *))(*(_QWORD *)(a1 + 464) + 368LL))( *(_QWORD *)(a1 + 464) + 368LL, &unk_140704644); else (**(void (__fastcall ***)(__int64, __int16 *))(*(_QWORD *)(a1 + 464) + 368LL))( *(_QWORD *)(a1 + 464) + 368LL, &word_140704648); goto LABEL_245; } v48 = qword_14090BFD0; if ( !qword_14090BFD0 ) { v212 = (void **)operator new(0x6E8u); qword_14090BFD0 = GameManager::GameManager((__int64)v212); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0); v48 = qword_14090BFD0; } v49 = *(_DWORD *)(v48 + 936) - *(_DWORD *)(v48 + 940); if ( v49 > 0 ) { v50 = Src; if ( v227 > 0xF ) v50 = (void **)Src[0]; if ( atoi((const char *)v50) == v49 ) { v54 = AchievementManager::sharedState(v52, v51, v53); *(_OWORD *)Block = 0; v217 = 0; v218 = 0; Block[0] = sub_14003D460(0x20u); v217 = 24; v218 = 31; strcpy((char *)Block[0], "geometry.ach.v2.secret02"); v55 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(*(_QWORD *)(v54 + 352), Block); v57 = cocos2d::CCString::intValue(v55); v59 = v218; if ( v218 > 0xF ) { v60 = Block[0]; if ( v218 + 1 >= 0x1000 ) { v60 = *((void **)Block[0] - 1); if ( (unsigned __int64)((char *)Block[0] - (char *)v60 - 8) > 0x1F ) invoke_watson(nullptr, nullptr, nullptr, 0, 0); } j_j_free(v60); } v217 = 0; v218 = 15; LOBYTE(Block[0]) = 0; if ( v57 >= 100 ) goto LABEL_221; v61 = qword_14090BFD0; if ( !qword_14090BFD0 ) { v212 = (void **)operator new(0x6E8u); qword_14090BFD0 = GameManager::GameManager((__int64)v212); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0); v61 = qword_14090BFD0; } v62 = AchievementManager::sharedState(v56, v59, v58); *(_OWORD *)Buf2 = 0; v214 = 0; v215 = 0; Buf2[0] = sub_14003D460(0x20u); v214 = 24; v215 = 31; strcpy((char *)Buf2[0], "geometry.ach.v2.secret02"); v63 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(*(_QWORD *)(v62 + 352), Buf2); v64 = cocos2d::CCString::intValue(v63); if ( v215 > 0xF ) { v65 = Buf2[0]; if ( v215 + 1 >= 0x1000 ) { v65 = *((void **)Buf2[0] - 1); if ( (unsigned __int64)((char *)Buf2[0] - (char *)v65 - 8) > 0x1F ) invoke_watson(nullptr, nullptr, nullptr, 0, 0); } j_j_free(v65); } if ( v64 < 100 ) { *(_OWORD *)Buf2 = 0; v214 = 0; v215 = 0; Buf2[0] = sub_14003D460(0x20u); v214 = 24; v215 = 31; strcpy((char *)Buf2[0], "geometry.ach.v2.secret02"); GameManager::completedAchievement(v61, (__int64)Buf2); v69 = AchievementManager::sharedState(v67, v66, v68); AchievementManager::reportAchievementWithID(v69, (__int64)"geometry.ach.v2.secret02", 100); } v214 = 13; v215 = 15; qmemcpy(Buf2, "Impressive..", 12); HIDWORD(Buf2[1]) = (unsigned __int8)aImpressive[12]; SecretLayer2::updateMessageLabel(a1, Buf2); LOWORD(v211) = -256; BYTE2(v211) = -1; (**(void (__fastcall ***)(__int64, __int64 *))(*(_QWORD *)(a1 + 464) + 368LL))( *(_QWORD *)(a1 + 464) + 368LL, &v211); *(_DWORD *)(a1 + 440) = 0; goto LABEL_245; } v48 = qword_14090BFD0; } if ( !v48 ) { v212 = (void **)operator new(0x6E8u); qword_14090BFD0 = GameManager::GameManager((__int64)v212); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0); v48 = qword_14090BFD0; } UGV = GameManager::getUGV(v48, &word_14070D054); v74 = v224; v75 = v223; if ( !UGV ) { v76 = v218; v77 = (__int64)Block[0]; goto LABEL_102; } Block[1] = nullptr; v217 = 7; v76 = 15; v218 = 15; Block[0] = (void *)0x62756662756C67LL; LODWORD(v211) = 3; v77 = 0x62756662756C67LL; v78 = Buf1; if ( v224 > 0xF ) v78 = (void **)Buf1[0]; v79 = v223; if ( v223 > 7 ) v79 = 7; if ( memcmp(v78, Block, v79) || v75 != 7 ) { LABEL_102: v80 = 0; if ( (v211 & 1) == 0 ) goto LABEL_130; goto LABEL_103; } v80 = 1; LABEL_103: if ( v76 > 0xF ) { v81 = v77; if ( v76 + 1 >= 0x1000 ) { v77 = *(_QWORD *)(v77 - 8); if ( (unsigned __int64)(v81 - v77 - 8) > 0x1F ) goto LABEL_182; } j_j_free((void *)v77); v74 = v224; v75 = v223; } if ( v80 ) { v82 = AchievementManager::sharedState(v72, v71, v73); *(_OWORD *)Block = 0; v217 = 0; v218 = 0; Block[0] = sub_14003D460(0x20u); v217 = 24; v218 = 31; strcpy((char *)Block[0], "geometry.ach.v2.secret03"); v83 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(*(_QWORD *)(v82 + 352), Block); v84 = cocos2d::CCString::intValue(v83); if ( v218 > 0xF ) { v85 = Block[0]; if ( v218 + 1 >= 0x1000 ) { v85 = *((void **)Block[0] - 1); if ( (unsigned __int64)((char *)Block[0] - (char *)v85 - 8) > 0x1F ) invoke_watson(nullptr, nullptr, nullptr, 0, 0); } j_j_free(v85); } v217 = 0; v218 = 15; LOBYTE(Block[0]) = 0; if ( v84 >= 100 ) goto LABEL_221; v212 = Buf2; *(_OWORD *)Buf2 = 0; v214 = 0; v215 = 0; Buf2[0] = sub_14003D460(0x20u); v214 = 18; v215 = 31; strcpy((char *)Buf2[0], "highscoreGet02.ogg"); v86 = qword_14090BF60; if ( !qword_14090BF60 ) { v211 = (__int64)operator new(0x8A8u); qword_14090BF60 = FMODAudioEngine::FMODAudioEngine(v211); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BF60 + 72LL))(qword_14090BF60); v86 = qword_14090BF60; } FMODAudioEngine::playEffect_1(v86, (__int64)Buf2); v90 = qword_14090BFD0; if ( !qword_14090BFD0 ) { v212 = (void **)operator new(0x6E8u); qword_14090BFD0 = GameManager::GameManager((__int64)v212); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0); v90 = qword_14090BFD0; } v91 = AchievementManager::sharedState(v88, v87, v89); *(_OWORD *)Block = 0; v217 = 0; v218 = 0; Block[0] = sub_14003D460(0x20u); v217 = 24; v218 = 31; strcpy((char *)Block[0], "geometry.ach.v2.secret03"); v92 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(*(_QWORD *)(v91 + 352), Block); v93 = cocos2d::CCString::intValue(v92); if ( v218 > 0xF ) { v94 = Block[0]; if ( v218 + 1 >= 0x1000 ) { v94 = *((void **)Block[0] - 1); if ( (unsigned __int64)((char *)Block[0] - (char *)v94 - 8) > 0x1F ) invoke_watson(nullptr, nullptr, nullptr, 0, 0); } j_j_free(v94); } v217 = 0; v218 = 15; LOBYTE(Block[0]) = 0; if ( v93 < 100 ) { *(_OWORD *)v219 = 0; Size = 0; v221 = 0; v219[0] = sub_14003D460(0x20u); Size = 24; v221 = 31; strcpy((char *)v219[0], "geometry.ach.v2.secret03"); GameManager::completedAchievement(v90, (__int64)v219); v98 = AchievementManager::sharedState(v96, v95, v97); AchievementManager::reportAchievementWithID(v98, (__int64)"geometry.ach.v2.secret03", 100); } v99 = qword_14090BFE0; if ( !qword_14090BFE0 ) { v212 = (void **)operator new(0x3E8u); qword_14090BFE0 = sub_1402D6480((__int64)v212); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFE0 + 72LL))(qword_14090BFE0); v99 = qword_14090BFE0; } GameStatsManager::storeSecretCoin(v99, "secretB03"); v100 = qword_14090BFE0; if ( !qword_14090BFE0 ) { v212 = (void **)operator new(0x3E8u); qword_14090BFE0 = sub_1402D6480((__int64)v212); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFE0 + 72LL))(qword_14090BFE0); v100 = qword_14090BFE0; } GameStatsManager::incrementStat(v100, (const char *)&word_14070D038, 1u); *(_OWORD *)v219 = 0; Size = 0; v221 = 0; v219[0] = sub_14003D460(0x20u); Size = 21; v221 = 31; strcpy((char *)v219[0], "NOOOO!! THIEF! THIEF!"); SecretLayer2::updateMessageLabel(a1, v219); SecretLayer2::playCoinEffect(a1); LABEL_244: *(_DWORD *)(a1 + 440) = 0; goto LABEL_245; } LABEL_130: Block[1] = nullptr; v217 = 8; v218 = 15; Block[0] = (void *)0x656275636F74636FLL; v101 = Buf1; if ( v74 > 0xF ) v101 = (void **)Buf1[0]; v102 = v75; if ( v75 > 8 ) v102 = 8; if ( !memcmp(v101, Block, v102) && v75 == 8 ) { sub_14003D310((__int64)Block); v195 = AchievementManager::sharedState(v193, v192, v194); *(_OWORD *)Block = 0; v217 = 0; v218 = 0; Block[0] = sub_14003D460(0x20u); v217 = 24; v218 = 31; strcpy((char *)Block[0], "geometry.ach.v2.secret04"); v196 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(*(_QWORD *)(v195 + 352), Block); v198 = cocos2d::CCString::intValue(v196); v200 = v218; if ( v218 > 0xF ) { v201 = Block[0]; if ( v218 + 1 >= 0x1000 ) { v201 = *((void **)Block[0] - 1); if ( (unsigned __int64)((char *)Block[0] - (char *)v201 - 8) > 0x1F ) invoke_watson(nullptr, nullptr, nullptr, 0, 0); } j_j_free(v201); } v217 = 0; v218 = 15; LOBYTE(Block[0]) = 0; if ( v198 >= 100 ) goto LABEL_245; v202 = qword_14090BFD0; if ( !qword_14090BFD0 ) { v212 = (void **)operator new(0x6E8u); qword_14090BFD0 = GameManager::GameManager((__int64)v212); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0); v202 = qword_14090BFD0; } v203 = AchievementManager::sharedState(v197, v200, v199); *(_OWORD *)Buf2 = 0; v214 = 0; v215 = 0; Buf2[0] = sub_14003D460(0x20u); v214 = 24; v215 = 31; strcpy((char *)Buf2[0], "geometry.ach.v2.secret04"); v204 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(*(_QWORD *)(v203 + 352), Buf2); v205 = cocos2d::CCString::intValue(v204); if ( v215 > 0xF ) { v206 = Buf2[0]; if ( v215 + 1 >= 0x1000 ) { v206 = *((void **)Buf2[0] - 1); if ( (unsigned __int64)((char *)Buf2[0] - (char *)v206 - 8) > 0x1F ) invoke_watson(nullptr, nullptr, nullptr, 0, 0); } j_j_free(v206); } if ( v205 < 100 ) { *(_OWORD *)v219 = 0; Size = 0; v221 = 0; v219[0] = sub_14003D460(0x20u); Size = 24; v221 = 31; strcpy((char *)v219[0], "geometry.ach.v2.secret04"); GameManager::completedAchievement(v202, (__int64)v219); v210 = AchievementManager::sharedState(v208, v207, v209); AchievementManager::reportAchievementWithID(v210, (__int64)"geometry.ach.v2.secret04", 100); } v214 = 15; v215 = 15; strcpy((char *)Buf2, "Ugh... Slippery"); SecretLayer2::updateMessageLabel(a1, Buf2); LOWORD(v211) = -256; BYTE2(v211) = -1; (**(void (__fastcall ***)(__int64, __int64 *))(*(_QWORD *)(a1 + 464) + 368LL))(*(_QWORD *)(a1 + 464) + 368LL, &v211); v147 = 400.0; goto LABEL_243; } sub_14003D310((__int64)Block); v103 = qword_14090BFE0; if ( !qword_14090BFE0 ) { v212 = (void **)operator new(0x3E8u); qword_14090BFE0 = sub_1402D6480((__int64)v212); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFE0 + 72LL))(qword_14090BFE0); v103 = qword_14090BFE0; } Stat = GameStatsManager::getStat(v103, "6"); v105 = cocos2d::CCString::createWithFormat((const char *)&word_1406ED6F8, Stat); CString = cocos2d::CCString::getCString(v105); *(_OWORD *)v219 = 0; Size = 0; v221 = 0; v107 = -1; do ++v107; while ( CString[v107] ); sub_14003D230(v219, CString, v107); v108 = v219; v109 = v219[0]; v110 = v221; if ( v221 > 0xF ) v108 = (void **)v219[0]; v111 = Src; if ( v227 > 0xF ) v111 = (void **)Src[0]; v112 = v226; v113 = v226; v114 = Size; if ( Size < v226 ) v113 = Size; v117 = memcmp(v111, v108, v113); if ( !v117 ) { if ( v112 >= v114 ) v117 = v112 > v114; else v117 = -1; } if ( v110 > 0xF ) { v119 = v109; if ( v110 + 1 < 0x1000 || (v109 = *((_BYTE **)v109 - 1), (unsigned __int64)(v119 - v109 - 8) <= 0x1F) ) { j_j_free(v109); goto LABEL_154; } LABEL_182: invoke_watson(nullptr, nullptr, nullptr, 0, 0); } LABEL_154: if ( !v117 ) { v120 = AchievementManager::sharedState(v116, v115, v118); *(_OWORD *)Block = 0; v217 = 0; v218 = 0; Block[0] = sub_14003D460(0x20u); v217 = 24; v218 = 31; strcpy((char *)Block[0], "geometry.ach.v2.secret05"); v121 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(*(_QWORD *)(v120 + 352), Block); v123 = cocos2d::CCString::intValue(v121); v125 = v218; if ( v218 > 0xF ) { v126 = Block[0]; if ( v218 + 1 >= 0x1000 ) { v126 = *((void **)Block[0] - 1); if ( (unsigned __int64)((char *)Block[0] - (char *)v126 - 8) > 0x1F ) invoke_watson(nullptr, nullptr, nullptr, 0, 0); } j_j_free(v126); } v217 = 0; v218 = 15; LOBYTE(Block[0]) = 0; if ( v123 >= 100 ) goto LABEL_221; v127 = qword_14090BFD0; if ( !qword_14090BFD0 ) { v212 = (void **)operator new(0x6E8u); qword_14090BFD0 = GameManager::GameManager((__int64)v212); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0); v127 = qword_14090BFD0; } v128 = AchievementManager::sharedState(v122, v125, v124); *(_OWORD *)Buf2 = 0; v214 = 0; v215 = 0; Buf2[0] = sub_14003D460(0x20u); v214 = 24; v215 = 31; strcpy((char *)Buf2[0], "geometry.ach.v2.secret05"); v129 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(*(_QWORD *)(v128 + 352), Buf2); v130 = cocos2d::CCString::intValue(v129); if ( v215 > 0xF ) { v131 = Buf2[0]; if ( v215 + 1 >= 0x1000 ) { v131 = *((void **)Buf2[0] - 1); if ( (unsigned __int64)((char *)Buf2[0] - (char *)v131 - 8) > 0x1F ) invoke_watson(nullptr, nullptr, nullptr, 0, 0); } j_j_free(v131); } if ( v130 < 100 ) { v132 = sub_14003D1F0((__int64)v219, (__int64)"geometry.ach.v2.secret05"); GameManager::completedAchievement(v127, v132); v136 = AchievementManager::sharedState(v134, v133, v135); AchievementManager::reportAchievementWithID(v136, (__int64)"geometry.ach.v2.secret05", 100); } v137 = sub_14003D1F0((__int64)v219, (__int64)"I wish I had that many shinies..."); SecretLayer2::updateMessageLabel(a1, v137); LOWORD(v211) = -256; BYTE2(v211) = -1; (**(void (__fastcall ***)(__int64, __int64 *))(*(_QWORD *)(a1 + 464) + 368LL))(*(_QWORD *)(a1 + 464) + 368LL, &v211); goto LABEL_244; } *(_OWORD *)v219 = 0; Size = 5; v221 = 15; strcpy((char *)v219, "seven"); v138 = Buf1; if ( v224 > 0xF ) v138 = (void **)Buf1[0]; v139 = v223; v140 = v223; if ( v223 > 5 ) v140 = 5; v143 = memcmp(v138, v219, v140); if ( !v143 ) { if ( v139 >= 5 ) v143 = v139 > 5; else v143 = -1; } if ( !v143 ) { AchievementManager::sharedState(v142, v141, v144); if ( AchievementManager::isAchievementEarned() ) goto LABEL_245; v145 = GameManager::sharedState(); GameManager::reportAchievementWithID(v145, "geometry.ach.v2.secret06", 100); v146 = sub_14003D1F0((__int64)v219, (__int64)"I should have been a doctor..."); SecretLayer2::updateMessageLabel(a1, v146); LOWORD(v211) = -256; BYTE2(v211) = -1; (**(void (__fastcall ***)(__int64, __int64 *))(*(_QWORD *)(a1 + 464) + 368LL))(*(_QWORD *)(a1 + 464) + 368LL, &v211); v147 = 300.0; goto LABEL_243; } sub_14003D1F0((__int64)Buf2, (__int64)"gimmiethecolor"); v148 = Buf2; if ( v215 > 0xF ) v148 = (void **)Buf2[0]; v149 = Buf1; if ( v224 > 0xF ) v149 = (void **)Buf1[0]; v150 = v223; v151 = v223; v152 = v214; if ( v214 < v223 ) v151 = v214; if ( !memcmp(v149, v148, v151) && v150 >= v152 && v150 <= v152 ) { sub_14003D310((__int64)Buf2); AchievementManager::sharedState(v188, v187, v189); if ( AchievementManager::isAchievementEarned() ) goto LABEL_245; v190 = GameManager::sharedState(); GameManager::reportAchievementWithID(v190, "geometry.ach.v2.secret07", 100); v191 = sub_14003D1F0((__int64)v219, (__int64)"How many colors do you need?"); SecretLayer2::updateMessageLabel(a1, v191); LOWORD(v211) = -256; BYTE2(v211) = -1; (**(void (__fastcall ***)(__int64, __int64 *))(*(_QWORD *)(a1 + 464) + 368LL))(*(_QWORD *)(a1 + 464) + 368LL, &v211); v147 = 300.0; LABEL_243: cocos2d::CCLabelBMFont::limitLabelWidth(*(cocos2d::CCLabelBMFont **)(a1 + 464), v147, 0.80000001, 0.0); goto LABEL_244; } sub_14003D310((__int64)Buf2); sub_14003D1F0((__int64)v219, (__int64)"thechickenisonfire"); v153 = Current_set(Buf1, v219); sub_14003D310((__int64)v219); if ( v153 ) { AchievementManager::sharedState(v155, v154, v156); if ( AchievementManager::isAchievementEarned() ) goto LABEL_245; v157 = GameManager::sharedState(); GameManager::reportAchievementWithID(v157, "geometry.ach.v2.secret08", 100); v158 = sub_14003D1F0((__int64)v219, (__int64)"Indeed it is..."); SecretLayer2::updateMessageLabel(a1, v158); LOWORD(v211) = -256; BYTE2(v211) = -1; (**(void (__fastcall ***)(__int64, __int64 *))(*(_QWORD *)(a1 + 464) + 368LL))(*(_QWORD *)(a1 + 464) + 368LL, &v211); v147 = 300.0; goto LABEL_243; } sub_14003D1F0((__int64)v219, (__int64)"d4shg30me7ry"); v159 = Current_set(Buf1, v219); sub_14003D310((__int64)v219); if ( v159 ) { AchievementManager::sharedState(v161, v160, v162); if ( AchievementManager::isAchievementEarned() ) goto LABEL_221; v163 = GameManager::sharedState(); GameManager::reportAchievementWithID(v163, "geometry.ach.v2.secret09", 100); v164 = sub_14003D1F0((__int64)v219, (__int64)"Good times"); SecretLayer2::updateMessageLabel(a1, v164); LOWORD(v211) = -256; BYTE2(v211) = -1; (**(void (__fastcall ***)(__int64, __int64 *))(*(_QWORD *)(a1 + 464) + 368LL))(*(_QWORD *)(a1 + 464) + 368LL, &v211); v147 = 300.0; goto LABEL_243; } sub_14003D1F0((__int64)v219, (__int64)"thechickenisready"); v165 = Current_set(Buf1, v219); sub_14003D310((__int64)v219); if ( v165 ) { AchievementManager::sharedState(v167, v166, v168); if ( AchievementManager::isAchievementEarned() ) goto LABEL_221; v169 = GameManager::sharedState(); GameManager::reportAchievementWithID(v169, "geometry.ach.v2.secret10", 100); v170 = sub_14003D1F0((__int64)v219, (__int64)"You overcooked it again!"); SecretLayer2::updateMessageLabel(a1, v170); LOWORD(v211) = -256; BYTE2(v211) = -1; (**(void (__fastcall ***)(__int64, __int64 *))(*(_QWORD *)(a1 + 464) + 368LL))(*(_QWORD *)(a1 + 464) + 368LL, &v211); v147 = 300.0; goto LABEL_243; } sub_14003D1F0((__int64)v219, (__int64)"thechallenge"); v171 = Current_set(Buf1, v219); sub_14003D310((__int64)v219); if ( v171 ) { v172 = GameManager::sharedState(); if ( !GameManager::getUGV(v172, &word_14070D060) ) { v173 = sub_14003D1F0((__int64)v219, (__int64)"My level? You want to try it!?"); SecretLayer2::updateMessageLabel(a1, v173); LOWORD(v211) = -256; BYTE2(v211) = -1; (**(void (__fastcall ***)(__int64, __int64 *))(*(_QWORD *)(a1 + 464) + 368LL))( *(_QWORD *)(a1 + 464) + 368LL, &v211); *(_DWORD *)(a1 + 440) = 0; SecretLayer2::showSecretLevel(a1); goto LABEL_245; } goto LABEL_221; } sub_14003D1F0((__int64)v219, (__int64)"cod3breaker"); v174 = Current_set(Buf1, v219); sub_14003D310((__int64)v219); if ( !v174 ) { if ( v226 ) { sub_14003D1F0((__int64)v219, (__int64)"unicorn"); v179 = Current_set(Buf1, v219); sub_14003D310((__int64)v219); if ( v179 ) { ErrorMessage = sub_14003D1F0((__int64)v219, (__int64)"Why do they have a horn?"); } else { sub_14003D1F0((__int64)v219, (__int64)"rubrubpowah123"); v181 = Current_set(Buf1, v219); sub_14003D310((__int64)v219); if ( v181 ) { ErrorMessage = sub_14003D1F0((__int64)v219, (__int64)"Ultimate Haxxor mode enabled. Not..."); } else { sub_14003D1F0((__int64)v219, (__int64)"battop"); v182 = Current_set(Buf1, v219); sub_14003D310((__int64)v219); if ( v182 ) { ErrorMessage = sub_14003D1F0((__int64)v219, (__int64)"He could be watching us right now..."); } else { sub_14003D1F0((__int64)v219, (__int64)"kappa"); v183 = Current_set(Buf1, v219); sub_14003D310((__int64)v219); if ( v183 ) { ErrorMessage = sub_14003D1F0((__int64)v219, (__int64)"There is no Kappa icon..."); } else { sub_14003D1F0((__int64)v219, (__int64)"robtop"); v184 = Current_set(Buf1, v219); sub_14003D310((__int64)v219); if ( v184 ) ErrorMessage = sub_14003D1F0((__int64)v219, (__int64)"RUBRUBRUBRUBRUBRUB"); else ErrorMessage = SecretLayer2::getErrorMessage(a1, v219); } } } } SecretLayer2::updateMessageLabel(a1, ErrorMessage); *(_DWORD *)(a1 + 440) = 0; LOWORD(v211) = -26881; BYTE2(v211) = 0; (**(void (__fastcall ***)(__int64, __int64 *))(*(_QWORD *)(a1 + 464) + 368LL))( *(_QWORD *)(a1 + 464) + 368LL, &v211); goto LABEL_245; } goto LABEL_221; } v175 = sub_14003D1F0((__int64)v219, (__int64)" "); SecretLayer2::updateMessageLabel(a1, v175); *(_DWORD *)(a1 + 440) = 0; v176 = GameManager::sharedState(); if ( *(_DWORD *)(v176 + 936) - *(_DWORD *)(v176 + 940) <= 0 ) { GameManager::sharedState(); GameManager::generateSecretNumber(); } v177 = SecretNumberLayer::create(); (*(void (__fastcall **)(__int64, __int64, __int64))(*(_QWORD *)a1 + 456LL))(a1, v177, 100); v178 = GameManager::sharedState(); SecretNumberLayer::playNumberEffect(v177, (unsigned int)(*(_DWORD *)(v178 + 936) - *(_DWORD *)(v178 + 940))); LABEL_245: sub_14003D310((__int64)Buf1); sub_14003D310((__int64)Src); }
GD Web Decomp Icon

GD Web Decomp

Raw Source