//
// sub_1403CC230 from 0x1403cc230 to 0x1403cc347 (279 bytes)
//
// 3 xrefs:
// > sub_1403D2440 @ 0x1403d2447
// > ??> @ 0x1405cd648
// > ??> @ 0x1406d7b80
//
// 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
//
// Hidden C++ exception states: #wind=1
char *__fastcall sub_1403CC230(char *Block, char a2)
{
char *v4; // rdi
__int64 v5; // rax
void *v6; // rax
*(_QWORD *)Block = &RewardsPage::`vftable';
*((_QWORD *)Block + 40) = &RewardsPage::`vftable';
*((_QWORD *)Block + 41) = &RewardsPage::`vftable';
*((_QWORD *)Block + 42) = &RewardsPage::`vftable';
*((_QWORD *)Block + 43) = &RewardsPage::`vftable';
*((_QWORD *)Block + 44) = &RewardsPage::`vftable';
*((_QWORD *)Block + 51) = &RewardsPage::`vftable';
*((_QWORD *)Block + 54) = &RewardsPage::`vftable';
*((_QWORD *)Block + 79) = &RewardsPage::`vftable';
v4 = Block + 640;
*((_QWORD *)Block + 80) = &RewardsPage::`vftable';
v5 = qword_1406C2EC0;
if ( !qword_1406C2EC0 )
{
v6 = operator new(0x3D0u);
qword_1406C2EC0 = sub_140141280((__int64)v6);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2EC0 + 72LL))(qword_1406C2EC0);
v5 = qword_1406C2EC0;
}
if ( *(char **)(v5 + 856) == v4 )
*(_QWORD *)(v5 + 856) = 0;
FLAlertLayer::dFLAlertLayer((__int64)Block);
if ( (a2 & 1) != 0 )
j_j_free(Block);
return Block;
}