{"type": "func", "start": 5369333776, "end": 5369334246, "name": "AppDelegate::applicationWillEnterForeground", "pseudocode": "// \n// AppDelegate::applicationWillEnterForeground from 0x140098810 to 0x1400989e6 (470 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x140719fa0\n// > <???> @ 0x140912d4c\n// \n// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 11:26:03 +0000\n// \n\n// Hidden C++ exception states: #wind=4\nvoid __fastcall AppDelegate::applicationWillEnterForeground(__int64 a1)\n{\n  __int64 v1; // rax\n  __int64 v2; // rcx\n  cocos2d::CCDirector *v3; // rax\n  __int64 v4; // rcx\n  __int64 v5; // rax\n  _BYTE *v6; // rcx\n  __int64 v7; // rcx\n  __int64 v8; // rdi\n  struct cocos2d::CCObject *v9; // rbx\n  cocos2d::CCActionManager *v10; // rax\n  struct cocos2d::CCFiniteTimeAction *v11; // rbx\n  __int64 v12; // rcx\n  __int64 v13; // rax\n  struct cocos2d::CCAction *v14; // rsi\n  __int64 v15; // rcx\n  __int64 v16; // rdi\n  struct cocos2d::CCNode *v17; // rbx\n  cocos2d::CCActionManager *v18; // rax\n  void *v19; // [rsp+38h] [rbp+10h]\n  void *v20; // [rsp+38h] [rbp+10h]\n  void *v21; // [rsp+38h] [rbp+10h]\n  void *v22; // [rsp+38h] [rbp+10h]\n\n  v1 = cocos2d::CCDirector::sharedDirector(a1);\n  (*(void (__fastcall **)(__int64))(*(_QWORD *)v1 + 88LL))(v1);\n  v3 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v2);\n  cocos2d::CCDirector::resume(v3);\n  v5 = cocos2d::CCDirector::sharedDirector(v4);\n  (*(void (__fastcall **)(__int64))(*(_QWORD *)v5 + 96LL))(v5);\n  v6 = (_BYTE *)qword_14090BF60;\n  if ( !qword_14090BF60 )\n  {\n    v19 = operator new(0x8A8u);\n    qword_14090BF60 = FMODAudioEngine::FMODAudioEngine((__int64)v19);\n    (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BF60 + 72LL))(qword_14090BF60);\n    v6 = (_BYTE *)qword_14090BF60;\n  }\n  FMODAudioEngine::start(v6);\n  v8 = cocos2d::CCDirector::sharedDirector(v7);\n  v9 = (struct cocos2d::CCObject *)qword_14090BFD0;\n  if ( !qword_14090BFD0 )\n  {\n    v20 = operator new(0x6E8u);\n    qword_14090BFD0 = GameManager::GameManager(v20);\n    (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0);\n    v9 = (struct cocos2d::CCObject *)qword_14090BFD0;\n  }\n  v10 = (cocos2d::CCActionManager *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v8 + 128LL))(v8);\n  cocos2d::CCActionManager::removeActionByTag(v10, 1u, v9);\n  v11 = cocos2d::CCDelayTime::create(0.0);\n  v12 = qword_14090BFD0;\n  if ( !qword_14090BFD0 )\n  {\n    v21 = operator new(0x6E8u);\n    qword_14090BFD0 = GameManager::GameManager(v21);\n    (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0);\n    v12 = qword_14090BFD0;\n  }\n  v13 = cocos2d::CCCallFunc::create(v12, GameManager::applicationWillEnterForeground);\n  v14 = cocos2d::CCSequence::create(v11, v13, 0);\n  (*(void (__fastcall **)(struct cocos2d::CCAction *, __int64))(*(_QWORD *)v14 + 64LL))(v14, 1);\n  v16 = cocos2d::CCDirector::sharedDirector(v15);\n  v17 = (struct cocos2d::CCNode *)qword_14090BFD0;\n  if ( !qword_14090BFD0 )\n  {\n    v22 = operator new(0x6E8u);\n    qword_14090BFD0 = GameManager::GameManager(v22);\n    (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0);\n    v17 = (struct cocos2d::CCNode *)qword_14090BFD0;\n  }\n  v18 = (cocos2d::CCActionManager *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v16 + 128LL))(v16);\n  cocos2d::CCActionManager::addAction(v18, v14, v17, 0);\n}", "assembly": "; \n; AppDelegate::applicationWillEnterForeground from 0x140098810 to 0x1400989e6 (470 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x140719fa0\n; > <???> @ 0x140912d4c\n; \n; This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 11:26:03 +0000\n; \nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x140098810\nmov     [rsp+arg_10], rsi                                              ; +0x5, 0x140098815\npush    rdi                                                            ; +0xa, 0x14009881a\nsub     rsp, 20h                                                       ; +0xb, 0x14009881b\ncall    cs:?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0xf, 0x14009881f\nmov     rcx, [rax]                                                     ; +0x15, 0x140098825\nmov     rdx, [rcx+58h]                                                 ; +0x18, 0x140098828\nmov     rcx, rax                                                       ; +0x1c, 0x14009882c\ncall    rdx                                                            ; +0x1f, 0x14009882f\ncall    cs:?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x21, 0x140098831\nmov     rcx, rax                                                       ; +0x27, 0x140098837\ncall    cs:?resume@CCDirector@cocos2d@@QEAAXXZ; cocos2d::CCDirector::resume(void) ; +0x2a, 0x14009883a\ncall    cs:?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x30, 0x140098840\nmov     rcx, [rax]                                                     ; +0x36, 0x140098846\nmov     rdx, [rcx+60h]                                                 ; +0x39, 0x140098849\nmov     rcx, rax                                                       ; +0x3d, 0x14009884d\ncall    rdx                                                            ; +0x40, 0x140098850\nmov     rcx, cs:qword_14090BF60                                        ; +0x42, 0x140098852\ntest    rcx, rcx                                                       ; +0x49, 0x140098859\njnz     short loc_140098890                                            ; +0x4c, 0x14009885c\nmov     ecx, 8A8h; Size                                                ; +0x4e, 0x14009885e\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x53, 0x140098863\nmov     [rsp+28h+arg_8], rax                                           ; +0x58, 0x140098868\nmov     rcx, rax                                                       ; +0x5d, 0x14009886d\ncall    FMODAudioEngine__FMODAudioEngine                               ; +0x60, 0x140098870\nnop                                                                    ; +0x65, 0x140098875\nmov     cs:qword_14090BF60, rax                                        ; +0x66, 0x140098876\nmov     rcx, [rax]                                                     ; +0x6d, 0x14009887d\nmov     rdx, [rcx+48h]                                                 ; +0x70, 0x140098880\nmov     rcx, rax                                                       ; +0x74, 0x140098884\ncall    rdx                                                            ; +0x77, 0x140098887\nmov     rcx, cs:qword_14090BF60                                        ; +0x79, 0x140098889\ncall    FMODAudioEngine__start                                         ; +0x80, 0x140098890\ncall    cs:?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x85, 0x140098895\nmov     rdi, rax                                                       ; +0x8b, 0x14009889b\nmov     rbx, cs:qword_14090BFD0                                        ; +0x8e, 0x14009889e\ntest    rbx, rbx                                                       ; +0x95, 0x1400988a5\njnz     short loc_1400988DC                                            ; +0x98, 0x1400988a8\nmov     ecx, 6E8h; Size                                                ; +0x9a, 0x1400988aa\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x9f, 0x1400988af\nmov     [rsp+28h+arg_8], rax                                           ; +0xa4, 0x1400988b4\nmov     rcx, rax                                                       ; +0xa9, 0x1400988b9\ncall    GameManager__GameManager                                       ; +0xac, 0x1400988bc\nnop                                                                    ; +0xb1, 0x1400988c1\nmov     cs:qword_14090BFD0, rax                                        ; +0xb2, 0x1400988c2\nmov     rcx, [rax]                                                     ; +0xb9, 0x1400988c9\nmov     rdx, [rcx+48h]                                                 ; +0xbc, 0x1400988cc\nmov     rcx, rax                                                       ; +0xc0, 0x1400988d0\ncall    rdx                                                            ; +0xc3, 0x1400988d3\nmov     rbx, cs:qword_14090BFD0                                        ; +0xc5, 0x1400988d5\nmov     rax, [rdi]                                                     ; +0xcc, 0x1400988dc\nmov     rcx, rdi                                                       ; +0xcf, 0x1400988df\ncall    qword ptr [rax+80h]                                            ; +0xd2, 0x1400988e2\nmov     rcx, rax                                                       ; +0xd8, 0x1400988e8\nmov     r8, rbx                                                        ; +0xdb, 0x1400988eb\nmov     edx, 1                                                         ; +0xde, 0x1400988ee\ncall    cs:?removeActionByTag@CCActionManager@cocos2d@@QEAAXIPEAVCCObject@2@@Z; cocos2d::CCActionManager::removeActionByTag(uint,cocos2d::CCObject *) ; +0xe3, 0x1400988f3\nxorps   xmm0, xmm0                                                     ; +0xe9, 0x1400988f9\ncall    cs:?create@CCDelayTime@cocos2d@@SAPEAV12@M@Z; cocos2d::CCDelayTime::create(float) ; +0xec, 0x1400988fc\nmov     rbx, rax                                                       ; +0xf2, 0x140098902\nmov     rcx, cs:qword_14090BFD0                                        ; +0xf5, 0x140098905\ntest    rcx, rcx                                                       ; +0xfc, 0x14009890c\njnz     short loc_140098943                                            ; +0xff, 0x14009890f\nmov     ecx, 6E8h; Size                                                ; +0x101, 0x140098911\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x106, 0x140098916\nmov     [rsp+28h+arg_8], rax                                           ; +0x10b, 0x14009891b\nmov     rcx, rax                                                       ; +0x110, 0x140098920\ncall    GameManager__GameManager                                       ; +0x113, 0x140098923\nnop                                                                    ; +0x118, 0x140098928\nmov     cs:qword_14090BFD0, rax                                        ; +0x119, 0x140098929\nmov     rcx, [rax]                                                     ; +0x120, 0x140098930\nmov     rdx, [rcx+48h]                                                 ; +0x123, 0x140098933\nmov     rcx, rax                                                       ; +0x127, 0x140098937\ncall    rdx                                                            ; +0x12a, 0x14009893a\nmov     rcx, cs:qword_14090BFD0                                        ; +0x12c, 0x14009893c\nlea     rdx, GameManager__applicationWillEnterForeground               ; +0x133, 0x140098943\ncall    cs:?create@CCCallFunc@cocos2d@@SAPEAV12@PEAVCCObject@2@P832@EAAXXZ@Z; cocos2d::CCCallFunc::create(cocos2d::CCObject *,void (cocos2d::CCObject::*)(void)) ; +0x13a, 0x14009894a\nxor     r8d, r8d                                                       ; +0x140, 0x140098950\nmov     rdx, rax                                                       ; +0x143, 0x140098953\nmov     rcx, rbx                                                       ; +0x146, 0x140098956\ncall    cs:?create@CCSequence@cocos2d@@SAPEAV12@PEAVCCFiniteTimeAction@2@ZZ; cocos2d::CCSequence::create(cocos2d::CCFiniteTimeAction *,...) ; +0x149, 0x140098959\nmov     rsi, rax                                                       ; +0x14f, 0x14009895f\nmov     r8, [rax]                                                      ; +0x152, 0x140098962\nmov     edx, 1                                                         ; +0x155, 0x140098965\nmov     rcx, rax                                                       ; +0x15a, 0x14009896a\ncall    qword ptr [r8+40h]                                             ; +0x15d, 0x14009896d\ncall    cs:?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x161, 0x140098971\nmov     rdi, rax                                                       ; +0x167, 0x140098977\nmov     rbx, cs:qword_14090BFD0                                        ; +0x16a, 0x14009897a\ntest    rbx, rbx                                                       ; +0x171, 0x140098981\njnz     short loc_1400989B8                                            ; +0x174, 0x140098984\nmov     ecx, 6E8h; Size                                                ; +0x176, 0x140098986\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x17b, 0x14009898b\nmov     [rsp+28h+arg_8], rax                                           ; +0x180, 0x140098990\nmov     rcx, rax                                                       ; +0x185, 0x140098995\ncall    GameManager__GameManager                                       ; +0x188, 0x140098998\nnop                                                                    ; +0x18d, 0x14009899d\nmov     cs:qword_14090BFD0, rax                                        ; +0x18e, 0x14009899e\nmov     rcx, [rax]                                                     ; +0x195, 0x1400989a5\nmov     rdx, [rcx+48h]                                                 ; +0x198, 0x1400989a8\nmov     rcx, rax                                                       ; +0x19c, 0x1400989ac\ncall    rdx                                                            ; +0x19f, 0x1400989af\nmov     rbx, cs:qword_14090BFD0                                        ; +0x1a1, 0x1400989b1\nmov     rax, [rdi]                                                     ; +0x1a8, 0x1400989b8\nmov     rcx, rdi                                                       ; +0x1ab, 0x1400989bb\ncall    qword ptr [rax+80h]                                            ; +0x1ae, 0x1400989be\nmov     rcx, rax                                                       ; +0x1b4, 0x1400989c4\nxor     r9d, r9d                                                       ; +0x1b7, 0x1400989c7\nmov     r8, rbx                                                        ; +0x1ba, 0x1400989ca\nmov     rdx, rsi                                                       ; +0x1bd, 0x1400989cd\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x1c0, 0x1400989d0\nmov     rsi, [rsp+28h+arg_10]                                          ; +0x1c5, 0x1400989d5\nadd     rsp, 20h                                                       ; +0x1ca, 0x1400989da\npop     rdi                                                            ; +0x1ce, 0x1400989de\njmp     cs:?addAction@CCActionManager@cocos2d@@QEAAXPEAVCCAction@2@PEAVCCNode@2@_N@Z; cocos2d::CCActionManager::addAction(cocos2d::CCAction *,cocos2d::CCNode *,bool) ; +0x1cf, 0x1400989df", "xrefs": ["<???> @ 0x140719fa0", "<???> @ 0x140912d4c"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}