// // sub_1004420AC from 0x1004420ac to 0x1004421e8 (316 bytes) // // 2 xrefs: // > sub_100441A88 @ 0x10044208c // > sub_1004D1C74 @ 0x1004d1d50 // // 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_1004420AC(__int64 a1) { __int64 v1; // x21 __int64 v3; // x20 __int64 i; // x8 float **v5; // x13 float v6; // s0 __int64 v7; // x14 float *v8; // x15 __int64 v9; // x16 float v10; // s1 float *v11; // x13 __int64 v13; // [xsp+8h] [xbp-38h] int v14; // [xsp+10h] [xbp-30h] v1 = a1 + 70460; if ( *(_DWORD *)(a1 + 70460) != 1 ) { *(_OWORD *)(a1 + 71104) = 0u; *(_OWORD *)(a1 + 71120) = 0u; *(_OWORD *)(a1 + 71072) = 0u; *(_OWORD *)(a1 + 71088) = 0u; *(_OWORD *)(a1 + 71040) = 0u; *(_OWORD *)(a1 + 71056) = 0u; v3 = *(unsigned int *)(a1 + 1748); v13 = 0; v14 = 0; sub_1004421E8(); if ( (int)v3 >= 1 ) { for ( i = 0; i != v3; ++i ) { v5 = (float **)(a1 + 8 * i + 71040); v6 = 16.0; v7 = v3; v8 = (float *)(v1 + 4); do { v9 = *(int *)v8; if ( (_DWORD)v9 != 3 ) { if ( *((_BYTE *)v8 + 40) ) { v10 = v8[8]; if ( v10 < v6 && !*((_BYTE *)&v13 + v9) ) { *v5 = v8; v6 = v10; } } } v8 += 12; --v7; } while ( v7 ); v11 = *v5; if ( v11 ) *((_BYTE *)&v13 + *(int *)v11) = 1; } } sub_100442344(a1); } return 0; }
GD Web Decomp Icon

GD Web Decomp

Raw Source