// // sub_10020E014 from 0x10020e014 to 0x10020e0cc (184 bytes) // // 1 xrefs: // > sub_10020DCA0 @ 0x10020ddb8 // // 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_10020E014( __int64 result, __int64 a2, __int64 (__fastcall **a3)(_QWORD *, __int64 *), __int64 a4) { __int64 v4; // x29 __int64 v5; // x30 unsigned __int64 v6; // x8 __int64 v8; // x20 unsigned __int64 v9; // x22 __int64 *v10; // x23 __int64 (__fastcall *v11)(_QWORD *, __int64 *); // x8 __int64 v12; // x10 __int64 *v13; // x21 __int64 v14; // x24 __int64 *v15; // x25 __int64 (__fastcall *v16)(_QWORD *, __int64 *); // x8 __int64 v17; // x9 __int64 v18; // [xsp+0h] [xbp-60h] BYREF _QWORD v19[11]; // [xsp+8h] [xbp-58h] BYREF v6 = a4 - 2; if ( a4 >= 2 ) { v19[9] = v4; v19[10] = v5; v8 = result; v9 = v6 >> 1; v10 = (__int64 *)(result + 8 * (v6 >> 1)); v11 = *a3; v12 = *v10; v13 = (__int64 *)(a2 - 8); v18 = *(_QWORD *)(a2 - 8); v19[0] = v12; result = v11(v19, &v18); if ( (_DWORD)result ) { v14 = *v13; do { v15 = v10; *v13 = *v10; if ( !v9 ) break; v9 = (v9 - 1) >> 1; v10 = (__int64 *)(v8 + 8 * v9); v16 = *a3; v17 = *v10; v18 = v14; v19[0] = v17; result = v16(v19, &v18); v13 = v15; } while ( (result & 1) != 0 ); *v15 = v14; } } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source