// // GameLevelManager::deleteFriendRequests from 0x10057a610 to 0x10057ab43 (1331 bytes) // // 3 xrefs: // > FriendRequestPopup::onRemove @ 0x100292303 // > GameLevelManager::deleteSentFriendRequest @ 0x10057a5fc // > FRequestProfilePage::deleteSelected @ 0x100871648 // // 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 12:32:18 +0000 // char __fastcall GameLevelManager::deleteFriendRequests(__int64 a1, int a2, __int64 a3, unsigned __int8 a4) { __int64 v6; // r15 int v7; // r13d __int64 v8; // rax void *CString; // rax __int64 v10; // rbx size_t v11; // rax std::string::size_type v12; // r14 char *data; // r13 size_t v14; // r12 __int64 v15; // rbx __int64 v16; // r12 void *v17; // r14 size_t v18; // rax std::string::size_type v19; // rbx char *v20; // r13 __int64 v22; // r14 size_t v23; // r12 __int64 v24; // rax __int64 v25; // rax const std::string::value_type *v26; // rax __int64 v27; // rax const std::string::value_type *v28; // rax unsigned int i; // r12d __int64 v30; // rax const std::string::value_type *v31; // rax const char *v32; // rbx size_t v33; // rax size_t v34; // r14 char *v35; // r15 size_t v36; // r12 size_t v37; // rax size_t v38; // rbx char *v39; // r14 size_t v40; // r15 char v41; // [rsp+0h] [rbp-B0h] char v42; // [rsp+0h] [rbp-B0h] char v43; // [rsp+0h] [rbp-B0h] char v44; // [rsp+0h] [rbp-B0h] void *v45; // [rsp+8h] [rbp-A8h] std::string v46; // [rsp+10h] [rbp-A0h] BYREF __int64 v47; // [rsp+28h] [rbp-88h] _QWORD v48[2]; // [rsp+30h] [rbp-80h] BYREF void *v49; // [rsp+40h] [rbp-70h] __int128 v50; // [rsp+48h] [rbp-68h] BYREF void *v51; // [rsp+58h] [rbp-58h] int v52; // [rsp+60h] [rbp-50h] int v53; // [rsp+64h] [rbp-4Ch] void *__src; // [rsp+68h] [rbp-48h] std::string __dst[2]; // [rsp+70h] [rbp-40h] BYREF if ( !a3 ) goto LABEL_4; v6 = a3; if ( (unsigned int)sub_1007FEF90(a3) == 1 ) { a2 = *(_DWORD *)(sub_1007FEFE0(v6, 0) + 376); LABEL_4: v6 = 0; } if ( a2 <= 0 && (!v6 || !(unsigned int)sub_1007FEF90(v6)) ) return 0; v7 = a4; v8 = sub_10088E820("delFriendReq_%i_%i", v41); CString = (void *)cocos2d::CCString::getCString(v8); v47 = a1; v10 = *(_QWORD *)(a1 + 1088); __src = CString; v11 = strlen((const char *)CString); if ( v11 >= 0xFFFFFFFFFFFFFFF8LL ) LABEL_64: sub_100003630(); v12 = v11; v53 = v7; v52 = a2; if ( v11 >= 0x17 ) { v14 = 26; if ( (v11 | 7) != 0x17 ) v14 = (v11 | 7) + 1; data = (char *)operator new(v14); __dst[0].__r_.__value_.__r.__words[2] = (std::string::size_type)data; __dst[0].__r_.__value_.__r.__words[0] = v14 + 1; __dst[0].__r_.__value_.__l.__size_ = v12; goto LABEL_13; } __dst[0].__r_.__value_.__s.0 = (std::string::__short::$7162EEB0FEF29CC674EFA33D0008C7E0)(2 * v11); data = __dst[0].__r_.__value_.__s.__data_; if ( v11 ) LABEL_13: memmove(data, __src, v12); data[v12] = 0; v15 = cocos2d::CCDictionary::objectForKey(v10, (char *)__dst); if ( (*(_BYTE *)&__dst[0].__r_.__value_.__s.0 & 1) != 0 ) operator delete(__dst[0].__r_.__value_.__l.__data_); if ( v15 ) return 0; v16 = *(_QWORD *)(v47 + 1088); v17 = cocos2d::CCNode::create(); v18 = strlen((const char *)__src); if ( v18 >= 0xFFFFFFFFFFFFFFF8LL ) goto LABEL_64; v19 = v18; if ( v18 >= 0x17 ) { v45 = v17; v22 = v16; v23 = 26; if ( (v18 | 7) != 0x17 ) v23 = (v18 | 7) + 1; v20 = (char *)operator new(v23); __dst[0].__r_.__value_.__r.__words[2] = (std::string::size_type)v20; __dst[0].__r_.__value_.__r.__words[0] = v23 + 1; v16 = v22; v17 = v45; __dst[0].__r_.__value_.__l.__size_ = v19; goto LABEL_27; } __dst[0].__r_.__value_.__s.0 = (std::string::__short::$7162EEB0FEF29CC674EFA33D0008C7E0)(2 * v18); v20 = __dst[0].__r_.__value_.__s.__data_; if ( v18 ) LABEL_27: memmove(v20, __src, v19); v20[v19] = 0; cocos2d::CCDictionary::setObject(v16, (__int64)v17, (char *)__dst); if ( (*(_BYTE *)&__dst[0].__r_.__value_.__s.0 & 1) != 0 ) operator delete(__dst[0].__r_.__value_.__l.__data_); GameLevelManager::getBasePostString(__dst); v24 = sub_10088E820("%c%s%s%c%c%s", (char)"7"); cocos2d::CCString::getCString(v24); v25 = sub_10088E820("&targetAccountID=%i&isSender=%i&secret=%s", v42); v26 = (const std::string::value_type *)cocos2d::CCString::getCString(v25); std::string::append(__dst, v26); if ( v6 ) { std::string::append(__dst, "&accounts="); if ( (unsigned int)sub_1007FEF90(v6) ) { sub_1007FEFE0(v6, 0); v27 = sub_10088E820("%i", v43); v28 = (const std::string::value_type *)cocos2d::CCString::getCString(v27); std::string::append(__dst, v28); for ( i = 1; i < (unsigned int)sub_1007FEF90(v6); ++i ) { sub_1007FEFE0(v6, i); std::string::append(__dst, ","); v30 = sub_10088E820("%i", v44); v31 = (const std::string::value_type *)cocos2d::CCString::getCString(v30); std::string::append(__dst, v31); } } } v46.__r_.__value_.__r.__words[2] = (std::string::size_type)operator new(0x40u); v46.__r_.__value_.__r.__words[0] = 65; v46.__r_.__value_.__l.__size_ = 63; strcpy(v46.__r_.__value_.__l.__data_, "https://www.boomlings.com/database/deleteGJFriendRequests20.php"); if ( (*(_BYTE *)&__dst[0].__r_.__value_.__s.0 & 1) != 0 ) v32 = __dst[0].__r_.__value_.__l.__data_; else v32 = __dst[0].__r_.__value_.__s.__data_; v33 = strlen(v32); if ( v33 >= 0xFFFFFFFFFFFFFFF8LL ) sub_100003630(); v34 = v33; if ( v33 >= 0x17 ) { v36 = 26; if ( (v33 | 7) != 0x17 ) v36 = (v33 | 7) + 1; v35 = (char *)operator new(v36); v49 = v35; v48[0] = v36 | 1; v48[1] = v34; goto LABEL_45; } LOBYTE(v48[0]) = 2 * v33; v35 = (char *)v48 + 1; if ( v33 ) LABEL_45: memmove(v35, v32, v34); v35[v34] = 0; v37 = strlen((const char *)__src); if ( v37 >= 0xFFFFFFFFFFFFFFF8LL ) sub_100003630(); v38 = v37; if ( v37 >= 0x17 ) { v40 = 26; if ( (v37 | 7) != 0x17 ) v40 = (v37 | 7) + 1; v39 = (char *)operator new(v40); v51 = v39; *(_QWORD *)&v50 = v40 | 1; *((_QWORD *)&v50 + 1) = v38; goto LABEL_53; } LOBYTE(v50) = 2 * v37; v39 = (char *)&v50 + 1; if ( v37 ) LABEL_53: memmove(v39, __src, v38); v39[v38] = 0; GameLevelManager::ProcessHttpRequest(v47, &v46, (__int64)v48, &v50, 0x24u); if ( (v50 & 1) != 0 ) { operator delete(v51); if ( (v48[0] & 1) == 0 ) { LABEL_56: if ( (*(_BYTE *)&v46.__r_.__value_.__s.0 & 1) == 0 ) goto LABEL_57; LABEL_62: operator delete(v46.__r_.__value_.__l.__data_); if ( (*(_BYTE *)&__dst[0].__r_.__value_.__s.0 & 1) == 0 ) return 1; goto LABEL_58; } } else if ( (v48[0] & 1) == 0 ) { goto LABEL_56; } operator delete(v49); if ( (*(_BYTE *)&v46.__r_.__value_.__s.0 & 1) != 0 ) goto LABEL_62; LABEL_57: if ( (*(_BYTE *)&__dst[0].__r_.__value_.__s.0 & 1) != 0 ) LABEL_58: operator delete(__dst[0].__r_.__value_.__l.__data_); return 1; }
GD Web Decomp Icon

GD Web Decomp

Raw Source