// // ThreadViewPopup::threadSearchFinished from 0x100931b00 to 0x10093214f (1615 bytes) // // 2 xrefs: // > sub_1009321B0 @ 0x1009321bc // > @ 0x100bc2c10 // // 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:38:24 +0000 // __int64 __fastcall ThreadViewPopup::threadSearchFinished(__int64 a1, int a2, __int64 a3, char a4) { __int64 result; // rax unsigned int v7; // eax __int64 v8; // rdi int v9; // r15d __int64 v10; // r12 void *v11; // rax double v12; // xmm0_8 __int64 v13; // rdi __int64 v14; // rdi __int64 v15; // rdi __int64 v16; // rdi __int64 v17; // rdi __int64 v18; // rdi __int64 v19; // rdi __int64 v20; // rdi _QWORD *v21; // rax __int64 v22; // rdi void *v23; // r13 __int64 v24; // rax char *v25; // rax void *v26; // rax __int64 v27; // rdi __int64 v28; // r12 __int64 v29; // rax __int64 v30; // rdi __int64 v31; // rdi void *v32; // r12 unsigned int i; // r13d __int64 v34; // rax __int64 v35; // rcx signed int v36; // r14d __int64 v37; // rax signed int v38; // r14d __int64 v39; // r15 __int64 v40; // rax unsigned int j; // r12d __int64 v42; // r13 __int64 v43; // rax int v44; // r14d __int64 v45; // rax __int64 v46; // r15 const char *v47; // rdx const char *v48; // rcx const char *v49; // r8 char *v50; // rax __int64 CString; // rax __int64 v52; // rdi __int64 v54; // [rsp+10h] [rbp-30h] result = *(_QWORD *)(a1 + 752); if ( *(_DWORD *)(result + 56) != a2 ) return result; v7 = *(unsigned __int8 *)(a1 + 1112); if ( (v7 & 1) != 0 ) { result = *(_QWORD *)(a1 + 1120); if ( !result ) return result; } else { result = v7 >> 1; if ( !result ) return result; } v8 = *(_QWORD *)(a1 + 832); if ( v8 ) LoadingCircle::fadeAndRemove(v8); if ( a3 ) v9 = sub_1007FEF90(a3); else v9 = 0; v10 = *(_QWORD *)(GameLevelManager::sharedState() + 536); v54 = v10; if ( !*(_BYTE *)(a1 + 1104) ) { *(_BYTE *)(a1 + 1104) = 1; *(_QWORD *)(a1 + 1136) = *(_QWORD *)(a1 + 760); *(_OWORD *)(a1 + 1144) = *(_OWORD *)(a1 + 768); *(_BYTE *)(a1 + 1160) = *(_BYTE *)(a1 + 788); *(_DWORD *)(a1 + 1164) = *(_DWORD *)(*(_QWORD *)(a1 + 824) + 436LL); v11 = sub_1007FE900(); *(_QWORD *)(a1 + 760) = v11; cocos2d::CCObject::retain((__int64)v11); if ( *(float *)(a1 + 940) != 0.0 ) { *(_DWORD *)(a1 + 940) = 0; cocos2d::CCNode::unschedule(a1, (__int64)sub_10092EE80, 0); *(_QWORD *)&v12 = *(unsigned int *)(a1 + 940); if ( *(float *)&v12 > 0.0 ) cocos2d::CCNode::schedule_1(a1, (__int64)sub_10092EE80, 0, v12); } v13 = *(_QWORD *)(a1 + 1024); if ( v13 ) (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v13 + 344LL))(v13, 0); cocos2d::CCNode::unschedule(a1, (__int64)sub_100936140, 0); v14 = *(_QWORD *)(a1 + 920); if ( v14 ) (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v14 + 1368LL))(v14, 0); v15 = *(_QWORD *)(a1 + 928); if ( v15 ) { (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v15 + 1160LL))(v15, 0); (*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(a1 + 928) + 344LL))(*(_QWORD *)(a1 + 928), 0); } v16 = *(_QWORD *)(a1 + 1016); if ( v16 ) (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v16 + 344LL))(v16, 0); v17 = *(_QWORD *)(a1 + 1216); if ( v17 ) (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v17 + 344LL))(v17, 0); v18 = *(_QWORD *)(a1 + 1224); if ( v18 ) (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v18 + 344LL))(v18, 0); v19 = *(_QWORD *)(a1 + 912); if ( v19 ) { (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v19 + 344LL))(v19, 0); v20 = *(_QWORD *)(a1 + 912); if ( v20 ) { (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v20 + 1056LL))(v20, 0); v21 = (_QWORD *)(*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 912) + 1072LL))(*(_QWORD *)(a1 + 912)); ButtonSprite::setColor(v21, 8224125); } } v22 = *(_QWORD *)(a1 + 1200); if ( !v22 ) { v23 = cocos2d::CCLabelBMFont::create_3((__int64)"", (__int64)"bigFont.fnt"); *(_QWORD *)(a1 + 1200) = v23; v24 = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 1008) + 192LL))(*(_QWORD *)(a1 + 1008)); (*(void (__fastcall **)(void *, __int64))(*(_QWORD *)v23 + 184LL))(v23, v24); (*(void (__fastcall **)(_QWORD, _QWORD, __int64))(**(_QWORD **)(a1 + 584) + 464LL))( *(_QWORD *)(a1 + 584), *(_QWORD *)(a1 + 1200), 6); v25 = ButtonSprite::create_1( (__int64)"Clear", 0x2Du, 0, 1u, (__int64)"bigFont.fnt", (__int64)"GJ_button_04.png", 0.55000001, 28.0); v26 = CCMenuItemSpriteExtra::create((__int64)v25, 0, a1, (__int64)sub_100931270, 0); *(_QWORD *)(a1 + 1208) = v26; CCMenuItemSpriteExtra::setSizeMult((__int64)v26, 1.1); (*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(a1 + 552) + 456LL))( *(_QWORD *)(a1 + 552), *(_QWORD *)(a1 + 1208)); v27 = *(_QWORD *)(a1 + 912); v28 = *(_QWORD *)(a1 + 1208); if ( !v27 ) v27 = *(_QWORD *)(a1 + 1008); v29 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v27 + 192LL))(v27); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v28 + 184LL))(v28, v29); v22 = *(_QWORD *)(a1 + 1200); v10 = v54; } (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v22 + 344LL))(v22, 1); (*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 1208) + 344LL))(*(_QWORD *)(a1 + 1208), 1); (*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 1208) + 1056LL))(*(_QWORD *)(a1 + 1208), 1); v30 = *(_QWORD *)(a1 + 800); if ( v30 ) (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v30 + 344LL))(v30, 0); v31 = *(_QWORD *)(a1 + 808); if ( v31 ) (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v31 + 344LL))(v31, 0); if ( v10 <= 0 ) goto LABEL_55; LABEL_41: v32 = sub_1007FE900(); if ( v9 > 0 ) { for ( i = 0; i != v9; ++i ) { v34 = sub_1007FEFE0(a3, i); v35 = *(_QWORD *)(a1 + 768); if ( !v35 || *(_QWORD *)(v34 + 56) < v35 ) sub_1007FEBF0((__int64)v32, v34); } } if ( (int)sub_1007FEF90(*(_QWORD *)(a1 + 760)) > 0 ) { v36 = 0; do { v37 = sub_1007FEFE0(*(_QWORD *)(a1 + 760), v36); sub_1007FEBF0((__int64)v32, v37); ++v36; } while ( v36 < (int)sub_1007FEF90(*(_QWORD *)(a1 + 760)) ); } sub_1007FF190(*(_QWORD *)(a1 + 760)); if ( (int)sub_1007FEF90((__int64)v32) > 0 ) { v38 = 0; do { v39 = *(_QWORD *)(a1 + 760); v40 = sub_1007FEFE0((__int64)v32, v38); sub_1007FEBF0(v39, v40); ++v38; } while ( v38 < (int)sub_1007FEF90((__int64)v32) ); } goto LABEL_58; } if ( v10 > 0 ) goto LABEL_41; sub_1007FF190(*(_QWORD *)(a1 + 760)); LABEL_55: if ( v9 > 0 ) { for ( j = 0; j != v9; ++j ) { v42 = *(_QWORD *)(a1 + 760); v43 = sub_1007FEFE0(a3, j); sub_1007FEBF0(v42, v43); } } LABEL_58: *(_BYTE *)(a1 + 788) = a4; v44 = sub_1007FEF90(*(_QWORD *)(a1 + 760)); if ( v44 <= 0 ) { *(_QWORD *)(a1 + 768) = 0; v45 = 0; } else { *(_QWORD *)(a1 + 768) = *(_QWORD *)(sub_1007FEFE0(*(_QWORD *)(a1 + 760), 0) + 56); v45 = *(_QWORD *)(sub_1007FEFE0(*(_QWORD *)(a1 + 760), v44 - 1) + 56); } *(_QWORD *)(a1 + 776) = v45; v46 = *(_QWORD *)(a1 + 1200); if ( v46 ) { v47 = "+"; if ( !*(_BYTE *)(a1 + 788) ) v47 = ""; v48 = "s"; if ( v44 == 1 ) v48 = ""; if ( (*(_BYTE *)(a1 + 1112) & 1) != 0 ) v49 = *(const char **)(a1 + 1128); else v49 = (const char *)(a1 + 1113); v50 = sub_10088E820("%i%s result%s for \"%s\"", v44, v47, v48, v49); CString = cocos2d::CCString::getCString((__int64)v50); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v46 + 928LL))(v46, CString); cocos2d::CCLabelBMFont::limitLabelWidth( *(_QWORD *)(a1 + 1200), *(float *)(a1 + 1064) + -8.0, (__m128)0x3ECCCCCDu, (__m128)0x3E4CCCCDu); } result = sub_100931870(a1, v54 <= 0); if ( !v44 ) { v52 = *(_QWORD *)(a1 + 856); if ( v52 ) return (*(__int64 (__fastcall **)(__int64, const std::string::value_type *))(*(_QWORD *)v52 + 928LL))( v52, "No results"); } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source