// // GJMultiplayerManager::ProcessHttpRequest from 0x1403902e0 to 0x1403905e3 (771 bytes) // // 2 xrefs: // > GJMultiplayerManager::uploadComment @ 0x1403916fd // > @ 0x140922f94 // // 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:31:11 +0000 // // Hidden C++ exception states: #wind=6 void __fastcall GJMultiplayerManager::ProcessHttpRequest( cocos2d::CCObject *a1, char *a2, const char *a3, const char *a4, int a5) { size_t v7; // r12 unsigned __int64 v8; // r13 unsigned __int64 v9; // r8 unsigned __int64 v10; // rdi void **v11; // rdx char *v12; // r14 unsigned __int64 v13; // rcx char *v14; // rbx __int64 v15; // rax char *v16; // r9 void *v17; // rcx void *v18; // rcx cocos2d::extension::CCHttpRequest *v19; // rbx const char *v20; // rdx const char *v21; // rax const char *v22; // rdx __int64 v23; // r8 const char *v24; // rdx __int64 v25; // rdx __int64 v26; // rcx cocos2d::extension::CCHttpClient *Instance; // rax void *Block[2]; // [rsp+60h] [rbp-31h] BYREF __int64 v31; // [rsp+70h] [rbp-21h] unsigned __int64 v32; // [rsp+78h] [rbp-19h] void *v33[2]; // [rsp+80h] [rbp-11h] BYREF __int64 v34; // [rsp+90h] [rbp-1h] __int64 v35; // [rsp+98h] [rbp+7h] *(_OWORD *)v33 = 0; v7 = 5; v34 = 5; v8 = 15; v35 = 15; strcpy((char *)v33, "https"); *(_OWORD *)Block = 0; v9 = 4; v31 = 4; v32 = 15; strcpy((char *)Block, "http"); v10 = 0; while ( 1 ) { v11 = Block; if ( v32 > 0xF ) v11 = (void **)Block[0]; v12 = a2; if ( *((_QWORD *)a2 + 3) > 0xFu ) v12 = *(char **)a2; v13 = *((_QWORD *)a2 + 2); if ( v9 > v13 || v10 > v13 - v9 ) break; if ( v9 ) { v14 = &v12[v13]; v15 = sub_1406774C0(&v12[v10], &v12[v13], v11, v9); if ( (char *)v15 == v14 ) break; v10 = v15 - (_QWORD)v12; v9 = v31; } if ( v10 == -1 ) break; v16 = (char *)v33; if ( v8 > 0xF ) v16 = (char *)v33[0]; sub_140045CE0(a2, v10, v9, v16, v7); v7 = v34; v10 += v34; v8 = v35; v9 = v31; } if ( v32 > 0xF ) { v17 = Block[0]; if ( v32 + 1 >= 0x1000 ) { v17 = *((void **)Block[0] - 1); if ( (unsigned __int64)((char *)Block[0] - (char *)v17 - 8) > 0x1F ) invoke_watson(nullptr, nullptr, nullptr, 0, 0); } j_j_free(v17); } v31 = 0; v32 = 15; LOBYTE(Block[0]) = 0; if ( v8 > 0xF ) { v18 = v33[0]; if ( v8 + 1 >= 0x1000 ) { v18 = *((void **)v33[0] - 1); if ( (unsigned __int64)((char *)v33[0] - (char *)v18 - 8) > 0x1F ) invoke_watson(nullptr, nullptr, nullptr, 0, 0); } j_j_free(v18); } v19 = (cocos2d::extension::CCHttpRequest *)operator new(0xE0u); cocos2d::extension::CCHttpRequest::CCHttpRequest(v19); *(_QWORD *)v19 = &cocos2d::extension::CCHttpRequest::`vftable'; v20 = a2; if ( *((_QWORD *)a2 + 3) > 0xFu ) v20 = *(const char **)a2; cocos2d::extension::CCHttpRequest::setUrl(v19, v20); *((_DWORD *)v19 + 14) = 1; *((_QWORD *)v19 + 19) = a1; *((_QWORD *)v19 + 20) = GJMultiplayerManager::onProcessHttpRequestCompleted; if ( a1 ) cocos2d::CCObject::retain(a1); v21 = a3; if ( *((_QWORD *)a3 + 3) <= 0xFu ) { v22 = a3; } else { v22 = *(const char **)a3; v21 = *(const char **)a3; } v23 = -1; do ++v23; while ( v21[v23] ); cocos2d::extension::CCHttpRequest::setRequestData(v19, v22, v23); v24 = a4; if ( *((_QWORD *)a4 + 3) > 0xFu ) v24 = *(const char **)a4; cocos2d::extension::CCHttpRequest::setTag(v19, v24); *((_DWORD *)v19 + 50) = a5; Instance = (cocos2d::extension::CCHttpClient *)cocos2d::extension::CCHttpClient::getInstance(v26, v25); cocos2d::extension::CCHttpClient::send(Instance, v19); cocos2d::CCObject::release(v19); sub_14003D310((__int64)a2); sub_14003D310((__int64)a3); sub_14003D310((__int64)a4); }
GD Web Decomp Icon

GD Web Decomp

Raw Source