// // StartPosBrowser::setupList from 0x1404dbdd0 to 0x1404dc256 (1158 bytes) // // 2 xrefs: // > StartPosBrowser::init @ 0x1404dbd9e // > @ 0x140929a2c // // 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 11:33:04 +0000 // // Hidden C++ exception states: #wind=3 void __fastcall StartPosBrowser::setupList(__int64 a1) { __int64 v2; // rax struct cocos2d::CCObject *v3; // rbx cocos2d::CCTouchDispatcher *v4; // rax __int64 v5; // rax __int64 v6; // rcx cocos2d::CCArray *v7; // r12 void *v8; // rcx void **v9; // rbx unsigned int v10; // r13d cocos2d::CCArray *v11; // rcx size_t v12; // rsi unsigned int v13; // ebx struct cocos2d::CCObject *v14; // r15 __int64 DisplayName; // rax unsigned int v16; // edi cocos2d::CCString *v17; // rax const char *CString; // rax size_t v19; // r8 int v20; // r12d void **v21; // rdx size_t v22; // r8 void **v23; // rbx void *v24; // rcx __int64 v25; // rdx int v26; // eax int v27; // edx cocos2d::CCLayerColor *v28; // rax __int64 *v29; // rdi __int64 v30; // rbx __int64 v31; // rax cocos2d::CCArray *v32; // rcx cocos2d::CCString *v33; // rax const char *v34; // rax void **v35; // rdx void *v36; // rcx uintptr_t Reserved; // [rsp+28h] [rbp-89h] float v38[2]; // [rsp+48h] [rbp-69h] BYREF _BYTE v39[8]; // [rsp+50h] [rbp-61h] BYREF void *v40; // [rsp+58h] [rbp-59h] cocos2d::CCArray *v41; // [rsp+60h] [rbp-51h] __int128 v42; // [rsp+68h] [rbp-49h] BYREF __int64 v43; // [rsp+78h] [rbp-39h] __int64 v44; // [rsp+80h] [rbp-31h] void *Block[2]; // [rsp+88h] [rbp-29h] BYREF __int128 v46; // [rsp+98h] [rbp-19h] _BYTE v47[32]; // [rsp+A8h] [rbp-9h] BYREF if ( *(_QWORD *)(a1 + 688) ) { v2 = cocos2d::CCDirector::sharedDirector(a1); v3 = *(struct cocos2d::CCObject **)(a1 + 688); v4 = (cocos2d::CCTouchDispatcher *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v2 + 144LL))(v2); cocos2d::CCTouchDispatcher::unregisterForcePrio(v4, v3); (*(void (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 688) + 528LL))(*(_QWORD *)(a1 + 688)); *(_QWORD *)(a1 + 688) = 0; } v5 = cocos2d::CCDirector::sharedDirector(a1); cocos2d::CCDirector::getWinSize(v5, v38); v7 = (cocos2d::CCArray *)cocos2d::CCArray::create(v6); v41 = v7; v8 = (void *)(a1 + 672); if ( !a1 ) v8 = nullptr; v40 = v8; *(_QWORD *)&v46 = 11; *((_QWORD *)&v46 + 1) = 15; Block[0] = (void *)0x7472617453206F4ELL; Block[1] = (void *)7565136; v9 = OptionsObject::create(0, 0, (__int64)Block, v8); v10 = 1; *((_DWORD *)v9 + 26) = 1; (*((void (__fastcall **)(void **, _QWORD))*v9 + 8))(v9, 0); cocos2d::CCArray::addObject(v7, (struct cocos2d::CCObject *)v9); v11 = *(cocos2d::CCArray **)(a1 + 680); v12 = -1; if ( v11 ) { v13 = 0; if ( cocos2d::CCArray::count(v11) ) { do { v14 = cocos2d::CCArray::objectAtIndex(*(cocos2d::CCArray **)(a1 + 680), v13); DisplayName = StartPosObject::getDisplayName(v14, v47); if ( *(_QWORD *)(DisplayName + 24) > 0xFu ) DisplayName = *(_QWORD *)DisplayName; v16 = v13 + 1; v17 = cocos2d::CCString::createWithFormat("%i: %s", v13 + 1, (const char *)DisplayName); CString = cocos2d::CCString::getCString(v17); *(_OWORD *)Block = 0; v46 = 0; v19 = -1; do ++v19; while ( CString[v19] ); sub_14003D230(Block, CString, v19); sub_14003D310((__int64)v47); v20 = *(_DWORD *)(a1 + 696); v21 = Block; if ( *((_QWORD *)&v46 + 1) > 0xFu ) v21 = (void **)Block[0]; v42 = 0; v43 = 0; v44 = 0; v22 = -1; do ++v22; while ( *((_BYTE *)v21 + v22) ); sub_14003D230(&v42, v21, v22); v23 = OptionsObject::create(v13, v20 == v16, (__int64)&v42, v40); *((_DWORD *)v23 + 26) = 1; v23[14] = v14; (*((void (__fastcall **)(void **, _QWORD))*v23 + 8))(v23, v16); v7 = v41; cocos2d::CCArray::addObject(v41, (struct cocos2d::CCObject *)v23); if ( *((_QWORD *)&v46 + 1) > 0xFu ) { v24 = Block[0]; if ( (unsigned __int64)(*((_QWORD *)&v46 + 1) + 1LL) >= 0x1000 ) { v24 = *((void **)Block[0] - 1); if ( (unsigned __int64)((char *)Block[0] - (char *)v24 - 8) > 0x1F ) invoke_watson(nullptr, nullptr, nullptr, 0, 0); } j_j_free(v24); } v13 = v16; } while ( v16 < cocos2d::CCArray::count(*(cocos2d::CCArray **)(a1 + 680)) ); } } v25 = a1 + 664; if ( !a1 ) v25 = 0; v26 = (unsigned int)CustomListView::create(v7, v25, 220.0, 340.0, Reserved, 24); v28 = GJCommentListLayer::create(v26, v27, -13487566, 340.0, 1130102784, 1, 0); *(_QWORD *)(a1 + 688) = v28; (*(void (__fastcall **)(_QWORD, cocos2d::CCLayerColor *, __int64))(**(_QWORD **)(a1 + 584) + 456LL))( *(_QWORD *)(a1 + 584), v28, 10); v29 = *(__int64 **)(a1 + 688); v30 = *v29; cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)v39, (float)(v38[0] - 340.0) * 0.5, (float)((float)(v38[1] - 220.0) * 0.5) - 10.0); (*(void (__fastcall **)(__int64 *, __int64))(v30 + 184))(v29, v31); v32 = *(cocos2d::CCArray **)(a1 + 680); if ( v32 ) v10 = cocos2d::CCArray::count(v32) + 1; v33 = cocos2d::CCString::createWithFormat("Total: %i", v10); v34 = cocos2d::CCString::getCString(v33); *(_OWORD *)Block = 0; v46 = 0; do ++v12; while ( v34[v12] ); sub_14003D230(Block, v34, v12); v35 = Block; if ( *((_QWORD *)&v46 + 1) > 0xFu ) v35 = (void **)Block[0]; (**(void (__fastcall ***)(__int64, void **))(*(_QWORD *)(a1 + 704) + 360LL))(*(_QWORD *)(a1 + 704) + 360LL, v35); if ( *((_QWORD *)&v46 + 1) > 0xFu ) { v36 = Block[0]; if ( (unsigned __int64)(*((_QWORD *)&v46 + 1) + 1LL) >= 0x1000 ) { v36 = *((void **)Block[0] - 1); if ( (unsigned __int64)((char *)Block[0] - (char *)v36 - 8) > 0x1F ) invoke_watson(nullptr, nullptr, nullptr, 0, 0); } j_j_free(v36); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source