// // sub_10042E77C from 0x10042e77c to 0x10042e8e8 (364 bytes) // // 1 xrefs: // > sub_1004E6088 @ 0x1004e60c8 // // 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_10042E77C(__int64 a1, float *a2, int *a3, int a4) { int v6; // w10 int v7; // w8 __int64 v8; // x22 char *v9; // x23 __int64 v11; // x24 __int64 result; // x0 bool v13; // w8 __int64 i; // x9 __int64 v15; // x13 __int64 *v16; // x14 float *v17; // x15 __int64 v18; // t1 __int64 v19; // [xsp+0h] [xbp-50h] BYREF if ( *(int *)(a1 + 8) < 1 ) return 0; v6 = *(_DWORD *)a1; v7 = a4 / *(_DWORD *)a1; v8 = v7; v9 = (char *)&v19 - ((8LL * v7 + 15) & 0xFFFFFFFFFFFFFFF0LL); if ( v7 < 1 ) { v13 = 0; if ( v6 >= 1 ) { LABEL_9: for ( i = 0; i != v6; ++i ) { if ( (int)v8 >= 1 ) { v15 = (unsigned int)v8; v16 = (__int64 *)v9; v17 = a2; do { v18 = *v16++; *v17 = *(float *)(v18 + 4 * i) + *v17; ++v17; --v15; } while ( v15 ); } a2 += v8; } } LABEL_15: if ( v13 ) return 0xFFFFFFFFLL; return 0; } v11 = 0; while ( 1 ) { result = sub_10042E648(a1, a3); if ( (_DWORD)result == -1 ) return result; v6 = *(_DWORD *)a1; *(_QWORD *)&v9[8 * v11++] = *(_QWORD *)(a1 + 24) + 4LL * *(_DWORD *)a1 * (int)result; if ( (unsigned int)v8 == v11 ) { v13 = v11 < v8; if ( v6 >= 1 ) goto LABEL_9; goto LABEL_15; } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source