// // GameLevelManager::storeUserNames from 0x14021d240 to 0x14021d577 (823 bytes) // // 5 xrefs: // > GameLevelManager::onGetOnlineLevelsCompleted @ 0x14022baf6 // > GameLevelManager::onGetLevelListsCompleted @ 0x14022e03c // > GameLevelManager::onGetEditorSoundsCompleted @ 0x14022f13c // > GameLevelManager::processOnDownloadLevelCompleted @ 0x140232732 // > @ 0x14091ba94 // // 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:23 +0000 // // Hidden C++ exception states: #wind=4 void __fastcall GameLevelManager::storeUserNames(__int64 a1, _QWORD *a2) { __int64 v2; // r15 size_t v3; // r8 cocos2d::CCArray *v4; // r13 void *v5; // r8 __m128i si128; // xmm6 unsigned int i; // esi cocos2d::CCString *v8; // rax const char *CString; // rax size_t v10; // r8 __int128 *v11; // rdx size_t v12; // r8 cocos2d::CCArray *v13; // rdi void *v14; // rcx cocos2d::CCString *v15; // rax unsigned int v16; // r14d cocos2d::CCString *v17; // rbx cocos2d::CCString *v18; // rax unsigned int v19; // edi const char *v20; // rax size_t v21; // r8 void *v22; // rcx __int128 v24; // [rsp+48h] [rbp-51h] BYREF __m128i v25; // [rsp+58h] [rbp-41h] void *Block[2]; // [rsp+68h] [rbp-31h] BYREF __m128i v27; // [rsp+78h] [rbp-21h] __int128 v28; // [rsp+88h] [rbp-11h] BYREF __int128 v29; // [rsp+98h] [rbp-1h] v2 = (__int64)a2; if ( a2[2] ) { if ( a2[3] > 0xFu ) a2 = (_QWORD *)*a2; *(_OWORD *)Block = 0; v27 = 0; v3 = -1; do ++v3; while ( *((_BYTE *)a2 + v3) ); sub_14003D230(Block, a2, v3); v4 = sub_1400D2840((__int64 *)Block, (unsigned __int8 *)&word_14070D07C); if ( v27.m128i_i64[1] > 0xFuLL ) { v5 = Block[0]; if ( (unsigned __int64)(v27.m128i_i64[1] + 1) >= 0x1000 ) { v5 = *((void **)Block[0] - 1); if ( (unsigned __int64)((char *)Block[0] - (char *)v5 - 8) > 0x1F ) invoke_watson(nullptr, nullptr, nullptr, 0, 0); } j_j_free(v5); } si128 = _mm_load_si128((const __m128i *)&Size); v27 = si128; LOBYTE(Block[0]) = 0; for ( i = 0; i < cocos2d::CCArray::count(v4); ++i ) { v8 = cocos2d::CCArray::objectAtIndex(v4, i); CString = cocos2d::CCString::getCString(v8); v28 = 0; v29 = 0; v10 = -1; do ++v10; while ( CString[v10] ); sub_14003D230(&v28, CString, v10); v11 = &v28; if ( *((_QWORD *)&v29 + 1) > 0xFu ) v11 = (__int128 *)v28; v24 = 0; v25 = 0; v12 = -1; do ++v12; while ( *((_BYTE *)v11 + v12) ); sub_14003D230(&v24, v11, v12); v13 = sub_1400D2840((__int64 *)&v24, ":"); if ( v25.m128i_i64[1] > 0xFuLL ) { v14 = (void *)v24; if ( (unsigned __int64)(v25.m128i_i64[1] + 1) >= 0x1000 ) { v14 = *(void **)(v24 - 8); if ( (unsigned __int64)(v24 - (_QWORD)v14 - 8) > 0x1F ) invoke_watson(nullptr, nullptr, nullptr, 0, 0); } j_j_free(v14); } v25 = si128; LOBYTE(v24) = 0; if ( cocos2d::CCArray::count(v13) >= 3 ) { v15 = cocos2d::CCArray::stringAtIndex(v13, 0); v16 = cocos2d::CCString::intValue(v15); v17 = cocos2d::CCArray::stringAtIndex(v13, 1u); v18 = cocos2d::CCArray::stringAtIndex(v13, 2u); v19 = cocos2d::CCString::intValue(v18); v20 = cocos2d::CCString::getCString(v17); v24 = 0; v25 = 0u; v21 = -1; do ++v21; while ( v20[v21] ); sub_14003D230(&v24, v20, v21); GameLevelManager::storeUserName(a1, v16, v19, &v24); } if ( *((_QWORD *)&v29 + 1) > 0xFu ) { v22 = (void *)v28; if ( (unsigned __int64)(*((_QWORD *)&v29 + 1) + 1LL) >= 0x1000 ) { v22 = *(void **)(v28 - 8); if ( (unsigned __int64)(v28 - (_QWORD)v22 - 8) > 0x1F ) invoke_watson(nullptr, nullptr, nullptr, 0, 0); } j_j_free(v22); } } } sub_14003D310(v2); }
GD Web Decomp Icon

GD Web Decomp

Raw Source