// // sub_1008CDC80 from 0x1008cdc80 to 0x1008cdf0b (651 bytes) // // 4 xrefs: // > DeathTrackerPopup::init @ 0x1008cc446 // > sub_1008CD4B0 @ 0x1008cd5b9 // > sub_1008CD600 @ 0x1008cd681 // > sub_1008CD600 @ 0x1008cd718 // // 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:36 +0000 // __int64 __fastcall sub_1008CDC80(__int64 a1, int a2) { char v3; // r14 __int64 v4; // rdi __int64 v5; // rdi int v6; // eax unsigned __int8 v7; // al __int64 v8; // rdi __int64 v9; // rdi __int64 v10; // rdi __int64 v11; // rdi __int64 v12; // rdi int v13; // eax const char *v14; // rsi float v15; // xmm0_4 __int64 v16; // r14 int v17; // eax float v19[2]; // [rsp+Ch] [rbp-24h] BYREF float v20; // [rsp+14h] [rbp-1Ch] *(_DWORD *)(a1 + 728) = a2; if ( a2 != 2 ) { v3 = 0; v4 = *(_QWORD *)(a1 + 712); if ( !v4 ) goto LABEL_6; goto LABEL_5; } v3 = *(_BYTE *)(a1 + 986); v4 = *(_QWORD *)(a1 + 712); if ( v4 ) LABEL_5: (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v4 + 344LL))(v4, v3 & 1u | (a2 == 0)); LABEL_6: v5 = *(_QWORD *)(a1 + 688); if ( v5 ) { v6 = *(_DWORD *)(a1 + 728); if ( v6 == 1 ) { v7 = 1; } else if ( v6 == 2 ) { v7 = *(_BYTE *)(a1 + 986) ^ 1; } else { v7 = 0; } (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v5 + 344LL))(v5, v7); } v8 = *(_QWORD *)(a1 + 800); if ( v8 ) (*(void (__fastcall **)(__int64, bool))(*(_QWORD *)v8 + 344LL))(v8, *(_DWORD *)(a1 + 728) == 1); v9 = *(_QWORD *)(a1 + 720); if ( v9 ) (*(void (__fastcall **)(__int64, bool))(*(_QWORD *)v9 + 344LL))(v9, *(_DWORD *)(a1 + 728) == 3); v10 = *(_QWORD *)(a1 + 816); if ( v10 ) (*(void (__fastcall **)(__int64, bool))(*(_QWORD *)v10 + 344LL))(v10, *(_DWORD *)(a1 + 728) != 1); v11 = *(_QWORD *)(a1 + 808); if ( !v11 ) goto LABEL_35; (*(void (__fastcall **)(__int64, bool))(*(_QWORD *)v11 + 344LL))(v11, *(_DWORD *)(a1 + 728) != 1); v12 = *(_QWORD *)(a1 + 808); if ( v3 ) { (*(void (__fastcall **)(__int64, const char *))(*(_QWORD *)v12 + 928LL))(v12, "Attempt Progress"); if ( *(_DWORD *)(a1 + 728) != 2 ) goto LABEL_33; goto LABEL_32; } v13 = *(_DWORD *)(a1 + 728); if ( !v13 ) { (*(void (__fastcall **)(__int64, const char *))(*(_QWORD *)v12 + 928LL))(v12, "Death Distribution"); if ( *(_DWORD *)(a1 + 728) == 2 ) goto LABEL_32; LABEL_33: v20 = *(float *)(*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 808) + 328LL))(*(_QWORD *)(a1 + 808)); v15 = (float)((*(float (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 808) + 168LL))(*(_QWORD *)(a1 + 808)) * v20) + 22.0; v16 = *(_QWORD *)(a1 + 816); if ( !v16 ) goto LABEL_35; goto LABEL_34; } if ( v13 != 1 ) { v14 = "Progression"; if ( v13 == 2 ) v14 = "Death History"; (*(void (__fastcall **)(__int64, const char *))(*(_QWORD *)v12 + 928LL))(v12, v14); if ( *(_DWORD *)(a1 + 728) == 2 ) goto LABEL_32; goto LABEL_33; } (*(void (__fastcall **)(__int64, const char *))(*(_QWORD *)v12 + 928LL))(v12, "Death List"); if ( *(_DWORD *)(a1 + 728) != 2 ) goto LABEL_33; LABEL_32: if ( *(_BYTE *)(a1 + 986) ) goto LABEL_33; v15 = *(float *)(a1 + 696) + -4.0; v16 = *(_QWORD *)(a1 + 816); if ( v16 ) { LABEL_34: sub_100278260(v19, v15, 18.0); (*(void (__fastcall **)(__int64, float *))(*(_QWORD *)v16 + 320LL))(v16, v19); } LABEL_35: v17 = *(_DWORD *)(a1 + 728); if ( v17 == 2 ) { if ( *(_BYTE *)(a1 + 986) == 1 ) sub_1008D27A0(a1); else sub_1008D2D90(a1); } else if ( v17 == 1 ) { sub_1008D3CC0(a1); } return sub_1008D6C00(a1); }
GD Web Decomp Icon

GD Web Decomp

Raw Source