// // LevelInfoLayer::numberInputClosed from 0x1002c4620 to 0x1002c4744 (292 bytes) // // 2 xrefs: // > sub_1002C4790 @ 0x1002c479c // > @ 0x100906c98 // // 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 // void __fastcall LevelInfoLayer::numberInputClosed(LevelInfoLayer *a1, NumberInputLayer *a2) { double v2; // xmm0_8 std::string *longStorage; // rsi char *v4; // r14 std::size_t size; // rdx int v6; // r15d int v7; // eax int v8; // ecx __int64 v9; // r14 void *v10[3]; // [rsp+8h] [rbp-48h] BYREF __int128 v11; // [rsp+20h] [rbp-30h] BYREF char *v12; // [rsp+30h] [rbp-20h] if ( (a2->m_inputString.m_data.m_short.sizex2 & 1) != 0 ) { size = a2->m_inputString.m_data.m_long.size; longStorage = (std::string *)a2->m_inputString.m_data.m_long.longStorage; sub_100006B70(&v11, longStorage, size, v2); if ( (v11 & 1) != 0 ) goto LABEL_3; LABEL_5: v4 = (char *)&v11 + 1; goto LABEL_6; } longStorage = &a2->m_inputString; v12 = longStorage->m_data.m_long.longStorage; v11 = *(_OWORD *)&longStorage->m_data.m_short.sizex2; if ( (v11 & 1) == 0 ) goto LABEL_5; LABEL_3: v4 = v12; LABEL_6: v6 = atoi(v4) + 1000000; v7 = atoi(v4); v8 = a1->m_level->m_password.random - a1->m_level->m_password.seed; if ( v6 == v8 || v7 + 10000 == v8 ) { LevelInfoLayer::confirmClone(a1, (cocos2d::CCObject *)longStorage); } else { strcpy((char *)v10, "&Incorrect password!"); v9 = FLAlertLayer::create_1(0, "Error", v10, "OK", 0, 300.0); if ( ((__int64)v10[0] & 1) != 0 ) operator delete(v10[2]); (*(void (__fastcall **)(__int64))(*(_QWORD *)v9 + 1288LL))(v9); ++a1->m_level->m_failedPasswordAttempts; } if ( (v11 & 1) != 0 ) operator delete(v12); }
GD Web Decomp Icon

GD Web Decomp

Raw Source