{"type": "func", "start": 4300226800, "end": 4300227096, "name": "CCLightFlash::showFlash", "pseudocode": "// \n// CCLightFlash::showFlash from 0x1005040f0 to 0x100504218 (296 bytes)\n// \n// 1 xrefs:\n// > CCLightFlash::playEffect @ 0x100503fee\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\nvoid __fastcall CCLightFlash::showFlash(CCLightFlash *a1)\n{\n  unsigned int v1; // eax\n  cocos2d::CCLayerColor *v2; // rax\n  cocos2d::CCFadeIn *v3; // rax\n  cocos2d::CCEaseIn *v4; // r14\n  cocos2d::CCCallFunc *v5; // r15\n  cocos2d::CCDelayTime *v6; // r12\n  cocos2d::CCFadeOut *v7; // rax\n  cocos2d::CCEaseInOut *v8; // r13\n  cocos2d::CCCallFunc *v9; // rax\n  cocos2d::CCSequence *v10; // rax\n  __int64 v11; // [rsp-38h] [rbp-38h] BYREF\n\n  if ( a1->m_dontFadeOut )\n  {\n    if ( !a1->m_mainLayer )\n      a1->m_mainLayer = a1;\n    v11 = v1 | 0xFFFFFF00000000LL;\n    v2 = cocos2d::CCLayerColor::create_1((const cocos2d::ccColor4B *)&v11 + 1);\n    a1->m_layerColor = v2;\n    ((void (__fastcall *)(cocos2d::CCLayerColor *, __int64))v2->setBlendFunc)(v2, 0x100000302LL);\n    ((void (__fastcall *)(cocos2d::CCNode *, cocos2d::CCLayerColor *, _QWORD))a1->m_mainLayer->addChild_0)(\n      a1->m_mainLayer,\n      a1->m_layerColor,\n      (unsigned int)a1->m_layerColorZOrder);\n    v3 = cocos2d::CCFadeIn::create(0.30000001);\n    v4 = cocos2d::CCEaseIn::create(v3, 2.0);\n    v5 = cocos2d::CCCallFunc::create(a1, (cocos2d::SEL_CallFunc)(unsigned __int64)CCLightFlash::removeLights);\n    v6 = cocos2d::CCDelayTime::create(0.5);\n    v7 = cocos2d::CCFadeOut::create(1.5);\n    v8 = cocos2d::CCEaseInOut::create(v7, 2.0);\n    v9 = cocos2d::CCCallFunc::create(a1, (cocos2d::SEL_CallFunc)(unsigned __int64)CCLightFlash::cleanupFlash);\n    v10 = sub_1003B5760(v4, v5, v6, v8, v9, 0, v11);\n    cocos2d::CCNode::runAction(a1->m_layerColor, v10);\n  }\n  else\n  {\n    CCLightFlash::fadeAndRemove(a1);\n  }\n}", "assembly": "; \n; CCLightFlash::showFlash from 0x1005040f0 to 0x100504218 (296 bytes)\n; \n; 1 xrefs:\n; > CCLightFlash::playEffect @ 0x100503fee\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\ncmp     byte ptr [rdi+150h], 0                                         ; +0x0, 0x1005040f0\njz      CCLightFlash__fadeAndRemove                                    ; +0x7, 0x1005040f7\ncmp     qword ptr [rdi+158h], 0                                        ; +0xd, 0x1005040fd\njnz     short loc_10050410E                                            ; +0x15, 0x100504105\nmov     [rdi+158h], rdi                                                ; +0x17, 0x100504107\npush    rbp                                                            ; +0x1e, 0x10050410e\nmov     rbp, rsp                                                       ; +0x1f, 0x10050410f\npush    r15                                                            ; +0x22, 0x100504112\npush    r14                                                            ; +0x24, 0x100504114\npush    r13                                                            ; +0x26, 0x100504116\npush    r12                                                            ; +0x28, 0x100504118\npush    rbx                                                            ; +0x2a, 0x10050411a\npush    rax                                                            ; +0x2b, 0x10050411b\nmov     dword ptr [rbp-2Ch], 0FFFFFFh                                  ; +0x2c, 0x10050411c\nlea     rax, [rbp-2Ch]                                                 ; +0x33, 0x100504123\nmov     rbx, rdi                                                       ; +0x37, 0x100504127\nmov     rdi, rax                                                       ; +0x3a, 0x10050412a\ncall    cocos2d__CCLayerColor__create_1                                ; +0x3d, 0x10050412d\nmov     [rbx+148h], rax                                                ; +0x42, 0x100504132\nmov     rcx, [rax]                                                     ; +0x49, 0x100504139\nmov     rsi, 100000302h                                                ; +0x4c, 0x10050413c\nmov     rdi, rax                                                       ; +0x56, 0x100504146\ncall    qword ptr [rcx+4F8h]                                           ; +0x59, 0x100504149\nmov     rsi, [rbx+148h]                                                ; +0x5f, 0x10050414f\nmov     rdi, [rbx+158h]                                                ; +0x66, 0x100504156\nmov     edx, [rbx+160h]                                                ; +0x6d, 0x10050415d\nmov     rax, [rdi]                                                     ; +0x73, 0x100504163\ncall    qword ptr [rax+1C0h]                                           ; +0x76, 0x100504166\nmovss   xmm0, cs:dword_100815420                                       ; +0x7c, 0x10050416c\ncall    cocos2d__CCFadeIn__create                                      ; +0x84, 0x100504174\nmovss   xmm0, cs:width                                                 ; +0x89, 0x100504179\nmov     rdi, rax                                                       ; +0x91, 0x100504181\ncall    cocos2d__CCEaseIn__create                                      ; +0x94, 0x100504184\nmov     r14, rax                                                       ; +0x99, 0x100504189\nlea     rsi, CCLightFlash__removeLights                                ; +0x9c, 0x10050418c\nmov     rdi, rbx                                                       ; +0xa3, 0x100504193\nxor     edx, edx                                                       ; +0xa6, 0x100504196\ncall    cocos2d__CCCallFunc__create                                    ; +0xa8, 0x100504198\nmov     r15, rax                                                       ; +0xad, 0x10050419d\nmovss   xmm0, cs:dword_100814FA8                                       ; +0xb0, 0x1005041a0\ncall    cocos2d__CCDelayTime__create                                   ; +0xb8, 0x1005041a8\nmov     r12, rax                                                       ; +0xbd, 0x1005041ad\nmovss   xmm0, cs:dword_100815000                                       ; +0xc0, 0x1005041b0\ncall    cocos2d__CCFadeOut__create                                     ; +0xc8, 0x1005041b8\nmov     rdi, rax                                                       ; +0xcd, 0x1005041bd\nmovss   xmm0, cs:width                                                 ; +0xd0, 0x1005041c0\ncall    cocos2d__CCEaseInOut__create                                   ; +0xd8, 0x1005041c8\nmov     r13, rax                                                       ; +0xdd, 0x1005041cd\nlea     rsi, CCLightFlash__cleanupFlash                                ; +0xe0, 0x1005041d0\nmov     rdi, rbx                                                       ; +0xe7, 0x1005041d7\nxor     edx, edx                                                       ; +0xea, 0x1005041da\ncall    cocos2d__CCCallFunc__create                                    ; +0xec, 0x1005041dc\nmov     rdi, r14                                                       ; +0xf1, 0x1005041e1\nmov     rsi, r15                                                       ; +0xf4, 0x1005041e4\nmov     rdx, r12                                                       ; +0xf7, 0x1005041e7\nmov     rcx, r13                                                       ; +0xfa, 0x1005041ea\nmov     r8, rax                                                        ; +0xfd, 0x1005041ed\nxor     r9d, r9d                                                       ; +0x100, 0x1005041f0\nxor     eax, eax                                                       ; +0x103, 0x1005041f3\ncall    sub_1003B5760                                                  ; +0x105, 0x1005041f5\nmov     rdi, [rbx+148h]                                                ; +0x10a, 0x1005041fa\nmov     rsi, rax                                                       ; +0x111, 0x100504201\ncall    cocos2d__CCNode__runAction                                     ; +0x114, 0x100504204\nadd     rsp, 8                                                         ; +0x119, 0x100504209\npop     rbx                                                            ; +0x11d, 0x10050420d\npop     r12                                                            ; +0x11e, 0x10050420e\npop     r13                                                            ; +0x120, 0x100504210\npop     r14                                                            ; +0x122, 0x100504212\npop     r15                                                            ; +0x124, 0x100504214\npop     rbp                                                            ; +0x126, 0x100504216\nretn                                                                   ; +0x127, 0x100504217", "xrefs": ["CCLightFlash::playEffect @ 0x100503fee"], "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"}