// // sub_F25A00 from 0xf25a00 to 0xf266d0 (3280 bytes) // // 1 xrefs: // > sub_F15F50 @ 0xf15f80 // // 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:12:46 +0000 // __int64 *__fastcall sub_F25A00(__int64 *a1, float a2) { int v2; // w19 double v4; // d1 double v5; // d0 double v6; // d8 double v7; // d2 double v8; // d10 int v9; // w2 int *v10; // x20 int v11; // w0 int v12; // w22 int v13; // w4 int v14; // w21 int v15; // w22 int v16; // w21 int v17; // w23 _DWORD *v18; // x28 int v19; // w22 int v20; // w0 int v21; // w23 int v22; // w22 int v23; // w1 int v24; // w0 __int64 v25; // x0 int v26; // w1 int v27; // w22 int v28; // w19 int *v29; // x23 _DWORD *v30; // x20 int i; // w24 _DWORD *v32; // x0 int v33; // w1 int v34; // w0 bool v35; // cc int v36; // w0 __int64 v37; // x1 __int64 *result; // x0 __int64 *v39; // x13 int v40; // w0 int v41; // w16 int v42; // w22 int v43; // w26 int v44; // w7 int v45; // w21 int v46; // w5 __int16 v47; // w23 unsigned __int16 v48; // w28 __int16 v49; // w7 unsigned __int16 v50; // w26 __int16 v51; // w22 unsigned __int16 v52; // w2 unsigned __int16 v53; // w3 int v54; // w11 int v55; // w7 int v56; // w25 unsigned int v57; // w4 int v58; // w26 int v59; // w25 unsigned int v60; // w20 unsigned int v61; // w11 __int64 *v62; // [xsp+88h] [xbp+88h] int v63; // [xsp+94h] [xbp+94h] int v64; // [xsp+98h] [xbp+98h] int v65; // [xsp+9Ch] [xbp+9Ch] int v66; // [xsp+A0h] [xbp+A0h] int v67; // [xsp+A4h] [xbp+A4h] int v68; // [xsp+A8h] [xbp+A8h] int v69; // [xsp+ACh] [xbp+ACh] int v70; // [xsp+E4h] [xbp+E4h] __int128 v71; // [xsp+F0h] [xbp+F0h] BYREF v2 = *((_DWORD *)a1 + 8); v4 = 0.9; v5 = a2 / 100.0; v6 = (double)*(int *)(*a1 + 28) * 0.9 / 100.0 * 0.0078125; if ( !*(_DWORD *)(*a1 + 80) ) { if ( v5 < 0.75 ) v5 = v5 * 0.666666667; else v5 = v5 * 2.0 + -1.0; v4 = 0.333333333; LABEL_9: v8 = pow(v5, v4); if ( v2 <= 0 ) goto LABEL_5; LABEL_10: v10 = (int *)(a1 + 160); do { v11 = (int)((1.0 - pow(v8, 1.0 - (double)*v10 * v6)) * 127.0); if ( v11 > 127 ) v11 = 127; if ( v11 < 0 ) v11 = 0; v10[2] = v11; v10 += 183; } while ( v10 != (int *)((char *)a1 + 732 * (unsigned int)(v2 - 1) + 2012) ); v9 = *((_DWORD *)a1 + 322); *((_DWORD *)a1 + 884) = v9; if ( v2 > 3 ) goto LABEL_21; goto LABEL_17; } v7 = (double)*((int *)a1 + 885) / 255.0; if ( v7 > 0.85 ) { v4 = 0.4; goto LABEL_9; } if ( v7 < 0.3 ) goto LABEL_9; v8 = pow(v5, (v7 - 0.3) * -0.909090909 + 0.9); if ( v2 > 0 ) goto LABEL_10; LABEL_5: v9 = *((_DWORD *)a1 + 322); *((_DWORD *)a1 + 884) = v9; LABEL_17: *((_DWORD *)a1 + 183 * v2 + 322) = v9; if ( v2 != 3 ) { *((_DWORD *)a1 + 183 * v2 + 505) = v9; if ( v2 != 2 ) { *((_DWORD *)a1 + 183 * v2 + 688) = v9; if ( v2 != 1 ) *((_DWORD *)a1 + 183 * v2 + 871) = v9; } } LABEL_21: v12 = *((_DWORD *)a1 + 886) - 64; v13 = *(_DWORD *)(*a1 + 28); v14 = *(_DWORD *)(*a1 + 32); *((_DWORD *)a1 + 887) = 0; v15 = v13 * (v12 / 7); *((_DWORD *)a1 + 888) = 0; *((_DWORD *)a1 + 889) = 0; v16 = 5 * v14; v17 = v13 / -25; v18 = (_DWORD *)a1 + 321; if ( v13 / -25 > 15 ) v17 = 15; v19 = v15 / 100; if ( v17 < -15 ) v20 = -15; else v20 = v17; *((_DWORD *)a1 + 890) = v20; if ( v19 > 6 ) v21 = 6; else v21 = v19; if ( v21 < -4 ) v22 = -4; else v22 = v21; *((_DWORD *)a1 + 891) = v22; do { v23 = v18[1]; if ( v23 > 127 ) v23 = 127; if ( v23 < 0 ) v23 = 0; v24 = (int)(v16 * sub_F15330(*((_DWORD *)a1 + 6), word_11E78E0[v23] >> 2)) / (*v18 + 256); if ( v24 <= 1 ) { v24 = 0; } else if ( v24 > 63 ) { v24 = 63; } v18[2] = v24; v18 += 183; } while ( v18 != (_DWORD *)((char *)a1 + 4212) ); v25 = *a1; *((_DWORD *)a1 + 5) = *((_DWORD *)a1 + 323); v26 = *(_DWORD *)(v25 + 40); *((_DWORD *)a1 + 6) = *(_DWORD *)(v25 + 36); *((_DWORD *)a1 + 4) = v26 == 0; if ( v2 <= 1 ) goto LABEL_94; v27 = *((_DWORD *)a1 + 8); v71 = xmmword_F26730; if ( v27 <= 1 ) { v28 = v27; goto LABEL_57; } v28 = 1; v29 = (int *)&v71 + 1; v30 = (_DWORD *)a1 + 505; for ( i = 1; i != v27; ++i ) { v32 = a1 + 161; v33 = 0; do { if ( *v32 == *v30 && v30[1] == v32[1] ) { *v29 = v33; goto LABEL_49; } ++v33; v32 += 183; } while ( v33 != v28 ); *v29 = v28; if ( i != v28 ) memcpy((char *)a1 + 732 * v28 + 608, v30 - 170, 0x2DCu); ++v28; LABEL_49: ++v29; v30 += 183; } if ( i <= v28 ) { LABEL_94: v28 = *((_DWORD *)a1 + 8); goto LABEL_57; } v34 = *((_DWORD *)a1 + 12) * *((_DWORD *)a1 + 13); v35 = v34 <= 0; v36 = v34 - 1; if ( !v35 ) { v37 = 4LL * v36; do { *(_BYTE *)(a1[2949] + v37) = *(_BYTE *)(a1[2949] + v37) & 0x9F | (32 * (*((_BYTE *)&v71 + 4 * (((unsigned __int64)*(unsigned __int8 *)(a1[2949] + v37) >> 5) & 3)) & 3)); v37 -= 4; } while ( v37 != 4 * (v36 - (unsigned __int64)(unsigned int)v36) - 4 ); } *((_DWORD *)a1 + 8) = v28; memcpy((char *)a1 + 732 * v28 + 608, (char *)a1 + 732 * v28 - 124, 0x2DCu); if ( v27 > v28 + 1 ) { memcpy((char *)a1 + 732 * v28 + 1340, (char *)a1 + 732 * v28 - 124, 0x2DCu); if ( v27 > v28 + 2 ) memcpy((char *)a1 + 732 * v28 + 2072, (char *)a1 + 732 * v28 - 124, 0x2DCu); } LABEL_57: v68 = 0; result = (__int64 *)*((unsigned int *)a1 + 5892); if ( (int)result > 3 ) { result = (__int64 *)*(unsigned int *)(*a1 + 28); v68 = *(_DWORD *)(*a1 + 28); } if ( v28 > 0 ) { v67 = *((_DWORD *)a1 + 887); v39 = a1 + 76; v63 = *((_DWORD *)a1 + 888); v64 = *((_DWORD *)a1 + 889); v65 = *((_DWORD *)a1 + 890); v62 = (__int64 *)((char *)a1 + 732 * (unsigned int)(v28 - 1) + 1340); v66 = *((_DWORD *)a1 + 891); do { v40 = *((_DWORD *)v39 + 170); v41 = v40 + v67; v42 = v40 + v63; v43 = v40 + v64; if ( v40 + v67 > 127 ) v41 = 127; *((_DWORD *)v39 + 17) = 56320; v44 = v40 + v65; if ( v41 < 0 ) v41 = 0; v45 = v40 + v66; if ( v40 > 127 ) v46 = 127; else v46 = v40; if ( v46 < 0 ) v46 = 0; v47 = byte_11E79E0[v41]; if ( v42 > 127 ) v42 = 127; v48 = word_11E78E0[v46]; if ( v42 < 0 ) v42 = 0; if ( v43 > 127 ) v43 = 127; if ( v43 < 0 ) v43 = 0; if ( v44 > 117 ) v44 = 117; if ( v44 < 0 ) v44 = 0; if ( v45 > 127 ) v45 = 127; v49 = byte_11E79E0[v44]; if ( v45 < 0 ) v45 = 0; v50 = asc_11E7A60[v43]; v51 = byte_11E79E0[v42]; *((_WORD *)v39 + 224) = v49; v52 = v50; v53 = word_11E78E0[v45]; v51 *= 2; *((_WORD *)v39 + 16) = 0x20000 / (unsigned __int8)v47; *((_WORD *)v39 + 225) = v53; v54 = (unsigned __int8)v49; *(_WORD *)v39 = v47; *((_WORD *)v39 + 1) = v48; *((_WORD *)v39 + 112) = v51; *((_WORD *)v39 + 113) = v50; v55 = 0x20000 / v50; *((_WORD *)v39 + 17) = 0x20000 / v48; *((_WORD *)v39 + 2) = v48; v69 = v54; *((_DWORD *)v39 + 16) = 49152; v56 = (v51 & 0xFFFE) + 8 * v50 + 4 * v50 + 2 * v50 + v50 + 8; v57 = 0x123FFu / (unsigned __int16)(0x20000 / v48); v58 = (v54 + 8 * v53 + 4 * v53 + 2 * v53 + v53 + 8) >> 4; *((_WORD *)v39 + 18) = 0x20000 / v48; *((_WORD *)v39 + 3) = v48; *((_WORD *)v39 + 19) = 0x20000 / v48; *((_WORD *)v39 + 4) = v48; *((_WORD *)v39 + 20) = 0x20000 / v48; *((_WORD *)v39 + 5) = v48; *((_WORD *)v39 + 21) = 0x20000 / v48; *((_DWORD *)v39 + 33) = v57; *((_DWORD *)v39 + 34) = v57; *((_DWORD *)v39 + 35) = v57; *((_DWORD *)v39 + 36) = v57; *((_DWORD *)v39 + 32) = 0x13FFFu / (unsigned __int16)(0x20000 / (unsigned __int8)v47); *((_DWORD *)v39 + 37) = v57; *((_WORD *)v39 + 6) = v48; *((_DWORD *)v39 + 18) = 56320; *((_DWORD *)v39 + 19) = 56320; *((_DWORD *)v39 + 20) = 56320; *((_DWORD *)v39 + 21) = 56320; *((_WORD *)v39 + 22) = 0x20000 / v48; *((_DWORD *)v39 + 38) = v57; *((_WORD *)v39 + 7) = v48; *((_WORD *)v39 + 23) = 0x20000 / v48; *((_DWORD *)v39 + 39) = v57; *((_WORD *)v39 + 8) = v48; v70 = v56 >> 4; *((_WORD *)v39 + 24) = 0x20000 / v48; *((_DWORD *)v39 + 40) = v57; *((_WORD *)v39 + 9) = v48; *((_WORD *)v39 + 25) = 0x20000 / v48; *((_DWORD *)v39 + 41) = v57; *((_WORD *)v39 + 10) = v48; *((_WORD *)v39 + 26) = 0x20000 / v48; *((_DWORD *)v39 + 42) = v57; *((_WORD *)v39 + 11) = v48; *((_WORD *)v39 + 27) = 0x20000 / v48; *((_DWORD *)v39 + 43) = v57; *((_WORD *)v39 + 12) = v48; *((_WORD *)v39 + 28) = 0x20000 / v48; *((_DWORD *)v39 + 22) = 56320; *((_DWORD *)v39 + 23) = 56320; *((_DWORD *)v39 + 24) = 56320; *((_DWORD *)v39 + 25) = 56320; *((_DWORD *)v39 + 26) = 56320; *((_DWORD *)v39 + 27) = 56320; *((_DWORD *)v39 + 28) = 56320; *((_DWORD *)v39 + 44) = v57; *((_DWORD *)v39 + 45) = v57; *((_DWORD *)v39 + 46) = v57; *((_DWORD *)v39 + 47) = v57; *((_WORD *)v39 + 97) = (30 * v48) >> 11; *((_WORD *)v39 + 98) = (60 * v48) >> 11; *((_WORD *)v39 + 99) = (90 * v48) >> 11; *((_WORD *)v39 + 100) = (30 * v48) >> 11; *((_WORD *)v39 + 101) = (60 * v48) >> 11; *((_WORD *)v39 + 102) = (90 * v48) >> 11; *((_WORD *)v39 + 13) = v48; *((_WORD *)v39 + 29) = 0x20000 / v48; *((_WORD *)v39 + 14) = v48; *((_WORD *)v39 + 30) = 0x20000 / v48; *((_WORD *)v39 + 15) = v48; *((_WORD *)v39 + 31) = 0x20000 / v48; *((_WORD *)v39 + 103) = (90 * v48) >> 11; *((_WORD *)v39 + 105) = (90 * v48) >> 11; *((_WORD *)v39 + 106) = (90 * v48) >> 11; *((_WORD *)v39 + 107) = (90 * v48) >> 11; *((_DWORD *)v39 + 29) = 56320; *((_DWORD *)v39 + 30) = 56320; *((_DWORD *)v39 + 31) = 56320; *((_WORD *)v39 + 96) = 0; *((_WORD *)v39 + 104) = (60 * v48) >> 11; *((_WORD *)v39 + 108) = (90 * v48) >> 11; *((_WORD *)v39 + 109) = (90 * v48) >> 11; *((_WORD *)v39 + 111) = (90 * v48) >> 11; *((_DWORD *)v39 + 72) = 49152; *((_DWORD *)v39 + 88) = 0x13FFFu / (unsigned __int16)(0x20000 / (unsigned __int16)(v51 & 0xFFFE)); *((_DWORD *)v39 + 89) = 0x127FFu / (unsigned __int16)v55; *((_WORD *)v39 + 114) = v52; *((_DWORD *)v39 + 90) = 0x127FFu / (unsigned __int16)v55; *((_WORD *)v39 + 115) = v52; *((_DWORD *)v39 + 91) = 0x127FFu / (unsigned __int16)v55; *((_WORD *)v39 + 116) = v52; *((_DWORD *)v39 + 92) = 0x127FFu / (unsigned __int16)v55; *((_WORD *)v39 + 117) = v52; *((_DWORD *)v39 + 93) = 0x127FFu / (unsigned __int16)v55; *((_WORD *)v39 + 118) = v52; *((_DWORD *)v39 + 94) = 0x127FFu / (unsigned __int16)v55; *((_WORD *)v39 + 119) = v52; *((_WORD *)v39 + 110) = (90 * v48) >> 11; *((_WORD *)v39 + 128) = 0x20000 / (unsigned __int16)(v51 & 0xFFFE); *((_WORD *)v39 + 129) = v55; *((_DWORD *)v39 + 73) = 55296; *((_WORD *)v39 + 130) = v55; *((_DWORD *)v39 + 74) = 55296; *((_WORD *)v39 + 131) = v55; *((_DWORD *)v39 + 75) = 55296; *((_WORD *)v39 + 132) = v55; *((_DWORD *)v39 + 76) = 55296; *((_WORD *)v39 + 133) = v55; *((_DWORD *)v39 + 77) = 55296; *((_WORD *)v39 + 134) = v55; *((_DWORD *)v39 + 78) = 55296; *((_WORD *)v39 + 135) = v55; *((_DWORD *)v39 + 79) = 55296; v59 = ((unsigned __int8)v47 + v48 + v48 + v48 + v48 + v48 + v48 + v48 + v48 + v48 + v48 + v48 + v48 + v48 + v48 + v48 + 8) >> 4; *((_DWORD *)v39 + 95) = 0x127FFu / (unsigned __int16)v55; *((_WORD *)v39 + 120) = v52; *((_DWORD *)v39 + 96) = 0x127FFu / (unsigned __int16)v55; *((_WORD *)v39 + 121) = v52; *((_DWORD *)v39 + 97) = 0x127FFu / (unsigned __int16)v55; *((_WORD *)v39 + 122) = v52; *((_DWORD *)v39 + 98) = 0x127FFu / (unsigned __int16)v55; *((_WORD *)v39 + 123) = v52; *((_DWORD *)v39 + 99) = 0x127FFu / (unsigned __int16)v55; *((_WORD *)v39 + 124) = v52; *((_DWORD *)v39 + 100) = 0x127FFu / (unsigned __int16)v55; *((_WORD *)v39 + 125) = v52; *((_DWORD *)v39 + 101) = 0x127FFu / (unsigned __int16)v55; *((_WORD *)v39 + 126) = v52; *((_DWORD *)v39 + 102) = 0x127FFu / (unsigned __int16)v55; *((_WORD *)v39 + 127) = v52; *((_DWORD *)v39 + 103) = 0x127FFu / (unsigned __int16)v55; *((_WORD *)v39 + 136) = v55; *((_DWORD *)v39 + 80) = 55296; *((_WORD *)v39 + 137) = v55; *((_DWORD *)v39 + 81) = 55296; *((_WORD *)v39 + 138) = v55; *((_DWORD *)v39 + 82) = 55296; *((_WORD *)v39 + 139) = v55; *((_DWORD *)v39 + 83) = 55296; *((_WORD *)v39 + 140) = v55; *((_DWORD *)v39 + 84) = 55296; *((_WORD *)v39 + 141) = v55; *((_DWORD *)v39 + 85) = 55296; *((_WORD *)v39 + 142) = v55; *((_DWORD *)v39 + 86) = 55296; *((_WORD *)v39 + 143) = v55; *((_DWORD *)v39 + 87) = 55296; *((_WORD *)v39 + 208) = 0; v60 = (unsigned __int16)(0x20000 / v54); v61 = 0x119FFu / (unsigned __int16)(0x20000 / v53); *((_WORD *)v39 + 241) = 0x20000 / v53; *((_WORD *)v39 + 242) = 0x20000 / v53; *((_WORD *)v39 + 243) = 0x20000 / v53; *((_WORD *)v39 + 244) = 0x20000 / v53; *((_WORD *)v39 + 240) = 0x20000 / v69; *((_DWORD *)v39 + 128) = 56320; *((_DWORD *)v39 + 129) = 58880; *((_DWORD *)v39 + 145) = v61; *((_DWORD *)v39 + 130) = 58880; *((_DWORD *)v39 + 144) = 0x123FF / v60; *((_DWORD *)v39 + 146) = v61; *((_DWORD *)v39 + 131) = 58880; *((_DWORD *)v39 + 147) = v61; *((_DWORD *)v39 + 132) = 58880; *((_DWORD *)v39 + 148) = v61; *((_WORD *)v39 + 209) = 0; *((_WORD *)v39 + 210) = 0; *((_WORD *)v39 + 211) = 0; *((_WORD *)v39 + 212) = 0; *((_WORD *)v39 + 213) = 0; *((_WORD *)v39 + 214) = 0; *((_WORD *)v39 + 215) = 0; *((_WORD *)v39 + 216) = 0; *((_WORD *)v39 + 217) = 0; *((_WORD *)v39 + 218) = 0; *((_WORD *)v39 + 219) = 0; *((_WORD *)v39 + 220) = 0; *((_WORD *)v39 + 221) = 0; *((_WORD *)v39 + 222) = 0; *((_WORD *)v39 + 223) = 0; *((_WORD *)v39 + 245) = 0x20000 / v53; *((_WORD *)v39 + 246) = 0x20000 / v53; *((_WORD *)v39 + 247) = 0x20000 / v53; *((_WORD *)v39 + 248) = 0x20000 / v53; *((_WORD *)v39 + 249) = 0x20000 / v53; *((_WORD *)v39 + 250) = 0x20000 / v53; *((_WORD *)v39 + 251) = 0x20000 / v53; *((_WORD *)v39 + 252) = 0x20000 / v53; *((_WORD *)v39 + 253) = 0x20000 / v53; *((_DWORD *)v39 + 133) = 58880; *((_DWORD *)v39 + 149) = v61; *((_DWORD *)v39 + 134) = 58880; *((_DWORD *)v39 + 150) = v61; *((_DWORD *)v39 + 135) = 58880; *((_DWORD *)v39 + 151) = v61; *((_DWORD *)v39 + 136) = 58880; *((_DWORD *)v39 + 152) = v61; *((_DWORD *)v39 + 137) = 58880; *((_DWORD *)v39 + 153) = v61; *((_DWORD *)v39 + 138) = 58880; *((_DWORD *)v39 + 154) = v61; *((_DWORD *)v39 + 139) = 58880; *((_DWORD *)v39 + 155) = v61; *((_DWORD *)v39 + 140) = 58880; *((_DWORD *)v39 + 156) = v61; *((_DWORD *)v39 + 141) = 58880; *((_WORD *)v39 + 226) = v53; *((_WORD *)v39 + 227) = v53; *((_WORD *)v39 + 228) = v53; *((_WORD *)v39 + 229) = v53; *((_WORD *)v39 + 230) = v53; *((_WORD *)v39 + 231) = v53; *((_WORD *)v39 + 232) = v53; *((_WORD *)v39 + 233) = v53; *((_DWORD *)v39 + 157) = v61; *((_WORD *)v39 + 254) = 0x20000 / v53; *((_WORD *)v39 + 255) = 0x20000 / v53; *((_WORD *)v39 + 238) = v53; *((_DWORD *)v39 + 142) = 58880; *((_DWORD *)v39 + 158) = v61; *((_WORD *)v39 + 239) = v53; *((_DWORD *)v39 + 143) = 58880; *((_DWORD *)v39 + 159) = v61; *((_WORD *)v39 + 320) = 0; *((_WORD *)v39 + 321) = 0; *((_WORD *)v39 + 322) = 0; *((_WORD *)v39 + 323) = 0; *((_WORD *)v39 + 324) = 0; *((_WORD *)v39 + 325) = 0; *((_WORD *)v39 + 234) = v53; *((_WORD *)v39 + 235) = v53; *((_WORD *)v39 + 236) = v53; *((_WORD *)v39 + 237) = v53; v39 = (__int64 *)((char *)v39 + 732); *((_WORD *)v39 - 40) = 0; *((_WORD *)v39 - 39) = 0; *((_WORD *)v39 - 38) = 0; *((_WORD *)v39 - 37) = 0; *((_WORD *)v39 - 36) = 0; *((_WORD *)v39 - 35) = 0; *((_WORD *)v39 - 34) = 0; *((_WORD *)v39 - 33) = 0; *((_WORD *)v39 - 32) = 0; *((_WORD *)v39 - 31) = 0; *((_DWORD *)v39 - 8) = (3 * v59 * v59) >> 7; *((_DWORD *)v39 - 9) = 3 * v70 * v70; *((_DWORD *)v39 - 7) = (3 * v58 * v58) >> 6; *((_DWORD *)v39 - 6) = (v59 * v59) >> 7; *((_DWORD *)v39 - 2) = (7 * v59 * v59) >> 3; *((_DWORD *)v39 - 3) = (v70 * v70) >> 2; result = v62; *((_DWORD *)v39 - 1) = 2 * v58 * v58; *((_DWORD *)v39 - 4) = (v68 * v59) >> 5; *((_DWORD *)v39 - 10) = 10 * (unsigned __int8)v47; *((_DWORD *)v39 - 11) = 0; } while ( v39 != v62 ); } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source