{"type": "func", "start": 5369245296, "end": 5369245749, "name": "AppDelegate::applicationWillEnterForeground", "pseudocode": "// \n// AppDelegate::applicationWillEnterForeground from 0x140082e70 to 0x140083035 (453 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x14053c548\n// > <???> @ 0x1406c6a74\n// \n// This function is hookable on this platform!\n// \n// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings\n// \n\n// Hidden C++ exception states: #wind=4\nvoid AppDelegate::applicationWillEnterForeground(AppDelegate *a1)\n{\n  __int64 v1; // rax\n  __int64 v2; // rcx\n  cocos2d::CCDirector *v3; // rax\n  __int64 v4; // rcx\n  __int64 v5; // rax\n  FMODAudioEngine *v6; // rcx\n  __int64 v7; // rcx\n  __int64 v8; // rdi\n  struct cocos2d::CCObject *v9; // rbx\n  cocos2d::CCActionManager *v10; // rax\n  struct cocos2d::CCDelayTime *v11; // rbx\n  __int64 v12; // rcx\n  __int64 v13; // rax\n  struct cocos2d::CCSequence *v14; // rsi\n  __int64 v15; // rcx\n  __int64 v16; // rdi\n  struct cocos2d::CCNode *v17; // rbx\n  cocos2d::CCActionManager *v18; // rax\n  FMODAudioEngine *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 = (FMODAudioEngine *)qword_1406C2E88;\n  if ( !qword_1406C2E88 )\n  {\n    v19 = (FMODAudioEngine *)operator new(0x888u);\n    qword_1406C2E88 = (__int64)FMODAudioEngine::FMODAudioEngine(v19);\n    (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2E88 + 72LL))(qword_1406C2E88);\n    v6 = (FMODAudioEngine *)qword_1406C2E88;\n  }\n  FMODAudioEngine::start(v6);\n  v8 = cocos2d::CCDirector::sharedDirector(v7);\n  v9 = (struct cocos2d::CCObject *)qword_1406C2ED8;\n  if ( !qword_1406C2ED8 )\n  {\n    v20 = operator new(0x668u);\n    qword_1406C2ED8 = sub_14017AB00(v20);\n    (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8);\n    v9 = (struct cocos2d::CCObject *)qword_1406C2ED8;\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_1406C2ED8;\n  if ( !qword_1406C2ED8 )\n  {\n    v21 = operator new(0x668u);\n    qword_1406C2ED8 = sub_14017AB00(v21);\n    (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8);\n    v12 = qword_1406C2ED8;\n  }\n  v13 = cocos2d::CCCallFunc::create(v12, GameManager::applicationWillEnterForeground);\n  v14 = cocos2d::CCSequence::create(v11, v13, 0);\n  v14->setTag(v14, 1);\n  v16 = cocos2d::CCDirector::sharedDirector(v15);\n  v17 = (struct cocos2d::CCNode *)qword_1406C2ED8;\n  if ( !qword_1406C2ED8 )\n  {\n    v22 = operator new(0x668u);\n    qword_1406C2ED8 = sub_14017AB00(v22);\n    (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8);\n    v17 = (struct cocos2d::CCNode *)qword_1406C2ED8;\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 0x140082e70 to 0x140083035 (453 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x14053c548\n; > <???> @ 0x1406c6a74\n; \n; This function is hookable on this platform!\n; \n; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA\n; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings\n; \n\nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x140082e70\nmov     [rsp+arg_10], rsi                                              ; +0x5, 0x140082e75\npush    rdi                                                            ; +0xa, 0x140082e7a\nsub     rsp, 20h                                                       ; +0xb, 0x140082e7b\ncall    cs:?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0xf, 0x140082e7f\nmov     rdx, [rax]                                                     ; +0x15, 0x140082e85\nmov     rcx, rax                                                       ; +0x18, 0x140082e88\ncall    qword ptr [rdx+58h]                                            ; +0x1b, 0x140082e8b\ncall    cs:?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x1e, 0x140082e8e\nmov     rcx, rax                                                       ; +0x24, 0x140082e94\ncall    cs:?resume@CCDirector@cocos2d@@QEAAXXZ; cocos2d::CCDirector::resume(void) ; +0x27, 0x140082e97\ncall    cs:?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x2d, 0x140082e9d\nmov     rdx, [rax]                                                     ; +0x33, 0x140082ea3\nmov     rcx, rax                                                       ; +0x36, 0x140082ea6\ncall    qword ptr [rdx+60h]                                            ; +0x39, 0x140082ea9\nmov     rcx, cs:qword_1406C2E88                                        ; +0x3c, 0x140082eac\ntest    rcx, rcx                                                       ; +0x43, 0x140082eb3\njnz     short loc_140082EE7                                            ; +0x46, 0x140082eb6\nmov     ecx, 888h; Size                                                ; +0x48, 0x140082eb8\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x4d, 0x140082ebd\nmov     [rsp+28h+arg_8], rax                                           ; +0x52, 0x140082ec2\nmov     rcx, rax                                                       ; +0x57, 0x140082ec7\ncall    FMODAudioEngine__FMODAudioEngine                               ; +0x5a, 0x140082eca\nnop                                                                    ; +0x5f, 0x140082ecf\nmov     cs:qword_1406C2E88, rax                                        ; +0x60, 0x140082ed0\nmov     rdx, [rax]                                                     ; +0x67, 0x140082ed7\nmov     rcx, rax                                                       ; +0x6a, 0x140082eda\ncall    qword ptr [rdx+48h]                                            ; +0x6d, 0x140082edd\nmov     rcx, cs:qword_1406C2E88                                        ; +0x70, 0x140082ee0\ncall    FMODAudioEngine__start                                         ; +0x77, 0x140082ee7\ncall    cs:?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x7c, 0x140082eec\nmov     rdi, rax                                                       ; +0x82, 0x140082ef2\nmov     rbx, cs:qword_1406C2ED8                                        ; +0x85, 0x140082ef5\ntest    rbx, rbx                                                       ; +0x8c, 0x140082efc\njnz     short loc_140082F30                                            ; +0x8f, 0x140082eff\nmov     ecx, 668h; Size                                                ; +0x91, 0x140082f01\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x96, 0x140082f06\nmov     [rsp+28h+arg_8], rax                                           ; +0x9b, 0x140082f0b\nmov     rcx, rax                                                       ; +0xa0, 0x140082f10\ncall    sub_14017AB00                                                  ; +0xa3, 0x140082f13\nnop                                                                    ; +0xa8, 0x140082f18\nmov     cs:qword_1406C2ED8, rax                                        ; +0xa9, 0x140082f19\nmov     rdx, [rax]                                                     ; +0xb0, 0x140082f20\nmov     rcx, rax                                                       ; +0xb3, 0x140082f23\ncall    qword ptr [rdx+48h]                                            ; +0xb6, 0x140082f26\nmov     rbx, cs:qword_1406C2ED8                                        ; +0xb9, 0x140082f29\nmov     rax, [rdi]                                                     ; +0xc0, 0x140082f30\nmov     rcx, rdi                                                       ; +0xc3, 0x140082f33\ncall    qword ptr [rax+80h]                                            ; +0xc6, 0x140082f36\nmov     rcx, rax                                                       ; +0xcc, 0x140082f3c\nmov     r8, rbx                                                        ; +0xcf, 0x140082f3f\nmov     edx, 1                                                         ; +0xd2, 0x140082f42\ncall    cs:?removeActionByTag@CCActionManager@cocos2d@@QEAAXIPEAVCCObject@2@@Z; cocos2d::CCActionManager::removeActionByTag(uint,cocos2d::CCObject *) ; +0xd7, 0x140082f47\nxorps   xmm0, xmm0                                                     ; +0xdd, 0x140082f4d\ncall    cs:?create@CCDelayTime@cocos2d@@SAPEAV12@M@Z; cocos2d::CCDelayTime::create(float) ; +0xe0, 0x140082f50\nmov     rbx, rax                                                       ; +0xe6, 0x140082f56\nmov     rcx, cs:qword_1406C2ED8                                        ; +0xe9, 0x140082f59\ntest    rcx, rcx                                                       ; +0xf0, 0x140082f60\njnz     short loc_140082F95                                            ; +0xf3, 0x140082f63\nmov     ecx, 668h; Size                                                ; +0xf5, 0x140082f65\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0xfa, 0x140082f6a\nmov     [rsp+28h+arg_8], rax                                           ; +0xff, 0x140082f6f\nmov     rcx, rax                                                       ; +0x104, 0x140082f74\ncall    sub_14017AB00                                                  ; +0x107, 0x140082f77\nnop                                                                    ; +0x10c, 0x140082f7c\nmov     cs:qword_1406C2ED8, rax                                        ; +0x10d, 0x140082f7d\nmov     r8, [rax]                                                      ; +0x114, 0x140082f84\nmov     rcx, rax                                                       ; +0x117, 0x140082f87\ncall    qword ptr [r8+48h]                                             ; +0x11a, 0x140082f8a\nmov     rcx, cs:qword_1406C2ED8                                        ; +0x11e, 0x140082f8e\nlea     rdx, GameManager__applicationWillEnterForeground               ; +0x125, 0x140082f95\ncall    cs:?create@CCCallFunc@cocos2d@@SAPEAV12@PEAVCCObject@2@P832@EAAXXZ@Z; cocos2d::CCCallFunc::create(cocos2d::CCObject *,void (cocos2d::CCObject::*)(void)) ; +0x12c, 0x140082f9c\nxor     r8d, r8d                                                       ; +0x132, 0x140082fa2\nmov     rdx, rax                                                       ; +0x135, 0x140082fa5\nmov     rcx, rbx                                                       ; +0x138, 0x140082fa8\ncall    cs:?create@CCSequence@cocos2d@@SAPEAV12@PEAVCCFiniteTimeAction@2@ZZ; cocos2d::CCSequence::create(cocos2d::CCFiniteTimeAction *,...) ; +0x13b, 0x140082fab\nmov     rsi, rax                                                       ; +0x141, 0x140082fb1\nmov     r8, [rax]                                                      ; +0x144, 0x140082fb4\nmov     edx, 1                                                         ; +0x147, 0x140082fb7\nmov     rcx, rax                                                       ; +0x14c, 0x140082fbc\ncall    qword ptr [r8+40h]                                             ; +0x14f, 0x140082fbf\ncall    cs:?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x153, 0x140082fc3\nmov     rdi, rax                                                       ; +0x159, 0x140082fc9\nmov     rbx, cs:qword_1406C2ED8                                        ; +0x15c, 0x140082fcc\ntest    rbx, rbx                                                       ; +0x163, 0x140082fd3\njnz     short loc_140083007                                            ; +0x166, 0x140082fd6\nmov     ecx, 668h; Size                                                ; +0x168, 0x140082fd8\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x16d, 0x140082fdd\nmov     [rsp+28h+arg_8], rax                                           ; +0x172, 0x140082fe2\nmov     rcx, rax                                                       ; +0x177, 0x140082fe7\ncall    sub_14017AB00                                                  ; +0x17a, 0x140082fea\nnop                                                                    ; +0x17f, 0x140082fef\nmov     cs:qword_1406C2ED8, rax                                        ; +0x180, 0x140082ff0\nmov     rdx, [rax]                                                     ; +0x187, 0x140082ff7\nmov     rcx, rax                                                       ; +0x18a, 0x140082ffa\ncall    qword ptr [rdx+48h]                                            ; +0x18d, 0x140082ffd\nmov     rbx, cs:qword_1406C2ED8                                        ; +0x190, 0x140083000\nmov     rax, [rdi]                                                     ; +0x197, 0x140083007\nmov     rcx, rdi                                                       ; +0x19a, 0x14008300a\ncall    qword ptr [rax+80h]                                            ; +0x19d, 0x14008300d\nmov     rcx, rax                                                       ; +0x1a3, 0x140083013\nxor     r9d, r9d                                                       ; +0x1a6, 0x140083016\nmov     r8, rbx                                                        ; +0x1a9, 0x140083019\nmov     rdx, rsi                                                       ; +0x1ac, 0x14008301c\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x1af, 0x14008301f\nmov     rsi, [rsp+28h+arg_10]                                          ; +0x1b4, 0x140083024\nadd     rsp, 20h                                                       ; +0x1b9, 0x140083029\npop     rdi                                                            ; +0x1bd, 0x14008302d\njmp     cs:?addAction@CCActionManager@cocos2d@@QEAAXPEAVCCAction@2@PEAVCCNode@2@_N@Z; cocos2d::CCActionManager::addAction(cocos2d::CCAction *,cocos2d::CCNode *,bool) ; +0x1be, 0x14008302e", "xrefs": ["<???> @ 0x14053c548", "<???> @ 0x1406c6a74"], "is_objc": false, "is_arm32": false, "is_arm64": false, "bida_info": "8.0.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings"}