// // sub_100572CEC from 0x100572cec to 0x100572e0c (288 bytes) // // 10 xrefs: // > sub_10056C658 @ 0x10056c7cc // > sub_10056CA84 @ 0x10056cd04 // > sub_10056D4B8 @ 0x10056d534 // > sub_10056D8A0 @ 0x10056da54 // > sub_100572E0C @ 0x100572e38 // > sub_100572EEC @ 0x100572f14 // > sub_100572EEC @ 0x100572f48 // > sub_100572EEC @ 0x100572fc8 // > sub_100572FF0 @ 0x10057303c // > sub_100572FF0 @ 0x1005730ac // // 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_100572CEC(__int64 *a1, int a2, __int64 **a3) { __int64 *v3; // x9 __int64 *v4; // x10 __int64 *v5; // x8 int v6; // w8 __int64 *v7; // x8 __int64 v8; // x11 __int64 v9; // x11 __int64 v11; // [xsp+0h] [xbp-30h] BYREF __int64 v12; // [xsp+8h] [xbp-28h] if ( !a3 ) return nullptr; v11 = 0; v12 = 0; v3 = &v11; v4 = &v11; while ( 1 ) { while ( 1 ) { v5 = a3[3]; if ( (__int64)a1 >= (__int64)v5 ) break; LABEL_7: v7 = *a3; if ( !*a3 ) goto LABEL_25; v8 = v7[3]; if ( (__int64)a1 < v8 ) goto LABEL_12; if ( (__int64)a1 > v8 ) { v7 = (__int64 *)a3; goto LABEL_3; } if ( a2 >= *((_DWORD *)v7 + 8) ) { v7 = (__int64 *)a3; } else { LABEL_12: *a3 = (__int64 *)v7[1]; v7[1] = (__int64)a3; if ( !*v7 ) goto LABEL_26; } LABEL_3: *v4 = (__int64)v7; a3 = (__int64 **)*v7; v4 = v7; } if ( (__int64)a1 <= (__int64)v5 ) { v6 = *((_DWORD *)a3 + 8); if ( a2 < v6 ) goto LABEL_7; if ( a2 <= v6 ) break; } v7 = a3[1]; if ( !v7 ) break; v9 = v7[3]; if ( (__int64)a1 >= v9 ) { if ( (__int64)a1 <= v9 && a2 <= *((_DWORD *)v7 + 8) ) { v7 = (__int64 *)a3; } else { a3[1] = (__int64 *)*v7; *v7 = (__int64)a3; if ( !v7[1] ) goto LABEL_26; } } else { v7 = (__int64 *)a3; } v3[1] = (__int64)v7; a3 = (__int64 **)v7[1]; v3 = v7; } LABEL_25: v7 = (__int64 *)a3; LABEL_26: v3[1] = *v7; *v4 = v7[1]; *v7 = v12; v7[1] = v11; return v7; }
GD Web Decomp Icon

GD Web Decomp

Raw Source