// // sub_1008D6C00 from 0x1008d6c00 to 0x1008d7151 (1361 bytes) // // 3 xrefs: // > sub_1008CDC80 @ 0x1008cded9 // > sub_1008CDF10 @ 0x1008cf651 // > DeathTrackerPopup::refreshGlobal @ 0x1008d1433 // // 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:41 +0000 // __int64 __fastcall sub_1008D6C00(__int64 a1) { int v2; // eax int v3; // r13d char v4; // dl bool v5; // cl int v6; // ecx __int64 *v7; // rcx const char *v8; // r14 __int64 v9; // r15 __int64 v10; // rax __int64 v11; // rax __int64 v12; // rax const char *v13; // r14 __int64 v14; // r15 __int64 v15; // rax __int64 v16; // rax __int64 v17; // r14 const char *v18; // r15 __int64 v19; // rax __int64 v20; // rax __int64 v21; // rdi __int64 v22; // rax unsigned __int64 v23; // r12 __int64 v24; // r14 unsigned __int8 v25; // r13 __int16 *v26; // rsi unsigned int v27; // r15d __int64 v28; // rax __int64 v29; // rdi __int64 v30; // rsi __int64 v31; // rax unsigned __int64 v32; // r12 __int64 v33; // r14 __int16 *v34; // rsi __int64 v35; // rax unsigned __int64 v36; // r12 __int64 v37; // r15 __int64 v38; // rax __int64 v39; // rdi __int64 v40; // rsi __int64 result; // rax int v42; // r15d unsigned __int64 v43; // r12 __int64 v44; // r14 __int16 *v45; // rsi __int64 v46; // rax unsigned __int64 v47; // r12 __int64 v48; // r15 __int64 v49; // rax int v50; // [rsp+8h] [rbp-48h] bool v51; // [rsp+10h] [rbp-40h] char v52; // [rsp+14h] [rbp-3Ch] int v53; // [rsp+18h] [rbp-38h] __int16 v54; // [rsp+1Ch] [rbp-34h] BYREF char v55; // [rsp+1Eh] [rbp-32h] _WORD v56[2]; // [rsp+20h] [rbp-30h] BYREF _BYTE v57[3]; // [rsp+24h] [rbp-2Ch] BYREF unsigned __int8 v58; // [rsp+27h] [rbp-29h] v55 = -1; v54 = -1; memset(v56, 110, 3); memset(v57, 100, sizeof(v57)); v2 = *(_DWORD *)(a1 + 728); if ( v2 ) { if ( v2 == 1 ) { v3 = 2; LABEL_6: v53 = *(_DWORD *)(a1 + 740); v58 = *(_BYTE *)(a1 + 744); v4 = v2 != 3; v5 = 0; LOBYTE(v2) = *(_BYTE *)(a1 + 920); if ( (_BYTE)v2 != 1 ) goto LABEL_15; goto LABEL_14; } if ( v2 == 3 ) { v3 = 3; goto LABEL_6; } v53 = *(_DWORD *)(a1 + 740); v4 = v2 != 3; v3 = 0; if ( v2 != 2 ) { v58 = *(_BYTE *)(a1 + 744); v5 = 0; LOBYTE(v2) = *(_BYTE *)(a1 + 920); if ( (_BYTE)v2 != 1 ) goto LABEL_15; goto LABEL_14; } v4 = *(_BYTE *)(a1 + 986) ^ 1; v5 = 1; v58 = v4; LOBYTE(v2) = *(_BYTE *)(a1 + 920); if ( (_BYTE)v2 == 1 ) { LABEL_14: v3 = *(unsigned __int8 *)(a1 + 977); v5 = 0; v4 = 0; } } else { v6 = *(_DWORD *)(a1 + 740); v58 = *(_BYTE *)(a1 + 744); v53 = v6; v5 = v6 == 0; v4 = 1; v3 = 1; v2 = *(unsigned __int8 *)(a1 + 920); if ( (_BYTE)v2 == 1 ) goto LABEL_14; } LABEL_15: v52 = v4; v51 = v5; v7 = *(__int64 **)(a1 + 824); if ( v7 != *(__int64 **)(a1 + 832) ) { v8 = "dtrack_graph_001.png"; if ( (_BYTE)v2 ) v8 = "dtrack_pillar2_001.png"; v9 = *v7; v10 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(); v11 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v10, v8); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v9 + 1160LL))(v9, v11); } v12 = *(_QWORD *)(a1 + 872); if ( (unsigned __int64)(*(_QWORD *)(a1 + 880) - v12) >= 9 ) { v13 = "dtrack_rate_001.png"; if ( *(_DWORD *)(a1 + 728) == 2 ) v13 = "dtrack_list_001.png"; v14 = *(_QWORD *)(v12 + 8); v15 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(); v16 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v15, v13); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v14 + 1160LL))(v14, v16); } v17 = *(_QWORD *)(a1 + 928); if ( v17 ) { v18 = "dtrackBtn_global_001.png"; if ( *(_BYTE *)(a1 + 920) ) v18 = "dtrackBtn_local_001.png"; v19 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(); v20 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v19, v18); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v17 + 1160LL))(v17, v20); } v21 = *(_QWORD *)(a1 + 896); if ( v21 ) (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v21 + 912LL))(v21, 128); v22 = *(_QWORD *)(a1 + 824); if ( *(_QWORD *)(a1 + 832) != v22 ) { v50 = v3; v23 = 0; do { v24 = *(_QWORD *)(v22 + 8 * v23); v25 = *(_BYTE *)(a1 + 920) & ((int)v23 >= 2); v26 = v56; if ( v50 == (_DWORD)v23 ) v26 = &v54; if ( v25 ) v26 = (__int16 *)v57; v27 = 255; if ( v25 ) v27 = 70; (*(void (__fastcall **)(__int64, __int16 *))(*(_QWORD *)v24 + 960LL))(v24, v26); (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v24 + 912LL))(v24, v27); v28 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v24 + 512LL))(v24); if ( v28 ) (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v28 + 1056LL))(v28, v25 ^ 1u); ++v23; v22 = *(_QWORD *)(a1 + 824); } while ( v23 < (*(_QWORD *)(a1 + 832) - v22) >> 3 ); } v29 = *(_QWORD *)(a1 + 904); if ( v29 ) { v30 = 85; if ( v52 ) v30 = 128; (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v29 + 912LL))(v29, v30); } v31 = *(_QWORD *)(a1 + 848); if ( *(_QWORD *)(a1 + 856) != v31 ) { if ( v52 ) { v32 = 0; do { v33 = *(_QWORD *)(v31 + 8 * v32); v34 = v56; if ( v53 == (_DWORD)v32 ) v34 = &v54; (*(void (__fastcall **)(__int64, __int16 *))(*(_QWORD *)v33 + 960LL))(v33, v34); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v33 + 912LL))(v33, 255); v35 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v33 + 512LL))(v33); if ( v35 ) (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v35 + 1056LL))(v35, 1); ++v32; v31 = *(_QWORD *)(a1 + 848); } while ( v32 < (*(_QWORD *)(a1 + 856) - v31) >> 3 ); } else { v36 = 0; do { v37 = *(_QWORD *)(v31 + 8 * v36); (*(void (__fastcall **)(__int64, _BYTE *))(*(_QWORD *)v37 + 960LL))(v37, v57); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v37 + 912LL))(v37, 70); v38 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v37 + 512LL))(v37); if ( v38 ) (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v38 + 1056LL))(v38, 0); ++v36; v31 = *(_QWORD *)(a1 + 848); } while ( v36 < (*(_QWORD *)(a1 + 856) - v31) >> 3 ); } } v39 = *(_QWORD *)(a1 + 912); if ( v39 ) { v40 = 85; if ( v51 ) v40 = 128; (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v39 + 912LL))(v39, v40); } result = *(_QWORD *)(a1 + 872); if ( *(_QWORD *)(a1 + 880) != result ) { if ( v51 ) { v42 = v58; v43 = 0; do { v44 = *(_QWORD *)(result + 8 * v43); v45 = v56; if ( v42 == (_DWORD)v43 ) v45 = &v54; (*(void (__fastcall **)(__int64, __int16 *))(*(_QWORD *)v44 + 960LL))(v44, v45); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v44 + 912LL))(v44, 255); v46 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v44 + 512LL))(v44); if ( v46 ) (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v46 + 1056LL))(v46, 1); ++v43; result = *(_QWORD *)(a1 + 872); } while ( v43 < (*(_QWORD *)(a1 + 880) - result) >> 3 ); } else { v47 = 0; do { v48 = *(_QWORD *)(result + 8 * v47); (*(void (__fastcall **)(__int64, _BYTE *))(*(_QWORD *)v48 + 960LL))(v48, v57); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v48 + 912LL))(v48, 70); v49 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v48 + 512LL))(v48); if ( v49 ) (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v49 + 1056LL))(v49, 0); ++v47; result = *(_QWORD *)(a1 + 872); } while ( v47 < (*(_QWORD *)(a1 + 880) - result) >> 3 ); } } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source