// // StartPosBrowser::setupList from 0x1003c3cd0 to 0x1003c4155 (1157 bytes) // // 1 xrefs: // > StartPosBrowser::init @ 0x1003c3c33 // // 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:29:34 +0000 // __int64 __fastcall StartPosBrowser::setupList(_QWORD *a1, __int64 a2) { _QWORD *v2; // r15 __int64 v3; // rax __int64 v4; // rax __int64 v5; // rax char *v6; // rbx __int64 v7; // rdi unsigned int v8; // r13d unsigned int v9; // r13d __int64 v10; // rax const char *CString; // r15 size_t v12; // rax size_t v13; // r14 char *v14; // rbx _QWORD *v15; // r12 int v16; // r12d char *v17; // r15 size_t v18; // rax size_t v19; // r12 std::string::size_type v20; // r14 char *data; // rbx int v22; // r15d size_t v23; // r12 char v24; // si int v25; // r13d char *v26; // r14 char *v27; // rax _QWORD *v28; // rax __int64 v29; // rbx char v31; // [rsp+0h] [rbp-C0h] __int64 v32; // [rsp+8h] [rbp-B8h] __int64 v33; // [rsp+10h] [rbp-B0h] char *v34; // [rsp+18h] [rbp-A8h] char v35; // [rsp+20h] [rbp-A0h] BYREF void *v36; // [rsp+30h] [rbp-90h] float v37[2]; // [rsp+38h] [rbp-88h] BYREF std::string v38; // [rsp+40h] [rbp-80h] BYREF std::string v39; // [rsp+58h] [rbp-68h] BYREF _QWORD *v40; // [rsp+70h] [rbp-50h] __int64 v41; // [rsp+78h] [rbp-48h] _QWORD __dst[2]; // [rsp+80h] [rbp-40h] BYREF char *__s; // [rsp+90h] [rbp-30h] v2 = a1; if ( a1[86] ) { v3 = cocos2d::CCDirector::sharedDirector(a1, a2); v4 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v3 + 160LL))(v3); a2 = a1[86]; cocos2d::CCTouchDispatcher::unregisterForcePrio(v4, a2); a1 = (_QWORD *)a1[86]; (*(void (__fastcall **)(_QWORD *))(*a1 + 536LL))(a1); v2[86] = 0; } v5 = cocos2d::CCDirector::sharedDirector(a1, a2); cocos2d::CCDirector::getWinSize(v37, v5); v41 = sub_1007FE900(v37); v38.__r_.__value_.__s.0 = (std::string::__short::$7162EEB0FEF29CC674EFA33D0008C7E0)22; strcpy(v38.__r_.__value_.__s.__data_, "No StartPos"); v33 = (__int64)(v2 + 84); v6 = OptionsObject::create(0, 0, &v38, (__int64)(v2 + 84)); if ( (*(_BYTE *)&v38.__r_.__value_.__s.0 & 1) != 0 ) operator delete(v38.__r_.__value_.__l.__data_); *((_DWORD *)v6 + 24) = 1; (*(void (__fastcall **)(char *, _QWORD))(*(_QWORD *)v6 + 72LL))(v6, 0); sub_1007FEBF0(v41, v6); v7 = v2[85]; if ( v7 && (unsigned int)sub_1007FEF90(v7) ) { v8 = 0; v40 = v2; do { v32 = sub_1007FEFE0(v2[85], v8); StartPosObject::getDisplayName(&v35, v32); v9 = v8 + 1; v10 = sub_10088E820("%i: %s", v31); CString = (const char *)cocos2d::CCString::getCString(v10); v12 = strlen(CString); if ( v12 >= 0xFFFFFFFFFFFFFFF8LL ) sub_100003630(); v13 = v12; if ( v12 >= 0x17 ) { v19 = (v12 | 7) + 1; if ( (v12 | 7) == 0x17 ) v19 = 26; v14 = (char *)operator new(v19); __s = v14; __dst[0] = v19 | 1; __dst[1] = v13; v15 = v40; } else { LOBYTE(__dst[0]) = 2 * v12; v14 = (char *)__dst + 1; v15 = v40; if ( !v12 ) { BYTE1(__dst[0]) = 0; if ( (v35 & 1) == 0 ) goto LABEL_13; goto LABEL_20; } } memmove(v14, CString, v13); v14[v13] = 0; if ( (v35 & 1) == 0 ) { LABEL_13: v16 = *((_DWORD *)v15 + 174); v17 = (char *)__dst + 1; if ( (__dst[0] & 1) != 0 ) goto LABEL_14; goto LABEL_21; } LABEL_20: operator delete(v36); v16 = *((_DWORD *)v15 + 174); v17 = (char *)__dst + 1; if ( (__dst[0] & 1) != 0 ) { LABEL_14: v17 = __s; v18 = strlen(__s); if ( v18 >= 0xFFFFFFFFFFFFFFF8LL ) goto LABEL_35; goto LABEL_22; } LABEL_21: v18 = strlen((const char *)__dst + 1); if ( v18 >= 0xFFFFFFFFFFFFFFF8LL ) LABEL_35: sub_100003630(); LABEL_22: v20 = v18; if ( v18 >= 0x17 ) { v34 = v17; v22 = v16; v23 = (v18 | 7) + 1; if ( (v18 | 7) == 0x17 ) v23 = 26; data = (char *)operator new(v23); v39.__r_.__value_.__r.__words[2] = (std::string::size_type)data; v39.__r_.__value_.__r.__words[0] = v23 | 1; v39.__r_.__value_.__l.__size_ = v20; v16 = v22; v17 = v34; } else { v39.__r_.__value_.__s.0 = (std::string::__short::$7162EEB0FEF29CC674EFA33D0008C7E0)(2 * v18); data = v39.__r_.__value_.__s.__data_; if ( !v18 ) goto LABEL_29; } memmove(data, v17, v20); LABEL_29: data[v20] = 0; v24 = v16 == v9; v25 = v9 - 1; v26 = OptionsObject::create(v25, v24, &v39, v33); if ( (*(_BYTE *)&v39.__r_.__value_.__s.0 & 1) != 0 ) operator delete(v39.__r_.__value_.__l.__data_); *((_DWORD *)v26 + 24) = 1; *((_QWORD *)v26 + 13) = v32; v8 = v25 + 1; (*(void (__fastcall **)(char *, _QWORD))(*(_QWORD *)v26 + 72LL))(v26, v8); sub_1007FEBF0(v41, v26); if ( (__dst[0] & 1) != 0 ) operator delete(__s); v2 = v40; } while ( v8 < (unsigned int)sub_1007FEF90(v40[85]) ); } v27 = CustomListView::create(v41, (__int64)(v2 + 83), 0, 0x18u, 220.0, 340.0, 0.0); v28 = GJCommentListLayer::create((__int64)v27, 340.0, 220.0, (__int64)"", 0xFF323232, 1u); v2[86] = v28; (*(void (__fastcall **)(_QWORD, _QWORD *, __int64))(*(_QWORD *)v2[73] + 464LL))(v2[73], v28, 10); v29 = v2[86]; sub_100278250((float *)__dst, (float)(v37[0] + -340.0) * 0.5, (float)((float)(v37[1] + -220.0) * 0.5) + -10.0); (*(void (__fastcall **)(__int64, _QWORD *))(*(_QWORD *)v29 + 184LL))(v29, __dst); return StartPosBrowser::updatePageLabel(v2); }
GD Web Decomp Icon

GD Web Decomp

Raw Source