//
// cocos2d::CCApplication::CCApplication from 0x180074fd0 to 0x180075100 (304 bytes)
//
// 2 xrefs:
// > ??> @ 0x18014cf68
// > ??> @ 0x1801be6ec
//
// 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:21:58 +0000
//
// Hidden C++ exception states: #wind=5
cocos2d::CCApplication *__fastcall cocos2d::CCApplication::CCApplication(cocos2d::CCApplication *this)
{
__int64 v2; // rdi
__int64 v3; // rax
__int64 v4; // rax
__int64 v5; // rax
*(_QWORD *)this = &cocos2d::CCApplication::`vftable';
v2 = 0;
*((_QWORD *)this + 1) = 0;
*((_QWORD *)this + 2) = 0;
*(_OWORD *)((char *)this + 40) = 0;
*((_QWORD *)this + 7) = 0;
*((_QWORD *)this + 8) = 15;
*((_BYTE *)this + 40) = 0;
*(_OWORD *)((char *)this + 72) = 0;
*((_QWORD *)this + 11) = 0;
*((_QWORD *)this + 12) = 15;
*((_BYTE *)this + 72) = 0;
*(_WORD *)((char *)this + 121) = 0;
cocos2d::CCSize::CCSize((cocos2d::CCApplication *)((char *)this + 168));
cocos2d::CCSize::CCSize((cocos2d::CCApplication *)((char *)this + 176));
*((_WORD *)this + 92) = 1;
*((_DWORD *)this + 47) = 1015580809;
*((_DWORD *)this + 48) = 1015580809;
*((_QWORD *)this + 25) = 0;
*((_DWORD *)this + 52) = 0;
*((_WORD *)this + 106) = 0;
*((_BYTE *)this + 214) = 0;
*((_QWORD *)this + 1) = GetModuleHandleW(nullptr);
*((_QWORD *)this + 3) = 0;
cocos2d::CCApplication::sm_pSharedApplication = this;
v3 = sub_1800E4AC0(0x2Cu);
if ( v3 )
v4 = sub_1800814D0(v3, 1);
else
v4 = 0;
*((_QWORD *)this + 13) = v4;
sub_180081540(v4);
v5 = sub_1800E4AC0(0x2Cu);
if ( v5 )
v2 = sub_1800814D0(v5, 2);
*((_QWORD *)this + 14) = v2;
sub_180081540(v2);
*((_BYTE *)this + 120) = 0;
return this;
}