//
// ParentalPrivacyPopup::startWithScore from 0x1404d46e0 to 0x1404d55a3 (3779 bytes)
//
// 3 xrefs:
// > ParentalPrivacyPopup::create @ 0x1404d41a4
// > ParentalPrivacyPopup::getUserInfoFinished @ 0x1404d564a
// > ??> @ 0x140929888
//
// 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:33:01 +0000
//
// Hidden C++ exception states: #wind=25
void __fastcall ParentalPrivacyPopup::startWithScore(__int64 a1, _DWORD *a2)
{
__int64 v4; // rbx
unsigned int v5; // edi
__int64 v6; // rbx
struct cocos2d::CCString *v7; // rax
void *v8; // rcx
__int64 v9; // rbx
unsigned int v10; // edi
__int64 v11; // rbx
struct cocos2d::CCString *v12; // rax
void *v13; // rcx
unsigned int v14; // edi
__int64 v15; // rbx
__int64 v16; // rbx
struct cocos2d::CCString *v17; // rax
void *v18; // rcx
unsigned int v19; // edi
__int64 v20; // rbx
__int64 v21; // rbx
struct cocos2d::CCString *v22; // rax
void *v23; // rcx
unsigned int v24; // edi
__int64 v25; // rbx
__int64 v26; // rbx
struct cocos2d::CCString *v27; // rax
void *v28; // rcx
unsigned int v29; // edi
__int64 v30; // rbx
__int64 v31; // rbx
struct cocos2d::CCString *v32; // rax
void *v33; // rcx
int v34; // edi
__int64 v35; // rbx
cocos2d::CCString *v36; // rax
void *v37; // rcx
__int64 v38; // rbx
cocos2d::CCString *v39; // rax
int v40; // r13d
void *v41; // rcx
__int64 v42; // rbx
cocos2d::CCString *v43; // rax
int v44; // r12d
void *v45; // rcx
__int64 v46; // rbx
cocos2d::CCString *v47; // rax
int v48; // r15d
void *v49; // r8
__int64 v50; // rbx
cocos2d::CCString *v51; // rax
void *v52; // r8
cocos2d::CCObject *v53; // rax
__int64 v54; // rbx
__int64 v55; // rbx
struct cocos2d::CCString *v56; // rax
void *v57; // rcx
void *v58; // [rsp+70h] [rbp-90h]
void *v59; // [rsp+70h] [rbp-90h]
void *v60; // [rsp+70h] [rbp-90h]
void *v61; // [rsp+70h] [rbp-90h]
void *v62; // [rsp+70h] [rbp-90h]
void *v63; // [rsp+70h] [rbp-90h]
void *v64; // [rsp+70h] [rbp-90h]
int v65; // [rsp+70h] [rbp-90h]
void *v66; // [rsp+78h] [rbp-88h]
void *v67; // [rsp+78h] [rbp-88h]
void *v68; // [rsp+78h] [rbp-88h]
void *v69; // [rsp+78h] [rbp-88h]
void *v70; // [rsp+80h] [rbp-80h]
_QWORD v71[4]; // [rsp+B0h] [rbp-50h] BYREF
_QWORD v72[4]; // [rsp+D0h] [rbp-30h] BYREF
void *Block[2]; // [rsp+F0h] [rbp-10h] BYREF
__int64 v74; // [rsp+100h] [rbp+0h]
unsigned __int64 v75; // [rsp+108h] [rbp+8h]
void *Src[2]; // [rsp+110h] [rbp+10h] BYREF
__int64 v77; // [rsp+120h] [rbp+20h]
unsigned __int64 v78; // [rsp+128h] [rbp+28h]
void *v79[2]; // [rsp+130h] [rbp+30h] BYREF
__int64 v80; // [rsp+140h] [rbp+40h]
unsigned __int64 v81; // [rsp+148h] [rbp+48h]
void *v82[2]; // [rsp+150h] [rbp+50h] BYREF
__int64 v83; // [rsp+160h] [rbp+60h]
unsigned __int64 v84; // [rsp+168h] [rbp+68h]
void *v85[2]; // [rsp+170h] [rbp+70h] BYREF
__int64 v86; // [rsp+180h] [rbp+80h]
unsigned __int64 v87; // [rsp+188h] [rbp+88h]
void *v88[2]; // [rsp+190h] [rbp+90h] BYREF
__int64 v89; // [rsp+1A0h] [rbp+A0h]
unsigned __int64 v90; // [rsp+1A8h] [rbp+A8h]
if ( !*(_BYTE *)(a1 + 720) && (a2[113] != 2 || a2[114] != 1 || a2[115] != 2 || a2[116] != 2 || a2[117] != 2) )
{
v4 = qword_14090BFD0;
if ( !qword_14090BFD0 )
{
v58 = operator new(0x6E8u);
qword_14090BFD0 = GameManager::GameManager((__int64)v58);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0);
v4 = qword_14090BFD0;
}
v5 = a2[113];
*(_OWORD *)Block = 0;
v74 = 3;
v75 = 15;
LODWORD(Block[0]) = 6256231;
sub_140044D80(Block, "0222", 4u);
v6 = *(_QWORD *)(v4 + 432);
v7 = cocos2d::CCString::createWithFormat((const char *)&word_1406ED6F8, v5);
cocos2d::CCDictionary::setObject(v6, v7, Block);
if ( v75 > 0xF )
{
v8 = Block[0];
if ( v75 + 1 >= 0x1000 )
{
v8 = *((void **)Block[0] - 1);
if ( (unsigned __int64)((char *)Block[0] - (char *)v8 - 8) > 0x1F )
invoke_watson(nullptr, nullptr, nullptr, 0, 0);
}
j_j_free(v8);
}
v74 = 0;
v75 = 15;
LOBYTE(Block[0]) = 0;
v9 = qword_14090BFD0;
if ( !qword_14090BFD0 )
{
v59 = operator new(0x6E8u);
qword_14090BFD0 = GameManager::GameManager((__int64)v59);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0);
v9 = qword_14090BFD0;
}
v10 = a2[114];
*(_OWORD *)Src = 0;
v77 = 3;
v78 = 15;
LODWORD(Src[0]) = 6256231;
sub_140044D80(Src, "0223", 4u);
v11 = *(_QWORD *)(v9 + 432);
v12 = cocos2d::CCString::createWithFormat((const char *)&word_1406ED6F8, v10);
cocos2d::CCDictionary::setObject(v11, v12, Src);
if ( v78 > 0xF )
{
v13 = Src[0];
if ( v78 + 1 >= 0x1000 )
{
v13 = *((void **)Src[0] - 1);
if ( (unsigned __int64)((char *)Src[0] - (char *)v13 - 8) > 0x1F )
invoke_watson(nullptr, nullptr, nullptr, 0, 0);
}
j_j_free(v13);
}
v77 = 0;
v78 = 15;
LOBYTE(Src[0]) = 0;
v14 = a2[115];
v15 = qword_14090BFD0;
if ( !qword_14090BFD0 )
{
v60 = operator new(0x6E8u);
qword_14090BFD0 = GameManager::GameManager((__int64)v60);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0);
v15 = qword_14090BFD0;
}
*(_OWORD *)Block = 0;
v74 = 3;
v75 = 15;
LODWORD(Block[0]) = 6256231;
sub_140044D80(Block, "0224", 4u);
v16 = *(_QWORD *)(v15 + 432);
v17 = cocos2d::CCString::createWithFormat((const char *)&word_1406ED6F8, v14);
cocos2d::CCDictionary::setObject(v16, v17, Block);
if ( v75 > 0xF )
{
v18 = Block[0];
if ( v75 + 1 >= 0x1000 )
{
v18 = *((void **)Block[0] - 1);
if ( (unsigned __int64)((char *)Block[0] - (char *)v18 - 8) > 0x1F )
invoke_watson(nullptr, nullptr, nullptr, 0, 0);
}
j_j_free(v18);
}
v74 = 0;
v75 = 15;
LOBYTE(Block[0]) = 0;
v19 = a2[116];
v20 = qword_14090BFD0;
if ( !qword_14090BFD0 )
{
v61 = operator new(0x6E8u);
qword_14090BFD0 = GameManager::GameManager((__int64)v61);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0);
v20 = qword_14090BFD0;
}
*(_OWORD *)Src = 0;
v77 = 3;
v78 = 15;
LODWORD(Src[0]) = 6256231;
sub_140044D80(Src, "0225", 4u);
v21 = *(_QWORD *)(v20 + 432);
v22 = cocos2d::CCString::createWithFormat((const char *)&word_1406ED6F8, v19);
cocos2d::CCDictionary::setObject(v21, v22, Src);
if ( v78 > 0xF )
{
v23 = Src[0];
if ( v78 + 1 >= 0x1000 )
{
v23 = *((void **)Src[0] - 1);
if ( (unsigned __int64)((char *)Src[0] - (char *)v23 - 8) > 0x1F )
invoke_watson(nullptr, nullptr, nullptr, 0, 0);
}
j_j_free(v23);
}
v77 = 0;
v78 = 15;
LOBYTE(Src[0]) = 0;
v24 = a2[117];
v25 = qword_14090BFD0;
if ( !qword_14090BFD0 )
{
v62 = operator new(0x6E8u);
qword_14090BFD0 = GameManager::GameManager((__int64)v62);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0);
v25 = qword_14090BFD0;
}
*(_OWORD *)Block = 0;
v74 = 3;
v75 = 15;
LODWORD(Block[0]) = 6256231;
sub_140044D80(Block, "0226", 4u);
v26 = *(_QWORD *)(v25 + 432);
v27 = cocos2d::CCString::createWithFormat((const char *)&word_1406ED6F8, v24);
cocos2d::CCDictionary::setObject(v26, v27, Block);
if ( v75 > 0xF )
{
v28 = Block[0];
if ( v75 + 1 >= 0x1000 )
{
v28 = *((void **)Block[0] - 1);
if ( (unsigned __int64)((char *)Block[0] - (char *)v28 - 8) > 0x1F )
invoke_watson(nullptr, nullptr, nullptr, 0, 0);
}
j_j_free(v28);
}
v74 = 0;
v75 = 15;
LOBYTE(Block[0]) = 0;
v29 = a2[98];
v30 = qword_14090BFD0;
if ( !qword_14090BFD0 )
{
v63 = operator new(0x6E8u);
qword_14090BFD0 = GameManager::GameManager((__int64)v63);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0);
v30 = qword_14090BFD0;
}
*(_OWORD *)Src = 0;
v77 = 3;
v78 = 15;
LODWORD(Src[0]) = 6256231;
sub_140044D80(Src, "0244", 4u);
v31 = *(_QWORD *)(v30 + 432);
v32 = cocos2d::CCString::createWithFormat((const char *)&word_1406ED6F8, v29);
cocos2d::CCDictionary::setObject(v31, v32, Src);
if ( v78 > 0xF )
{
v33 = Src[0];
if ( v78 + 1 >= 0x1000 )
{
v33 = *((void **)Src[0] - 1);
if ( (unsigned __int64)((char *)Src[0] - (char *)v33 - 8) > 0x1F )
invoke_watson(nullptr, nullptr, nullptr, 0, 0);
}
j_j_free(v33);
}
v77 = 0;
v78 = 15;
LOBYTE(Src[0]) = 0;
}
v34 = 2;
if ( *(_BYTE *)(a1 + 720) )
{
v35 = qword_14090BFD0;
if ( !qword_14090BFD0 )
{
v64 = operator new(0x6E8u);
qword_14090BFD0 = GameManager::GameManager((__int64)v64);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0);
v35 = qword_14090BFD0;
}
*(_OWORD *)Block = 0;
v74 = 3;
v75 = 15;
LODWORD(Block[0]) = 6256231;
sub_140044D80(Block, "0222", 4u);
v36 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(*(_QWORD *)(v35 + 432), Block);
v65 = cocos2d::CCString::intValue(v36);
if ( v75 > 0xF )
{
v37 = Block[0];
if ( v75 + 1 >= 0x1000 )
{
v37 = *((void **)Block[0] - 1);
if ( (unsigned __int64)((char *)Block[0] - (char *)v37 - 8) > 0x1F )
invoke_watson(nullptr, nullptr, nullptr, 0, 0);
}
j_j_free(v37);
}
v74 = 0;
v75 = 15;
LOBYTE(Block[0]) = 0;
}
else
{
v65 = 2;
}
if ( *(_BYTE *)(a1 + 720) )
{
v38 = qword_14090BFD0;
if ( !qword_14090BFD0 )
{
v66 = operator new(0x6E8u);
qword_14090BFD0 = GameManager::GameManager((__int64)v66);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0);
v38 = qword_14090BFD0;
}
*(_OWORD *)v82 = 0;
v83 = 3;
v84 = 15;
LODWORD(v82[0]) = 6256231;
sub_140044D80(v82, "0223", 4u);
v39 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(*(_QWORD *)(v38 + 432), v82);
v40 = cocos2d::CCString::intValue(v39);
if ( v84 > 0xF )
{
v41 = v82[0];
if ( v84 + 1 >= 0x1000 )
{
v41 = *((void **)v82[0] - 1);
if ( (unsigned __int64)((char *)v82[0] - (char *)v41 - 8) > 0x1F )
invoke_watson(nullptr, nullptr, nullptr, 0, 0);
}
j_j_free(v41);
}
v83 = 0;
v84 = 15;
LOBYTE(v82[0]) = 0;
}
else
{
v40 = 1;
}
if ( *(_BYTE *)(a1 + 720) )
{
v42 = qword_14090BFD0;
if ( !qword_14090BFD0 )
{
v67 = operator new(0x6E8u);
qword_14090BFD0 = GameManager::GameManager((__int64)v67);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0);
v42 = qword_14090BFD0;
}
*(_OWORD *)v85 = 0;
v86 = 3;
v87 = 15;
LODWORD(v85[0]) = 6256231;
sub_140044D80(v85, "0224", 4u);
v43 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(*(_QWORD *)(v42 + 432), v85);
v44 = cocos2d::CCString::intValue(v43);
if ( v87 > 0xF )
{
v45 = v85[0];
if ( v87 + 1 >= 0x1000 )
{
v45 = *((void **)v85[0] - 1);
if ( (unsigned __int64)((char *)v85[0] - (char *)v45 - 8) > 0x1F )
invoke_watson(nullptr, nullptr, nullptr, 0, 0);
}
j_j_free(v45);
}
v86 = 0;
v87 = 15;
LOBYTE(v85[0]) = 0;
}
else
{
v44 = 2;
}
if ( *(_BYTE *)(a1 + 720) )
{
v46 = qword_14090BFD0;
if ( !qword_14090BFD0 )
{
v68 = operator new(0x6E8u);
qword_14090BFD0 = GameManager::GameManager((__int64)v68);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0);
v46 = qword_14090BFD0;
}
*(_OWORD *)v88 = 0;
v89 = 3;
v90 = 15;
LODWORD(v88[0]) = 6256231;
sub_140044D80(v88, "0225", 4u);
v47 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(*(_QWORD *)(v46 + 432), v88);
v48 = cocos2d::CCString::intValue(v47);
if ( v90 > 0xF )
{
v49 = v88[0];
if ( v90 + 1 >= 0x1000 )
{
v49 = *((void **)v88[0] - 1);
if ( (unsigned __int64)((char *)v88[0] - (char *)v49 - 8) > 0x1F )
invoke_watson(nullptr, nullptr, nullptr, 0, 0);
}
j_j_free(v49);
}
v89 = 0;
v90 = 15;
LOBYTE(v88[0]) = 0;
}
else
{
v48 = 2;
}
if ( *(_BYTE *)(a1 + 720) )
{
v50 = qword_14090BFD0;
if ( !qword_14090BFD0 )
{
v69 = operator new(0x6E8u);
qword_14090BFD0 = GameManager::GameManager((__int64)v69);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0);
v50 = qword_14090BFD0;
}
*(_OWORD *)v79 = 0;
v80 = 3;
v81 = 15;
LODWORD(v79[0]) = 6256231;
sub_140044D80(v79, "0226", 4u);
v51 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(*(_QWORD *)(v50 + 432), v79);
v34 = cocos2d::CCString::intValue(v51);
if ( v81 > 0xF )
{
v52 = v79[0];
if ( v81 + 1 >= 0x1000 )
{
v52 = *((void **)v79[0] - 1);
if ( (unsigned __int64)((char *)v79[0] - (char *)v52 - 8) > 0x1F )
invoke_watson(nullptr, nullptr, nullptr, 0, 0);
}
j_j_free(v52);
}
}
*(_QWORD *)(GJAccountManager::sharedState() + 448) = a1 + 704;
sub_14003F4F0((__int64)v88, (__int64)(a2 + 168));
sub_14003F4F0((__int64)v85, (__int64)(a2 + 144));
sub_14003F4F0((__int64)v82, (__int64)(a2 + 160));
sub_14003F4F0((__int64)Src, (__int64)(a2 + 152));
sub_14003F4F0((__int64)Block, (__int64)(a2 + 136));
sub_14003F4F0((__int64)v71, (__int64)(a2 + 128));
sub_14003F4F0((__int64)v72, (__int64)(a2 + 120));
v53 = (cocos2d::CCObject *)GJAccountManager::sharedState();
if ( GJAccountManager::updateAccountSettings(v53, v65, v40, v44, v48, v34, v72, v71, Block, Src, v82, v85, v88) )
{
if ( !*(_BYTE *)(a1 + 720) )
{
v54 = qword_14090BFD0;
if ( !qword_14090BFD0 )
{
v70 = operator new(0x6E8u);
qword_14090BFD0 = GameManager::GameManager((__int64)v70);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0);
v54 = qword_14090BFD0;
}
*(_OWORD *)v79 = 0;
v80 = 3;
v81 = 15;
LODWORD(v79[0]) = 6256231;
sub_140044D80(v79, "0227", 4u);
v55 = *(_QWORD *)(v54 + 432);
v56 = cocos2d::CCString::createWithFormat((const char *)&word_1406ED6F8, 4);
cocos2d::CCDictionary::setObject(v55, v56, v79);
if ( v81 > 0xF )
{
v57 = v79[0];
if ( v81 + 1 >= 0x1000 )
{
v57 = *((void **)v79[0] - 1);
if ( (unsigned __int64)((char *)v79[0] - (char *)v57 - 8) > 0x1F )
invoke_watson(nullptr, nullptr, nullptr, 0, 0);
}
j_j_free(v57);
}
}
}
else
{
(*(void (__fastcall **)(__int64))(*(_QWORD *)(a1 + 704) + 8LL))(a1 + 704);
}
}