//
// GJAccountManager::onSyncAccountCompleted from 0x140202b30 to 0x140203892 (3426 bytes)
//
// 2 xrefs:
// > GJAccountManager::handleIt @ 0x140200470
// > ??> @ 0x1406ccb58
//
// 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=30
void __fastcall GJAccountManager::onSyncAccountCompleted(__int64 a1, const void **a2, void *a3)
{
void *v5; // rcx
const void *v6; // rcx
unsigned __int64 v7; // r15
size_t v8; // r8
int v9; // edi
unsigned __int64 v10; // rbx
__int64 v11; // rcx
cocos2d::CCString *v12; // rax
const char *CString; // rax
size_t v14; // r8
void **v15; // rdx
char *v16; // rsi
unsigned __int64 v17; // r13
const void *v18; // rcx
size_t v19; // r15
size_t v20; // r8
size_t v21; // r12
int v22; // edi
char *v23; // rax
void (__fastcall ***v24)(_QWORD); // rcx
__int64 v25; // rcx
const char *v26; // rcx
__int64 *v27; // rbx
const char *v28; // rcx
__int64 v29; // rbx
unsigned int v30; // eax
cocos2d::CCArray *v31; // rsi
GameLevelManager *v32; // rcx
GameStatsManager *v33; // rcx
__int64 v34; // rax
cocos2d::CCString *v35; // rax
const char *v36; // rax
size_t v37; // r8
std::string *p_m_sString; // rax
cocos2d::CCString *v39; // rax
const char *v40; // rax
size_t v41; // r8
std::string *m_bigStorage; // rax
__int64 v43; // rcx
LocalLevelManager *v44; // rax
cocos2d::CCString *v45; // rax
cocos2d::CCString *v46; // rax
cocos2d::CCString *v47; // rax
const char *v48; // rax
size_t v49; // r8
__int128 *v50; // rcx
unsigned __int64 v51; // rax
size_t v52; // r8
__int128 *v53; // rdx
__int128 *v54; // rax
__int64 v55; // rax
void **v56; // rax
void *v57; // rcx
size_t v58; // rdi
unsigned __int64 v59; // r13
cocos2d::CCString *v60; // rax
const char *v61; // rax
size_t v62; // r8
unsigned __int64 v63; // rdx
__int64 v64; // r8
__int128 *v65; // rcx
__int64 v66; // r9
size_t v67; // r8
__int128 *v68; // rdx
__int128 *v69; // rax
__int64 v70; // rax
__m128i v71; // xmm1
void **v72; // rax
void *v73; // rcx
void **v74; // rsi
void **v75; // r12
__int64 v76; // rbx
cocos2d::CCArray *MapPacks; // rax
cocos2d::CCArray *v78; // r15
void **v79; // rcx
unsigned int v80; // esi
GJMapPack *v81; // rbx
cocos2d::CCArray *m_levels; // rcx
cocos2d::CCArray *v83; // rcx
int v84; // edi
GameStatsManager *v85; // rcx
GameStatsManager *v86; // rcx
__int64 *v87; // rbx
GameManager *v88; // rcx
GameStatsManager *v89; // rcx
GameStatsManager *v90; // rcx
GameStatsManager *v91; // rcx
GJAccountManager *v92; // rax
__int64 v93; // rax
void **v94; // rdx
GameStatsManager *v95; // rcx
__int64 v96; // rax
void (__fastcall ***v97)(_QWORD); // rcx
bool m_skipIncrementChallenge; // [rsp+20h] [rbp-E0h]
bool m_dontNotify; // [rsp+21h] [rbp-DFh]
void *v100; // [rsp+28h] [rbp-D8h]
void *v101; // [rsp+28h] [rbp-D8h]
void *v102; // [rsp+28h] [rbp-D8h]
void *v103; // [rsp+28h] [rbp-D8h]
void *v104; // [rsp+28h] [rbp-D8h]
void *v105; // [rsp+28h] [rbp-D8h]
void *v106; // [rsp+30h] [rbp-D0h]
void *v107; // [rsp+30h] [rbp-D0h]
void *v108; // [rsp+30h] [rbp-D0h]
void *v109; // [rsp+30h] [rbp-D0h]
void *v110; // [rsp+30h] [rbp-D0h]
void *v113; // [rsp+48h] [rbp-B8h]
void *v114; // [rsp+48h] [rbp-B8h]
void *v115; // [rsp+48h] [rbp-B8h]
void *v116[6]; // [rsp+50h] [rbp-B0h] BYREF
void *Block[2]; // [rsp+80h] [rbp-80h] BYREF
size_t Size; // [rsp+90h] [rbp-70h]
unsigned __int64 v119; // [rsp+98h] [rbp-68h]
__int128 v120; // [rsp+A0h] [rbp-60h] BYREF
unsigned __int64 v121; // [rsp+B0h] [rbp-50h]
unsigned __int64 v122; // [rsp+B8h] [rbp-48h]
__int128 v123; // [rsp+C0h] [rbp-40h] BYREF
unsigned __int64 v124; // [rsp+D0h] [rbp-30h]
unsigned __int64 v125; // [rsp+D8h] [rbp-28h]
void *Src[2]; // [rsp+E0h] [rbp-20h] BYREF
__m128i v127; // [rsp+F0h] [rbp-10h]
__int128 v128; // [rsp+100h] [rbp+0h] BYREF
__int128 v129; // [rsp+110h] [rbp+10h]
__int128 v130; // [rsp+120h] [rbp+20h] BYREF
__int64 v131; // [rsp+130h] [rbp+30h]
__int64 v132; // [rsp+138h] [rbp+38h]
__int128 v133; // [rsp+140h] [rbp+40h] BYREF
__int64 v134; // [rsp+150h] [rbp+50h]
__int64 v135; // [rsp+158h] [rbp+58h]
_BYTE v136[32]; // [rsp+160h] [rbp+60h] BYREF
v116[4] = a2;
v116[5] = a3;
Size = 12;
v119 = 15;
Block[0] = *(void **)"sync_account";
Block[1] = (void *)*(unsigned int *)"ount";
cocos2d::CCDictionary::removeObjectForKey(*(_QWORD *)(a1 + 320), Block);
if ( v119 > 0xF )
{
v5 = Block[0];
if ( v119 + 1 >= 0x1000 )
{
v5 = *((void **)Block[0] - 1);
if ( (unsigned __int64)((char *)Block[0] - (char *)v5 - 8) > 0x1F )
invalid_parameter_noinfo_noreturn();
}
j_j_free(v5);
}
*(_OWORD *)Block = 0;
Size = 2;
v119 = 15;
strcpy((char *)Block, "-1");
v6 = a2;
if ( (unsigned __int64)a2[3] > 0xF )
v6 = *a2;
v7 = (unsigned __int64)a2[2];
v8 = v7;
if ( v7 > 2 )
v8 = 2;
v9 = memcmp(v6, Block, v8);
v10 = -1;
if ( !v9 )
{
if ( v7 >= 2 )
v9 = v7 > 2;
else
v9 = -1;
}
if ( v9 )
{
v12 = cocos2d::CCString::createWithFormat("%i", -2);
CString = cocos2d::CCString::getCString(v12);
*(_OWORD *)Block = 0;
Size = 0;
v119 = 0;
v14 = -1;
do
++v14;
while ( CString[v14] );
sub_14003A930(Block, CString, v14);
v15 = Block;
v16 = (char *)Block[0];
v17 = v119;
if ( v119 > 0xF )
v15 = (void **)Block[0];
v18 = a2;
if ( (unsigned __int64)a2[3] > 0xF )
v18 = *a2;
v19 = (size_t)a2[2];
v20 = v19;
v21 = Size;
if ( Size < v19 )
v20 = Size;
v22 = memcmp(v18, v15, v20);
if ( !v22 )
{
if ( v19 >= v21 )
v22 = v19 > v21;
else
v22 = -1;
}
if ( v17 > 0xF )
{
v23 = v16;
if ( v17 + 1 >= 0x1000 )
{
v16 = *((char **)v16 - 1);
if ( (unsigned __int64)(v23 - v16 - 8) > 0x1F )
invalid_parameter_noinfo_noreturn();
}
j_j_free(v16);
}
if ( v22 )
{
if ( (unsigned __int64)a2[2] >= 0xA )
goto LABEL_47;
v26 = (const char *)a2;
if ( (unsigned __int64)a2[3] > 0xF )
v26 = (const char *)*a2;
if ( atoi(v26) >= 0 )
{
LABEL_47:
v31 = sub_140140F70((__int64 *)a2, ";");
if ( cocos2d::CCArray::count(v31) < 6 )
{
v11 = *(_QWORD *)(a1 + 440);
if ( !v11 )
goto LABEL_158;
goto LABEL_16;
}
v32 = (GameLevelManager *)qword_1406C2EC0;
if ( !qword_1406C2EC0 )
{
v100 = operator new(0x3D0u);
qword_1406C2EC0 = sub_140141280((__int64)v100);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2EC0 + 72LL))(qword_1406C2EC0);
v32 = (GameLevelManager *)qword_1406C2EC0;
}
GameLevelManager::makeTimeStamp(v32, "sync_account");
m_dontNotify = AchievementManager::sharedState()->m_dontNotify;
AchievementManager::sharedState()->m_dontNotify = 1;
v33 = (GameStatsManager *)qword_1406C2EE8;
if ( !qword_1406C2EE8 )
{
v101 = operator new(0x3E0u);
qword_1406C2EE8 = sub_1401D0AE0((__int64)v101);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2EE8 + 72LL))(qword_1406C2EE8);
v33 = (GameStatsManager *)qword_1406C2EE8;
}
m_skipIncrementChallenge = v33->m_skipIncrementChallenge;
v33->m_skipIncrementChallenge = 1;
GameStatsManager::preSaveGameStats(v33);
v34 = qword_1406C2EE8;
if ( !qword_1406C2EE8 )
{
v102 = operator new(0x3E0u);
qword_1406C2EE8 = sub_1401D0AE0((__int64)v102);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2EE8 + 72LL))(qword_1406C2EE8);
v34 = qword_1406C2EE8;
}
*(_BYTE *)(v34 + 320) = 1;
v35 = cocos2d::CCArray::stringAtIndex(v31, 0);
v36 = cocos2d::CCString::getCString(v35);
v133 = 0;
v134 = 0;
v135 = 0;
v37 = -1;
do
++v37;
while ( v36[v37] );
sub_14003A930(&v133, v36, v37);
p_m_sString = &cocos2d::CCArray::stringAtIndex(v31, 0)->m_sString;
p_m_sString->m_data.m_size = 0;
if ( p_m_sString->m_data.m_capacity > 0xF )
p_m_sString = (std::string *)p_m_sString->m_data.m_bigStorage;
p_m_sString->m_data.m_smallStorage._Elems[0] = 0;
v39 = cocos2d::CCArray::stringAtIndex(v31, 1u);
v40 = cocos2d::CCString::getCString(v39);
v130 = 0;
v131 = 0;
v132 = 0;
v41 = -1;
do
++v41;
while ( v40[v41] );
sub_14003A930(&v130, v40, v41);
m_bigStorage = &cocos2d::CCArray::stringAtIndex(v31, 1u)->m_sString;
m_bigStorage->m_data.m_size = 0;
if ( m_bigStorage->m_data.m_capacity > 0xF )
m_bigStorage = (std::string *)m_bigStorage->m_data.m_bigStorage;
m_bigStorage->m_data.m_smallStorage._Elems[0] = 0;
v43 = qword_1406C2ED8;
if ( !qword_1406C2ED8 )
{
v103 = operator new(0x668u);
qword_1406C2ED8 = sub_14017AB00((__int64)v103);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8);
v43 = qword_1406C2ED8;
}
GManager::loadFromCompressedString(v43, &v133);
v44 = LocalLevelManager::sharedState();
GManager::loadFromCompressedString((__int64)v44, &v130);
v45 = cocos2d::CCArray::stringAtIndex(v31, 2u);
cocos2d::CCString::intValue(v45);
v46 = cocos2d::CCArray::stringAtIndex(v31, 3u);
cocos2d::CCString::intValue(v46);
v128 = 0;
*(_QWORD *)&v129 = 0;
*((_QWORD *)&v129 + 1) = 15;
LOBYTE(v128) = 0;
v47 = cocos2d::CCArray::stringAtIndex(v31, 4u);
v48 = cocos2d::CCString::getCString(v47);
v123 = 0;
v124 = 0;
v125 = 0;
v49 = -1;
do
++v49;
while ( v48[v49] );
sub_14003A930(&v123, v48, v49);
v50 = &v123;
if ( v125 > 0xF )
v50 = (__int128 *)v123;
v51 = -1;
do
++v51;
while ( *((_BYTE *)v50 + v51) );
if ( v51 > 0x28 )
{
v52 = v124 - 40;
*(_OWORD *)Block = 0;
Size = 0;
v119 = 0;
if ( v124 < 0x14 )
sub_14003BCC0(v50);
if ( v124 - 20 < v52 )
v52 = v124 - 20;
v53 = &v123;
if ( v125 > 0xF )
v53 = (__int128 *)v123;
sub_14003A930(Block, (char *)v53 + 20, v52);
v124 = 0;
v54 = &v123;
if ( v125 > 0xF )
v54 = (__int128 *)v123;
*(_BYTE *)v54 = 0;
v55 = cocos2d::ZipUtils::decompressString(v136, Block, 0, 11);
if ( &v128 != (__int128 *)v55 )
{
v128 = *(_OWORD *)v55;
v129 = *(_OWORD *)(v55 + 16);
*(_QWORD *)(v55 + 16) = 0;
*(_QWORD *)(v55 + 24) = 15;
*(_BYTE *)v55 = 0;
}
sub_14003A830((__int64)v136);
Size = 0;
v56 = Block;
if ( v119 > 0xF )
v56 = (void **)Block[0];
*(_BYTE *)v56 = 0;
if ( v119 > 0xF )
{
v57 = Block[0];
if ( v119 + 1 >= 0x1000 )
{
v57 = *((void **)Block[0] - 1);
if ( (unsigned __int64)((char *)Block[0] - (char *)v57 - 8) > 0x1F )
invalid_parameter_noinfo_noreturn();
}
j_j_free(v57);
}
}
*(_OWORD *)Src = 0;
v58 = 0;
v127.m128i_i64[0] = 0;
v59 = 15;
v127.m128i_i64[1] = 15;
LOBYTE(Src[0]) = 0;
v60 = cocos2d::CCArray::stringAtIndex(v31, 5u);
v61 = cocos2d::CCString::getCString(v60);
v120 = 0;
v121 = 0;
v122 = 0;
v62 = -1;
do
++v62;
while ( v61[v62] );
sub_14003A930(&v120, v61, v62);
v65 = &v120;
v66 = v120;
if ( v122 > 0xF )
v65 = (__int128 *)v120;
do
++v10;
while ( *((_BYTE *)v65 + v10) );
if ( v10 > 0x28 )
{
v67 = v121 - 40;
*(_OWORD *)Block = 0;
Size = 0;
v119 = 0;
if ( v121 < 0x14 )
sub_14003BCC0(v65);
if ( v121 - 20 < v67 )
v67 = v121 - 20;
v68 = &v120;
if ( v122 > 0xF )
v68 = (__int128 *)v120;
sub_14003A930(Block, (char *)v68 + 20, v67);
v121 = 0;
v69 = &v120;
if ( v122 > 0xF )
v69 = (__int128 *)v120;
*(_BYTE *)v69 = 0;
v70 = cocos2d::ZipUtils::decompressString(v136, Block, 0, 11);
if ( Src != (void **)v70 )
{
*(_OWORD *)Src = *(_OWORD *)v70;
v127 = *(__m128i *)(v70 + 16);
v71 = v127;
*(_QWORD *)(v70 + 16) = 0;
*(_QWORD *)(v70 + 24) = 15;
*(_BYTE *)v70 = 0;
v59 = _mm_srli_si128(v71, 8).m128i_u64[0];
v58 = v71.m128i_i64[0];
}
sub_14003A830((__int64)v136);
Size = 0;
v72 = Block;
if ( v119 > 0xF )
v72 = (void **)Block[0];
*(_BYTE *)v72 = 0;
v63 = v119;
if ( v119 > 0xF )
{
v73 = Block[0];
if ( v119 + 1 >= 0x1000 )
{
v73 = *((void **)Block[0] - 1);
if ( (unsigned __int64)((char *)Block[0] - (char *)v73 - 8) > 0x1F )
invalid_parameter_noinfo_noreturn();
}
j_j_free(v73);
}
}
*(_OWORD *)Block = 0;
Size = 0;
v119 = 0;
v74 = Src;
v75 = (void **)Src[0];
if ( v59 > 0xF )
v74 = (void **)Src[0];
v76 = 0x7FFFFFFFFFFFFFFFLL;
if ( v58 > 0x7FFFFFFFFFFFFFFFLL )
sub_140007B50(v65, v63, v64, v66);
v119 = 15;
if ( v58 > 0xF )
{
if ( (v58 | 0xF) <= 0x7FFFFFFFFFFFFFFFLL )
{
v76 = v58 | 0xF;
if ( (v58 | 0xF) < 0x16 )
v76 = 22;
}
Block[0] = sub_14003AA10(v76 + 1);
Size = v58;
v119 = v76;
memcpy(Block[0], v74, v58 + 1);
}
else
{
Size = v58;
*(_OWORD *)Block = *(_OWORD *)v74;
}
if ( !qword_1406C2EC0 )
{
v106 = operator new(0x3D0u);
qword_1406C2EC0 = sub_140141280((__int64)v106);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2EC0 + 72LL))(qword_1406C2EC0);
}
MapPacks = (cocos2d::CCArray *)GameLevelManager::createAndGetMapPacks((__int64)v65, (__int64)Block);
v78 = MapPacks;
v127.m128i_i64[0] = 0;
v79 = Src;
if ( v59 > 0xF )
v79 = v75;
*(_BYTE *)v79 = 0;
v80 = 0;
if ( cocos2d::CCArray::count(MapPacks) )
{
do
{
v81 = (GJMapPack *)cocos2d::CCArray::objectAtIndex(v78, v80);
m_levels = v81->m_levels;
if ( m_levels && cocos2d::CCArray::count(m_levels) )
{
v83 = v81->m_levels;
v84 = v83 ? cocos2d::CCArray::count(v83) : 0;
if ( GJMapPack::completedMaps(v81) >= v84 )
{
v85 = (GameStatsManager *)qword_1406C2EE8;
if ( !qword_1406C2EE8 )
{
v107 = operator new(0x3E0u);
qword_1406C2EE8 = sub_1401D0AE0((__int64)v107);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2EE8 + 72LL))(qword_1406C2EE8);
v85 = (GameStatsManager *)qword_1406C2EE8;
}
GameStatsManager::completedMapPack(v85, v81);
}
}
v86 = (GameStatsManager *)qword_1406C2EE8;
if ( !qword_1406C2EE8 )
{
v104 = operator new(0x3E0u);
qword_1406C2EE8 = sub_1401D0AE0((__int64)v104);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2EE8 + 72LL))(qword_1406C2EE8);
v86 = (GameStatsManager *)qword_1406C2EE8;
}
GameStatsManager::setStarsForMapPack(v86, v81->m_packID, v81->m_stars);
++v80;
}
while ( v80 < cocos2d::CCArray::count(v78) );
}
v87 = (__int64 *)sub_14003BDB0((__int64)v136, (__int64)&v128);
v88 = (GameManager *)qword_1406C2ED8;
if ( !qword_1406C2ED8 )
{
v105 = operator new(0x668u);
qword_1406C2ED8 = sub_14017AB00((__int64)v105);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8);
v88 = (GameManager *)qword_1406C2ED8;
}
GameManager::recountUserStats(v88, v87);
v89 = (GameStatsManager *)qword_1406C2EE8;
if ( !qword_1406C2EE8 )
{
v108 = operator new(0x3E0u);
qword_1406C2EE8 = sub_1401D0AE0((__int64)v108);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2EE8 + 72LL))(qword_1406C2EE8);
v89 = (GameStatsManager *)qword_1406C2EE8;
}
GameStatsManager::verifyUserCoins(v89);
v90 = (GameStatsManager *)qword_1406C2EE8;
if ( !qword_1406C2EE8 )
{
v109 = operator new(0x3E0u);
qword_1406C2EE8 = sub_1401D0AE0((__int64)v109);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2EE8 + 72LL))(qword_1406C2EE8);
v90 = (GameStatsManager *)qword_1406C2EE8;
}
GameStatsManager::tryFixPathBug(v90);
v91 = (GameStatsManager *)qword_1406C2EE8;
if ( !qword_1406C2EE8 )
{
v110 = operator new(0x3E0u);
qword_1406C2EE8 = sub_1401D0AE0((__int64)v110);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2EE8 + 72LL))(qword_1406C2EE8);
v91 = (GameStatsManager *)qword_1406C2EE8;
}
GameStatsManager::verifyPathAchievements(v91);
v92 = GJAccountManager::sharedState();
sub_14003BDB0((__int64)v116, (__int64)&v92->m_username);
v93 = qword_1406C2ED8;
if ( !qword_1406C2ED8 )
{
v113 = operator new(0x668u);
qword_1406C2ED8 = sub_14017AB00((__int64)v113);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8);
v93 = qword_1406C2ED8;
}
if ( (void **)(v93 + 616) != v116 )
{
v94 = v116;
if ( v116[3] > (void *)0xF )
v94 = (void **)v116[0];
sub_14003CCE0((void **)(v93 + 616), v94, (size_t)v116[2]);
}
sub_14003A830((__int64)v116);
v95 = (GameStatsManager *)qword_1406C2EE8;
if ( !qword_1406C2EE8 )
{
v114 = operator new(0x3E0u);
qword_1406C2EE8 = sub_1401D0AE0((__int64)v114);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2EE8 + 72LL))(qword_1406C2EE8);
v95 = (GameStatsManager *)qword_1406C2EE8;
}
v95->m_usePlayerStatsCCDictionary = 0;
GameStatsManager::postLoadGameStats(v95);
v96 = qword_1406C2EE8;
if ( !qword_1406C2EE8 )
{
v115 = operator new(0x3E0u);
qword_1406C2EE8 = sub_1401D0AE0((__int64)v115);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2EE8 + 72LL))(qword_1406C2EE8);
v96 = qword_1406C2EE8;
}
*(_BYTE *)(v96 + 904) = m_skipIncrementChallenge;
AchievementManager::sharedState()->m_dontNotify = m_dontNotify;
v97 = *(void (__fastcall ****)(_QWORD))(a1 + 440);
if ( v97 )
(**v97)(v97);
sub_14003A830((__int64)&v120);
sub_14003A830((__int64)Src);
sub_14003A830((__int64)&v123);
sub_14003A830((__int64)&v128);
sub_14003A830((__int64)&v130);
sub_14003A830((__int64)&v133);
}
else
{
v27 = *(__int64 **)(a1 + 440);
if ( v27 )
{
v28 = (const char *)a2;
if ( (unsigned __int64)a2[3] > 0xF )
v28 = (const char *)*a2;
v29 = *v27;
v30 = atoi(v28);
(*(void (__fastcall **)(_QWORD, __int64, _QWORD))(v29 + 8))(*(_QWORD *)(a1 + 440), 4294967293LL, v30);
}
}
}
else
{
sub_14003CCE0((void **)(a1 + 464), byte_140518980, 0);
sub_14003CCE0((void **)(a1 + 376), byte_140518980, 0);
v24 = *(void (__fastcall ****)(_QWORD))(a1 + 424);
if ( v24 )
(**v24)(v24);
v25 = *(_QWORD *)(a1 + 440);
if ( v25 )
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v25 + 8LL))(v25, 4294967294LL);
}
}
else
{
v11 = *(_QWORD *)(a1 + 440);
if ( v11 )
LABEL_16:
(*(void (__fastcall **)(__int64, __int64, _QWORD))(*(_QWORD *)v11 + 8LL))(v11, 0xFFFFFFFFLL, 0);
}
LABEL_158:
sub_14003A830((__int64)a2);
sub_14003A830((__int64)a3);
}