// // GameLevelManager::getLeaderboardScores from 0x100565340 to 0x10056577e (1086 bytes) // // 1 xrefs: // > LeaderboardsLayer::selectLeaderboard @ 0x100514674 // // 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::getLeaderboardScores(__int64 a1, __int64 a2, int a3) { __int64 v5; // rax const char *CString; // r13 __int64 v7; // rdi size_t v8; // rax size_t v9; // r12 char *v10; // rbx int v11; // r12d __int64 v12; // r15 size_t v13; // r14 __int64 v14; // rax char v15; // r13 const char *v16; // rbx __int64 v17; // rdi char *v18; // rsi __int64 v19; // rax __int64 v20; // rax __int64 v21; // rax __int64 v22; // rax const std::string::value_type *v23; // rax char *v24; // rax const char *data; // r14 size_t v26; // rax size_t v27; // r15 char *v28; // r12 __int64 v29; // rdi size_t v30; // rbx char v31; // [rsp+0h] [rbp-E0h] char v32; // [rsp+0h] [rbp-E0h] __int128 v33; // [rsp+10h] [rbp-D0h] BYREF void *v34; // [rsp+20h] [rbp-C0h] std::string v35; // [rsp+28h] [rbp-B8h] BYREF __int128 v36; // [rsp+40h] [rbp-A0h] BYREF void *__p; // [rsp+50h] [rbp-90h] std::string v38; // [rsp+60h] [rbp-80h] BYREF _QWORD v39[2]; // [rsp+78h] [rbp-68h] BYREF void *v40; // [rsp+88h] [rbp-58h] int v41; // [rsp+94h] [rbp-4Ch] __int64 v42; // [rsp+98h] [rbp-48h] __int128 __dst; // [rsp+A0h] [rbp-40h] BYREF void *v44; // [rsp+B0h] [rbp-30h] v42 = a2; v5 = sub_10088E820("lb_%i_%i", v31); CString = (const char *)cocos2d::CCString::getCString(v5); v7 = (__int64)CString; v8 = strlen(CString); if ( v8 >= 0xFFFFFFFFFFFFFFF8LL ) sub_100003630(); v9 = v8; if ( v8 >= 0x17 ) { v41 = a3; v12 = a1; v13 = 26; if ( (v8 | 7) != 0x17 ) v13 = (v8 | 7) + 1; v10 = (char *)operator new(v13); v44 = v10; *(_QWORD *)&__dst = v13 + 1; a1 = v12; *((_QWORD *)&__dst + 1) = v9; } else { LOBYTE(__dst) = 2 * v8; v10 = (char *)&__dst + 1; if ( !v8 ) { BYTE1(__dst) = 0; v11 = v42; if ( (_DWORD)v42 == 4 ) goto LABEL_11; goto LABEL_10; } } v7 = (__int64)v10; a2 = (__int64)CString; memmove(v10, CString, v9); v10[v9] = 0; v11 = v42; if ( (_DWORD)v42 == 4 ) goto LABEL_11; LABEL_10: if ( v11 != 2 ) goto LABEL_12; LABEL_11: v14 = GJAccountManager::sharedState(v7, a2); if ( *(_DWORD *)(v14 + 352) > *(_DWORD *)(v14 + 356) ) { LABEL_12: v15 = __dst; if ( (__dst & 1) != 0 ) v16 = (const char *)v44; else v16 = (char *)&__dst + 1; if ( GameLevelManager::isDLActive(a1, v16) ) { LABEL_47: if ( (v15 & 1) == 0 ) return; goto LABEL_48; } GameLevelManager::addDLToActive(a1, v16); v19 = GameManager::sharedState(); if ( (*(_BYTE *)(v19 + 608) & 1) != 0 ) { sub_10001AD30(&v33, *(const void **)(v19 + 624), *(_QWORD *)(v19 + 616)); } else { v20 = v19 + 608; v34 = *(void **)(v20 + 16); v33 = *(_OWORD *)v20; } GameLevelManager::getBasePostString(&v38); v21 = sub_10088E820("%c%s%s%c%c%s", (char)"7"); cocos2d::CCString::getCString(v21); v22 = sub_10088E820("&type=%s&count=%i&stat=%i&secret=%s", v32); v23 = (const std::string::value_type *)cocos2d::CCString::getCString(v22); std::string::append(&v38, v23); v24 = (char *)operator new(0x38u); v42 = a1; v35.__r_.__value_.__r.__words[2] = (std::string::size_type)v24; v35.__r_.__value_.__r.__words[0] = 57; v35.__r_.__value_.__l.__size_ = 52; strcpy(v24, "https://www.boomlings.com/database/getGJScores20.php"); if ( (*(_BYTE *)&v38.__r_.__value_.__s.0 & 1) != 0 ) data = v38.__r_.__value_.__l.__data_; else data = v38.__r_.__value_.__s.__data_; v26 = strlen(data); if ( v26 >= 0xFFFFFFFFFFFFFFF8LL ) sub_100003630(); v27 = v26; if ( v26 >= 0x17 ) { v30 = 26; if ( (v26 | 7) != 0x17 ) v30 = (v26 | 7) + 1; v28 = (char *)operator new(v30); v40 = v28; v39[0] = v30 | 1; v39[1] = v27; } else { LOBYTE(v39[0]) = 2 * v26; v28 = (char *)v39 + 1; if ( !v26 ) { BYTE1(v39[0]) = 0; v15 = __dst; if ( (__dst & 1) == 0 ) { LABEL_30: __p = v44; v36 = __dst; v29 = v42; goto LABEL_36; } LABEL_35: sub_10001AD30(&v36, v44, *((unsigned __int64 *)&__dst + 1)); v29 = v42; LABEL_36: GameLevelManager::ProcessHttpRequest(v29, &v35, (__int64)v39, &v36, 0xBu); if ( (v36 & 1) != 0 ) { operator delete(__p); if ( (v39[0] & 1) == 0 ) { LABEL_38: if ( (*(_BYTE *)&v35.__r_.__value_.__s.0 & 1) == 0 ) goto LABEL_39; goto LABEL_44; } } else if ( (v39[0] & 1) == 0 ) { goto LABEL_38; } operator delete(v40); if ( (*(_BYTE *)&v35.__r_.__value_.__s.0 & 1) == 0 ) { LABEL_39: if ( (*(_BYTE *)&v38.__r_.__value_.__s.0 & 1) == 0 ) goto LABEL_40; goto LABEL_45; } LABEL_44: operator delete(v35.__r_.__value_.__l.__data_); if ( (*(_BYTE *)&v38.__r_.__value_.__s.0 & 1) == 0 ) { LABEL_40: if ( (v33 & 1) == 0 ) goto LABEL_47; LABEL_46: operator delete(v34); goto LABEL_47; } LABEL_45: operator delete(v38.__r_.__value_.__l.__data_); if ( (v33 & 1) == 0 ) goto LABEL_47; goto LABEL_46; } } memmove(v28, data, v27); v28[v27] = 0; v15 = __dst; if ( (__dst & 1) == 0 ) goto LABEL_30; goto LABEL_35; } v17 = *(_QWORD *)(a1 + 1296); v15 = __dst; if ( !v17 ) goto LABEL_47; if ( (__dst & 1) != 0 ) v18 = (char *)v44; else v18 = (char *)&__dst + 1; (*(void (__fastcall **)(__int64, char *))(*(_QWORD *)v17 + 24LL))(v17, v18); if ( (__dst & 1) != 0 ) LABEL_48: operator delete(v44); }
GD Web Decomp Icon

GD Web Decomp

Raw Source