// // GameLevelManager::getFriendRequests from 0x140254070 to 0x1402543fd (909 bytes) // // 2 xrefs: // > FRequestProfilePage::loadPage @ 0x1402126f7 // > @ 0x14091c55c // // 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:43 +0000 // // Hidden C++ exception states: #wind=4 void __fastcall GameLevelManager::getFriendRequests( cocos2d::CCActionManager **a1, unsigned __int8 a2, int a3, int a4, const char *a5, char a6) { int v8; // r14d const char *v10; // rdx const char *v11; // rax cocos2d::CCString *v12; // rax char *CString; // rsi __int64 v14; // rcx cocos2d::CCString *v15; // rax const char *v16; // rax cocos2d::CCString *v17; // rax char *v18; // rax size_t v19; // rbx size_t v20; // r8 char *v21; // rdx __int64 v22; // rax __int64 v23; // rdi void **v24; // rdx void *v25; // rcx size_t v26; // r8 _QWORD *v27; // rdx uintptr_t Reserved; // [rsp+20h] [rbp-B9h] __int128 v29; // [rsp+48h] [rbp-91h] BYREF __int64 v30; // [rsp+58h] [rbp-81h] __int64 v31; // [rsp+60h] [rbp-79h] __int128 v32; // [rsp+68h] [rbp-71h] BYREF __int64 v33; // [rsp+78h] [rbp-61h] __int64 v34; // [rsp+80h] [rbp-59h] __int128 *v35; // [rsp+88h] [rbp-51h] void *Block[2]; // [rsp+98h] [rbp-41h] BYREF size_t Size[2]; // [rsp+A8h] [rbp-31h] _QWORD Src[4]; // [rsp+B8h] [rbp-21h] BYREF v8 = a2; v10 = "fReq"; if ( a6 ) v10 = "fReqI"; if ( *((_QWORD *)a5 + 2) ) { v11 = a5; if ( *((_QWORD *)a5 + 3) > 0xFu ) v11 = *(const char **)a5; v12 = cocos2d::CCString::createWithFormat("%sS_%i_%i_%s", v10, v8, a3, v11); } else { v12 = cocos2d::CCString::createWithFormat("%s_%i_%i", v10, v8, a3); } CString = (char *)cocos2d::CCString::getCString(v12); if ( !GameLevelManager::isDLActive((__int64)a1, CString) ) { GameLevelManager::addDLToActive((__int64)a1, CString); GameLevelManager::getBasePostString(v14, Src); LODWORD(Reserved) = 103; v15 = cocos2d::CCString::createWithFormat( "%c%s%s%c%c%s", 87, "mfd", "2893", Reserved, 98, (const char *)&word_14070D040); v16 = cocos2d::CCString::getCString(v15); v17 = cocos2d::CCString::createWithFormat("&page=%i&total=%i&secret=%s", a3, a4, v16); v18 = (char *)cocos2d::CCString::getCString(v17); v19 = -1; v20 = -1; do ++v20; while ( v18[v20] ); sub_140044D80(Src, v18, v20); if ( a6 ) { v21 = "&getSent=2"; } else { if ( !(_BYTE)v8 ) { LABEL_16: if ( *((_QWORD *)a5 + 2) ) { sub_140044D80(Src, "&search=", 8u); v22 = sub_14003F4F0((__int64)&v29, (__int64)a5); v23 = v22; if ( *(_QWORD *)(v22 + 16) ) { cocos2d::ZipUtils::base64URLEncode(Block, v22); } else { *(_OWORD *)Block = 0; *(_OWORD *)Size = 0; *(_OWORD *)Block = *(_OWORD *)v22; *(_OWORD *)Size = *(_OWORD *)(v22 + 16); *(_QWORD *)(v22 + 16) = 0; *(_QWORD *)(v22 + 24) = 15; *(_BYTE *)v22 = 0; } sub_14003D310(v23); v24 = Block; if ( Size[1] > 0xF ) v24 = (void **)Block[0]; sub_140044D80(Src, v24, Size[0]); if ( Size[1] > 0xF ) { v25 = Block[0]; if ( Size[1] + 1 >= 0x1000 ) { v25 = *((void **)Block[0] - 1); if ( (unsigned __int64)((char *)Block[0] - (char *)v25 - 8) > 0x1F ) invoke_watson(nullptr, nullptr, nullptr, 0, 0); } j_j_free(v25); } } v35 = &v29; v32 = 0; v33 = 0; v34 = 0; v26 = -1; do ++v26; while ( CString[v26] ); sub_14003D230(&v32, CString, v26); v27 = Src; if ( Src[3] > 0xFu ) v27 = (_QWORD *)Src[0]; v29 = 0; v30 = 0; v31 = 0; do ++v19; while ( *((_BYTE *)v27 + v19) ); sub_14003D230(&v29, v27, v19); *(_OWORD *)Block = 0; Size[0] = 0; Size[1] = 0; Block[0] = sub_14003D460(0x40u); Size[0] = 60; Size[1] = 63; strcpy((char *)Block[0], "https://www.boomlings.com/database/getGJFriendRequests20.php"); GameLevelManager::ProcessHttpRequest(a1, (__int64)Block, (const char *)&v29, (const char *)&v32, 0x22u); sub_14003D310((__int64)Src); return; } v21 = "&getSent=1"; } sub_140044D80(Src, v21, 0xAu); goto LABEL_16; } }
GD Web Decomp Icon

GD Web Decomp

Raw Source