// // ProfilePage::onInfo from 0x1008a35b0 to 0x1008a3c61 (1713 bytes) // // 1 xrefs: // > ProfilePage::loadPageFromUserInfo @ 0x1008a0fb7 // // 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:37:15 +0000 // void __fastcall ProfilePage::onInfo(__int64 a1) { __int64 *v1; // rax std::string::size_type v2; // rcx char v3; // al std::string::size_type size; // rsi __int64 v5; // rcx std::string::size_type v6; // rcx const char *v7; // r14 const char *v8; // r15 const char *v9; // r12 const char *v10; // rax const char *v11; // rbx const char *v12; // r12 char v13; // r15 const char *v14; // r14 const char *v15; // rax char *v16; // rax const char *CString; // r14 size_t v18; // rax std::string::size_type v19; // r15 char *data; // r12 __int64 v21; // rbx __int64 v22; // rax int v23; // esi std::string::__short::$7162EEB0FEF29CC674EFA33D0008C7E0 v24; // r15 const char *v25; // r14 const char *v26; // rdx size_t v27; // r13 __int128 *v28; // rax char *v29; // rax const std::string::value_type *v30; // rax __int64 v31; // r14 const char *v32; // r14 __int64 v33; // rax const char *v34; // rdx __int128 *v35; // rax char *v36; // rax const std::string::value_type *v37; // rax std::string::value_type *v38; // rbx const char *v39; // r14 size_t v40; // rax size_t v41; // r15 char *v42; // r12 size_t v43; // r13 char *v44; // rbx const char *v45; // [rsp+8h] [rbp-128h] size_t v46[2]; // [rsp+18h] [rbp-118h] BYREF void *v47; // [rsp+28h] [rbp-108h] size_t v48[2]; // [rsp+30h] [rbp-100h] BYREF void *v49; // [rsp+40h] [rbp-F0h] size_t v50[2]; // [rsp+48h] [rbp-E8h] BYREF void *v51; // [rsp+58h] [rbp-D8h] size_t v52[2]; // [rsp+60h] [rbp-D0h] BYREF void *v53; // [rsp+70h] [rbp-C0h] size_t v54[2]; // [rsp+78h] [rbp-B8h] BYREF void *__p; // [rsp+88h] [rbp-A8h] _QWORD v56[2]; // [rsp+90h] [rbp-A0h] BYREF void *v57; // [rsp+A0h] [rbp-90h] const char *v58; // [rsp+A8h] [rbp-88h] std::string v59; // [rsp+B0h] [rbp-80h] BYREF std::string __dst; // [rsp+D0h] [rbp-60h] BYREF __int128 v61; // [rsp+F0h] [rbp-40h] BYREF void *v62; // [rsp+100h] [rbp-30h] if ( !*(_QWORD *)(a1 + 728) ) return; v1 = (__int64 *)GameLevelManager::sharedState(); GameLevelManager::tryGetUsername(&v59, v1, *(_DWORD *)(*(_QWORD *)(a1 + 728) + 376LL)); v2 = *(_BYTE *)&v59.__r_.__value_.__l.0 >> 1; v3 = *(_BYTE *)&v59.__r_.__value_.__s.0 & 1; size = v59.__r_.__value_.__l.__size_; if ( (*(_BYTE *)&v59.__r_.__value_.__s.0 & 1) == 0 ) size = *(_BYTE *)&v59.__r_.__value_.__l.0 >> 1; if ( !size ) { v5 = *(_QWORD *)(a1 + 728); if ( (*(_BYTE *)(v5 + 320) & 1) != 0 ) { sub_10001AD30(&__dst, *(const void **)(v5 + 336), *(_QWORD *)(v5 + 328)); if ( (*(_BYTE *)&v59.__r_.__value_.__s.0 & 1) == 0 ) { LABEL_12: v59 = __dst; v6 = *(_BYTE *)&__dst.__r_.__value_.__l.0 >> 1; if ( (*(_BYTE *)&__dst.__r_.__value_.__s.0 & 1) != 0 ) v6 = __dst.__r_.__value_.__l.__size_; if ( !v6 ) goto LABEL_15; goto LABEL_16; } } else { __dst = *(std::string *)(v5 + 320); if ( !v3 ) goto LABEL_12; } operator delete(v59.__r_.__value_.__l.__data_); goto LABEL_12; } if ( v3 ) v2 = v59.__r_.__value_.__l.__size_; if ( !v2 ) LABEL_15: std::string::assign(&v59, "-"); LABEL_16: GameToolbox::pointsToString((size_t *)&v61, *(_DWORD *)(*(_QWORD *)(a1 + 728) + 380LL)); if ( (v61 & 1) != 0 ) v7 = (const char *)v62; else v7 = (char *)&v61 + 1; GameToolbox::pointsToString(v46, *(_DWORD *)(*(_QWORD *)(a1 + 728) + 384LL)); if ( (v46[0] & 1) != 0 ) v8 = (const char *)v47; else v8 = (char *)v46 + 1; GameToolbox::pointsToString(v48, *(_DWORD *)(*(_QWORD *)(a1 + 728) + 388LL)); if ( (v48[0] & 1) != 0 ) v9 = (const char *)v49; else v9 = (char *)v48 + 1; GameToolbox::pointsToString(v50, *(_DWORD *)(*(_QWORD *)(a1 + 728) + 404LL)); v45 = v9; if ( (v50[0] & 1) != 0 ) v10 = (const char *)v51; else v10 = (char *)v50 + 1; v58 = v10; v11 = v8; v12 = v7; GameToolbox::pointsToString(v52, *(_DWORD *)(*(_QWORD *)(a1 + 728) + 408LL)); v13 = v52[0]; v14 = (const char *)v53; GameToolbox::pointsToString(v54, *(_DWORD *)(*(_QWORD *)(a1 + 728) + 392LL)); if ( (v13 & 1) == 0 ) v14 = (char *)v52 + 1; if ( (v54[0] & 1) != 0 ) v15 = (const char *)__p; else v15 = (char *)v54 + 1; v16 = sub_10088E820( "Stars: %s\n" "Moons: %s\n" "Diamonds: %s\n" "Secret Coins: %s\n" "User Coins: %s\n" "Demons: %s", v12, v11, v45, v58, v14, v15); CString = (const char *)cocos2d::CCString::getCString((__int64)v16); v18 = strlen(CString); if ( v18 >= 0xFFFFFFFFFFFFFFF8LL ) sub_100003630(); v19 = v18; if ( v18 >= 0x17 ) { v27 = 26; if ( (v18 | 7) != 0x17 ) v27 = (v18 | 7) + 1; data = (char *)operator new(v27); __dst.__r_.__value_.__r.__words[2] = (std::string::size_type)data; __dst.__r_.__value_.__r.__words[0] = v27 | 1; __dst.__r_.__value_.__l.__size_ = v19; } else { __dst.__r_.__value_.__s.0 = (std::string::__short::$7162EEB0FEF29CC674EFA33D0008C7E0)(2 * v18); data = __dst.__r_.__value_.__s.__data_; if ( !v18 ) { __dst.__r_.__value_.__s.__data_[0] = 0; if ( (v54[0] & 1) == 0 ) goto LABEL_37; goto LABEL_51; } } memmove(data, CString, v19); data[v19] = 0; if ( (v54[0] & 1) == 0 ) { LABEL_37: v21 = a1; if ( (v52[0] & 1) == 0 ) goto LABEL_38; goto LABEL_52; } LABEL_51: operator delete(__p); v21 = a1; if ( (v52[0] & 1) == 0 ) { LABEL_38: if ( (v50[0] & 1) == 0 ) goto LABEL_39; goto LABEL_53; } LABEL_52: operator delete(v53); if ( (v50[0] & 1) == 0 ) { LABEL_39: if ( (v48[0] & 1) == 0 ) goto LABEL_40; goto LABEL_54; } LABEL_53: operator delete(v51); if ( (v48[0] & 1) == 0 ) { LABEL_40: if ( (v46[0] & 1) == 0 ) goto LABEL_41; goto LABEL_55; } LABEL_54: operator delete(v49); if ( (v46[0] & 1) == 0 ) { LABEL_41: if ( (v61 & 1) == 0 ) goto LABEL_42; goto LABEL_56; } LABEL_55: operator delete(v47); if ( (v61 & 1) == 0 ) { LABEL_42: v22 = *(_QWORD *)(v21 + 728); v23 = *(_DWORD *)(v22 + 400); if ( v23 > 0 ) goto LABEL_43; goto LABEL_57; } LABEL_56: operator delete(v62); v22 = *(_QWORD *)(v21 + 728); v23 = *(_DWORD *)(v22 + 400); if ( v23 > 0 ) { LABEL_43: v24 = __dst.__r_.__value_.__s.0; v25 = __dst.__r_.__value_.__l.__data_; GameToolbox::pointsToString((size_t *)&v61, v23); if ( (*(_BYTE *)&v24 & 1) == 0 ) v25 = __dst.__r_.__value_.__s.__data_; if ( (v61 & 1) != 0 ) v26 = (const char *)v62; else v26 = (char *)&v61 + 1; v29 = sub_10088E820("%s\nCreator Points: %s", v25, v26); v30 = (const std::string::value_type *)cocos2d::CCString::getCString((__int64)v29); std::string::assign(&__dst, v30); if ( (v61 & 1) != 0 ) operator delete(v62); v22 = *(_QWORD *)(v21 + 728); if ( (*(_BYTE *)(v22 + 536) & 1) != 0 ) goto LABEL_63; LABEL_58: v28 = (__int128 *)(v22 + 536); v62 = *((void **)v28 + 2); v61 = *v28; goto LABEL_64; } LABEL_57: if ( (*(_BYTE *)(v22 + 536) & 1) == 0 ) goto LABEL_58; LABEL_63: sub_10001AD30(&v61, *(const void **)(v22 + 552), *(_QWORD *)(v22 + 544)); LABEL_64: if ( (v61 & 1) != 0 ) { v31 = *((_QWORD *)&v61 + 1); operator delete(v62); if ( !v31 ) goto LABEL_77; } else if ( !(_BYTE)v61 ) { goto LABEL_77; } if ( (*(_BYTE *)&__dst.__r_.__value_.__s.0 & 1) != 0 ) { v32 = __dst.__r_.__value_.__l.__data_; v33 = *(_QWORD *)(v21 + 728); if ( (*(_BYTE *)(v33 + 536) & 1) != 0 ) goto LABEL_70; LABEL_73: v35 = (__int128 *)(v33 + 536); v62 = *((void **)v35 + 2); v61 = *v35; if ( (v61 & 1) != 0 ) goto LABEL_71; goto LABEL_74; } v32 = __dst.__r_.__value_.__s.__data_; v33 = *(_QWORD *)(v21 + 728); if ( (*(_BYTE *)(v33 + 536) & 1) == 0 ) goto LABEL_73; LABEL_70: sub_10001AD30(&v61, *(const void **)(v33 + 552), *(_QWORD *)(v33 + 544)); if ( (v61 & 1) != 0 ) { LABEL_71: v34 = (const char *)v62; goto LABEL_75; } LABEL_74: v34 = (char *)&v61 + 1; LABEL_75: v36 = sub_10088E820("%s\nDiscord: @%s", v32, v34); v37 = (const std::string::value_type *)cocos2d::CCString::getCString((__int64)v36); std::string::assign(&__dst, v37); if ( (v61 & 1) != 0 ) operator delete(v62); LABEL_77: if ( (*(_BYTE *)&v59.__r_.__value_.__s.0 & 1) != 0 ) { LODWORD(v38) = v59.__r_.__value_.__r.__words[2]; if ( (*(_BYTE *)&__dst.__r_.__value_.__s.0 & 1) == 0 ) { LABEL_79: v39 = __dst.__r_.__value_.__s.__data_; goto LABEL_82; } } else { v38 = v59.__r_.__value_.__s.__data_; if ( (*(_BYTE *)&__dst.__r_.__value_.__s.0 & 1) == 0 ) goto LABEL_79; } v39 = __dst.__r_.__value_.__l.__data_; LABEL_82: v40 = strlen(v39); if ( v40 >= 0xFFFFFFFFFFFFFFF8LL ) sub_100003630(); v41 = v40; if ( v40 >= 0x17 ) { v43 = 26; if ( (v40 | 7) != 0x17 ) v43 = (v40 | 7) + 1; v42 = (char *)operator new(v43); v57 = v42; v56[0] = v43 | 1; v56[1] = v41; } else { LOBYTE(v56[0]) = 2 * v40; v42 = (char *)v56 + 1; if ( !v40 ) goto LABEL_90; } memmove(v42, v39, v41); LABEL_90: v42[v41] = 0; v44 = FLAlertLayer::create_1(0, (int)v38, (__int64)v56, (int)"OK", 0, 300.0); if ( (v56[0] & 1) != 0 ) operator delete(v57); (*(void (__fastcall **)(char *))(*(_QWORD *)v44 + 1312LL))(v44); if ( (*(_BYTE *)&__dst.__r_.__value_.__s.0 & 1) != 0 ) operator delete(__dst.__r_.__value_.__l.__data_); if ( (*(_BYTE *)&v59.__r_.__value_.__s.0 & 1) != 0 ) operator delete(v59.__r_.__value_.__l.__data_); }
GD Web Decomp Icon

GD Web Decomp

Raw Source