// // SecretLayer4::getMessage from 0x140587ae0 to 0x140587c4e (366 bytes) // // 5 xrefs: // > SecretLayer4::init @ 0x140585ded // > SecretLayer4::onSubmit @ 0x140587a4c // > @ 0x1408dcf94 // > @ 0x1408dcfe0 // > @ 0x14092ca5c // // 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:28 +0000 // __int64 __fastcall SecretLayer4::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 + 440) ) { v4 = 1.0 - (float)((float)*(int *)(a1 + 448) * 0.050000001); if ( (float)((float)rand() / 32767.0) > v4 ) { v5 = cocos2d::CCDictionary::allKeys(*(cocos2d::CCDictionary **)(a1 + 480)); v6 = *(_DWORD *)(a1 + 432); 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 + 432) = v10; if ( v10 >= cocos2d::CCArray::count(v7) ) *(_DWORD *)(a1 + 432) = 0; if ( cocos2d::CCDictionary::count(*(cocos2d::CCDictionary **)(a1 + 480)) ) { v11 = cocos2d::CCArray::objectAtIndex(v7, *(_DWORD *)(a1 + 432)); v12 = cocos2d::CCDictionary::objectForKey(*(cocos2d::CCDictionary **)(a1 + 480), *((int *)v11 + 14)); *(_DWORD *)(a1 + 440) = (*(__int64 (__fastcall **)(struct cocos2d::CCObject *))(*(_QWORD *)v12 + 56LL))(v12); } *(_DWORD *)(a1 + 444) = 0; } } if ( *(_DWORD *)(a1 + 440) ) SecretLayer4::getThreadMessage(a1, a2); else SecretLayer4::getBasicMessage(a1, a2); return a2; }
GD Web Decomp Icon

GD Web Decomp

Raw Source