// // SecretLayer2::onSubmit from 0x100497400 to 0x1004987a2 (5026 bytes) // // 1 xrefs: // > SecretLayer2::init @ 0x100496a45 // // 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 12:30:50 +0000 // void __fastcall SecretLayer2::onSubmit(__int64 a1, __m128 a2) { char v2; // al bool v3; // cl unsigned int v4; // ebx std::string::size_type v5; // r15 std::string::size_type size; // r12 std::string::pointer data; // rax char v8; // al std::string::pointer v9; // rcx std::string::pointer v10; // r14 unsigned __int8 v11; // r13 std::string::size_type v12; // rax size_t v13; // rdx char *v14; // r12 char *v15; // rax char *v16; // rax std::string::size_type v17; // rax const std::string::value_type *v18; // rcx std::string::size_type v19; // r8 std::string::size_type v20; // r14 __int64 v21; // rax std::string::size_type v22; // rcx unsigned int v23; // r12d __int64 v24; // r13 _QWORD *v25; // rdi std::string::size_type v26; // rcx std::string::pointer v27; // rdi size_t v28; // rdx __int64 v29; // rax int v30; // ebx int v31; // r14d std::string::pointer v32; // rsi __int64 v33; // rax const char *v34; // rdi __int64 v35; // rax char *v36; // r14 __int64 v37; // rdi void *v38; // rsi int v39; // ebx __int64 v40; // rax __int64 v41; // rax __int64 v42; // rax __int64 v43; // rdi __int64 v44; // rax char UGV; // al unsigned __int128 v46; // kr00_16 unsigned __int64 v47; // r13 char v48; // r15 std::string::pointer v49; // rdi std::string::size_type v50; // rbx size_t v51; // rdx __int64 v52; // rax __int64 v53; // rax __int64 v54; // rax __int64 v55; // rax __int64 v56; // rax char *v57; // rbx size_t v58; // rdx __int64 v59; // rax __int64 v60; // rbx __int64 v61; // rax __int64 v62; // rdi __int64 v63; // rax __int64 v64; // rax const char *CString; // r14 size_t v66; // rax size_t v67; // r13 char *v68; // r15 size_t v69; // r12 char v70; // r14 char *v71; // r12 size_t v72; // rax char *v73; // rdi size_t v74; // rdx bool v75; // zf char *v76; // rsi char v77; // bl std::string::pointer v78; // r15 __int64 v79; // rax __int64 v80; // rax char *v81; // r14 __int64 v82; // rdi std::string::size_type v83; // rbx size_t v84; // rdx __int64 v85; // rax __int64 v86; // rax size_t v87; // rdx __int64 v88; // rax __int64 v89; // rax void *p_s1; // rdi char v91; // bl __int64 v92; // rax __int64 v93; // rax void *v94; // rdi char v95; // bl __int64 v96; // rax __int64 v97; // rax void *v98; // rdi char v99; // bl __int64 v100; // rax __int64 v101; // rax __int64 v102; // rdi char v103; // bl __int64 v104; // rax __int64 v105; // rdi char v106; // bl __int64 v107; // rax __int64 v108; // r14 __int64 v109; // rax size_t v110; // rax char v111; // bl void **v112; // rax __int64 v113; // rdi char v114; // bl char v115; // bl bool v116; // zf char v117; // bl char v118; // bl __int64 v119; // rbx char v120; // [rsp+0h] [rbp-250h] __int16 v121[8]; // [rsp+8h] [rbp-248h] BYREF void *v122; // [rsp+18h] [rbp-238h] void *v123[3]; // [rsp+20h] [rbp-230h] BYREF void *v124[3]; // [rsp+38h] [rbp-218h] BYREF void *v125[3]; // [rsp+50h] [rbp-200h] BYREF void *v126[3]; // [rsp+68h] [rbp-1E8h] BYREF void *v127[3]; // [rsp+80h] [rbp-1D0h] BYREF void *v128[3]; // [rsp+98h] [rbp-1B8h] BYREF void *v129[3]; // [rsp+B0h] [rbp-1A0h] BYREF _QWORD v130[2]; // [rsp+C8h] [rbp-188h] BYREF char v131; // [rsp+D8h] [rbp-178h] BYREF _QWORD v132[2]; // [rsp+E0h] [rbp-170h] BYREF char v133; // [rsp+F0h] [rbp-160h] BYREF _QWORD v134[2]; // [rsp+F8h] [rbp-158h] BYREF char v135; // [rsp+108h] [rbp-148h] BYREF _QWORD v136[2]; // [rsp+110h] [rbp-140h] BYREF char v137; // [rsp+120h] [rbp-130h] BYREF _QWORD v138[2]; // [rsp+128h] [rbp-128h] BYREF char v139; // [rsp+138h] [rbp-118h] BYREF _BYTE v140[16]; // [rsp+140h] [rbp-110h] BYREF char v141; // [rsp+150h] [rbp-100h] BYREF char v142; // [rsp+158h] [rbp-F8h] _BYTE v143[23]; // [rsp+159h] [rbp-F7h] BYREF _BYTE v144[24]; // [rsp+170h] [rbp-E0h] BYREF void *v145[3]; // [rsp+188h] [rbp-C8h] BYREF char v146; // [rsp+1A0h] [rbp-B0h] _BYTE v147[23]; // [rsp+1A1h] [rbp-AFh] BYREF std::string v148; // [rsp+1B8h] [rbp-98h] BYREF size_t __n[2]; // [rsp+1D0h] [rbp-80h] BYREF void *v150; // [rsp+1E0h] [rbp-70h] __int64 v151; // [rsp+1E8h] [rbp-68h] std::string __s1; // [rsp+1F0h] [rbp-60h] BYREF __int128 __s; // [rsp+210h] [rbp-40h] BYREF void *__p; // [rsp+220h] [rbp-30h] CCTextInputNode::getString(__n, *(_QWORD *)(a1 + 456)); if ( (__n[0] & 1) != 0 ) { sub_10001AD30(&__s1, v150, __n[1]); } else { __s1.__r_.__value_.__r.__words[2] = (std::string::size_type)v150; a2 = *(__m128 *)__n; *(_OWORD *)&__s1.__r_.__value_.__l.0 = *(_OWORD *)__n; } v2 = *(_BYTE *)&__s1.__r_.__value_.__s.0 & 1; v3 = (*(_BYTE *)&__s1.__r_.__value_.__s.0 & 1) == 0; if ( (*(_BYTE *)&__s1.__r_.__value_.__s.0 & 1) != 0 ) { if ( __s1.__r_.__value_.__l.__size_ ) goto LABEL_6; LABEL_16: size = 0; goto LABEL_17; } if ( !(*(_BYTE *)&__s1.__r_.__value_.__l.0 >> 1) ) goto LABEL_16; LABEL_6: v4 = 1; v5 = 0; do { while ( 1 ) { data = __s1.__r_.__value_.__s.__data_; if ( !v3 ) data = __s1.__r_.__value_.__l.__data_; v8 = __tolower(data[v5]); v9 = __s1.__r_.__value_.__s.__data_; if ( (*(_BYTE *)&__s1.__r_.__value_.__s.0 & 1) != 0 ) v9 = __s1.__r_.__value_.__l.__data_; v9[v5] = v8; v2 = *(_BYTE *)&__s1.__r_.__value_.__s.0 & 1; v3 = (*(_BYTE *)&__s1.__r_.__value_.__s.0 & 1) == 0; if ( (*(_BYTE *)&__s1.__r_.__value_.__s.0 & 1) == 0 ) break; size = __s1.__r_.__value_.__l.__size_; v5 = v4++; if ( __s1.__r_.__value_.__l.__size_ <= v5 ) goto LABEL_17; } size = *(_BYTE *)&__s1.__r_.__value_.__l.0 >> 1; v5 = v4++; } while ( size > v5 ); LABEL_17: v151 = a1; LOWORD(__s) = 0; v10 = __s1.__r_.__value_.__s.__data_; if ( v2 ) v10 = __s1.__r_.__value_.__l.__data_; v11 = 0; v12 = 0; while ( 2 ) { v13 = size - v12; if ( (__int64)size > (__int64)v12 ) { v14 = &v10[size]; v15 = &v10[v12]; while ( 1 ) { v16 = (char *)memchr(v15, 32, v13); if ( !v16 ) goto LABEL_37; if ( *v16 == 32 ) break; v15 = v16 + 1; v13 = v14 - v15; if ( v14 - v15 <= 0 ) goto LABEL_37; } if ( v16 == v14 ) break; v17 = v16 - v10; if ( v17 == -1 ) break; if ( (v11 & 1) != 0 ) { v18 = (const std::string::value_type *)__p; v19 = *((_QWORD *)&__s + 1); } else { v19 = v11 >> 1; v18 = (char *)&__s + 1; } v20 = v17; std::string::replace(&__s1, v17, 1u, v18, v19); v11 = __s; if ( (__s & 1) != 0 ) { v21 = *((_QWORD *)&__s + 1); v22 = v20; v23 = (unsigned int)__s1.__r_.__value_.__l.0; if ( (*(_BYTE *)&__s1.__r_.__value_.__s.0 & 1) == 0 ) goto LABEL_33; } else { v21 = (unsigned __int8)__s >> 1; v22 = v20; v23 = (unsigned int)__s1.__r_.__value_.__l.0; if ( (*(_BYTE *)&__s1.__r_.__value_.__s.0 & 1) == 0 ) { LABEL_33: size = v23 >> 1; v10 = __s1.__r_.__value_.__s.__data_; v12 = v22 + v21; if ( size >= v12 ) continue; break; } } v10 = __s1.__r_.__value_.__l.__data_; size = __s1.__r_.__value_.__l.__size_; v12 = v22 + v21; if ( __s1.__r_.__value_.__l.__size_ >= v12 ) continue; } break; } LABEL_37: if ( (v11 & 1) != 0 ) operator delete(__p); v24 = v151; v25 = *(_QWORD **)(v151 + 456); v121[0] = 0; CCTextInputNode::setString(v25, (__int64)v121); if ( (v121[0] & 1) != 0 ) operator delete(v122); LOBYTE(__s) = 20; qmemcpy((char *)&__s + 1, "brainpower", 10); v26 = *(_BYTE *)&__s1.__r_.__value_.__l.0 >> 1; v27 = __s1.__r_.__value_.__l.__data_; if ( (*(_BYTE *)&__s1.__r_.__value_.__s.0 & 1) == 0 ) v27 = __s1.__r_.__value_.__s.__data_; BYTE11(__s) = 0; if ( (*(_BYTE *)&__s1.__r_.__value_.__s.0 & 1) != 0 ) v26 = __s1.__r_.__value_.__l.__size_; v28 = 10; if ( v26 < 0xA ) v28 = v26; if ( !((v26 != 10) | (memcmp(v27, (char *)&__s + 1, v28) != 0)) ) { v29 = AchievementManager::sharedState(v27, (char *)&__s + 1); if ( (unsigned __int8)AchievementManager::isAchievementEarned(v29, "geometry.ach.v2.secret01") ) goto LABEL_49; v35 = GameManager::sharedState(); GameManager::reportAchievementWithID(v35, "geometry.ach.v2.secret01", 100, 0); v36 = (char *)operator new(0x30u); strcpy(v36, "O-oooooooooo AAAAE-A-A-I-A-U- JO-oooooooooooo!"); (*(void (__fastcall **)(_QWORD, char *))(**(_QWORD **)(v24 + 464) + 928LL))(*(_QWORD *)(v24 + 464), v36); cocos2d::CCLabelBMFont::limitLabelWidth(*(_QWORD *)(v24 + 464), 320.0, 0.60000002, 0.0); operator delete(v36); v37 = *(_QWORD *)(v24 + 464); BYTE2(__s) = -1; LOWORD(__s) = -256; (*(void (__fastcall **)(__int64, __int128 *))(*(_QWORD *)v37 + 1072LL))(v37, &__s); cocos2d::CCLabelBMFont::limitLabelWidth(*(_QWORD *)(v24 + 464), 400.0, 0.80000001, 0.0); LABEL_60: *(_DWORD *)(v24 + 440) = 0; goto LABEL_69; } v33 = GameManager::sharedState(); if ( *(_DWORD *)(v33 + 904) > *(_DWORD *)(v33 + 908) ) { v34 = (__n[0] & 1) != 0 ? (const char *)v150 : (char *)__n + 1; v39 = atoi(v34); v40 = GameManager::sharedState(); if ( v39 == *(_DWORD *)(v40 + 904) - *(_DWORD *)(v40 + 908) ) { v41 = AchievementManager::sharedState(v34, (char *)&__s + 1); if ( !(unsigned __int8)AchievementManager::isAchievementEarned(v41, "geometry.ach.v2.secret02") ) { v42 = GameManager::sharedState(); GameManager::reportAchievementWithID(v42, "geometry.ach.v2.secret02", 100, 0); v142 = 26; strcpy(v143, "Impressive..."); (*(void (__fastcall **)(_QWORD, _BYTE *))(**(_QWORD **)(v24 + 464) + 928LL))(*(_QWORD *)(v24 + 464), v143); cocos2d::CCLabelBMFont::limitLabelWidth(*(_QWORD *)(v24 + 464), 320.0, 0.60000002, 0.0); if ( (v142 & 1) != 0 ) operator delete(*(void **)&v143[15]); v43 = *(_QWORD *)(v24 + 464); BYTE2(__s) = -1; LOWORD(__s) = -256; (*(void (__fastcall **)(__int64, __int128 *))(*(_QWORD *)v43 + 1072LL))(v43, &__s); goto LABEL_60; } goto LABEL_49; } } v44 = GameManager::sharedState(); UGV = GameManager::getUGV(v44, "3"); v46 = *(_OWORD *)&__s1.__r_.__value_.__r.__words[1]; if ( UGV ) { LOBYTE(__s) = 14; qmemcpy((char *)&__s + 1, "glubfub", 7); v47 = *(_BYTE *)&__s1.__r_.__value_.__l.0 >> 1; v48 = *(_BYTE *)&__s1.__r_.__value_.__s.0 & 1; v49 = __s1.__r_.__value_.__l.__data_; if ( (*(_BYTE *)&__s1.__r_.__value_.__s.0 & 1) == 0 ) v49 = __s1.__r_.__value_.__s.__data_; BYTE8(__s) = 0; v50 = __s1.__r_.__value_.__l.__size_; if ( !v48 ) v50 = *(_BYTE *)&__s1.__r_.__value_.__l.0 >> 1; v51 = 7; if ( v50 < 7 ) v51 = v50; if ( !memcmp(v49, (char *)&__s + 1, v51) && v50 == 7 ) { v52 = AchievementManager::sharedState(v49, (char *)&__s + 1); v24 = v151; if ( !(unsigned __int8)AchievementManager::isAchievementEarned(v52, "geometry.ach.v2.secret03") ) { v53 = FMODAudioEngine::sharedEngine(); strcpy(v144, "$highscoreGet02.ogg"); FMODAudioEngine::playEffect_1(v53, (__int128 *)v144); if ( (v144[0] & 1) != 0 ) operator delete(*(void **)&v144[16]); v54 = GameManager::sharedState(); GameManager::reportAchievementWithID(v54, "geometry.ach.v2.secret03", 100, 0); v55 = GameStatsManager::sharedState(); GameStatsManager::storeSecretCoin(v55); v56 = GameStatsManager::sharedState(); GameStatsManager::incrementStat_1(v56, (__int64)"8"); strcpy((char *)v145, "*NOOOO!! THIEF! THIEF!"); (*(void (__fastcall **)(_QWORD, char *))(**(_QWORD **)(v24 + 464) + 928LL))( *(_QWORD *)(v24 + 464), (char *)v145 + 1); cocos2d::CCLabelBMFont::limitLabelWidth(*(_QWORD *)(v24 + 464), 320.0, 0.60000002, 0.0); if ( ((__int64)v145[0] & 1) != 0 ) operator delete(v145[2]); sub_100499DE0(v24); goto LABEL_60; } goto LABEL_49; } } else { v47 = *(_BYTE *)&__s1.__r_.__value_.__l.0 >> 1; v48 = *(_BYTE *)&__s1.__r_.__value_.__s.0 & 1; } LOBYTE(__s) = 16; v57 = (char *)&__s + 1; strcpy((char *)&__s + 1, "octocube"); if ( !v48 ) v46 = __PAIR128__((std::string *)((char *)&__s1.__r_.__value_.__l.0 + 1), v47); v58 = 8; if ( (unsigned __int64)v46 < 8 ) v58 = v46; if ( !memcmp(*((const void **)&v46 + 1), (char *)&__s + 1, v58) && (_QWORD)v46 == 8 ) { v59 = AchievementManager::sharedState(*((_QWORD *)&v46 + 1), (char *)&__s + 1); v60 = v151; if ( !(unsigned __int8)AchievementManager::isAchievementEarned(v59, "geometry.ach.v2.secret04") ) { v61 = GameManager::sharedState(); GameManager::reportAchievementWithID(v61, "geometry.ach.v2.secret04", 100, 0); v146 = 30; strcpy(v147, "Ugh... Slippery"); (*(void (__fastcall **)(_QWORD, _BYTE *))(**(_QWORD **)(v60 + 464) + 928LL))(*(_QWORD *)(v60 + 464), v147); cocos2d::CCLabelBMFont::limitLabelWidth(*(_QWORD *)(v60 + 464), 320.0, 0.60000002, 0.0); if ( (v146 & 1) != 0 ) operator delete(*(void **)&v147[15]); v62 = *(_QWORD *)(v60 + 464); BYTE2(__s) = -1; LOWORD(__s) = -256; (*(void (__fastcall **)(__int64, __int128 *))(*(_QWORD *)v62 + 1072LL))(v62, &__s); cocos2d::CCLabelBMFont::limitLabelWidth(*(_QWORD *)(v60 + 464), 400.0, 0.80000001, 0.0); *(_DWORD *)(v60 + 440) = 0; } goto LABEL_69; } v63 = GameStatsManager::sharedState(); GameStatsManager::getStat(v63, "6", a2); v64 = sub_10088E820("%i", v120); CString = (const char *)cocos2d::CCString::getCString(v64); v66 = strlen(CString); if ( v66 >= 0xFFFFFFFFFFFFFFF8LL ) sub_100003630(); v67 = v66; if ( v66 >= 0x17 ) { v69 = 26; if ( (v66 | 7) != 0x17 ) v69 = (v66 | 7) + 1; v68 = (char *)operator new(v69); __p = v68; *(_QWORD *)&__s = v69 | 1; *((_QWORD *)&__s + 1) = v67; goto LABEL_113; } LOBYTE(__s) = 2 * v66; v68 = (char *)&__s + 1; if ( v66 ) LABEL_113: memmove(v68, CString, v67); v68[v67] = 0; v70 = __s; v71 = (char *)__p; if ( (__n[0] & 1) != 0 ) { v72 = __n[1]; v73 = (char *)v150; } else { v72 = LOBYTE(__n[0]) >> 1; v73 = (char *)__n + 1; } v24 = v151; v74 = (unsigned __int8)__s >> 1; if ( (__s & 1) != 0 ) { v74 = *((_QWORD *)&__s + 1); v57 = (char *)__p; } v75 = v74 == v72; if ( v74 >= v72 ) v74 = v72; v76 = v57; v77 = v75 & (memcmp(v73, v57, v74) == 0); if ( (v70 & 1) != 0 ) { v73 = v71; operator delete(v71); } v78 = __s1.__r_.__value_.__s.__data_; if ( v77 ) { v79 = AchievementManager::sharedState(v73, v76); if ( !(unsigned __int8)AchievementManager::isAchievementEarned(v79, "geometry.ach.v2.secret05") ) { v80 = GameManager::sharedState(); GameManager::reportAchievementWithID(v80, "geometry.ach.v2.secret05", 100, 0); v81 = (char *)operator new(0x28u); strcpy(v81, "I wish I had that many shinies..."); (*(void (__fastcall **)(_QWORD, char *))(**(_QWORD **)(v24 + 464) + 928LL))(*(_QWORD *)(v24 + 464), v81); cocos2d::CCLabelBMFont::limitLabelWidth(*(_QWORD *)(v24 + 464), 320.0, 0.60000002, 0.0); operator delete(v81); v82 = *(_QWORD *)(v24 + 464); BYTE2(__s) = -1; LOWORD(__s) = -256; (*(void (__fastcall **)(__int64, __int128 *))(*(_QWORD *)v82 + 1072LL))(v82, &__s); goto LABEL_60; } LABEL_49: v30 = *(_DWORD *)(v24 + 440); if ( v30 ) goto LABEL_53; v31 = *(_DWORD *)(v24 + 448); if ( (float)((float)rand() * 4.6566129e-10) > (float)((float)((float)v31 * -0.050000001) + 1.0) ) SecretLayer2::selectAThread(v24); if ( *(_DWORD *)(v24 + 440) ) LABEL_53: SecretLayer2::getThreadMessage(&v148); else SecretLayer2::getBasicMessage(&v148, v24); if ( (*(_BYTE *)&v148.__r_.__value_.__s.0 & 1) != 0 ) v32 = v148.__r_.__value_.__l.__data_; else v32 = v148.__r_.__value_.__s.__data_; (*(void (__fastcall **)(_QWORD, std::string::pointer))(**(_QWORD **)(v24 + 464) + 928LL))( *(_QWORD *)(v24 + 464), v32); cocos2d::CCLabelBMFont::limitLabelWidth(*(_QWORD *)(v24 + 464), 320.0, 0.60000002, 0.0); if ( (*(_BYTE *)&v148.__r_.__value_.__s.0 & 1) != 0 ) operator delete(v148.__r_.__value_.__l.__data_); if ( v30 <= 0 ) { v38 = &unk_100A0BA03; if ( *(int *)(v24 + 440) > 0 ) v38 = &unk_100A0BA06; } else { v38 = &unk_100A0BA06; } (*(void (__fastcall **)(_QWORD, void *))(**(_QWORD **)(v24 + 464) + 1072LL))(*(_QWORD *)(v24 + 464), v38); goto LABEL_69; } strcpy((char *)&__s, "\nseven"); if ( (*(_BYTE *)&__s1.__r_.__value_.__s.0 & 1) != 0 ) { v78 = __s1.__r_.__value_.__l.__data_; v83 = __s1.__r_.__value_.__l.__size_; } else { v83 = *(_BYTE *)&__s1.__r_.__value_.__l.0 >> 1; } v84 = 5; if ( v83 < 5 ) v84 = v83; if ( !((v83 != 5) | (memcmp(v78, (char *)&__s + 1, v84) != 0)) ) { v85 = AchievementManager::sharedState(v78, (char *)&__s + 1); if ( (unsigned __int8)AchievementManager::isAchievementEarned(v85, "geometry.ach.v2.secret06") ) goto LABEL_69; v86 = GameManager::sharedState(); GameManager::reportAchievementWithID(v86, "geometry.ach.v2.secret06", 100, 0); sub_10000E4E0(v123, "I should have been a doctor..."); SecretLayer2::updateMessageLabel(v24, (__int64)v123); if ( ((__int64)v123[0] & 1) != 0 ) operator delete(v123[2]); goto LABEL_164; } LOBYTE(__s) = 28; strcpy((char *)&__s + 1, "gimmiethecolor"); v87 = 14; if ( v83 < 0xE ) v87 = v83; if ( !((v83 != 14) | (memcmp(v78, (char *)&__s + 1, v87) != 0)) ) { v88 = AchievementManager::sharedState(v78, (char *)&__s + 1); if ( (unsigned __int8)AchievementManager::isAchievementEarned(v88, "geometry.ach.v2.secret07") ) goto LABEL_69; v89 = GameManager::sharedState(); GameManager::reportAchievementWithID(v89, "geometry.ach.v2.secret07", 100, 0); sub_10000E4E0(v124, "How many colors do you need?"); SecretLayer2::updateMessageLabel(v24, (__int64)v124); if ( ((__int64)v124[0] & 1) != 0 ) operator delete(v124[2]); goto LABEL_164; } sub_10000E4E0(&__s, "thechickenisonfire"); p_s1 = &__s1; v91 = sub_1001914B0((unsigned __int8 *)&__s1, (unsigned __int8 *)&__s); if ( (__s & 1) != 0 ) { p_s1 = __p; operator delete(__p); } if ( v91 ) { v92 = AchievementManager::sharedState(p_s1, &__s); if ( (unsigned __int8)AchievementManager::isAchievementEarned(v92, "geometry.ach.v2.secret08") ) goto LABEL_69; v93 = GameManager::sharedState(); GameManager::reportAchievementWithID(v93, "geometry.ach.v2.secret08", 100, 0); sub_10000E4E0(v125, "Indeed it is..."); SecretLayer2::updateMessageLabel(v24, (__int64)v125); if ( ((__int64)v125[0] & 1) != 0 ) operator delete(v125[2]); goto LABEL_164; } sub_10000E4E0(&__s, "d4shg30me7ry"); v94 = &__s1; v95 = sub_1001914B0((unsigned __int8 *)&__s1, (unsigned __int8 *)&__s); if ( (__s & 1) != 0 ) { v94 = __p; operator delete(__p); } if ( v95 ) { v96 = AchievementManager::sharedState(v94, &__s); if ( (unsigned __int8)AchievementManager::isAchievementEarned(v96, "geometry.ach.v2.secret09") ) goto LABEL_49; v97 = GameManager::sharedState(); GameManager::reportAchievementWithID(v97, "geometry.ach.v2.secret09", 100, 0); sub_10000E4E0(v126, "Good times"); SecretLayer2::updateMessageLabel(v24, (__int64)v126); if ( ((__int64)v126[0] & 1) != 0 ) operator delete(v126[2]); goto LABEL_164; } sub_10000E4E0(&__s, "thechickenisready"); v98 = &__s1; v99 = sub_1001914B0((unsigned __int8 *)&__s1, (unsigned __int8 *)&__s); if ( (__s & 1) != 0 ) { v98 = __p; operator delete(__p); } if ( v99 ) { v100 = AchievementManager::sharedState(v98, &__s); if ( (unsigned __int8)AchievementManager::isAchievementEarned(v100, "geometry.ach.v2.secret10") ) goto LABEL_49; v101 = GameManager::sharedState(); GameManager::reportAchievementWithID(v101, "geometry.ach.v2.secret10", 100, 0); sub_10000E4E0(v127, "You overcooked it again!"); SecretLayer2::updateMessageLabel(v24, (__int64)v127); if ( ((__int64)v127[0] & 1) != 0 ) operator delete(v127[2]); LABEL_164: v102 = *(_QWORD *)(v24 + 464); BYTE2(__s) = -1; LOWORD(__s) = -256; (*(void (__fastcall **)(__int64, __int128 *))(*(_QWORD *)v102 + 1072LL))(v102, &__s); cocos2d::CCLabelBMFont::limitLabelWidth(*(_QWORD *)(v24 + 464), 300.0, 0.80000001, 0.0); goto LABEL_60; } sub_10000E4E0(&__s, "thechallenge"); v103 = sub_1001914B0((unsigned __int8 *)&__s1, (unsigned __int8 *)&__s); if ( (__s & 1) != 0 ) operator delete(__p); if ( !v103 ) { sub_10000E4E0(&__s, "cod3breaker"); v106 = sub_1001914B0((unsigned __int8 *)&__s1, (unsigned __int8 *)&__s); if ( (__s & 1) != 0 ) operator delete(__p); if ( v106 ) { sub_10000E4E0(v129, " "); SecretLayer2::updateMessageLabel(v24, (__int64)v129); if ( ((__int64)v129[0] & 1) != 0 ) operator delete(v129[2]); *(_DWORD *)(v24 + 440) = 0; v107 = GameManager::sharedState(); if ( *(_DWORD *)(v107 + 904) <= *(_DWORD *)(v107 + 908) ) { GameManager::sharedState(); GameManager::generateSecretNumber(); } v108 = SecretNumberLayer::create(); (*(void (__fastcall **)(__int64, __int64, __int64))(*(_QWORD *)v24 + 464LL))(v24, v108, 100); v109 = GameManager::sharedState(); SecretNumberLayer::playNumberEffect(v108, (unsigned int)(*(_DWORD *)(v109 + 904) - *(_DWORD *)(v109 + 908))); goto LABEL_69; } if ( (__n[0] & 1) != 0 ) v110 = __n[1]; else v110 = LOBYTE(__n[0]) >> 1; if ( !v110 ) goto LABEL_49; sub_10000E4E0(&__s, "unicorn"); v111 = sub_1001914B0((unsigned __int8 *)&__s1, (unsigned __int8 *)&__s); if ( (__s & 1) != 0 ) operator delete(__p); if ( v111 ) { sub_10000E4E0(v130, "Why do they have a horn?"); SecretLayer2::updateMessageLabel(v24, (__int64)v130); v112 = (void **)&v131; if ( (v130[0] & 1) == 0 ) { LABEL_189: *(_DWORD *)(v24 + 440) = 0; v113 = *(_QWORD *)(v24 + 464); BYTE2(__s) = 0; LOWORD(__s) = -26881; (*(void (__fastcall **)(__int64, __int128 *))(*(_QWORD *)v113 + 1072LL))(v113, &__s); goto LABEL_69; } } else { sub_10000E4E0(&__s, "rubrubpowah123"); v114 = sub_1001914B0((unsigned __int8 *)&__s1, (unsigned __int8 *)&__s); if ( (__s & 1) != 0 ) operator delete(__p); if ( v114 ) { sub_10000E4E0(v132, "Ultimate Haxxor mode enabled. Not..."); SecretLayer2::updateMessageLabel(v24, (__int64)v132); v112 = (void **)&v133; if ( (v132[0] & 1) == 0 ) goto LABEL_189; } else { sub_10000E4E0(&__s, "battop"); v115 = sub_1001914B0((unsigned __int8 *)&__s1, (unsigned __int8 *)&__s); if ( (__s & 1) != 0 ) operator delete(__p); if ( v115 ) { sub_10000E4E0(v134, "He could be watching us right now..."); SecretLayer2::updateMessageLabel(v151, (__int64)v134); v116 = (v134[0] & 1) == 0; v112 = (void **)&v135; } else { sub_10000E4E0(&__s, "kappa"); v117 = sub_1001914B0((unsigned __int8 *)&__s1, (unsigned __int8 *)&__s); if ( (__s & 1) != 0 ) operator delete(__p); if ( v117 ) { sub_10000E4E0(v136, "There is no Kappa icon..."); SecretLayer2::updateMessageLabel(v151, (__int64)v136); v116 = (v136[0] & 1) == 0; v112 = (void **)&v137; } else { sub_10000E4E0(&__s, "robtop"); v118 = sub_1001914B0((unsigned __int8 *)&__s1, (unsigned __int8 *)&__s); if ( (__s & 1) != 0 ) operator delete(__p); if ( v118 ) { sub_10000E4E0(v138, "RUBRUBRUBRUBRUBRUB"); SecretLayer2::updateMessageLabel(v151, (__int64)v138); v116 = (v138[0] & 1) == 0; v112 = (void **)&v139; } else { v119 = v151; sub_10049A880(v140, v151); SecretLayer2::updateMessageLabel(v119, (__int64)v140); v116 = (v140[0] & 1) == 0; v112 = (void **)&v141; } } } v24 = v151; if ( v116 ) goto LABEL_189; } } operator delete(*v112); goto LABEL_189; } v104 = GameManager::sharedState(); if ( (unsigned __int8)GameManager::getUGV(v104, "1") ) goto LABEL_49; sub_10000E4E0(v128, "My level? You want to try it!?"); SecretLayer2::updateMessageLabel(v24, (__int64)v128); if ( ((__int64)v128[0] & 1) != 0 ) operator delete(v128[2]); v105 = *(_QWORD *)(v24 + 464); BYTE2(__s) = -1; LOWORD(__s) = -256; (*(void (__fastcall **)(__int64, __int128 *))(*(_QWORD *)v105 + 1072LL))(v105, &__s); *(_DWORD *)(v24 + 440) = 0; SecretLayer2::showSecretLevel(v24); LABEL_69: if ( (*(_BYTE *)&__s1.__r_.__value_.__s.0 & 1) != 0 ) operator delete(__s1.__r_.__value_.__l.__data_); if ( (__n[0] & 1) != 0 ) operator delete(v150); }
GD Web Decomp Icon

GD Web Decomp

Raw Source