// // sub_180045230 from 0x180045230 to 0x1800452b4 (132 bytes) // // 6 xrefs: // > sub_1800457A0 @ 0x180045857 // > sub_1800790C0 @ 0x180079159 // > sub_1800CF730 @ 0x1800cf7f3 // > @ 0x1801404cc // > @ 0x1801404dc // > @ 0x1801bb764 // // 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 11:21:40 +0000 // unsigned __int64 __fastcall sub_180045230(unsigned __int64 *a1, unsigned __int64 *a2, unsigned __int64 *a3) { unsigned __int64 result; // rax unsigned __int64 *v5; // r9 unsigned __int64 v6; // rdx unsigned __int64 v7; // rcx unsigned __int64 v8; // rdx result = 0; v5 = a1; v6 = (unsigned __int64)((char *)a2 - (char *)a1 + 7) >> 3; if ( a1 > a2 ) v6 = 0; if ( v6 >= 2 ) { result = *a3; v7 = (unsigned __int64)&a1[v6 - 1]; if ( v5 > a3 || v7 < (unsigned __int64)a3 ) { v8 = 8 * (v6 & 0xFFFFFFFFFFFFFFFEuLL); memset64(v5, result, v8 >> 3); v5 = (unsigned __int64 *)((char *)v5 + v8); } } for ( ; v5 != a2; ++v5 ) { result = *a3; *v5 = *a3; } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source