//
// LevelPage::onInfo from 0x1404472e0 to 0x14044781e (1342 bytes)
//
// 2 xrefs:
// > LevelSelectLayer::onInfo @ 0x140443000
// > ??> @ 0x140927248
//
// 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:32:23 +0000
//
// Hidden C++ exception states: #wind=7
void __fastcall LevelPage::onInfo(__int64 a1)
{
__int64 v2; // rdx
int v3; // eax
char *v4; // rdx
size_t v5; // rbx
__int64 v6; // rax
cocos2d::CCObject *v7; // rbx
void *v8; // rcx
char *v9; // rdx
size_t v10; // rbx
__int64 v11; // rax
cocos2d::CCObject *v12; // rbx
const char *v13; // rdx
cocos2d::CCString *v14; // rax
const char *CString; // rax
size_t v16; // rbx
size_t v17; // r8
int v18; // edx
cocos2d::CCString *v19; // rax
char *v20; // rax
size_t v21; // r8
cocos2d::CCString *v22; // rax
char *v23; // rax
size_t v24; // r8
__int128 *p_Src; // rdx
__int64 v26; // rax
cocos2d::CCObject *v27; // rbx
_BYTE v28[32]; // [rsp+60h] [rbp-39h] BYREF
__int128 Src; // [rsp+80h] [rbp-19h] BYREF
__int128 v30; // [rsp+90h] [rbp-9h]
__int128 v31; // [rsp+A0h] [rbp+7h] BYREF
__m128i si128; // [rsp+B0h] [rbp+17h]
_QWORD v33[4]; // [rsp+C0h] [rbp+27h] BYREF
v2 = *(_QWORD *)(a1 + 424);
if ( v2 )
{
v3 = *(_DWORD *)(v2 + 328) - *(_DWORD *)(v2 + 332);
if ( v3 == -1 )
{
v31 = 0;
v4 = (char *)sub_14003D460(0x50u);
*(_QWORD *)&v31 = v4;
si128 = _mm_load_si128((const __m128i *)&xmmword_1408366F0);
strcpy(v4, "Roses are red\nViolets are blue\nWelcome to\n2.2");
Src = 0;
v30 = 0u;
v5 = -1;
do
++v5;
while ( v4[v5] );
sub_14003D230(&Src, v4, v5);
v6 = sub_14003F4F0((__int64)v33, (__int64)&Src);
v7 = FLAlertLayer::create(0, (int)"It's a secret...", v6, (__int64)"OK", 0, 1135869952, 0, 0, 1065353216);
sub_14003D310((__int64)&Src);
(*(void (__fastcall **)(cocos2d::CCObject *))(*(_QWORD *)v7 + 1064LL))(v7);
if ( si128.m128i_i64[1] > 0xFuLL )
{
v8 = (void *)v31;
if ( (unsigned __int64)(si128.m128i_i64[1] + 1) < 0x1000
|| (v8 = *(void **)(v31 - 8), (unsigned __int64)(v31 - (_QWORD)v8 - 8) <= 0x1F) )
{
LABEL_8:
j_j_free(v8);
return;
}
LABEL_15:
invoke_watson(nullptr, nullptr, nullptr, 0, 0);
}
}
else if ( v3 == -2 )
{
v31 = 0;
v9 = (char *)sub_14003D460(0x80u);
*(_QWORD *)&v31 = v9;
si128 = _mm_load_si128((const __m128i *)&xmmword_140836700);
strcpy(
v9,
"The path leads to an old tower. It's been left alone for years, with little reason to explore.");
Src = 0;
v30 = 0u;
v10 = -1;
do
++v10;
while ( v9[v10] );
sub_14003D230(&Src, v9, v10);
v11 = sub_14003F4F0((__int64)v33, (__int64)&Src);
v12 = FLAlertLayer::create(0, (int)"The Tower", v11, (__int64)"OK", 0, 1135869952, 0, 0, 1065353216);
sub_14003D310((__int64)&Src);
(*(void (__fastcall **)(cocos2d::CCObject *))(*(_QWORD *)v12 + 1064LL))(v12);
if ( si128.m128i_i64[1] > 0xFuLL )
{
v8 = (void *)v31;
if ( (unsigned __int64)(si128.m128i_i64[1] + 1) < 0x1000 )
goto LABEL_8;
v8 = *(void **)(v31 - 8);
if ( (unsigned __int64)(v31 - (_QWORD)v8 - 8) <= 0x1F )
goto LABEL_8;
goto LABEL_15;
}
}
else
{
sub_14003F4F0((__int64)v33, v2 + 344);
v13 = (const char *)v33;
if ( v33[3] > 0xFu )
v13 = (const char *)v33[0];
v14 = cocos2d::CCString::createWithFormat(
"%s\nTotal Attempts: %i",
v13,
*(_DWORD *)(*(_QWORD *)(a1 + 424) + 868LL) - *(_DWORD *)(*(_QWORD *)(a1 + 424) + 872LL));
CString = cocos2d::CCString::getCString(v14);
Src = 0;
v30 = 0;
v16 = -1;
v17 = -1;
do
++v17;
while ( CString[v17] );
sub_14003D230(&Src, CString, v17);
sub_14003D310((__int64)v33);
v18 = *(_DWORD *)(*(_QWORD *)(a1 + 424) + 1708LL);
if ( v18 > 0 )
{
v19 = cocos2d::CCString::createWithFormat("\nPractice Attempts: %i", v18);
v20 = (char *)cocos2d::CCString::getCString(v19);
v21 = -1;
do
++v21;
while ( v20[v21] );
sub_140044D80(&Src, v20, v21);
}
v22 = cocos2d::CCString::createWithFormat(
"\nTotal Jumps: %i\nNormal: %i%%\nPractice: %i%%",
*(_DWORD *)(*(_QWORD *)(a1 + 424) + 880LL) - *(_DWORD *)(*(_QWORD *)(a1 + 424) + 884LL),
*(_DWORD *)(*(_QWORD *)(a1 + 424) + 932LL) - *(_DWORD *)(*(_QWORD *)(a1 + 424) + 928LL),
*(_DWORD *)(*(_QWORD *)(a1 + 424) + 960LL));
v23 = (char *)cocos2d::CCString::getCString(v22);
v24 = -1;
do
++v24;
while ( v23[v24] );
sub_140044D80(&Src, v23, v24);
p_Src = &Src;
if ( *((_QWORD *)&v30 + 1) > 0xFu )
p_Src = (__int128 *)Src;
v31 = 0;
si128 = 0u;
do
++v16;
while ( *((_BYTE *)p_Src + v16) );
sub_14003D230(&v31, p_Src, v16);
v26 = sub_14003F4F0((__int64)v28, (__int64)&v31);
v27 = FLAlertLayer::create(0, (int)"Level Stats", v26, (__int64)"OK", 0, 1133903872, 0, 0, 1065353216);
sub_14003D310((__int64)&v31);
(*(void (__fastcall **)(cocos2d::CCObject *))(*(_QWORD *)v27 + 1064LL))(v27);
sub_14003D310((__int64)&Src);
}
}
}