// // sub_100732B50 from 0x100732b50 to 0x100732ecf (895 bytes) // // 1 xrefs: // > sub_100724050 @ 0x100724648 // // This function is hookable on this platform (idp: pc, 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 12:36:23 +0000 // unsigned __int8 *__fastcall sub_100732B50(__int64 a1, __int64 a2, __int64 *a3, char *a4, double a5, __m128d a6) { __int64 v7; // r13 unsigned __int8 *v8; // rsi unsigned __int8 *result; // rax unsigned __int8 *v10; // rbx double v11; // rax char *v12; // rcx unsigned __int8 *v13; // rdi __m128d *v14; // rsi unsigned __int8 *v15; // r15 __int64 v16; // rdx unsigned __int64 v17; // r12 bool v18; // cf unsigned __int64 v19; // r12 unsigned __int8 *v20; // r13 __int64 v21; // r14 double v22; // xmm0_8 unsigned __int8 *v23; // rax __m128d v24; // xmm0 __int64 v25; // rax __int64 i; // rbx unsigned __int8 *v27; // r14 unsigned __int8 *v28; // r15 __int64 v29; // rcx __int64 v30; // rdx char v31[8]; // [rsp+8h] [rbp-B8h] BYREF unsigned __int8 *v32; // [rsp+10h] [rbp-B0h] unsigned __int8 *v33; // [rsp+18h] [rbp-A8h] __int64 v34; // [rsp+28h] [rbp-98h] unsigned __int8 **v35; // [rsp+30h] [rbp-90h] __int64 v36; // [rsp+38h] [rbp-88h] signed __int64 v37; // [rsp+40h] [rbp-80h] __int64 v38; // [rsp+48h] [rbp-78h] __m128d v39; // [rsp+50h] [rbp-70h] BYREF __int64 v40; // [rsp+60h] [rbp-60h] unsigned __int64 v41; // [rsp+68h] [rbp-58h] unsigned __int8 *v42; // [rsp+78h] [rbp-48h] unsigned __int8 *v43; // [rsp+80h] [rbp-40h] char *v44; // [rsp+88h] [rbp-38h] __int64 v45; // [rsp+90h] [rbp-30h] v7 = a1; *(_OWORD *)(a1 + 8) = 0; *(_QWORD *)(a1 + 24) = 0; *(_DWORD *)a1 = 2; v45 = a2; v8 = *(unsigned __int8 **)(a2 + 8); if ( v8 ) { v44 = a4; sub_100724050((__int64)v31, v8, a3, a4); result = v32; v43 = v32; if ( v32 != v33 ) { v35 = (unsigned __int8 **)(a1 + 8); v10 = nullptr; result = nullptr; v36 = a1; while ( 1 ) { v38 = v10 - result; v37 = v10 - result; if ( v10 != result ) *(_DWORD *)v7 = 0; if ( *((_QWORD *)v43 + 1) ) { v11 = *(double *)v43; v12 = v44; } else { v11 = *(double *)v43; v12 = v44; if ( !*(_QWORD *)v43 ) v11 = 0.0; } v39.f64[0] = v11; v13 = (unsigned __int8 *)v45; v14 = (__m128d *)v7; sub_100734370(v45, v7, &v39, *(_QWORD *)v12); result = *(unsigned __int8 **)(v7 + 8); v15 = *(unsigned __int8 **)(v7 + 16); if ( v15 - result != v37 ) { v16 = *(_QWORD *)(v45 + 16); if ( v16 ) break; } v10 = *(unsigned __int8 **)(v7 + 16); LABEL_5: v43 += 16; if ( v43 == v33 ) goto LABEL_36; } v38 >>= 4; while ( 1 ) { v17 = (v15 - result) >> 4; v18 = v17 < v38; v19 = v17 - v38; if ( v18 ) sub_1009A97D0(); v10 = &result[v37]; if ( &result[v37] != v15 ) break; LABEL_25: if ( result > v10 || v15 < v10 ) sub_1009A97A0(v13, v14, v16); *(_QWORD *)(v7 + 16) = v10; v16 = *(_QWORD *)(v16 + 24); v15 = v10; if ( !v16 ) goto LABEL_5; } v34 = v16; v20 = *(unsigned __int8 **)(v16 + 8); v21 = 1; v42 = &result[v37]; while ( 1 ) { v24 = *(__m128d *)v10; v39 = *(__m128d *)v10; v40 = v21; v41 = v19; if ( v20[1] != 2 ) break; v13 = v20; v14 = &v39; v22 = sub_100722DC0(v20, &v39, v44, v24, a6).f64[0]; a6 = _mm_sub_pd( (__m128d)_mm_unpacklo_epi32((__m128i)(unsigned __int64)v21, (__m128i)xmmword_100A07950), (__m128d)xmmword_100A07960); if ( v22 == _mm_unpackhi_pd(a6, a6).f64[0] + a6.f64[0] ) goto LABEL_19; LABEL_20: v10 += 16; ++v21; if ( v10 == v15 ) { result = *v35; v7 = v36; v16 = v34; v10 = v42; goto LABEL_25; } } v13 = v20; v14 = &v39; if ( !(unsigned __int8)sub_100721930((__int64)v20, &v39, v44, v24) ) goto LABEL_20; LABEL_19: v23 = v42; *(_OWORD *)v42 = *(_OWORD *)v10; v42 = v23 + 16; v15 = *(unsigned __int8 **)(v36 + 16); goto LABEL_20; } } else { if ( a3[1] ) { v25 = *a3; } else { v25 = *a3; if ( !*a3 ) v25 = 0; } *(_QWORD *)&v39.f64[0] = v25; sub_100734370(v45, a1, &v39, *(_QWORD *)a4); result = *(unsigned __int8 **)(a1 + 16); if ( result != *(unsigned __int8 **)(a1 + 8) ) { result = (unsigned __int8 *)v45; for ( i = *(_QWORD *)(v45 + 16); i; i = *(_QWORD *)(i + 24) ) result = sub_1007301E0((unsigned __int8 *)a1, 0, *(unsigned __int8 **)(i + 8), a4, 0.0, a6); } } LABEL_36: if ( !*(_DWORD *)v7 ) { v27 = *(unsigned __int8 **)(v7 + 8); v28 = *(unsigned __int8 **)(v7 + 16); sub_1007336B0(v27, v28); result = (unsigned __int8 *)(v28 - v27); if ( v28 - v27 >= 17 ) { v29 = *(_QWORD *)v27; do { v30 = v29; v29 = *((_QWORD *)v27 + 2); if ( v30 == v29 && *((_QWORD *)v27 + 1) == *((_QWORD *)v27 + 3) ) break; v27 += 16; result -= 16; } while ( (__int64)result > 16 ); } if ( v27 != v28 ) { for ( result = v27 + 16; result != v28; result += 16 ) { if ( *(_QWORD *)result != *(_QWORD *)v27 || *((_QWORD *)result + 1) != *((_QWORD *)v27 + 1) ) { *((_OWORD *)v27 + 1) = *(_OWORD *)result; v27 += 16; } } v27 += 16; } *(_QWORD *)(v7 + 16) = v27; } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source