// // sub_641444 from 0x641444 to 0x6415e6 (418 bytes) // // 4 xrefs: // > GJMultiplayerManager::onJoinLobbyCompleted @ 0x641aae // > GJMultiplayerManager::onJoinLobbyCompleted @ 0x641b20 // > GJMultiplayerManager::onJoinLobbyCompleted @ 0x641b6c // > GJMultiplayerManager::onJoinLobbyCompleted @ 0x641c96 // // This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False! // // 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:55:28 +0000 // cocos2d::CCArray *__fastcall sub_641444(cocos2d::CCArray *a1, const char *a2) { cocos2d::CCArray *v4; // r0 int v5; // r6 int v6; // r4 unsigned __int8 *v7; // r9 size_t v8; // r0 unsigned __int8 *v9; // r4 unsigned __int8 *v10; // r0 unsigned __int8 *i; // r3 const char *v12; // r2 int v13; // t1 int v14; // r4 int v15; // r6 unsigned int v16; // r11 int v17; // r0 size_t v18; // r2 unsigned int v19; // r0 char *v20; // r1 char *v21; // r1 char *v22; // r11 size_t v23; // r0 cocos2d::CCObject *v24; // r0 int v25; // r1 int v26; // r1 unsigned __int8 *v27; // r4 size_t v28; // r0 unsigned __int8 *v29; // r2 unsigned __int8 *v30; // r0 const char *v31; // r1 int v32; // t1 cocos2d::CCArray *v34; // [sp+4h] [bp-30h] unsigned int v35; // [sp+Ch] [bp-28h] int v36; // [sp+14h] [bp-20h] BYREF int v37; // [sp+18h] [bp-1Ch] char *v38; // [sp+1Ch] [bp-18h] int v39[3]; // [sp+20h] [bp-14h] BYREF v4 = (cocos2d::CCArray *)cocos2d::CCArray::create(a1); v5 = *(unsigned __int8 *)a1; if ( (v5 & 1) != 0 ) { v6 = *((_DWORD *)a1 + 1); v7 = *((unsigned __int8 **)a1 + 2); } else { v6 = v5 >> 1; v7 = (unsigned __int8 *)a1 + 1; } v34 = v4; v8 = strlen(a2); if ( v6 && v8 ) { v9 = &v7[v6]; v10 = (unsigned __int8 *)&a2[v8]; for ( i = v7; i != v9; ++i ) { v12 = a2; while ( v12 != (const char *)v10 ) { v13 = *(unsigned __int8 *)v12++; if ( *i == v13 ) { v14 = i - v7; goto LABEL_14; } } } } v14 = -1; LABEL_14: if ( (v5 & 1) != 0 ) v15 = *((_DWORD *)a1 + 1); else v15 = v5 >> 1; v16 = 0; while ( 1 ) { v17 = *(unsigned __int8 *)a1; v18 = v14 - v16; v36 = 0; v37 = 0; v38 = nullptr; if ( (v17 & 1) != 0 ) { v19 = *((_DWORD *)a1 + 1); if ( v16 > v19 ) goto LABEL_22; v20 = *((char **)a1 + 2); } else { v19 = v17 >> 1; if ( v16 > v19 ) LABEL_22: sub_389568(); v20 = (char *)a1 + 1; } v21 = &v20[v16]; if ( v18 >= v19 - v16 ) v18 = v19 - v16; std::string::__init(&v36, v21, v18); if ( (v36 & 1) != 0 ) { if ( v37 || v16 != v15 ) { v22 = v38; LABEL_36: memset(v39, 0, sizeof(v39)); v23 = strlen(v22); std::string::__init(v39, v22, v23); v24 = (cocos2d::CCObject *)cocos2d::CCString::create(v39); cocos2d::CCArray::addObject(v34, v24); std::string::~string((int)v39); } } else if ( (unsigned __int8)v36 >> 1 || v16 != v15 ) { v22 = (char *)&v36 + 1; goto LABEL_36; } if ( v14 == -1 ) break; v25 = *(unsigned __int8 *)a1; v16 = v14 + 1; if ( (v25 & 1) != 0 ) { v26 = *((_DWORD *)a1 + 1); v27 = *((unsigned __int8 **)a1 + 2); } else { v26 = v25 >> 1; v27 = (unsigned __int8 *)a1 + 1; } v35 = v26; v28 = strlen(a2); if ( v16 < v35 && v28 ) { v29 = &v27[v16]; v30 = (unsigned __int8 *)&a2[v28]; while ( v29 != &v27[v35] ) { v31 = a2; while ( v31 != (const char *)v30 ) { v32 = *(unsigned __int8 *)v31++; if ( *v29 == v32 ) { v14 = v29 - v27; goto LABEL_51; } } ++v29; } } v14 = -1; LABEL_51: std::string::~string((int)&v36); } std::string::~string((int)&v36); return v34; }
GD Web Decomp Icon

GD Web Decomp

Raw Source