// // GameLevelManager::getUsers from 0x100566fc0 to 0x1005672e5 (805 bytes) // // 1 xrefs: // > LevelBrowserLayer::loadPage @ 0x1004847ea // // 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:11 +0000 // void __fastcall GameLevelManager::getUsers(__int64 a1, __int64 a2) { __int64 v2; // rbx const char *Key; // r14 __int64 v4; // rax __int64 v5; // rax const std::string::value_type *CString; // rax const char *data; // r15 size_t v8; // rax size_t v9; // r12 char *v10; // r13 size_t v11; // rbx size_t v12; // rax size_t v13; // r15 char *v14; // r12 __int64 v15; // r13 size_t v16; // rbx char v17; // [rsp+0h] [rbp-B0h] std::string v18; // [rsp+10h] [rbp-A0h] BYREF std::string v19; // [rsp+28h] [rbp-88h] BYREF _QWORD __dst[2]; // [rsp+40h] [rbp-70h] BYREF void *v21; // [rsp+50h] [rbp-60h] __int128 v22; // [rsp+58h] [rbp-58h] BYREF void *v23; // [rsp+68h] [rbp-48h] __int128 v24; // [rsp+70h] [rbp-40h] BYREF void *__p; // [rsp+80h] [rbp-30h] v2 = a1; Key = (const char *)GJSearchObject::getKey(a2); if ( GameLevelManager::isDLActive(a1, Key) ) return; GameLevelManager::addDLToActive(a1, Key); GameLevelManager::getBasePostString(&v19); if ( (*(_BYTE *)(a2 + 320) & 1) != 0 ) { sub_10001AD30(&v24, *(const void **)(a2 + 336), *(_QWORD *)(a2 + 328)); } else { __p = *(void **)(a2 + 336); v24 = *(_OWORD *)(a2 + 320); } v4 = sub_10088E820("%c%s%s%c%c%s", (char)"7"); cocos2d::CCString::getCString(v4); v5 = sub_10088E820("&str=%s&total=%i&page=%i&secret=%s", v17); CString = (const std::string::value_type *)cocos2d::CCString::getCString(v5); std::string::append(&v19, CString); if ( (v24 & 1) != 0 ) operator delete(__p); v18.__r_.__value_.__r.__words[2] = (std::string::size_type)operator new(0x38u); v18.__r_.__value_.__r.__words[0] = 57; v18.__r_.__value_.__l.__size_ = 51; strcpy(v18.__r_.__value_.__l.__data_, "https://www.boomlings.com/database/getGJUsers20.php"); if ( (*(_BYTE *)&v19.__r_.__value_.__s.0 & 1) != 0 ) data = v19.__r_.__value_.__l.__data_; else data = v19.__r_.__value_.__s.__data_; v8 = strlen(data); if ( v8 >= 0xFFFFFFFFFFFFFFF8LL ) sub_100003630(); v9 = v8; if ( v8 >= 0x17 ) { v11 = 26; if ( (v8 | 7) != 0x17 ) v11 = (v8 | 7) + 1; v10 = (char *)operator new(v11); v21 = v10; __dst[0] = v11 | 1; __dst[1] = v9; v2 = a1; goto LABEL_17; } LOBYTE(__dst[0]) = 2 * v8; v10 = (char *)__dst + 1; if ( v8 ) LABEL_17: memmove(v10, data, v9); v10[v9] = 0; v12 = strlen(Key); if ( v12 >= 0xFFFFFFFFFFFFFFF8LL ) sub_100003630(); v13 = v12; if ( v12 >= 0x17 ) { v15 = v2; v16 = 26; if ( (v12 | 7) != 0x17 ) v16 = (v12 | 7) + 1; v14 = (char *)operator new(v16); v23 = v14; *(_QWORD *)&v22 = v16 | 1; *((_QWORD *)&v22 + 1) = v13; v2 = v15; goto LABEL_25; } LOBYTE(v22) = 2 * v12; v14 = (char *)&v22 + 1; if ( v12 ) LABEL_25: memmove(v14, Key, v13); v14[v13] = 0; GameLevelManager::ProcessHttpRequest(v2, &v18, (__int64)__dst, &v22, 0x2Fu); if ( (v22 & 1) == 0 ) { if ( (__dst[0] & 1) == 0 ) goto LABEL_28; LABEL_33: operator delete(v21); if ( (*(_BYTE *)&v18.__r_.__value_.__s.0 & 1) == 0 ) { LABEL_29: if ( (*(_BYTE *)&v19.__r_.__value_.__s.0 & 1) == 0 ) return; goto LABEL_30; } goto LABEL_34; } operator delete(v23); if ( (__dst[0] & 1) != 0 ) goto LABEL_33; LABEL_28: if ( (*(_BYTE *)&v18.__r_.__value_.__s.0 & 1) == 0 ) goto LABEL_29; LABEL_34: operator delete(v18.__r_.__value_.__l.__data_); if ( (*(_BYTE *)&v19.__r_.__value_.__s.0 & 1) != 0 ) LABEL_30: operator delete(v19.__r_.__value_.__l.__data_); }
GD Web Decomp Icon

GD Web Decomp

Raw Source