// // GameLevelManager::updateThread from 0x1005780e0 to 0x100578617 (1335 bytes) // // 23 xrefs: // > sub_1005786D0 @ 0x1005787d0 // > MessageThreadsPage::onMarkRead @ 0x10092a060 // > MessageThreadsPage::FLAlert_Clicked @ 0x10092afec // > MessageThreadsPage::FLAlert_Clicked @ 0x10092b073 // > MessageThreadsPage::FLAlert_Clicked @ 0x10092b1ed // > sub_10093A6C0 @ 0x10093a7f8 // > MemberListPopup::onAddPolicy @ 0x1009427ed // > MemberListPopup::FLAlert_Clicked @ 0x100943149 // > MemberListPopup::FLAlert_Clicked @ 0x1009431d5 // > MemberListPopup::FLAlert_Clicked @ 0x100943261 // > sub_10094A3F0 @ 0x10094a42e // > sub_10094A490 @ 0x10094a4ce // > ThreadOptionsPopup::FLAlert_Clicked @ 0x10094ab4e // > ThreadOptionsPopup::FLAlert_Clicked @ 0x10094abba // > ThreadOptionsPopup::FLAlert_Clicked @ 0x10094acd7 // > ThreadOptionsPopup::FLAlert_Clicked @ 0x10094ad6f // > sub_10094EA40 @ 0x10094ea7f // > InvitesPopup::FLAlert_Clicked @ 0x10094ec8a // > sub_10094F9E0 @ 0x10094fa71 // > sub_100952E80 @ 0x1009530bf // > sub_100952E80 @ 0x1009530f0 // > sub_100953600 @ 0x10095362e // > ThreadDescPopup::threadUpdateFinished @ 0x100953896 // // 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:17 +0000 // char __fastcall GameLevelManager::updateThread(__int64 a1, int a2, int a3, std::string *a4) { unsigned int v5; // eax __int64 v6; // rax void *CString; // rax size_t v8; // rax std::string::size_type v9; // r14 char *data; // r15 size_t v11; // rbx __int64 v12; // rbx __int64 v14; // rbx void *v15; // r15 size_t v16; // rax std::string::size_type v17; // r14 char *v18; // r15 size_t v19; // rbx __int64 v20; // rax __int64 v21; // rax const std::string::value_type *v22; // rax unsigned int v23; // eax const std::string::value_type *v24; // rsi std::string::size_type size; // rdx const char *v26; // rbx size_t v27; // rax size_t v28; // r14 char *v29; // r15 size_t v30; // r12 size_t v31; // rax size_t v32; // rbx char *v33; // r14 size_t v34; // r15 char v35; // [rsp+0h] [rbp-F0h] char v36; // [rsp+0h] [rbp-F0h] std::string *v37; // [rsp+8h] [rbp-E8h] __int64 v38; // [rsp+10h] [rbp-E0h] std::string v39; // [rsp+18h] [rbp-D8h] BYREF std::string v40; // [rsp+30h] [rbp-C0h] BYREF std::string v41; // [rsp+50h] [rbp-A0h] BYREF __int64 v42; // [rsp+68h] [rbp-88h] _QWORD v43[2]; // [rsp+70h] [rbp-80h] BYREF void *v44; // [rsp+80h] [rbp-70h] __int128 v45; // [rsp+88h] [rbp-68h] BYREF void *v46; // [rsp+98h] [rbp-58h] __int64 v47; // [rsp+A0h] [rbp-50h] void *__src; // [rsp+A8h] [rbp-48h] std::string __dst[2]; // [rsp+B0h] [rbp-40h] BYREF if ( a2 < 0 || a3 <= 0 ) return 0; if ( a2 != 0 || a3 == 3 ) goto LABEL_8; if ( a3 != 1 ) return 0; v5 = (unsigned int)a4->__r_.__value_.__l.0; if ( (v5 & 1) == 0 ) { if ( v5 >> 1 ) goto LABEL_8; return 0; } if ( !a4->__r_.__value_.__l.__size_ ) return 0; LABEL_8: v6 = sub_10088E820("threadUpd_%i_%i", v35); CString = (void *)cocos2d::CCString::getCString(v6); v47 = *(_QWORD *)(a1 + 1088); __src = CString; v8 = strlen((const char *)CString); if ( v8 >= 0xFFFFFFFFFFFFFFF8LL ) goto LABEL_73; v9 = v8; v37 = a4; v42 = a1; if ( v8 >= 0x17 ) { v11 = 26; if ( (v8 | 7) != 0x17 ) v11 = (v8 | 7) + 1; data = (char *)operator new(v11); __dst[0].__r_.__value_.__r.__words[2] = (std::string::size_type)data; __dst[0].__r_.__value_.__r.__words[0] = v11 + 1; __dst[0].__r_.__value_.__l.__size_ = v9; goto LABEL_15; } __dst[0].__r_.__value_.__s.0 = (std::string::__short::$7162EEB0FEF29CC674EFA33D0008C7E0)(2 * v8); data = __dst[0].__r_.__value_.__s.__data_; if ( v8 ) LABEL_15: memmove(data, __src, v9); data[v9] = 0; v12 = cocos2d::CCDictionary::objectForKey(v47, (char *)__dst); if ( (*(_BYTE *)&__dst[0].__r_.__value_.__s.0 & 1) != 0 ) operator delete(__dst[0].__r_.__value_.__l.__data_); if ( v12 ) return 0; v14 = *(_QWORD *)(v42 + 1088); v15 = cocos2d::CCNode::create(); v16 = strlen((const char *)__src); if ( v16 >= 0xFFFFFFFFFFFFFFF8LL ) LABEL_73: sub_100003630(); v17 = v16; v47 = (__int64)v15; if ( v16 >= 0x17 ) { v38 = v14; v19 = 26; if ( (v16 | 7) != 0x17 ) v19 = (v16 | 7) + 1; v18 = (char *)operator new(v19); __dst[0].__r_.__value_.__r.__words[2] = (std::string::size_type)v18; __dst[0].__r_.__value_.__r.__words[0] = v19 + 1; v14 = v38; __dst[0].__r_.__value_.__l.__size_ = v17; goto LABEL_27; } __dst[0].__r_.__value_.__s.0 = (std::string::__short::$7162EEB0FEF29CC674EFA33D0008C7E0)(2 * v16); v18 = __dst[0].__r_.__value_.__s.__data_; if ( v16 ) LABEL_27: memmove(v18, __src, v17); v18[v17] = 0; cocos2d::CCDictionary::setObject(v14, v47, (char *)__dst); if ( (*(_BYTE *)&__dst[0].__r_.__value_.__s.0 & 1) != 0 ) operator delete(__dst[0].__r_.__value_.__l.__data_); GameLevelManager::getBasePostString(__dst); v20 = sub_10088E820("%c%s%s%c%c%s", (char)"7"); cocos2d::CCString::getCString(v20); v21 = sub_10088E820("&threadID=%i&mode=%i&secret=%s", v36); v22 = (const std::string::value_type *)cocos2d::CCString::getCString(v21); std::string::append(__dst, v22); v23 = (unsigned int)v37->__r_.__value_.__l.0; if ( (v23 & 1) != 0 ) { if ( !v37->__r_.__value_.__l.__size_ ) goto LABEL_44; } else if ( !(v23 >> 1) ) { goto LABEL_44; } std::string::append(__dst, "&value="); if ( (*(_BYTE *)&v37->__r_.__value_.__s.0 & 1) != 0 ) sub_10001AD30(&v40, v37->__r_.__value_.__l.__data_, v37->__r_.__value_.__l.__size_); else v40 = *v37; LevelTools::base64EncodeString(&v41, &v40); if ( (*(_BYTE *)&v41.__r_.__value_.__s.0 & 1) != 0 ) { v24 = v41.__r_.__value_.__l.__data_; size = v41.__r_.__value_.__l.__size_; } else { size = *(_BYTE *)&v41.__r_.__value_.__l.0 >> 1; v24 = v41.__r_.__value_.__s.__data_; } std::string::append(__dst, v24, size); if ( (*(_BYTE *)&v41.__r_.__value_.__s.0 & 1) != 0 ) operator delete(v41.__r_.__value_.__l.__data_); if ( (*(_BYTE *)&v40.__r_.__value_.__s.0 & 1) != 0 ) operator delete(v40.__r_.__value_.__l.__data_); LABEL_44: v39.__r_.__value_.__r.__words[2] = (std::string::size_type)operator new(0x38u); v39.__r_.__value_.__r.__words[0] = 57; v39.__r_.__value_.__l.__size_ = 53; strcpy(v39.__r_.__value_.__l.__data_, "https://www.boomlings.com/database/updateGJThread.php"); if ( (*(_BYTE *)&__dst[0].__r_.__value_.__s.0 & 1) != 0 ) v26 = __dst[0].__r_.__value_.__l.__data_; else v26 = __dst[0].__r_.__value_.__s.__data_; v27 = strlen(v26); if ( v27 >= 0xFFFFFFFFFFFFFFF8LL ) sub_100003630(); v28 = v27; if ( v27 >= 0x17 ) { v30 = 26; if ( (v27 | 7) != 0x17 ) v30 = (v27 | 7) + 1; v29 = (char *)operator new(v30); v44 = v29; v43[0] = v30 | 1; v43[1] = v28; goto LABEL_54; } LOBYTE(v43[0]) = 2 * v27; v29 = (char *)v43 + 1; if ( v27 ) LABEL_54: memmove(v29, v26, v28); v29[v28] = 0; v31 = strlen((const char *)__src); if ( v31 >= 0xFFFFFFFFFFFFFFF8LL ) sub_100003630(); v32 = v31; if ( v31 >= 0x17 ) { v34 = 26; if ( (v31 | 7) != 0x17 ) v34 = (v31 | 7) + 1; v33 = (char *)operator new(v34); v46 = v33; *(_QWORD *)&v45 = v34 | 1; *((_QWORD *)&v45 + 1) = v32; goto LABEL_62; } LOBYTE(v45) = 2 * v31; v33 = (char *)&v45 + 1; if ( v31 ) LABEL_62: memmove(v33, __src, v32); v33[v32] = 0; GameLevelManager::ProcessHttpRequest(v42, &v39, (__int64)v43, &v45, 0x5Fu); if ( (v45 & 1) != 0 ) { operator delete(v46); if ( (v43[0] & 1) == 0 ) { LABEL_65: if ( (*(_BYTE *)&v39.__r_.__value_.__s.0 & 1) == 0 ) goto LABEL_66; LABEL_71: operator delete(v39.__r_.__value_.__l.__data_); if ( (*(_BYTE *)&__dst[0].__r_.__value_.__s.0 & 1) == 0 ) return 1; goto LABEL_67; } } else if ( (v43[0] & 1) == 0 ) { goto LABEL_65; } operator delete(v44); if ( (*(_BYTE *)&v39.__r_.__value_.__s.0 & 1) != 0 ) goto LABEL_71; LABEL_66: if ( (*(_BYTE *)&__dst[0].__r_.__value_.__s.0 & 1) != 0 ) LABEL_67: operator delete(__dst[0].__r_.__value_.__l.__data_); return 1; }
GD Web Decomp Icon

GD Web Decomp

Raw Source