// // sub_1008970C0 from 0x1008970c0 to 0x1008977b3 (1779 bytes) // // 1 xrefs: // > InfoLayer::setupBulkUI @ 0x1008955d8 // // 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:07 +0000 // void __fastcall sub_1008970C0(__int64 a1, __int64 a2, double a3) { __int64 v3; // rax __int64 v4; // rax __int64 v5; // rax __int64 v6; // rax __int64 v7; // rcx __int64 v8; // rsi char v9; // r13 int v10; // eax int v11; // r14d unsigned int v12; // r15d int v13; // r12d unsigned int v14; // ebx __int64 v15; // rax int v16; // edx unsigned int v17; // esi unsigned int v18; // eax unsigned int v19; // r12d __int64 v20; // rdx __int64 v21; // r15 int v22; // r14d __int64 v23; // r12 __int64 v24; // r15 __int64 v25; // rax int v26; // r8d __int64 v27; // r15 __int64 v28; // rax __int64 *v29; // rax __int64 v30; // rbx __int64 v31; // r8 int v32; // r9d int v33; // esi _QWORD *v34; // rdx _QWORD *v35; // rcx _QWORD *v36; // r13 char *v37; // rbx int v38; // eax int v39; // eax __int64 v40; // rax __int64 v41; // rsi bool v42; // zf __int64 v43; // rax int v44; // r15d __int64 v45; // rcx __int64 v46; // rsi __int64 v47; // rdx int v48; // edx __int64 *v49; // rdi __int64 **v50; // r14 __int64 *v51; // rax int v52; // edx int v53; // eax __int64 *v54; // rcx __int64 **v55; // rdx __int64 *v56; // rax __int64 **v57; // r14 __int64 *v58; // rax __int64 **v59; // r12 int v60; // eax int v61; // eax char *v62; // r13 __int64 v63; // rax __int64 v64; // r15 __int64 v65; // rcx _QWORD *v66; // rdx int v67; // [rsp-64h] [rbp-64h] char *v68; // [rsp-60h] [rbp-60h] __int64 v69; // [rsp-60h] [rbp-60h] unsigned int v70; // [rsp-54h] [rbp-54h] __int64 **v71; // [rsp-50h] [rbp-50h] int v72; // [rsp-50h] [rbp-50h] __int64 v74; // [rsp-40h] [rbp-40h] char v75; // [rsp-31h] [rbp-31h] if ( a2 ) { if ( *(_QWORD *)(a2 + 584) ) { v3 = *(_QWORD *)(a1 + 896); if ( v3 ) { if ( *(_QWORD *)(v3 + 432) ) { if ( *(_QWORD *)(a2 + 416) != *(_QWORD *)(v3 + 424) ) return; v74 = a1; v4 = cocos2d::CCDirector::sharedDirector(); if ( (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v4 + 192LL))(v4) ) { v5 = cocos2d::CCDirector::sharedDirector(); v6 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v5 + 192LL))(v5); v7 = a2; v8 = *(_QWORD *)(a2 + 584); v9 = *(_BYTE *)(v8 + 440); if ( *(_BYTE *)(v6 + 128) == 1 && *(_QWORD *)(a1 + 952) != 0 && *(_QWORD *)(a1 + 952) != v8 ) { v10 = sub_1007FEF90(*(_QWORD *)(*(_QWORD *)(a1 + 896) + 432LL)); v7 = a2; if ( !v10 ) goto LABEL_68; v11 = v10; v12 = 0; v13 = -1; v14 = -1; do { while ( 1 ) { v15 = sub_1007FEFE0(*(_QWORD *)(*(_QWORD *)(a1 + 896) + 432LL), v12); if ( v15 ) break; a1 = v74; v7 = a2; if ( v11 == ++v12 ) goto LABEL_18; } v16 = v12; a1 = v74; v7 = a2; if ( v15 != *(_QWORD *)(v74 + 952) ) v16 = v13; v17 = v12; if ( v15 != *(_QWORD *)(a2 + 584) ) v17 = v14; v14 = v17; v13 = v16; ++v12; } while ( v11 != v12 ); LABEL_18: if ( v13 >= 0 && (v14 & 0x80000000) == 0 ) { v18 = v14; if ( v13 > v14 ) v18 = v13; if ( v13 < v14 ) v14 = v13; v19 = v18; v71 = (__int64 **)(a1 + 936); v70 = v18; v75 = v9; while ( 1 ) { v41 = v14; v43 = sub_1007FEFE0(*(_QWORD *)(*(_QWORD *)(a1 + 896) + 432LL), v14); if ( v43 ) { *(_BYTE *)(v43 + 440) = v9; v41 = *(unsigned int *)(v43 + 436); if ( (unsigned int)(v41 - 3) >= 3 ) { v44 = 0; if ( *(_DWORD *)(v43 + 380) ) { v45 = *(unsigned int *)(v43 + 368); if ( v9 ) goto LABEL_77; } else { v44 = 1; v45 = *(unsigned int *)(v43 + 368); if ( v9 ) { LABEL_77: if ( (unsigned int)(v41 - 3) < 3 ) { v46 = v41 + 3; v47 = 380; goto LABEL_103; } v48 = *(_DWORD *)(v43 + 380); if ( v48 ) { v46 = 0; } else { v46 = 1; v47 = 388; LABEL_103: v48 = *(_DWORD *)(v43 + v47); } v69 = v45 << 32; v57 = v71; LABEL_105: while ( 1 ) { v58 = *v57; v59 = v57; if ( !*v57 ) break; while ( 1 ) { v57 = (__int64 **)v58; v60 = *((_DWORD *)v58 + 7); if ( v44 < v60 ) break; if ( v44 <= v60 ) { v61 = *((_DWORD *)v57 + 8); if ( (int)v45 < v61 ) goto LABEL_105; if ( v61 >= (int)v45 ) { v19 = v70; v64 = v45 << 32; goto LABEL_115; } } v58 = v57[1]; if ( !v58 ) { v59 = v57 + 1; goto LABEL_112; } } } LABEL_112: v67 = v48; v62 = (char *)operator new(0x30u); v63 = (unsigned int)v44; v64 = v69; *(_QWORD *)(v62 + 28) = v69 | v63; *(_QWORD *)(v62 + 36) = 0; *((_DWORD *)v62 + 11) = 0; a3 = 0.0; *(_OWORD *)v62 = 0; *((_QWORD *)v62 + 2) = v57; *v59 = (__int64 *)v62; v65 = **(_QWORD **)(v74 + 928); if ( v65 ) *(_QWORD *)(v74 + 928) = v65; sub_10001B680(*(__int64 **)(v74 + 936), (__int64 *)v62); ++*(_QWORD *)(v74 + 944); v57 = (__int64 **)v62; v9 = v75; v19 = v70; v48 = v67; LABEL_115: v41 = v64 | v46; *(__int64 **)((char *)v57 + 36) = (__int64 *)v41; *((_DWORD *)v57 + 11) = v48; goto LABEL_70; } } } else { v44 = v41 + 3; v45 = *(unsigned int *)(v43 + 368); if ( v9 ) goto LABEL_77; } v49 = *v71; if ( *v71 ) { v50 = v71; v51 = *v71; do { v52 = *((_DWORD *)v51 + 7); if ( v52 < v44 ) { ++v51; } else if ( v52 <= v44 ) { if ( *((_DWORD *)v51 + 8) >= (int)v45 ) v50 = (__int64 **)v51; v51 += *((_DWORD *)v51 + 8) < (int)v45; } else { v50 = (__int64 **)v51; } v51 = (__int64 *)*v51; } while ( v51 ); if ( v50 != v71 ) { v53 = *((_DWORD *)v50 + 7); if ( v44 >= v53 && (v44 > v53 || (int)v45 >= *((_DWORD *)v50 + 8)) ) { v54 = v50[1]; v55 = v50; if ( v54 ) { do { v56 = v54; v54 = (__int64 *)*v54; } while ( v54 ); } else { do { v56 = v55[2]; v42 = *v56 == (_QWORD)v55; v55 = (__int64 **)v56; } while ( !v42 ); } if ( *(__int64 ***)(v74 + 928) == v50 ) *(_QWORD *)(v74 + 928) = v56; --*(_QWORD *)(v74 + 944); v41 = (__int64)v50; sub_1001454C0(v49, (__int64 *)v50); operator delete(v50); } } } } LABEL_70: v42 = v14++ == v19; a1 = v74; if ( v42 ) { v7 = a2; if ( *(_QWORD *)(v74 + 896) ) { CustomListView::reloadAll(*(_QWORD *)(v74 + 896), v41, a3); v7 = a2; a1 = v74; } goto LABEL_68; } } } goto LABEL_68; } } else { v7 = a2; v8 = *(_QWORD *)(a2 + 584); v9 = *(_BYTE *)(v8 + 440); } v20 = *(unsigned int *)(v8 + 368); v21 = *(unsigned int *)(v8 + 436); if ( (unsigned int)(v21 - 3) >= 3 ) { v22 = 0; if ( *(_DWORD *)(v8 + 380) ) { if ( !v9 ) goto LABEL_37; } else { v22 = 1; if ( !v9 ) goto LABEL_37; } } else { v22 = v21 + 3; if ( !v9 ) { LABEL_37: v29 = *(__int64 **)(a1 + 936); if ( v29 ) { v30 = a1 + 936; v31 = *(_QWORD *)(a1 + 936); do { v32 = *(_DWORD *)(v31 + 28); if ( v32 < v22 ) { v31 += 8; } else if ( v32 <= v22 ) { if ( *(_DWORD *)(v31 + 32) >= (int)v20 ) v30 = v31; v31 += 8LL * (*(_DWORD *)(v31 + 32) < (int)v20); } else { v30 = v31; } v31 = *(_QWORD *)v31; } while ( v31 ); if ( v30 != a1 + 936 ) { v33 = *(_DWORD *)(v30 + 28); if ( v22 >= v33 && (v22 > v33 || (int)v20 >= *(_DWORD *)(v30 + 32)) ) { v34 = *(_QWORD **)(v30 + 8); if ( v34 ) { do { v35 = v34; v34 = (_QWORD *)*v34; } while ( v34 ); } else { v66 = (_QWORD *)v30; do { v35 = (_QWORD *)v66[2]; v42 = *v35 == (_QWORD)v66; v66 = v35; } while ( !v42 ); } if ( *(_QWORD *)(a1 + 928) == v30 ) *(_QWORD *)(a1 + 928) = v35; --*(_QWORD *)(a1 + 944); sub_1001454C0(v29, (__int64 *)v30); operator delete((void *)v30); v7 = a2; } } } LABEL_68: *(_QWORD *)(a1 + 952) = *(_QWORD *)(v7 + 584); InfoLayer::refreshBulkUI(a1); return; } } v23 = v20 << 32; if ( (unsigned int)(v21 - 3) >= 3 ) { v26 = *(_DWORD *)(v8 + 380); if ( v26 ) { v27 = v20 << 32; v28 = *(_QWORD *)(a1 + 936); if ( v28 ) goto LABEL_58; goto LABEL_56; } v24 = 1; v25 = 388; } else { v24 = v21 + 3; v25 = 380; } v26 = *(_DWORD *)(v8 + v25); v27 = v23 | v24; v28 = *(_QWORD *)(a1 + 936); if ( !v28 ) { LABEL_56: v36 = (_QWORD *)(a1 + 936); v37 = (char *)(a1 + 936); LABEL_64: v72 = v26; v68 = v37; v37 = (char *)operator new(0x30u); *(_QWORD *)(v37 + 28) = (unsigned int)v22 | (unsigned __int64)v23; *(_QWORD *)(v37 + 36) = 0; *((_DWORD *)v37 + 11) = 0; *(_OWORD *)v37 = 0; *((_QWORD *)v37 + 2) = v68; *v36 = v37; v40 = **(_QWORD **)(a1 + 928); if ( v40 ) *(_QWORD *)(a1 + 928) = v40; sub_10001B680(*(__int64 **)(a1 + 936), (__int64 *)v37); ++*(_QWORD *)(a1 + 944); v7 = a2; v26 = v72; LABEL_67: *(_QWORD *)(v37 + 36) = v27; *((_DWORD *)v37 + 11) = v26; goto LABEL_68; } while ( 1 ) { LABEL_58: v37 = (char *)v28; v38 = *(_DWORD *)(v28 + 28); if ( v22 < v38 ) goto LABEL_57; if ( v22 > v38 ) { LABEL_62: v28 = *((_QWORD *)v37 + 1); if ( !v28 ) { v36 = v37 + 8; goto LABEL_64; } } else { v39 = *((_DWORD *)v37 + 8); if ( (int)v20 >= v39 ) { if ( v39 >= (int)v20 ) goto LABEL_67; goto LABEL_62; } LABEL_57: v28 = *(_QWORD *)v37; v36 = v37; if ( !*(_QWORD *)v37 ) goto LABEL_64; } } } } } } InfoLayer::refreshBulkUI(a1); }
GD Web Decomp Icon

GD Web Decomp

Raw Source