// // ParentalGateLayer::generateChallenge from 0x8f8f6c to 0x8f91b4 (584 bytes) // // 3 xrefs: // > ParentalGateLayer::init @ 0x8f9204 // > ParentalGateLayer::onDone @ 0x8f94f0 // > @ 0xbc938 // // This function is hookable on this platform (idp: arm, 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:57:02 +0000 // __int64 __fastcall ParentalGateLayer::generateChallenge(ParentalGateLayer *this) { int v2; // w20 int i; // w19 cocos2d::CCString *v4; // x0 const char *CString; // x0 size_t v6; // x0 __int64 *v7; // x0 char *v9; // [xsp+48h] [xbp+48h] __int64 v10; // [xsp+50h] [xbp+50h] BYREF size_t v11; // [xsp+58h] [xbp+58h] void *v12; // [xsp+60h] [xbp+60h] v2 = rand() % 88 + 12; for ( i = rand() % 88 + 12; v2 == 10 * (v2 / 10); v2 = rand() % 88 + 12 ) ; for ( ; i == 10 * (i / 10); i = rand() % 88 + 12 ) ; *((_DWORD *)this + 188) = v2 * i; v4 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"%i x %i = ", (const char *)(unsigned int)v2, (unsigned int)i); CString = (const char *)cocos2d::CCString::getCString(v4); v10 = 0; v9 = (char *)CString; v11 = 0; v12 = nullptr; v6 = strlen(CString); std::string::__init(&v10, v9, v6); v7 = (__int64 *)((char *)this + 696); if ( (__int64 *)((char *)this + 696) != &v10 ) { if ( (v10 & 1) != 0 ) std::string::assign(v7, v12, v11); else std::string::assign(v7, (char *)&v10 + 1, (unsigned __int8)v10 >> 1); } if ( (v10 & 1) != 0 ) operator delete(v12); std::string::assign((__int64 *)this + 90, &byte_11B8890); NumberInputLayer::updateNumberState(this); return _stack_chk_guard; }
GD Web Decomp Icon

GD Web Decomp

Raw Source