// // GameLevelManager::getDemonLevelsString from 0x14021f560 to 0x14021f751 (497 bytes) // // 2 xrefs: // > GameLevelManager::updateUserScore @ 0x1402369c6 // > @ 0x14091bb3c // // 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:28:24 +0000 // // Hidden C++ exception states: #wind=2 _QWORD *__fastcall GameLevelManager::getDemonLevelsString(__int64 a1, _QWORD *a2) { char v4; // bp __int64 v5; // rcx __int64 v6; // rcx __int64 i; // rdi _DWORD *v8; // rax _DWORD *v9; // rbx __int64 v10; // rcx _BYTE *v11; // rax size_t v12; // r8 void *v14; // [rsp+38h] [rbp-270h] __int128 v15; // [rsp+50h] [rbp-258h] BYREF _BYTE v16[528]; // [rsp+60h] [rbp-248h] BYREF fmt::BasicWriter::BasicWriter(v16); v4 = 1; v5 = *(_QWORD *)(a1 + 856); if ( !v5 ) goto LABEL_19; v6 = *(_QWORD *)(v5 + 56); if ( !v6 ) goto LABEL_19; for ( i = *(_QWORD *)(v6 + 288); ; i = *(_QWORD *)(i + 288) ) { v8 = (_DWORD *)_RTDynamicCast( *(_QWORD *)(v6 + 264), 0, &cocos2d::CCObject `RTTI Type Descriptor', &GJGameLevel `RTTI Type Descriptor', 0); v9 = v8; if ( v8 && v8[255] - v8[256] == 10 && v8[233] - v8[232] == 100 ) { v10 = qword_14090BFE0; if ( !qword_14090BFE0 ) { v14 = operator new(0x3E8u); qword_14090BFE0 = sub_1402D6480(v14); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFE0 + 72LL))(qword_14090BFE0); v10 = qword_14090BFE0; } if ( (unsigned __int8)GameStatsManager::hasCompletedLevel(v10, v9) ) { if ( !v4 ) { v15 = (unsigned __int64)byte_14070ECF8; fmt::BasicWriter::operator<<(v16, &v15); } fmt::BasicWriter::operator<<(v16, (unsigned int)(v9[82] - v9[83])); v4 = 0; } } v6 = i; if ( !i ) break; } if ( !v4 ) { v11 = (_BYTE *)fmt::BasicWriter::c_str(v16); *(_OWORD *)a2 = 0; a2[2] = 0; a2[3] = 0; v12 = -1; do ++v12; while ( v11[v12] ); sub_14003D230(a2, v11, v12); } else { LABEL_19: *(_OWORD *)a2 = 0; a2[2] = 0; a2[3] = 15; *(_BYTE *)a2 = 0; } fmt::BasicWriter::~BasicWriter(v16); return a2; }
GD Web Decomp Icon

GD Web Decomp

Raw Source