// // DailyLevelNode::onSkipLevel from 0x140173a20 to 0x140173c54 (564 bytes) // // 2 xrefs: // > DailyLevelNode::init @ 0x1401732f2 // > @ 0x1409183d4 // // 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:27:32 +0000 // // Hidden C++ exception states: #wind=2 void __fastcall DailyLevelNode::onSkipLevel(__int64 a1) { int v1; // edx int v2; // edx __int64 v3; // xmm0_8 int v4; // ebx cocos2d::CCString *v5; // rax const char *CString; // rax size_t v7; // r8 __int64 v8; // rax cocos2d::CCObject *v9; // rbx void *v10; // rcx __int128 v11; // [rsp+58h] [rbp-21h] BYREF __int64 v12; // [rsp+68h] [rbp-11h] __int64 v13; // [rsp+70h] [rbp-9h] _BYTE v14[32]; // [rsp+80h] [rbp+7h] BYREF void *Block[2]; // [rsp+A0h] [rbp+27h] BYREF __int64 v16; // [rsp+B0h] [rbp+37h] unsigned __int64 v17; // [rsp+B8h] [rbp+3Fh] if ( *(_BYTE *)(a1 + 368) ) return; *(_OWORD *)Block = 0; v16 = 0; v17 = 15; LOBYTE(Block[0]) = 0; v1 = *(_DWORD *)(*(_QWORD *)(a1 + 336) + 732LL); if ( !v1 ) { v3 = 0x656C20796C696164LL; LOWORD(Block[1]) = 25974; goto LABEL_9; } v2 = v1 - 1; if ( !v2 ) { v16 = 12; v3 = 0x6420796C6B656577LL; strcpy((char *)&Block[1], "emon"); LABEL_10: Block[0] = (void *)v3; goto LABEL_11; } if ( v2 == 1 ) { v3 = 0x656C20746E657665LL; LOWORD(Block[1]) = 25974; LABEL_9: WORD1(Block[1]) = 108; v16 = 11; goto LABEL_10; } v16 = 2; strcpy((char *)Block, "NA"); LABEL_11: v4 = a1 + 320; if ( !a1 ) v4 = 0; v5 = cocos2d::CCString::createWithFormat( "There is a new %s available.\nSkip the current level and load the next?", (const char *)Block); CString = cocos2d::CCString::getCString(v5); v11 = 0; v12 = 0; v13 = 0; v7 = -1; do ++v7; while ( CString[v7] ); sub_14003D230(&v11, CString, v7); v8 = sub_14003F4F0((__int64)v14, (__int64)&v11); v9 = FLAlertLayer::create(v4, (int)"Skip level", v8, (__int64)"Cancel", (__int64)"Skip", 1134886912, 0, 0, 1065353216); sub_14003D310((__int64)&v11); (*(void (__fastcall **)(cocos2d::CCObject *))(*(_QWORD *)v9 + 1064LL))(v9); if ( v17 > 0xF ) { v10 = Block[0]; if ( v17 + 1 >= 0x1000 ) { v10 = *((void **)Block[0] - 1); if ( (unsigned __int64)((char *)Block[0] - (char *)v10 - 8) > 0x1F ) invoke_watson(nullptr, nullptr, nullptr, 0, 0); } j_j_free(v10); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source