// // sub_E76130 from 0xe76130 to 0xe763dc (684 bytes) // // 3 xrefs: // > sub_E763DC @ 0xe764a8 // > sub_E763DC @ 0xe76524 // > sub_E763DC @ 0xe765e4 // // This function is hookable on this platform (idp: arm, 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 13:10:40 +0000 // signed __int64 __fastcall sub_E76130(__int64 *a1) { int v1; // w1 int v3; // w0 int v4; // w6 __int64 *v5; // x23 int v6; // w5 int v7; // w20 _DWORD *v8; // x0 unsigned int v9; // w3 unsigned int v10; // w8 unsigned int v11; // w4 unsigned int v12; // w7 int v13; // w21 int v14; // w5 int v15; // w2 int v16; // w1 int v17; // w3 int v18; // w0 int v19; // w1 int v20; // w0 _DWORD *v21; // x0 unsigned int v22; // w3 unsigned int v23; // w4 int v24; // w5 int v25; // w2 signed __int64 result; // x0 void (__fastcall *v27)(__int64 *); // x2 __int64 v28; // x2 v1 = *((_DWORD *)a1 + 93); if ( v1 == 1 ) { v21 = (_DWORD *)a1[47]; v22 = v21[3]; v23 = v21[8]; *((_DWORD *)a1 + 102) = v21[7]; *((_DWORD *)a1 + 103) = v23; v24 = v21[9]; v21[14] = 1; v21[15] = 1; v21[16] = 1; v21[17] = v24; v21[18] = 1; v25 = v23 % v22; if ( !(v23 % v22) ) v25 = v22; v21[19] = v25; *((_DWORD *)a1 + 104) = 1; *((_DWORD *)a1 + 105) = 0; } else { if ( (unsigned int)(v1 - 1) > 3 ) { v28 = *a1; *(_DWORD *)(v28 + 44) = v1; *(_DWORD *)(v28 + 40) = 27; *(_DWORD *)(*a1 + 48) = 4; (*(void (__fastcall **)(__int64 *))*a1)(a1); } *((_DWORD *)a1 + 102) = jdiv_round_up(*((unsigned int *)a1 + 20), *((_DWORD *)a1 + 88) * *((_DWORD *)a1 + 119)); v3 = jdiv_round_up(*((unsigned int *)a1 + 21), *((_DWORD *)a1 + 89) * *((_DWORD *)a1 + 119)); *((_DWORD *)a1 + 104) = 0; v4 = *((_DWORD *)a1 + 93); *((_DWORD *)a1 + 103) = v3; if ( v4 > 0 ) { v5 = a1 + 47; v6 = 0; v7 = 0; while ( 1 ) { v8 = (_DWORD *)*v5; v9 = *(_DWORD *)(*v5 + 8); v10 = *(_DWORD *)(*v5 + 28); v11 = *(_DWORD *)(*v5 + 12); v12 = *(_DWORD *)(*v5 + 32); v8[17] = v9 * *(_DWORD *)(*v5 + 36); v13 = v9 * v11; v8[14] = v9; v14 = v9 * v11 + v6; v8[15] = v11; v8[16] = v9 * v11; v15 = v10 % v9; if ( !(v10 % v9) ) v15 = v9; v8[18] = v15; v16 = v12 % v11; if ( !(v12 % v11) ) v16 = v11; v8[19] = v16; if ( v14 > 10 ) { v27 = *(void (__fastcall **)(__int64 *))*a1; *(_DWORD *)(*a1 + 40) = 14; v27(a1); v4 = *((_DWORD *)a1 + 93); } v17 = v13 - 1; if ( v13 > 0 ) { v18 = *((_DWORD *)a1 + 104); *((_DWORD *)a1 + v18 + 105) = v7; v19 = v18 + 1; if ( v17 > 0 ) { *((_DWORD *)a1 + v19 + 105) = v7; if ( v13 > 2 ) { *((_DWORD *)a1 + v18 + 107) = v7; if ( v13 > 3 ) { *((_DWORD *)a1 + v18 + 108) = v7; if ( v13 > 4 ) { *((_DWORD *)a1 + v18 + 109) = v7; if ( v13 > 5 ) { *((_DWORD *)a1 + v18 + 110) = v7; if ( v13 > 6 ) { *((_DWORD *)a1 + v18 + 111) = v7; if ( v13 > 7 ) { *((_DWORD *)a1 + v18 + 112) = v7; if ( v13 > 8 ) { *((_DWORD *)a1 + v18 + 113) = v7; v20 = v18 + 9; if ( v13 > 9 ) *((_DWORD *)a1 + v20 + 105) = v7; } } } } } } } } *((_DWORD *)a1 + 104) = v17 + v19; } ++v7; ++v5; if ( v4 <= v7 ) break; v6 = *((_DWORD *)a1 + 104); } } } result = *((unsigned int *)a1 + 80); if ( (int)result > 0 ) { result = (int)result * (unsigned __int64)*((unsigned int *)a1 + 102); if ( result > 65534 ) result = 0xFFFF; else result = (unsigned int)result; *((_DWORD *)a1 + 79) = result; } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source