// // GJMultiplayerManager::ProcessHttpRequest from 0x6415ec to 0x641854 (616 bytes) // // 3 xrefs: // > GJMultiplayerManager::joinLobby @ 0x6420fc // > GJMultiplayerManager::exitLobby @ 0x64223c // > GJMultiplayerManager::uploadComment @ 0x64258a // // 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 // int __fastcall GJMultiplayerManager::ProcessHttpRequest(cocos2d::CCObject *a1, _DWORD *a2, int a3, int a4, int a5) { size_t i; // r3 int v10; // r0 unsigned __int8 *v11; // lr unsigned int v12; // r0 unsigned __int8 *v13; // r1 int v14; // r5 unsigned __int8 *v15; // r3 unsigned __int8 *v16; // r0 unsigned __int8 *v17; // r5 int v18; // r9 unsigned __int8 *v19; // r12 unsigned __int8 *v20; // r9 int v21; // t1 size_t v22; // r5 unsigned int v23; // r2 char *v24; // r3 size_t v25; // r1 int v26; // r3 int v27; // r5 int v28; // r3 char v29; // r2 char *v30; // r1 char *v31; // r6 size_t v32; // r0 char *v33; // r1 int *v34; // r0 cocos2d::extension::CCHttpClient *Instance; // r0 unsigned __int8 *v37; // [sp+8h] [bp-3Ch] unsigned __int8 *v38; // [sp+14h] [bp-30h] unsigned __int8 *v39; // [sp+1Ch] [bp-28h] int v40; // [sp+24h] [bp-20h] BYREF unsigned int v41; // [sp+28h] [bp-1Ch] unsigned __int8 *v42; // [sp+2Ch] [bp-18h] int v43; // [sp+30h] [bp-14h] BYREF size_t v44; // [sp+34h] [bp-10h] char *v45; // [sp+38h] [bp-Ch] v40 = 0; v41 = 0; v42 = nullptr; std::string::__init(&v40, "http", 4u); v43 = 0; v44 = 0; v45 = nullptr; std::string::__init(&v43, "https", 5u); for ( i = 0; ; i = v26 + v22 ) { v10 = *(unsigned __int8 *)a2; if ( (v10 & 1) != 0 ) { v11 = (unsigned __int8 *)a2[2]; v12 = a2[1]; } else { v11 = (unsigned __int8 *)a2 + 1; v12 = v10 >> 1; } if ( (v40 & 1) != 0 ) { v13 = v42; v14 = v41; } else { v13 = (unsigned __int8 *)&v40 + 1; v14 = (int)(unsigned __int8)v40 >> 1; } if ( i > v12 || v12 - i < v14 ) break; if ( v14 ) { v15 = &v11[i]; v16 = &v11[v12]; if ( v16 - v15 >= v14 ) { v37 = v15; v38 = &v16[1 - v14]; v39 = &v13[v14]; LABEL_12: while ( 1 ) { v17 = v37; if ( v37 == v38 ) break; v18 = *v37++; if ( v18 == *v13 ) { v19 = v13; v20 = v17; while ( ++v19 != v39 ) { v21 = *++v20; if ( v21 != *v19 ) goto LABEL_12; } goto LABEL_19; } } } v17 = v16; LABEL_19: if ( v17 == v16 ) break; v22 = v17 - v11; } else { v22 = i; } if ( v22 == -1 ) break; if ( (v40 & 1) != 0 ) v23 = v41; else v23 = (int)(unsigned __int8)v40 >> 1; if ( (v43 & 1) != 0 ) { v24 = v45; v25 = v44; } else { v25 = (int)(unsigned __int8)v43 >> 1; v24 = (char *)&v43 + 1; } std::string::replace(a2, v22, v23, v24, v25); if ( (v43 & 1) != 0 ) v26 = v44; else v26 = (int)(unsigned __int8)v43 >> 1; } std::string::~string((int)&v43); std::string::~string((int)&v40); v27 = operator new(0x8Cu); cocos2d::CCObject::CCObject((cocos2d::CCObject *)v27); *(_DWORD *)(v27 + 52) = 5; *(_DWORD *)v27 = &off_C99410; *(_DWORD *)(v27 + 56) = 0; *(_DWORD *)(v27 + 60) = 0; *(_DWORD *)(v27 + 64) = 0; *(_DWORD *)(v27 + 68) = 0; *(_DWORD *)(v27 + 72) = 0; *(_DWORD *)(v27 + 76) = 0; *(_DWORD *)(v27 + 80) = 0; *(_DWORD *)(v27 + 84) = 0; *(_DWORD *)(v27 + 88) = 0; *(_DWORD *)(v27 + 108) = 0; *(_DWORD *)(v27 + 112) = 0; *(_DWORD *)(v27 + 116) = 0; *(_BYTE *)(v27 + 57) = 0; *(_BYTE *)(v27 + 56) = 0; while ( 1 ) { v28 = *(_DWORD *)(v27 + 72); if ( !v28 ) break; *(_DWORD *)(v27 + 72) = v28 - 1; } v29 = *(_BYTE *)(v27 + 80) & 1; if ( v29 ) LOBYTE(dword_0) = 0; else *(_BYTE *)(v27 + 81) = 0; if ( v29 ) *(_DWORD *)(v27 + 84) = 0; else *(_BYTE *)(v27 + 80) = 0; *(_DWORD *)(v27 + 92) = 0; *(_DWORD *)(v27 + 96) = 0; *(_DWORD *)(v27 + 100) = 0; *(_DWORD *)(v27 + 104) = 0; *(_DWORD *)(v27 + 120) = 0; *(_BYTE *)(v27 + 124) = 0; *(_DWORD *)(v27 + 128) = 0; *(_DWORD *)(v27 + 132) = 0; *(_DWORD *)(v27 + 136) = 0; if ( (*(_BYTE *)a2 & 1) != 0 ) v30 = (char *)a2[2]; else v30 = (char *)a2 + 1; std::string::assign((int *)(v27 + 56), v30); *(_DWORD *)(v27 + 52) = 1; *(_DWORD *)(v27 + 92) = a1; *(_DWORD *)(v27 + 96) = GJMultiplayerManager::onProcessHttpRequestCompleted; *(_DWORD *)(v27 + 100) = 0; if ( a1 ) cocos2d::CCObject::retain(a1); if ( (unsigned int)(a5 - 22) <= 1 ) *(_DWORD *)(v27 + 132) = 600; if ( (*(_BYTE *)a3 & 1) != 0 ) v31 = *(char **)(a3 + 8); else v31 = (char *)(a3 + 1); v32 = strlen(v31); std::vector::assign((_DWORD *)(v27 + 68), v31, &v31[v32]); if ( (*(_BYTE *)a4 & 1) != 0 ) v33 = *(char **)(a4 + 8); else v33 = (char *)(a4 + 1); v34 = std::string::assign((int *)(v27 + 80), v33); *(_DWORD *)(v27 + 120) = a5; Instance = (cocos2d::extension::CCHttpClient *)cocos2d::extension::CCHttpClient::getInstance((cocos2d::extension::CCHttpClient *)v34); cocos2d::extension::CCHttpClient::send(Instance, (cocos2d::extension::CCHttpRequest *)v27); return cocos2d::CCObject::release((cocos2d::CCObject *)v27); }
GD Web Decomp Icon

GD Web Decomp

Raw Source