//
// sub_140418740 from 0x140418740 to 0x1404187ed (173 bytes)
//
// 7 xrefs:
// > sub_140415970 @ 0x140415aea
// > sub_140415970 @ 0x140415aff
// > sub_140415B80 @ 0x140415c60
// > sub_140415B80 @ 0x140415c74
// > ??> @ 0x1408c86f0
// > ??> @ 0x1408c8700
// > ??> @ 0x14092648c
//
// 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:32:05 +0000
//
_QWORD *__fastcall sub_140418740(__int64 a1, __int64 a2, _QWORD *a3)
{
_QWORD *v3; // r9
char *v5; // r10
__int64 v6; // r8
__int64 v7; // rax
__int64 v8; // rcx
__int64 v9; // rdx
__int64 v10; // rax
v3 = a3;
if ( a1 != a2 )
{
v5 = (char *)a3 - a1;
v6 = a1 + 16;
do
{
v7 = *(_QWORD *)(v6 - 16);
v6 += 64;
*v3 = v7;
v3 += 8;
v8 = *(_QWORD *)(v6 - 64);
v9 = *(_QWORD *)(v6 - 56);
v10 = *(_QWORD *)(v6 - 72);
*(_QWORD *)(v6 - 56) = 0;
*(_QWORD *)(v6 - 64) = 0;
*(_QWORD *)(v6 - 72) = 0;
*(_QWORD *)&v5[v6 - 64] = v8;
*(_QWORD *)&v5[v6 - 72] = v10;
*(_QWORD *)&v5[v6 - 56] = v9;
*(_OWORD *)&v5[v6 - 48] = *(_OWORD *)(v6 - 48);
v5[v6 - 32] = *(_BYTE *)(v6 - 32);
*(_DWORD *)&v5[v6 - 28] = *(_DWORD *)(v6 - 28);
v5[v6 - 24] = *(_BYTE *)(v6 - 24);
v5[v6 - 23] = *(_BYTE *)(v6 - 23);
}
while ( v6 - 16 != a2 );
}
return v3;
}