// // sub_CD4990 from 0xcd4990 to 0xcd4af8 (360 bytes) // // 0 xrefs: // // This function is hookable on this platform! // // Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings // __int64 __fastcall sub_CD4990(__int64 a1) { int v2; // w1 __int64 result; // x0 _QWORD *v4; // x2 unsigned int *v5; // x1 char v6; // [xsp+38h] [xbp+38h] BYREF *(_QWORD *)(a1 + 8) = 0; sub_CD43C0(&v6, (unsigned int **)a1, 1u); if ( v6 ) { v4 = *(_QWORD **)(a1 + *(_QWORD *)(*(_QWORD *)a1 - 24LL) + 232); v5 = (unsigned int *)v4[2]; if ( (unsigned __int64)v5 >= v4[3] ) { result = (*(__int64 (__fastcall **)(_QWORD))(*v4 + 80LL))(*(_QWORD *)(a1 + *(_QWORD *)(*(_QWORD *)a1 - 24LL) + 232)); } else { result = *v5; v4[2] = v5 + 1; } if ( (_DWORD)result == -1 ) { if ( *(_QWORD *)(a1 + 8) ) v2 = 2; else v2 = 6; goto LABEL_3; } *(_QWORD *)(a1 + 8) = 1; } else { v2 = 4; if ( !*(_QWORD *)(a1 + 8) ) { LABEL_3: sub_CCF1DC(a1 + *(_QWORD *)(*(_QWORD *)a1 - 24LL), v2 | *(_DWORD *)(a1 + *(_QWORD *)(*(_QWORD *)a1 - 24LL) + 32)); return 0xFFFFFFFFLL; } return 0xFFFFFFFFLL; } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source