// // GameManager::generateSecretNumber from 0x140281680 to 0x1402817ab (299 bytes) // // 2 xrefs: // > SecretLayer2::onSubmit @ 0x14057c459 // > @ 0x14091d078 // // 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:29:00 +0000 // // Hidden C++ exception states: #wind=1 __int64 GameManager::generateSecretNumber() { int v0; // edi int i; // ebx float v2; // xmm0_4 float v3; // xmm6_4 __int64 v4; // rbx float v5; // xmm0_4 __int64 result; // rax void *v7; // [rsp+80h] [rbp+8h] v0 = 0; for ( i = 0; i < 7; ++i ) { v2 = (float)rand(); v3 = roundf((float)((float)(v2 / 32767.0) * 8.0) + 1.0); v0 += (int)(float)(v3 * powf(10.0, (float)i)); } v4 = qword_14090BFD0; if ( !qword_14090BFD0 ) { v7 = operator new(0x6E8u); qword_14090BFD0 = GameManager::GameManager((__int64)v7); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0); v4 = qword_14090BFD0; } v5 = (float)((float)rand() / 32767.0) * 1000.0; *(_DWORD *)(v4 + 940) = (int)v5; result = (unsigned int)(v0 + (int)v5); *(_DWORD *)(v4 + 936) = result; return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source