// // SecretLayer::getMessage from 0x140575a00 to 0x140575b7b (379 bytes) // // 5 xrefs: // > SecretLayer::init @ 0x140573504 // > SecretLayer::onSubmit @ 0x1405752e8 // > @ 0x1408dc2a8 // > @ 0x1408dc2f4 // > @ 0x14092c78c // // 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:34:22 +0000 // __int64 __fastcall SecretLayer::getMessage(__int64 a1, __int64 a2) { float v4; // xmm6_4 cocos2d::CCArray *v5; // rax int v6; // ecx cocos2d::CCArray *v7; // rbp float v8; // xmm6_4 int v9; // eax unsigned int v10; // ecx struct cocos2d::CCObject *v11; // rax struct cocos2d::CCObject *v12; // rax if ( !*(_DWORD *)(a1 + 428) && *(int *)(a1 + 440) <= 0 ) { v4 = 1.0 - (float)((float)*(int *)(a1 + 436) * 0.079999998); if ( (float)((float)rand() / 32767.0) > v4 ) { v5 = cocos2d::CCDictionary::allKeys(*(cocos2d::CCDictionary **)(a1 + 472)); v6 = *(_DWORD *)(a1 + 480); v7 = v5; if ( v6 >= 0 ) { v10 = v6 + 1; } else { v8 = (float)(int)(cocos2d::CCArray::count(v5) - 1); v9 = rand(); v10 = (int)roundf((float)((float)v9 / 32767.0) * v8); } *(_DWORD *)(a1 + 480) = v10; if ( v10 >= cocos2d::CCArray::count(v7) ) *(_DWORD *)(a1 + 480) = 0; if ( cocos2d::CCDictionary::count(*(cocos2d::CCDictionary **)(a1 + 472)) ) { v11 = cocos2d::CCArray::objectAtIndex(v7, *(_DWORD *)(a1 + 480)); v12 = cocos2d::CCDictionary::objectForKey(*(cocos2d::CCDictionary **)(a1 + 472), *((int *)v11 + 14)); *(_DWORD *)(a1 + 428) = (*(__int64 (__fastcall **)(struct cocos2d::CCObject *))(*(_QWORD *)v12 + 56LL))(v12); } *(_DWORD *)(a1 + 432) = 0; } } if ( *(_DWORD *)(a1 + 428) ) SecretLayer::getThreadMessage(a1, a2); else SecretLayer::getBasicMessage(a1, a2); return a2; }
GD Web Decomp Icon

GD Web Decomp

Raw Source