//
// InfoLayer::reloadWindow from 0x1403d2740 to 0x1403d29ad (621 bytes)
//
// 4 xrefs:
// > InfoLayer::toggleExtendedMode @ 0x1403d25a2
// > InfoLayer::toggleSmallCommentMode @ 0x1403d26bb
// > InfoLayer::toggleSmallCommentMode @ 0x1403d2731
// > ??> @ 0x140924794
//
// 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:31:35 +0000
//
// Hidden C++ exception states: #wind=3
void __fastcall InfoLayer::reloadWindow(_QWORD *a1)
{
cocos2d::CCObject *v2; // rsi
cocos2d::CCObject *v3; // r15
cocos2d::CCObject *v4; // r14
cocos2d::CCObject *v5; // rbp
cocos2d::CCObject *v6; // rcx
cocos2d::CCObject *v7; // rcx
cocos2d::CCObject *v8; // rcx
cocos2d::CCObject *v9; // rcx
__int64 v10; // r12
__int64 v11; // rcx
bool GameVariable; // r13
__int64 v13; // rcx
__int64 v14; // rcx
__int64 v15; // rax
struct cocos2d::CCObject *v16; // rbx
cocos2d::CCTouchDispatcher *v17; // rax
__int64 v18; // rax
cocos2d::CCTouchDispatcher *v19; // rax
char *v20; // rbx
__int64 v21; // rcx
char v22; // [rsp+60h] [rbp+8h]
unsigned int v23; // [rsp+68h] [rbp+10h]
void *v24; // [rsp+70h] [rbp+18h]
void *v25; // [rsp+70h] [rbp+18h]
void *v26; // [rsp+70h] [rbp+18h]
v2 = nullptr;
v3 = nullptr;
v4 = nullptr;
v5 = nullptr;
v6 = (cocos2d::CCObject *)a1[87];
if ( v6 )
{
v2 = v6;
cocos2d::CCObject::retain(v6);
}
v7 = (cocos2d::CCObject *)a1[88];
if ( v7 )
{
v3 = (cocos2d::CCObject *)a1[88];
cocos2d::CCObject::retain(v7);
}
v8 = (cocos2d::CCObject *)a1[89];
if ( v8 )
{
v4 = (cocos2d::CCObject *)a1[89];
cocos2d::CCObject::retain(v8);
}
v9 = (cocos2d::CCObject *)a1[90];
if ( v9 )
{
v5 = (cocos2d::CCObject *)a1[90];
cocos2d::CCObject::retain(v9);
}
v10 = (*(__int64 (__fastcall **)(_QWORD *))(*a1 + 504LL))(a1);
v23 = (*(__int64 (__fastcall **)(_QWORD *))(*a1 + 96LL))(a1);
v22 = *((_BYTE *)a1 + 888);
InfoLayer::onClose(a1);
v11 = qword_14090BFD0;
if ( !qword_14090BFD0 )
{
v24 = operator new(0x6E8u);
qword_14090BFD0 = GameManager::GameManager((__int64)v24);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0);
v11 = qword_14090BFD0;
}
GameVariable = GameManager::getGameVariable(v11, "0090");
v13 = qword_14090BFD0;
if ( !qword_14090BFD0 )
{
v25 = operator new(0x6E8u);
qword_14090BFD0 = GameManager::GameManager((__int64)v25);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0);
v13 = qword_14090BFD0;
}
GameManager::setGameVariable(v13, "0090", 1u);
if ( a1[98] )
{
v15 = cocos2d::CCDirector::sharedDirector(v14);
v16 = (struct cocos2d::CCObject *)a1[98];
v17 = (cocos2d::CCTouchDispatcher *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v15 + 144LL))(v15);
cocos2d::CCTouchDispatcher::unregisterForcePrio(v17, v16);
}
v18 = cocos2d::CCDirector::sharedDirector(v14);
v19 = (cocos2d::CCTouchDispatcher *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v18 + 144LL))(v18);
cocos2d::CCTouchDispatcher::unregisterForcePrio(v19, (struct cocos2d::CCObject *)a1);
v20 = InfoLayer::create((int)v2, (int)v3, (int)v4, (__int64)v5);
v21 = qword_14090BFD0;
if ( !qword_14090BFD0 )
{
v26 = operator new(0x6E8u);
qword_14090BFD0 = GameManager::GameManager((__int64)v26);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0);
v21 = qword_14090BFD0;
}
GameManager::setGameVariable(v21, "0090", GameVariable);
(*(void (__fastcall **)(__int64, char *, _QWORD))(*(_QWORD *)v10 + 456LL))(v10, v20, v23);
if ( v22 )
InfoLayer::toggleModRoom(v20, 0);
if ( v2 )
cocos2d::CCObject::release(v2);
if ( v3 )
cocos2d::CCObject::release(v3);
if ( v4 )
cocos2d::CCObject::release(v4);
if ( v5 )
cocos2d::CCObject::release(v5);
}