// // LocalLevelManager::getMainLevelString from 0x140330290 to 0x14033039d (269 bytes) // // 4 xrefs: // > LevelAreaInnerLayer::playStep1 @ 0x1402c8449 // > LevelPage::playStep3 @ 0x14031dd65 // > LevelTools::getLevel @ 0x1403277e2 // > @ 0x1406d5000 // // This function is hookable on this platform! // // Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings // __int64 __fastcall LocalLevelManager::getMainLevelString(LocalLevelManager *a1, __int64 a2, int a3) { __int64 *v5; // rcx __int64 v6; // rax __int64 v7; // rcx _QWORD *v8; // rax _BYTE v10[32]; // [rsp+28h] [rbp-20h] BYREF int v11; // [rsp+60h] [rbp+18h] BYREF v11 = a3; LocalLevelManager::tryLoadMainLevelString(a1, a3); v5 = (__int64 *)((char *)a1->m_mainLevels._Vec._Mypair._Myval2._Myfirst + 16 * ((0x100000001B3LL * (HIBYTE(v11) ^ (0x100000001B3LL * (BYTE2(v11) ^ (0x100000001B3LL * (BYTE1(v11) ^ (0x100000001B3LL * ((unsigned __int8)v11 ^ 0xCBF29CE484222325uLL)))))))) & a1->m_mainLevels._Mask)); v6 = v5[1]; if ( (std::_List_val>>::_Nodeptr)v6 != a1->m_mainLevels._List._Mypair._Myval2._Myhead ) { v7 = *v5; if ( v11 == *(_DWORD *)(v6 + 16) ) goto LABEL_7; while ( v6 != v7 ) { v6 = *(_QWORD *)(v6 + 8); if ( v11 == *(_DWORD *)(v6 + 16) ) goto LABEL_7; } } v6 = 0; LABEL_7: if ( v6 ) { v8 = (_QWORD *)sub_1400608D0((__int64)&a1->m_mainLevels, (__int64)v10, (unsigned __int8 *)&v11); sub_14003BDB0(a2, *v8 + 24LL); return a2; } else { *(_OWORD *)a2 = 0; *(_QWORD *)(a2 + 16) = 0; *(_QWORD *)(a2 + 24) = 15; *(_BYTE *)a2 = 0; return a2; } }
GD Web Decomp Icon

GD Web Decomp

Raw Source