// // SecretLayer4::onSubmit from 0x1403f0d50 to 0x1403f2259 (5385 bytes) // // 2 xrefs: // > SecretLayer4::init @ 0x1403f0887 // > @ 0x1406d8150 // // This function is hookable on this platform! // // Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings // // Hidden C++ exception states: #wind=13 void SecretLayer4::onSubmit(SecretLayer4 *a1, cocos2d::CCObject *a2) { cocos2d::CCLabelProtocol *v2; // rcx _BYTE *v3; // rax size_t v4; // r8 __int64 v5; // rdx __int64 v6; // rcx __int64 v7; // r8 __int64 v8; // r9 void **v9; // r14 __int64 v10; // rbx unsigned __int64 v11; // r15 size_t v12; // rdx unsigned int v13; // r15d __int64 v14; // rbx void **v15; // r14 char *v16; // rax size_t v17; // r14 unsigned __int64 v18; // r15 size_t v19; // rbx void **v20; // rcx unsigned __int64 v21; // rax unsigned __int64 v22; // rbx char *v23; // r9 SecretLayer4 *v24; // r12 void *v25; // rcx void **v26; // rcx void **v27; // r15 unsigned __int64 v28; // r13 unsigned __int64 v29; // rbx size_t v30; // r8 AchievementManager *v31; // rbx cocos2d::CCString *v32; // rax int v33; // ebx bool v34; // r9 void *v35; // rcx GameManager *v36; // rcx void **v37; // rcx size_t v38; // r8 AchievementManager *v39; // rbx cocos2d::CCString *v40; // rax int v41; // ebx bool v42; // r9 void *v43; // rcx GameManager *v44; // rcx cocos2d::CCRGBAProtocol *v45; // rcx char v46; // r14 void **v47; // rcx size_t v48; // r8 void **v49; // rcx size_t v50; // r8 void *v51; // rcx AchievementManager *v52; // rbx cocos2d::CCString *v53; // rax int v54; // ebx bool v55; // r9 void *v56; // rcx GameManager *v57; // rcx void **v58; // rcx size_t v59; // r8 AchievementManager *v60; // rbx cocos2d::CCString *v61; // rax int v62; // ebx bool v63; // r9 void *v64; // rcx GameManager *v65; // rcx char v66; // r14 void **v67; // rcx size_t v68; // r8 __int64 v69; // rcx void **v70; // rcx size_t v71; // r8 __int64 v72; // rax AchievementManager *v73; // rbx cocos2d::CCString *v74; // rax int v75; // ebx bool v76; // r9 void *v77; // rcx GameManager *v78; // rcx void **v79; // rcx size_t v80; // r8 AchievementManager *v81; // rbx cocos2d::CCString *v82; // rax int v83; // ebx bool v84; // r9 void *v85; // rcx GameManager *v86; // rcx void **v87; // rcx size_t v88; // r8 AchievementManager *v89; // rbx cocos2d::CCString *v90; // rax int v91; // ebx bool v92; // r9 void *v93; // rcx GameManager *v94; // rcx _QWORD *ErrorMessage; // rax __int16 *v96; // rdx int m_selectedThread; // ebx _QWORD *Message; // rax int v99; // [rsp+30h] [rbp-69h] BYREF bool v100; // [rsp+34h] [rbp-65h] bool v101; // [rsp+35h] [rbp-64h] char v102; // [rsp+36h] [rbp-63h] SecretLayer4 *v103; // [rsp+38h] [rbp-61h] void *Buf2[2]; // [rsp+40h] [rbp-59h] BYREF __int64 v105; // [rsp+50h] [rbp-49h] unsigned __int64 v106; // [rsp+58h] [rbp-41h] void *Block[2]; // [rsp+60h] [rbp-39h] BYREF __int64 v108; // [rsp+70h] [rbp-29h] unsigned __int64 v109; // [rsp+78h] [rbp-21h] void *Buf1[2]; // [rsp+80h] [rbp-19h] BYREF unsigned __int64 v111; // [rsp+90h] [rbp-9h] unsigned __int64 v112; // [rsp+98h] [rbp-1h] void *Src[2]; // [rsp+A0h] [rbp+7h] BYREF unsigned __int64 v114; // [rsp+B0h] [rbp+17h] unsigned __int64 v115; // [rsp+B8h] [rbp+1Fh] v103 = a1; v99 = 0; v2 = &a1->m_searchInput->m_textField->cocos2d::CCLabelProtocol; v3 = (_BYTE *)((__int64 (__fastcall *)(cocos2d::CCLabelProtocol *, cocos2d::CCObject *))v2->getString)(v2, a2); *(_OWORD *)Src = 0; v114 = 0; v115 = 0; v4 = -1; do ++v4; while ( v3[v4] ); sub_14003A930(Src, v3, v4); *(_OWORD *)Buf1 = 0; v111 = 0; v112 = 0; v9 = Src; if ( v115 > 0xF ) v9 = (void **)Src[0]; v10 = 0x7FFFFFFFFFFFFFFFLL; v11 = v114; if ( v114 > 0x7FFFFFFFFFFFFFFFLL ) sub_140007B50(v6, v5, v7, v8); v112 = 15; if ( v114 > 0xF ) { if ( (v114 | 0xF) <= 0x7FFFFFFFFFFFFFFFLL ) { v10 = v114 | 0xF; if ( (v114 | 0xF) < 0x16 ) v10 = 22; } Buf1[0] = sub_14003AA10(v10 + 1); v111 = v11; v112 = v10; memcpy(Buf1[0], v9, v11 + 1); v12 = v11; } else { v12 = v114; v111 = v114; *(_OWORD *)Buf1 = *(_OWORD *)v9; } v13 = 0; if ( v12 ) { v14 = 0; do { if ( v112 <= 0xF ) { v16 = (char *)Buf1 + v14; v15 = Buf1; } else { v15 = (void **)Buf1[0]; v16 = (char *)Buf1[0] + v14; } *((_BYTE *)v15 + v14) = tolower(*v16); v14 = ++v13; v12 = v111; } while ( v13 < v111 ); } *(_OWORD *)Buf2 = 0; v17 = 0; v105 = 0; v18 = 15; v106 = 15; LOBYTE(Buf2[0]) = 0; *(_OWORD *)Block = 0; v108 = 1; v109 = 15; LOWORD(Block[0]) = (unsigned __int8)asc_140518984[0]; v19 = 0; while ( 1 ) { v20 = Buf1; if ( v112 > 0xF ) v20 = (void **)Buf1[0]; v21 = sub_14003BCE0((__int64)v20, v12, v19, (char *)Block, 1u); v22 = v21; if ( v21 == -1 ) break; v23 = (char *)Buf2; if ( v18 > 0xF ) v23 = (char *)Buf2[0]; sub_140041FF0(Buf1, v21, 1u, v23, v17); v17 = v105; v19 = v105 + v22; v12 = v111; v18 = v106; } v24 = v103; if ( v18 > 0xF ) { v25 = Buf2[0]; if ( v18 + 1 >= 0x1000 ) { v25 = *((void **)Buf2[0] - 1); if ( (unsigned __int64)((char *)Buf2[0] - (char *)v25 - 8) > 0x1F ) invalid_parameter_noinfo_noreturn(); } j_j_free(v25); } *(_OWORD *)Block = 0; v108 = 0; v109 = 15; LOBYTE(Block[0]) = 0; CCTextInputNode::setString((__int64)v103->m_searchInput, Block); Block[1] = nullptr; v108 = 8; v109 = 15; Block[0] = (void *)0x7373656E6B726164LL; v100 = 0; v26 = Buf1; v27 = (void **)Buf1[0]; v28 = v112; if ( v112 > 0xF ) v26 = (void **)Buf1[0]; v29 = v111; v30 = v111; if ( v111 > 8 ) v30 = 8; v99 = memcmp(v26, Block, v30); if ( !v99 ) { if ( v29 >= 8 ) v99 = v29 > 8; else v99 = -1; } if ( !v99 ) { v31 = AchievementManager::sharedState(); *(_OWORD *)Buf2 = 0; v105 = 0; v106 = 15; Buf2[0] = sub_14003AA10(0x20u); v105 = 24; v106 = 31; strcpy((char *)Buf2[0], "geometry.ach.v3.secret01"); v32 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(v31->m_reportedAchievements, Buf2); v33 = cocos2d::CCString::intValue(v32); if ( v106 > 0xF ) { v35 = Buf2[0]; if ( v106 + 1 >= 0x1000 ) { v35 = *((void **)Buf2[0] - 1); if ( (unsigned __int64)((char *)Buf2[0] - (char *)v35 - 8) > 0x1F ) invalid_parameter_noinfo_noreturn(); } j_j_free(v35); } v105 = 0; v106 = 15; LOBYTE(Buf2[0]) = 0; if ( v33 < 100 ) { v36 = (GameManager *)qword_1406C2ED8; if ( !qword_1406C2ED8 ) { v103 = (SecretLayer4 *)operator new(0x668u); qword_1406C2ED8 = sub_14017AB00((__int64)v103); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8); v36 = (GameManager *)qword_1406C2ED8; } GameManager::reportAchievementWithID(v36, "geometry.ach.v3.secret01", 100, v34); Block[1] = (void *)25974; v108 = 10; v109 = 15; Block[0] = (void *)0x6973736572706D49LL; LABEL_65: SecretLayer2::updateMessageLabel((__int64)v24, Block); LOWORD(v99) = -256; v45 = &v24->m_messageLabel->cocos2d::CCRGBAProtocol; LOWORD(v99) = -256; BYTE2(v99) = -1; v45->setColor(v45, (const cocos2d::ccColor3B *)&v99); cocos2d::CCLabelBMFont::limitLabelWidth(v24->m_messageLabel, 400.0, 0.80000001, 0.0); v24->m_selectedThread = 0; goto LABEL_189; } goto LABEL_185; } Buf2[1] = nullptr; v105 = 7; v106 = 15; Buf2[0] = (void *)0x65636E656C6973LL; v100 = 0; v37 = Buf1; if ( v28 > 0xF ) v37 = v27; v38 = v29; if ( v29 > 7 ) v38 = 7; v99 = memcmp(v37, Buf2, v38); if ( !v99 ) { if ( v29 >= 7 ) v99 = v29 > 7; else v99 = -1; } if ( !v99 ) { v39 = AchievementManager::sharedState(); *(_OWORD *)Buf2 = 0; v105 = 0; v106 = 15; Buf2[0] = sub_14003AA10(0x20u); v105 = 24; v106 = 31; strcpy((char *)Buf2[0], "geometry.ach.v3.secret02"); v40 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(v39->m_reportedAchievements, Buf2); v41 = cocos2d::CCString::intValue(v40); if ( v106 > 0xF ) { v43 = Buf2[0]; if ( v106 + 1 >= 0x1000 ) { v43 = *((void **)Buf2[0] - 1); if ( (unsigned __int64)((char *)Buf2[0] - (char *)v43 - 8) > 0x1F ) invalid_parameter_noinfo_noreturn(); } j_j_free(v43); } v105 = 0; v106 = 15; LOBYTE(Buf2[0]) = 0; if ( v41 < 100 ) { v44 = (GameManager *)qword_1406C2ED8; if ( !qword_1406C2ED8 ) { v103 = (SecretLayer4 *)operator new(0x668u); qword_1406C2ED8 = sub_14017AB00((__int64)v103); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8); v44 = (GameManager *)qword_1406C2ED8; } GameManager::reportAchievementWithID(v44, "geometry.ach.v3.secret02", 100, v42); *(_OWORD *)Block = 0; v108 = 0; v109 = 15; Block[0] = sub_14003AA10(0x20u); v108 = 28; v109 = 31; strcpy((char *)Block[0], "Something you always ruin..."); goto LABEL_65; } goto LABEL_185; } *(_OWORD *)Block = 0; v108 = 5; v109 = 15; strcpy((char *)Block, "river"); v46 = 17; v101 = 0; v47 = Buf1; v100 = v28 > 0xF; if ( v28 > 0xF ) v47 = v27; v48 = v29; if ( v29 > 5 ) v48 = 5; if ( !memcmp(v47, Block, v48) && v29 == 5 ) goto LABEL_78; *(_OWORD *)Buf2 = 0; v105 = 6; v106 = 15; strcpy((char *)Buf2, "ariver"); v46 = 19; v49 = Buf1; if ( v100 ) v49 = v27; v50 = v29; if ( v29 > 6 ) v50 = 6; if ( !memcmp(v49, Buf2, v50) && v29 == 6 ) LABEL_78: v100 = 1; else v100 = 0; v51 = Buf2[0]; if ( (v46 & 2) != 0 ) { v46 &= ~2u; if ( v106 > 0xF ) { if ( v106 + 1 >= 0x1000 ) { v51 = *((void **)Buf2[0] - 1); if ( (unsigned __int64)((char *)Buf2[0] - (char *)v51 - 8) > 0x1F ) invalid_parameter_noinfo_noreturn(); } j_j_free(v51); v28 = v112; v29 = v111; v27 = (void **)Buf1[0]; } } if ( (v46 & 1) != 0 ) v46 &= ~1u; if ( !v100 ) { *(_OWORD *)Block = 0; v108 = 6; v109 = 15; strcpy((char *)Block, "hunger"); v101 = 0; v58 = Buf1; if ( v28 > 0xF ) v58 = v27; v59 = v29; if ( v29 > 6 ) v59 = 6; v99 = memcmp(v58, Block, v59); if ( !v99 ) { if ( v29 >= 6 ) v99 = v29 > 6; else v99 = -1; } if ( v99 ) { Buf2[1] = nullptr; v105 = 7; v106 = 15; Buf2[0] = (void *)0x6F6E61636C6F76LL; v66 = v46 | 4; v102 = 0; v67 = Buf1; v101 = v28 > 0xF; if ( v28 > 0xF ) v67 = v27; v68 = v29; if ( v29 > 7 ) v68 = 7; if ( !memcmp(v67, Buf2, v68) && v29 == 7 ) { v69 = (__int64)Block[0]; v100 = 1; } else { Block[1] = nullptr; v108 = 8; v109 = 15; Block[0] = (void *)0x6F6E61636C6F7661LL; v66 |= 8u; v70 = Buf1; if ( v101 ) v70 = v27; v71 = v29; if ( v29 > 8 ) v71 = 8; if ( !memcmp(v70, Block, v71) && v29 == 8 ) { v69 = 0x6F6E61636C6F7661LL; v100 = 1; } else { v100 = 0; v69 = 0x6F6E61636C6F7661LL; } } if ( (v66 & 8) != 0 && v109 > 0xF ) { v72 = v69; if ( v109 + 1 >= 0x1000 ) { v69 = *(_QWORD *)(v69 - 8); if ( (unsigned __int64)(v72 - v69 - 8) > 0x1F ) invalid_parameter_noinfo_noreturn(); } j_j_free((void *)v69); v28 = v112; v29 = v111; v27 = (void **)Buf1[0]; } if ( v100 ) { v73 = AchievementManager::sharedState(); *(_OWORD *)Buf2 = 0; v105 = 0; v106 = 15; Buf2[0] = sub_14003AA10(0x20u); v105 = 24; v106 = 31; strcpy((char *)Buf2[0], "geometry.ach.v3.secret05"); v74 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(v73->m_reportedAchievements, Buf2); v75 = cocos2d::CCString::intValue(v74); if ( v106 > 0xF ) { v77 = Buf2[0]; if ( v106 + 1 >= 0x1000 ) { v77 = *((void **)Buf2[0] - 1); if ( (unsigned __int64)((char *)Buf2[0] - (char *)v77 - 8) > 0x1F ) invalid_parameter_noinfo_noreturn(); } j_j_free(v77); } v105 = 0; v106 = 15; LOBYTE(Buf2[0]) = 0; if ( v75 >= 100 ) goto LABEL_185; v78 = (GameManager *)qword_1406C2ED8; if ( !qword_1406C2ED8 ) { v103 = (SecretLayer4 *)operator new(0x668u); qword_1406C2ED8 = sub_14017AB00((__int64)v103); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8); v78 = (GameManager *)qword_1406C2ED8; } GameManager::reportAchievementWithID(v78, "geometry.ach.v3.secret05", 100, v76); *(_OWORD *)Block = 0; v108 = 0; v109 = 15; Block[0] = sub_14003AA10(0x20u); v108 = 21; v109 = 31; strcpy((char *)Block[0], "Hot answer, well done"); } else { v108 = 11; v109 = 15; Block[0] = (void *)0x72746E6F6B636162LL; Block[1] = (void *)7037793; v102 = 0; v79 = Buf1; if ( v28 > 0xF ) v79 = v27; v80 = v29; if ( v29 > 0xB ) v80 = 11; v99 = memcmp(v79, Block, v80); if ( !v99 ) { if ( v29 >= 0xB ) v99 = v29 > 0xB; else v99 = -1; } if ( v99 ) { v105 = 12; v106 = 15; strcpy((char *)Buf2, "givemehelper"); BYTE5(Buf2[1]) = 0; HIWORD(Buf2[1]) = 0; v87 = Buf1; if ( v28 > 0xF ) v87 = v27; v88 = v29; if ( v29 > 0xC ) v88 = 12; if ( memcmp(v87, Buf2, v88) || v29 != 12 ) { sub_14003A830((__int64)Buf2); if ( v114 ) { ErrorMessage = (_QWORD *)SecretLayer2::getErrorMessage((__int64)v103, (__int64)Block); SecretLayer2::updateMessageLabel((__int64)v103, ErrorMessage); v103->m_selectedThread = 0; LOWORD(v99) = -26881; BYTE2(v99) = 0; v96 = (__int16 *)&v99; LABEL_188: v24->m_messageLabel->setColor( &v24->m_messageLabel->cocos2d::CCRGBAProtocol, (const cocos2d::ccColor3B *)v96); goto LABEL_189; } LABEL_185: m_selectedThread = v103->m_selectedThread; Message = (_QWORD *)SecretLayer4::getMessage(v103, Block); SecretLayer2::updateMessageLabel((__int64)v103, Message); if ( m_selectedThread > 0 || (v96 = &word_140529C14, v103->m_selectedThread > 0) ) v96 = (__int16 *)&unk_140529C18; goto LABEL_188; } sub_14003A830((__int64)Buf2); v89 = AchievementManager::sharedState(); *(_OWORD *)Buf2 = 0; v105 = 0; v106 = 15; Buf2[0] = sub_14003AA10(0x20u); v105 = 24; v106 = 31; strcpy((char *)Buf2[0], "geometry.ach.v3.secret07"); v90 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(v89->m_reportedAchievements, Buf2); v91 = cocos2d::CCString::intValue(v90); if ( v106 > 0xF ) { v93 = Buf2[0]; if ( v106 + 1 >= 0x1000 ) { v93 = *((void **)Buf2[0] - 1); if ( (unsigned __int64)((char *)Buf2[0] - (char *)v93 - 8) > 0x1F ) invalid_parameter_noinfo_noreturn(); } j_j_free(v93); } v105 = 0; v106 = 15; LOBYTE(Buf2[0]) = 0; if ( v91 >= 100 ) goto LABEL_185; v94 = (GameManager *)qword_1406C2ED8; if ( !qword_1406C2ED8 ) { v103 = (SecretLayer4 *)operator new(0x668u); qword_1406C2ED8 = sub_14017AB00((__int64)v103); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8); v94 = (GameManager *)qword_1406C2ED8; } GameManager::reportAchievementWithID(v94, "geometry.ach.v3.secret07", 100, v92); *(_OWORD *)Block = 0; v108 = 0; v109 = 15; Block[0] = sub_14003AA10(0x20u); v108 = 28; v109 = 31; strcpy((char *)Block[0], "Is that even a real thing..."); } else { v81 = AchievementManager::sharedState(); *(_OWORD *)Buf2 = 0; v105 = 0; v106 = 15; Buf2[0] = sub_14003AA10(0x20u); v105 = 24; v106 = 31; strcpy((char *)Buf2[0], "geometry.ach.v3.secret06"); v82 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(v81->m_reportedAchievements, Buf2); v83 = cocos2d::CCString::intValue(v82); if ( v106 > 0xF ) { v85 = Buf2[0]; if ( v106 + 1 >= 0x1000 ) { v85 = *((void **)Buf2[0] - 1); if ( (unsigned __int64)((char *)Buf2[0] - (char *)v85 - 8) > 0x1F ) invalid_parameter_noinfo_noreturn(); } j_j_free(v85); } v105 = 0; v106 = 15; LOBYTE(Buf2[0]) = 0; if ( v83 >= 100 ) goto LABEL_185; v86 = (GameManager *)qword_1406C2ED8; if ( !qword_1406C2ED8 ) { v103 = (SecretLayer4 *)operator new(0x668u); qword_1406C2ED8 = sub_14017AB00((__int64)v103); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8); v86 = (GameManager *)qword_1406C2ED8; } GameManager::reportAchievementWithID(v86, "geometry.ach.v3.secret06", 100, v84); *(_OWORD *)Block = 0; v108 = 0; v109 = 15; Block[0] = sub_14003AA10(0x20u); v108 = 17; v109 = 31; strcpy((char *)Block[0], "That's some skill"); } } } else { v60 = AchievementManager::sharedState(); *(_OWORD *)Buf2 = 0; v105 = 0; v106 = 15; Buf2[0] = sub_14003AA10(0x20u); v105 = 24; v106 = 31; strcpy((char *)Buf2[0], "geometry.ach.v3.secret04"); v61 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(v60->m_reportedAchievements, Buf2); v62 = cocos2d::CCString::intValue(v61); if ( v106 > 0xF ) { v64 = Buf2[0]; if ( v106 + 1 >= 0x1000 ) { v64 = *((void **)Buf2[0] - 1); if ( (unsigned __int64)((char *)Buf2[0] - (char *)v64 - 8) > 0x1F ) invalid_parameter_noinfo_noreturn(); } j_j_free(v64); } v105 = 0; v106 = 15; LOBYTE(Buf2[0]) = 0; if ( v62 >= 100 ) goto LABEL_185; v65 = (GameManager *)qword_1406C2ED8; if ( !qword_1406C2ED8 ) { v103 = (SecretLayer4 *)operator new(0x668u); qword_1406C2ED8 = sub_14017AB00((__int64)v103); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8); v65 = (GameManager *)qword_1406C2ED8; } GameManager::reportAchievementWithID(v65, "geometry.ach.v3.secret04", 100, v63); *(_OWORD *)Block = 0; v108 = 0; v109 = 15; Block[0] = sub_14003AA10(0x20u); v108 = 21; v109 = 31; strcpy((char *)Block[0], "A pizza would be nice"); } SecretLayer2::updateMessageLabel((__int64)v24, Block); LOWORD(v99) = -256; BYTE2(v99) = -1; v24->m_messageLabel->setColor(&v24->m_messageLabel->cocos2d::CCRGBAProtocol, (const cocos2d::ccColor3B *)&v99); cocos2d::CCLabelBMFont::limitLabelWidth(v24->m_messageLabel, 400.0, 0.80000001, 0.0); v24->m_selectedThread = 0; goto LABEL_189; } v52 = AchievementManager::sharedState(); *(_OWORD *)Buf2 = 0; v105 = 0; v106 = 15; Buf2[0] = sub_14003AA10(0x20u); v105 = 24; v106 = 31; strcpy((char *)Buf2[0], "geometry.ach.v3.secret03"); v53 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(v52->m_reportedAchievements, Buf2); v54 = cocos2d::CCString::intValue(v53); if ( v106 > 0xF ) { v56 = Buf2[0]; if ( v106 + 1 >= 0x1000 ) { v56 = *((void **)Buf2[0] - 1); if ( (unsigned __int64)((char *)Buf2[0] - (char *)v56 - 8) > 0x1F ) invalid_parameter_noinfo_noreturn(); } j_j_free(v56); } v105 = 0; v106 = 15; LOBYTE(Buf2[0]) = 0; if ( v54 >= 100 ) goto LABEL_185; v57 = (GameManager *)qword_1406C2ED8; if ( !qword_1406C2ED8 ) { v103 = (SecretLayer4 *)operator new(0x668u); qword_1406C2ED8 = sub_14017AB00((__int64)v103); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8); v57 = (GameManager *)qword_1406C2ED8; } GameManager::reportAchievementWithID(v57, "geometry.ach.v3.secret03", 100, v55); *(_OWORD *)Block = 0; v108 = 0; v109 = 15; Block[0] = sub_14003AA10(0x20u); v108 = 23; v109 = 31; strcpy((char *)Block[0], "Be like water my friend"); SecretLayer2::updateMessageLabel((__int64)v24, Block); LOWORD(v99) = -256; BYTE2(v99) = -1; v24->m_messageLabel->setColor(&v24->m_messageLabel->cocos2d::CCRGBAProtocol, (const cocos2d::ccColor3B *)&v99); cocos2d::CCLabelBMFont::limitLabelWidth(v24->m_messageLabel, 400.0, 0.80000001, 0.0); v24->m_selectedThread = 0; LABEL_189: sub_14003A830((__int64)Buf1); sub_14003A830((__int64)Src); }
GD Web Decomp Icon

GD Web Decomp

Raw Source