{"type": "func", "start": 5370235616, "end": 5370235955, "name": "DialogLayer::createDialogLayer", "pseudocode": "// \n// DialogLayer::createDialogLayer from 0x140174ae0 to 0x140174c33 (339 bytes)\n// \n// 43 xrefs:\n// > CharacterColorPage::onMode @ 0x1400a2021\n// > CreatorLayer::onMultiplayer @ 0x140137ff3\n// > CreatorLayer::onSecretVault @ 0x140138ba7\n// > CreatorLayer::onTreasureRoom @ 0x1401390db\n// > CreatorLayer::onTreasureRoom @ 0x140139370\n// > DailyLevelPage::dailyStatusFailed @ 0x140170cbd\n// > GameSettingsLayer::showPracticeMusicSyncUnlockInfo @ 0x1402c8ade\n// > GauntletSelectLayer::onPlay @ 0x1402ffa0b\n// > GJGarageLayer::showUnlockPopup @ 0x140380b59\n// > GJPathPage::showCantAffordMessage @ 0x140395948\n// > GJShopLayer::showCantAffordMessage @ 0x1403b2768\n// > GJShopLayer::didPurchaseItem @ 0x1403b300a\n// > GJShopLayer::showReactMessage @ 0x1403b391c\n// > GJShopLayer::showReactMessage @ 0x1403b480e\n// > LevelAreaLayer::showDialog @ 0x1403de7ea\n// > LevelAreaInnerLayer::showFloor1CompleteDialog @ 0x1403e0e28\n// > LevelListLayer::onClaimReward @ 0x14042e3a0\n// > LevelPage::onTheTower @ 0x1404457b8\n// > LevelPage::onSecretDoor @ 0x14044690c\n// > LevelPage::onSecretDoor @ 0x140446b93\n// > OptionsLayer::onSecretVault @ 0x1404cc305\n// > PlayLayer::destroyPlayer @ 0x140513438\n// > SecretRewardsLayer::onSelectItem @ 0x14056beb8\n// > SecretRewardsLayer::onSpecialItem @ 0x14056c72c\n// > SecretRewardsLayer::onGoldChest @ 0x14056d434\n// > SecretRewardsLayer::showDialog01 @ 0x14056f158\n// > SecretRewardsLayer::showDialog03 @ 0x140570414\n// > SecretRewardsLayer::showDialogMechanic @ 0x14057167d\n// > SecretRewardsLayer::showDialogDiamond @ 0x1405722fc\n// > SecretLayer2::showCompletedLevel @ 0x140579fe0\n// > SecretLayer2::onSecretLevel @ 0x14057a34f\n// > SecretLayer2::onDoor @ 0x14057abd1\n// > SecretLayer3::firstInteractionStep2 @ 0x140581963\n// > SecretLayer3::firstInteractionStep4 @ 0x140581e20\n// > SecretLayer3::onClick @ 0x1405830b7\n// > SecretLayer3::showUnlockDialog @ 0x1405835c7\n// > SecretLayer3::revealStep2 @ 0x140583b7d\n// > SecretLayer3::revealStep4 @ 0x1405842bb\n// > SecretLayer3::revealStep5 @ 0x1405848d7\n// > SecretLayer4::showFirstDialog @ 0x140588495\n// > SecretLayer5::showFirstDialog @ 0x14058d75d\n// > SongInfoLayer::showCustomMusicUnlockInfo @ 0x14063610e\n// > <???> @ 0x140918410\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:27:32 +0000\n// \n\n// Hidden C++ exception states: #wind=1\ncocos2d::CCLayerColor *__fastcall DialogLayer::createDialogLayer(__int64 a1, __int64 a2, unsigned int a3)\n{\n  cocos2d::CCLayerColor *v6; // r14\n\n  v6 = (cocos2d::CCLayerColor *)operator new(0x288u);\n  cocos2d::CCLayerColor::CCLayerColor(v6);\n  *(_QWORD *)v6 = &DialogLayer::`vftable';\n  *((_QWORD *)v6 + 40) = &DialogLayer::`vftable';\n  *((_QWORD *)v6 + 41) = &DialogLayer::`vftable';\n  *((_QWORD *)v6 + 42) = &DialogLayer::`vftable';\n  *((_QWORD *)v6 + 43) = &DialogLayer::`vftable';\n  *((_QWORD *)v6 + 44) = &DialogLayer::`vftable';\n  *((_QWORD *)v6 + 51) = &DialogLayer::`vftable';\n  *((_QWORD *)v6 + 54) = &DialogLayer::`vftable';\n  *((_QWORD *)v6 + 68) = &DialogLayer::`vftable';\n  *((_QWORD *)v6 + 69) = 0;\n  *((_QWORD *)v6 + 71) = 0;\n  *((_QWORD *)v6 + 72) = 0;\n  *((_QWORD *)v6 + 73) = 0;\n  *((_QWORD *)v6 + 74) = 0;\n  *((_DWORD *)v6 + 150) = -1;\n  *((_WORD *)v6 + 308) = 0;\n  *((_QWORD *)v6 + 78) = 0;\n  *((_BYTE *)v6 + 632) = 0;\n  *((_DWORD *)v6 + 159) = 1;\n  *((_BYTE *)v6 + 640) = 0;\n  if ( (unsigned __int8)DialogLayer::init(v6, a1, a2, a3) )\n  {\n    cocos2d::CCObject::autorelease(v6);\n    return v6;\n  }\n  else\n  {\n    (*(void (__fastcall **)(cocos2d::CCLayerColor *, __int64))(*(_QWORD *)v6 + 8LL))(v6, 1);\n    return nullptr;\n  }\n}", "assembly": "; \n; DialogLayer::createDialogLayer from 0x140174ae0 to 0x140174c33 (339 bytes)\n; \n; 43 xrefs:\n; > CharacterColorPage::onMode @ 0x1400a2021\n; > CreatorLayer::onMultiplayer @ 0x140137ff3\n; > CreatorLayer::onSecretVault @ 0x140138ba7\n; > CreatorLayer::onTreasureRoom @ 0x1401390db\n; > CreatorLayer::onTreasureRoom @ 0x140139370\n; > DailyLevelPage::dailyStatusFailed @ 0x140170cbd\n; > GameSettingsLayer::showPracticeMusicSyncUnlockInfo @ 0x1402c8ade\n; > GauntletSelectLayer::onPlay @ 0x1402ffa0b\n; > GJGarageLayer::showUnlockPopup @ 0x140380b59\n; > GJPathPage::showCantAffordMessage @ 0x140395948\n; > GJShopLayer::showCantAffordMessage @ 0x1403b2768\n; > GJShopLayer::didPurchaseItem @ 0x1403b300a\n; > GJShopLayer::showReactMessage @ 0x1403b391c\n; > GJShopLayer::showReactMessage @ 0x1403b480e\n; > LevelAreaLayer::showDialog @ 0x1403de7ea\n; > LevelAreaInnerLayer::showFloor1CompleteDialog @ 0x1403e0e28\n; > LevelListLayer::onClaimReward @ 0x14042e3a0\n; > LevelPage::onTheTower @ 0x1404457b8\n; > LevelPage::onSecretDoor @ 0x14044690c\n; > LevelPage::onSecretDoor @ 0x140446b93\n; > OptionsLayer::onSecretVault @ 0x1404cc305\n; > PlayLayer::destroyPlayer @ 0x140513438\n; > SecretRewardsLayer::onSelectItem @ 0x14056beb8\n; > SecretRewardsLayer::onSpecialItem @ 0x14056c72c\n; > SecretRewardsLayer::onGoldChest @ 0x14056d434\n; > SecretRewardsLayer::showDialog01 @ 0x14056f158\n; > SecretRewardsLayer::showDialog03 @ 0x140570414\n; > SecretRewardsLayer::showDialogMechanic @ 0x14057167d\n; > SecretRewardsLayer::showDialogDiamond @ 0x1405722fc\n; > SecretLayer2::showCompletedLevel @ 0x140579fe0\n; > SecretLayer2::onSecretLevel @ 0x14057a34f\n; > SecretLayer2::onDoor @ 0x14057abd1\n; > SecretLayer3::firstInteractionStep2 @ 0x140581963\n; > SecretLayer3::firstInteractionStep4 @ 0x140581e20\n; > SecretLayer3::onClick @ 0x1405830b7\n; > SecretLayer3::showUnlockDialog @ 0x1405835c7\n; > SecretLayer3::revealStep2 @ 0x140583b7d\n; > SecretLayer3::revealStep4 @ 0x1405842bb\n; > SecretLayer3::revealStep5 @ 0x1405848d7\n; > SecretLayer4::showFirstDialog @ 0x140588495\n; > SecretLayer5::showFirstDialog @ 0x14058d75d\n; > SongInfoLayer::showCustomMusicUnlockInfo @ 0x14063610e\n; > <???> @ 0x140918410\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:27:32 +0000\n; \nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x140174ae0\nmov     [rsp+arg_8], rbp                                               ; +0x5, 0x140174ae5\npush    rsi                                                            ; +0xa, 0x140174aea\npush    rdi                                                            ; +0xb, 0x140174aeb\npush    r14                                                            ; +0xc, 0x140174aec\nsub     rsp, 20h                                                       ; +0xe, 0x140174aee\nmov     ebx, r8d                                                       ; +0x12, 0x140174af2\nmov     rdi, rdx                                                       ; +0x15, 0x140174af5\nmov     rsi, rcx                                                       ; +0x18, 0x140174af8\nmov     ecx, 288h; Size                                                ; +0x1b, 0x140174afb\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x20, 0x140174b00\nmov     r14, rax                                                       ; +0x25, 0x140174b05\nmov     [rsp+38h+arg_18], rax                                          ; +0x28, 0x140174b08\nmov     rcx, rax                                                       ; +0x2d, 0x140174b0d\ncall    cs:??0CCLayerColor@cocos2d@@QEAA@XZ; cocos2d::CCLayerColor::CCLayerColor(void) ; +0x30, 0x140174b10\nlea     rax, ??_7DialogLayer@@6B@; const DialogLayer::`vftable'        ; +0x36, 0x140174b16\nmov     [r14], rax                                                     ; +0x3d, 0x140174b1d\nlea     rax, ??_7DialogLayer@@6B@_0; const DialogLayer::`vftable'      ; +0x40, 0x140174b20\nmov     [r14+140h], rax                                                ; +0x47, 0x140174b27\nlea     rax, ??_7DialogLayer@@6B@_1; const DialogLayer::`vftable'      ; +0x4e, 0x140174b2e\nmov     [r14+148h], rax                                                ; +0x55, 0x140174b35\nlea     rax, ??_7DialogLayer@@6B@_2; const DialogLayer::`vftable'      ; +0x5c, 0x140174b3c\nmov     [r14+150h], rax                                                ; +0x63, 0x140174b43\nlea     rax, ??_7DialogLayer@@6B@_3; const DialogLayer::`vftable'      ; +0x6a, 0x140174b4a\nmov     [r14+158h], rax                                                ; +0x71, 0x140174b51\nlea     rax, ??_7DialogLayer@@6B@_4; const DialogLayer::`vftable'      ; +0x78, 0x140174b58\nmov     [r14+160h], rax                                                ; +0x7f, 0x140174b5f\nlea     rax, ??_7DialogLayer@@6B@_5; const DialogLayer::`vftable'      ; +0x86, 0x140174b66\nmov     [r14+198h], rax                                                ; +0x8d, 0x140174b6d\nlea     rax, ??_7DialogLayer@@6B@_6; const DialogLayer::`vftable'      ; +0x94, 0x140174b74\nmov     [r14+1B0h], rax                                                ; +0x9b, 0x140174b7b\nlea     rax, ??_7DialogLayer@@6B@_7; const DialogLayer::`vftable'      ; +0xa2, 0x140174b82\nmov     [r14+220h], rax                                                ; +0xa9, 0x140174b89\nxor     ebp, ebp                                                       ; +0xb0, 0x140174b90\nmov     [r14+228h], rbp                                                ; +0xb2, 0x140174b92\nmov     [r14+238h], rbp                                                ; +0xb9, 0x140174b99\nmov     [r14+240h], rbp                                                ; +0xc0, 0x140174ba0\nmov     [r14+248h], rbp                                                ; +0xc7, 0x140174ba7\nmov     [r14+250h], rbp                                                ; +0xce, 0x140174bae\nmov     dword ptr [r14+258h], 0FFFFFFFFh                               ; +0xd5, 0x140174bb5\nmov     [r14+268h], bp                                                 ; +0xe0, 0x140174bc0\nmov     [r14+270h], rbp                                                ; +0xe8, 0x140174bc8\nmov     [r14+278h], bpl                                                ; +0xef, 0x140174bcf\nmov     dword ptr [r14+27Ch], 1                                        ; +0xf6, 0x140174bd6\nmov     [r14+280h], bpl                                                ; +0x101, 0x140174be1\nmov     r9d, ebx                                                       ; +0x108, 0x140174be8\nmov     r8, rdi                                                        ; +0x10b, 0x140174beb\nmov     rdx, rsi                                                       ; +0x10e, 0x140174bee\nmov     rcx, r14                                                       ; +0x111, 0x140174bf1\ncall    DialogLayer__init                                              ; +0x114, 0x140174bf4\ntest    al, al                                                         ; +0x119, 0x140174bf9\njz      short loc_140174C0B                                            ; +0x11b, 0x140174bfb\nmov     rcx, r14                                                       ; +0x11d, 0x140174bfd\ncall    cs:?autorelease@CCObject@cocos2d@@QEAAPEAV12@XZ; cocos2d::CCObject::autorelease(void) ; +0x120, 0x140174c00\nmov     rax, r14                                                       ; +0x126, 0x140174c06\njmp     short loc_140174C20                                            ; +0x129, 0x140174c09\nmov     rcx, [r14]                                                     ; +0x12b, 0x140174c0b\nmov     r8, [rcx+8]                                                    ; +0x12e, 0x140174c0e\nmov     edx, 1                                                         ; +0x132, 0x140174c12\nmov     rcx, r14                                                       ; +0x137, 0x140174c17\ncall    r8                                                             ; +0x13a, 0x140174c1a\nmov     rax, rbp                                                       ; +0x13d, 0x140174c1d\nmov     rbx, [rsp+38h+arg_0]                                           ; +0x140, 0x140174c20\nmov     rbp, [rsp+38h+arg_8]                                           ; +0x145, 0x140174c25\nadd     rsp, 20h                                                       ; +0x14a, 0x140174c2a\npop     r14                                                            ; +0x14e, 0x140174c2e\npop     rdi                                                            ; +0x150, 0x140174c30\npop     rsi                                                            ; +0x151, 0x140174c31\nretn                                                                   ; +0x152, 0x140174c32", "xrefs": ["CharacterColorPage::onMode @ 0x1400a2021", "CreatorLayer::onMultiplayer @ 0x140137ff3", "CreatorLayer::onSecretVault @ 0x140138ba7", "CreatorLayer::onTreasureRoom @ 0x1401390db", "CreatorLayer::onTreasureRoom @ 0x140139370", "DailyLevelPage::dailyStatusFailed @ 0x140170cbd", "GameSettingsLayer::showPracticeMusicSyncUnlockInfo @ 0x1402c8ade", "GauntletSelectLayer::onPlay @ 0x1402ffa0b", "GJGarageLayer::showUnlockPopup @ 0x140380b59", "GJPathPage::showCantAffordMessage @ 0x140395948", "GJShopLayer::showCantAffordMessage @ 0x1403b2768", "GJShopLayer::didPurchaseItem @ 0x1403b300a", "GJShopLayer::showReactMessage @ 0x1403b391c", "GJShopLayer::showReactMessage @ 0x1403b480e", "LevelAreaLayer::showDialog @ 0x1403de7ea", "LevelAreaInnerLayer::showFloor1CompleteDialog @ 0x1403e0e28", "LevelListLayer::onClaimReward @ 0x14042e3a0", "LevelPage::onTheTower @ 0x1404457b8", "LevelPage::onSecretDoor @ 0x14044690c", "LevelPage::onSecretDoor @ 0x140446b93", "OptionsLayer::onSecretVault @ 0x1404cc305", "PlayLayer::destroyPlayer @ 0x140513438", "SecretRewardsLayer::onSelectItem @ 0x14056beb8", "SecretRewardsLayer::onSpecialItem @ 0x14056c72c", "SecretRewardsLayer::onGoldChest @ 0x14056d434", "SecretRewardsLayer::showDialog01 @ 0x14056f158", "SecretRewardsLayer::showDialog03 @ 0x140570414", "SecretRewardsLayer::showDialogMechanic @ 0x14057167d", "SecretRewardsLayer::showDialogDiamond @ 0x1405722fc", "SecretLayer2::showCompletedLevel @ 0x140579fe0", "SecretLayer2::onSecretLevel @ 0x14057a34f", "SecretLayer2::onDoor @ 0x14057abd1", "SecretLayer3::firstInteractionStep2 @ 0x140581963", "SecretLayer3::firstInteractionStep4 @ 0x140581e20", "SecretLayer3::onClick @ 0x1405830b7", "SecretLayer3::showUnlockDialog @ 0x1405835c7", "SecretLayer3::revealStep2 @ 0x140583b7d", "SecretLayer3::revealStep4 @ 0x1405842bb", "SecretLayer3::revealStep5 @ 0x1405848d7", "SecretLayer4::showFirstDialog @ 0x140588495", "SecretLayer5::showFirstDialog @ 0x14058d75d", "SongInfoLayer::showCustomMusicUnlockInfo @ 0x14063610e", "<???> @ 0x140918410"], "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"}