// // DailyLevelNode::onSkipLevel from 0x100217ab0 to 0x100217c21 (369 bytes) // // 1 xrefs: // > DailyLevelNode::init @ 0x1002174a9 // // 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:27:00 +0000 // void __fastcall DailyLevelNode::onSkipLevel(__int64 a1) { unsigned __int64 v1; // rax const std::string::value_type *v2; // rsi __int64 v3; // rax const char *CString; // r14 size_t v5; // rax size_t v6; // r15 char *v7; // r12 size_t v8; // r13 __int64 v9; // rbx char v10; // [rsp+0h] [rbp-60h] _QWORD __dst[2]; // [rsp+8h] [rbp-58h] BYREF void *__p; // [rsp+18h] [rbp-48h] std::string v13; // [rsp+20h] [rbp-40h] BYREF if ( *(_BYTE *)(a1 + 368) ) return; memset(&v13, 0, sizeof(v13)); v1 = *(unsigned int *)(*(_QWORD *)(a1 + 336) + 732LL); if ( v1 >= 3 ) v2 = "NA"; else v2 = (char *)dword_100A06314 + dword_100A06314[v1]; std::string::assign(&v13, v2); v3 = sub_10088E820("There is a new %s available.\nSkip the current level and load the next?", v10); CString = (const char *)cocos2d::CCString::getCString(v3); v5 = strlen(CString); if ( v5 >= 0xFFFFFFFFFFFFFFF8LL ) sub_100003630(); v6 = v5; if ( v5 >= 0x17 ) { v8 = 26; if ( (v5 | 7) != 0x17 ) v8 = (v5 | 7) + 1; v7 = (char *)operator new(v8); __p = v7; __dst[0] = v8 | 1; __dst[1] = v6; } else { LOBYTE(__dst[0]) = 2 * v5; v7 = (char *)__dst + 1; if ( !v5 ) goto LABEL_13; } memmove(v7, CString, v6); LABEL_13: v7[v6] = 0; v9 = FLAlertLayer::create_1(a1 + 320, "Skip level", __dst, "Cancel", "Skip", 330.0); if ( (__dst[0] & 1) != 0 ) operator delete(__p); (*(void (__fastcall **)(__int64))(*(_QWORD *)v9 + 1312LL))(v9); if ( (*(_BYTE *)&v13.__r_.__value_.__s.0 & 1) != 0 ) operator delete(v13.__r_.__value_.__l.__data_); }