// // DailyLevelNode::onSkipLevel from 0x1400d2f40 to 0x1400d315e (542 bytes) // // 3 xrefs: // > DailyLevelNode::init @ 0x1400d284e // > @ 0x1406c85f8 // > @ 0x1406c8604 // // 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=2 void DailyLevelNode::onSkipLevel(DailyLevelNode *a1, cocos2d::CCObject *a2) { GJTimedLevelType m_type; // edx __int32 v3; // edx __int64 v4; // xmm0_8 int v5; // ebx cocos2d::CCString *v6; // rax const char *CString; // rax size_t v8; // r8 __int64 v9; // rax FLAlertLayer *v10; // rbx void *v11; // rcx __int128 v12; // [rsp+58h] [rbp-21h] BYREF __int64 v13; // [rsp+68h] [rbp-11h] __int64 v14; // [rsp+70h] [rbp-9h] _BYTE v15[32]; // [rsp+80h] [rbp+7h] BYREF void *Block[2]; // [rsp+A0h] [rbp+27h] BYREF __int64 v17; // [rsp+B0h] [rbp+37h] unsigned __int64 v18; // [rsp+B8h] [rbp+3Fh] if ( a1->m_unkBool ) return; *(_OWORD *)Block = 0; v17 = 0; v18 = 15; LOBYTE(Block[0]) = 0; m_type = a1->m_page->m_type; if ( m_type == Daily ) { v4 = 0x656C20796C696164LL; LOWORD(Block[1]) = 25974; goto LABEL_9; } v3 = m_type - 1; if ( !v3 ) { v17 = 12; v4 = 0x6420796C6B656577LL; strcpy((char *)&Block[1], "emon"); LABEL_10: Block[0] = (void *)v4; goto LABEL_11; } if ( v3 == 1 ) { v4 = 0x656C20746E657665LL; LOWORD(Block[1]) = 25974; LABEL_9: WORD1(Block[1]) = 108; v17 = 11; goto LABEL_10; } v17 = 2; strcpy((char *)Block, "NA"); LABEL_11: v5 = (_DWORD)a1 + 320; v6 = cocos2d::CCString::createWithFormat( "There is a new %s available.\nSkip the current level and load the next?", (const char *)Block); CString = cocos2d::CCString::getCString(v6); v12 = 0; v13 = 0; v14 = 0; v8 = -1; do ++v8; while ( CString[v8] ); sub_14003A930(&v12, CString, v8); v9 = sub_14003BDB0((__int64)v15, (__int64)&v12); v10 = FLAlertLayer::create( v5, (int)"Skip level", v9, (__int64)"Cancel", (__int64)"Skip", 1134886912, 0, 0, 1065353216); sub_14003A830((__int64)&v12); v10->show(v10); if ( v18 > 0xF ) { v11 = Block[0]; if ( v18 + 1 >= 0x1000 ) { v11 = *((void **)Block[0] - 1); if ( (unsigned __int64)((char *)Block[0] - (char *)v11 - 8) > 0x1F ) invalid_parameter_noinfo_noreturn(); } j_j_free(v11); } }