; ; GJShopLayer::dialogClosed from 0x1402ae620 to 0x1402ae94e (814 bytes) ; ; 2 xrefs: ; > @ 0x14057e240 ; > @ 0x1406d227c ; ; This function is hookable on this platform! ; ; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA ; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings ; mov [rsp+arg_0], rbx ; +0x0, 0x1402ae620 mov [rsp+arg_18], rsi ; +0x5, 0x1402ae625 push rdi ; +0xa, 0x1402ae62a sub rsp, 50h ; +0xb, 0x1402ae62b mov rbx, rdx ; +0xf, 0x1402ae62f mov rsi, rcx ; +0x12, 0x1402ae632 mov rax, [rdx] ; +0x15, 0x1402ae635 mov rcx, rdx ; +0x18, 0x1402ae638 call qword ptr [rax+38h] ; +0x1b, 0x1402ae63b cmp eax, 1 ; +0x1e, 0x1402ae63e jnz loc_1402AE800 ; +0x21, 0x1402ae641 lea rax, [rsp+58h+var_28] ; +0x27, 0x1402ae647 mov [rsp+58h+arg_8], rax ; +0x2c, 0x1402ae64c mov dword ptr [rsp+58h+var_28+0Ch], 0 ; +0x31, 0x1402ae651 mov [rsp+58h+var_18], 0Bh ; +0x39, 0x1402ae659 mov [rsp+58h+var_10], 0Fh ; +0x42, 0x1402ae662 movsd xmm0, cs:qword_14057D980 ; +0x4b, 0x1402ae66b movsd qword ptr [rsp+58h+var_28], xmm0 ; +0x53, 0x1402ae673 movzx eax, cs:word_14057D988 ; +0x59, 0x1402ae679 mov word ptr [rsp+58h+var_28+8], ax ; +0x60, 0x1402ae680 movzx eax, cs:byte_14057D98A ; +0x65, 0x1402ae685 mov byte ptr [rsp+58h+var_28+0Ah], al ; +0x6c, 0x1402ae68c mov byte ptr [rsp+58h+var_28+0Bh], 0 ; +0x70, 0x1402ae690 mov rcx, cs:qword_1406C2E88 ; +0x75, 0x1402ae695 test rcx, rcx ; +0x7c, 0x1402ae69c jnz short loc_1402AE6D0 ; +0x7f, 0x1402ae69f mov ecx, 888h; Size ; +0x81, 0x1402ae6a1 call ??2@YAPEAX_K@Z; operator new(unsigned __int64) ; +0x86, 0x1402ae6a6 mov [rsp+58h+arg_10], rax ; +0x8b, 0x1402ae6ab mov rcx, rax ; +0x90, 0x1402ae6b0 call FMODAudioEngine__FMODAudioEngine ; +0x93, 0x1402ae6b3 nop ; +0x98, 0x1402ae6b8 mov cs:qword_1406C2E88, rax ; +0x99, 0x1402ae6b9 mov rdx, [rax] ; +0xa0, 0x1402ae6c0 mov rcx, rax ; +0xa3, 0x1402ae6c3 call qword ptr [rdx+48h] ; +0xa6, 0x1402ae6c6 mov rcx, cs:qword_1406C2E88 ; +0xa9, 0x1402ae6c9 movss xmm0, cs:dword_140622BA4 ; +0xb0, 0x1402ae6d0 movss [rsp+58h+var_38], xmm0 ; +0xb8, 0x1402ae6d8 xorps xmm3, xmm3 ; +0xbe, 0x1402ae6de movss xmm2, cs:flt_140622C24 ; +0xc1, 0x1402ae6e1 lea rdx, [rsp+58h+var_28] ; +0xc9, 0x1402ae6e9 call FMODAudioEngine__playEffect ; +0xce, 0x1402ae6ee mov dword ptr [rsp+58h+arg_8], 0FF000000h ; +0xd3, 0x1402ae6f3 mov eax, dword ptr [rsp+58h+arg_8] ; +0xdb, 0x1402ae6fb mov dword ptr [rsp+58h+arg_8], eax ; +0xdf, 0x1402ae6ff lea rcx, [rsp+58h+arg_8] ; +0xe3, 0x1402ae703 call cs:?create@CCLayerColor@cocos2d@@SAPEAV12@AEBU_ccColor4B@2@@Z; cocos2d::CCLayerColor::create(cocos2d::_ccColor4B const &) ; +0xe8, 0x1402ae708 mov r9, [rsi-1A0h] ; +0xee, 0x1402ae70e mov r8d, 3E8h ; +0xf5, 0x1402ae715 mov rdx, rax ; +0xfb, 0x1402ae71b lea rcx, [rsi-1A0h] ; +0xfe, 0x1402ae71e call qword ptr [r9+1B8h] ; +0x105, 0x1402ae725 mov rbx, cs:qword_1406C2E88 ; +0x10c, 0x1402ae72c test rbx, rbx ; +0x113, 0x1402ae733 jnz short loc_1402AE767 ; +0x116, 0x1402ae736 mov ecx, 888h; Size ; +0x118, 0x1402ae738 call ??2@YAPEAX_K@Z; operator new(unsigned __int64) ; +0x11d, 0x1402ae73d mov [rsp+58h+arg_8], rax ; +0x122, 0x1402ae742 mov rcx, rax ; +0x127, 0x1402ae747 call FMODAudioEngine__FMODAudioEngine ; +0x12a, 0x1402ae74a nop ; +0x12f, 0x1402ae74f mov cs:qword_1406C2E88, rax ; +0x130, 0x1402ae750 mov rdx, [rax] ; +0x137, 0x1402ae757 mov rcx, rax ; +0x13a, 0x1402ae75a call qword ptr [rdx+48h] ; +0x13d, 0x1402ae75d mov rbx, cs:qword_1406C2E88 ; +0x140, 0x1402ae760 cmp qword ptr [rbx+228h], 0 ; +0x147, 0x1402ae767 jz short loc_1402AE77E ; +0x14f, 0x1402ae76f mov rcx, [rbx+228h] ; +0x151, 0x1402ae771 call cs:?stop@ChannelControl@FMOD@@QEAA?AW4FMOD_RESULT@@XZ; FMOD::ChannelControl::stop(void) ; +0x158, 0x1402ae778 lea rcx, [rbx+428h] ; +0x15e, 0x1402ae77e call sub_14005E0D0 ; +0x165, 0x1402ae785 lea rcx, [rbx+468h] ; +0x16a, 0x1402ae78a call sub_14005E0D0 ; +0x171, 0x1402ae791 lea rcx, [rbx+4A8h] ; +0x176, 0x1402ae796 call sub_14005E0D0 ; +0x17d, 0x1402ae79d call cs:?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x182, 0x1402ae7a2 mov r8, [rax] ; +0x188, 0x1402ae7a8 mov rcx, rax ; +0x18b, 0x1402ae7ab call qword ptr [r8+90h] ; +0x18e, 0x1402ae7ae mov rcx, rax ; +0x195, 0x1402ae7b5 lea rdx, [rsi-1A0h] ; +0x198, 0x1402ae7b8 call cs:?unregisterForcePrio@CCTouchDispatcher@cocos2d@@QEAAXPEAVCCObject@2@@Z; cocos2d::CCTouchDispatcher::unregisterForcePrio(cocos2d::CCObject *) ; +0x19f, 0x1402ae7bf call GJGarageLayer__scene ; +0x1a5, 0x1402ae7c5 mov rdx, rax ; +0x1aa, 0x1402ae7ca movss xmm0, cs:flt_140622C24 ; +0x1ad, 0x1402ae7cd call cs:?create@CCTransitionFade@cocos2d@@SAPEAV12@MPEAVCCScene@2@@Z; cocos2d::CCTransitionFade::create(float,cocos2d::CCScene *) ; +0x1b5, 0x1402ae7d5 mov rbx, rax ; +0x1bb, 0x1402ae7db call cs:?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x1be, 0x1402ae7de mov rcx, rax ; +0x1c4, 0x1402ae7e4 mov rdx, rbx ; +0x1c7, 0x1402ae7e7 mov rbx, [rsp+58h+arg_0] ; +0x1ca, 0x1402ae7ea mov rsi, [rsp+58h+arg_18] ; +0x1cf, 0x1402ae7ef add rsp, 50h ; +0x1d4, 0x1402ae7f4 pop rdi ; +0x1d8, 0x1402ae7f8 jmp cs:?replaceScene@CCDirector@cocos2d@@QEAA_NPEAVCCScene@2@@Z; cocos2d::CCDirector::replaceScene(cocos2d::CCScene *) ; +0x1d9, 0x1402ae7f9 mov rax, [rbx] ; +0x1e0, 0x1402ae800 mov rcx, rbx ; +0x1e3, 0x1402ae803 call qword ptr [rax+38h] ; +0x1e6, 0x1402ae806 cmp eax, 2 ; +0x1e9, 0x1402ae809 jnz loc_1402AE93E ; +0x1ec, 0x1402ae80c lea rax, [rsp+58h+var_28] ; +0x1f2, 0x1402ae812 mov [rsp+58h+arg_8], rax ; +0x1f7, 0x1402ae817 xorps xmm0, xmm0 ; +0x1fc, 0x1402ae81c movups [rsp+58h+var_28], xmm0 ; +0x1ff, 0x1402ae81f mov [rsp+58h+var_18], 4 ; +0x204, 0x1402ae824 mov [rsp+58h+var_10], 0Fh ; +0x20d, 0x1402ae82d mov eax, cs:dword_1405628D0 ; +0x216, 0x1402ae836 mov dword ptr [rsp+58h+var_28], eax ; +0x21c, 0x1402ae83c mov byte ptr [rsp+58h+var_28+4], 0 ; +0x220, 0x1402ae840 mov rcx, cs:qword_1406C2EE8 ; +0x225, 0x1402ae845 test rcx, rcx ; +0x22c, 0x1402ae84c jnz short loc_1402AE880 ; +0x22f, 0x1402ae84f mov ecx, 3E0h; Size ; +0x231, 0x1402ae851 call ??2@YAPEAX_K@Z; operator new(unsigned __int64) ; +0x236, 0x1402ae856 mov [rsp+58h+arg_10], rax ; +0x23b, 0x1402ae85b mov rcx, rax ; +0x240, 0x1402ae860 call sub_1401D0AE0 ; +0x243, 0x1402ae863 nop ; +0x248, 0x1402ae868 mov cs:qword_1406C2EE8, rax ; +0x249, 0x1402ae869 mov rdx, [rax] ; +0x250, 0x1402ae870 mov rcx, rax ; +0x253, 0x1402ae873 call qword ptr [rdx+48h] ; +0x256, 0x1402ae876 mov rcx, cs:qword_1406C2EE8 ; +0x259, 0x1402ae879 lea rdx, [rsp+58h+var_28] ; +0x260, 0x1402ae880 call GameStatsManager__unlockSpecialChest ; +0x265, 0x1402ae885 mov rdi, rax ; +0x26a, 0x1402ae88a test rax, rax ; +0x26d, 0x1402ae88d jz loc_1402AE93E ; +0x270, 0x1402ae890 xor edx, edx ; +0x276, 0x1402ae896 mov ecx, [rax+40h] ; +0x278, 0x1402ae898 call RewardUnlockLayer__create ; +0x27b, 0x1402ae89b mov rbx, rax ; +0x280, 0x1402ae8a0 lea rcx, [rsi-1A0h] ; +0x283, 0x1402ae8a3 mov r9, [rcx] ; +0x28a, 0x1402ae8aa mov r8d, 64h ; 'd' ; +0x28d, 0x1402ae8ad mov rdx, rax ; +0x293, 0x1402ae8b3 call qword ptr [r9+1B8h] ; +0x296, 0x1402ae8b6 mov rcx, [rbx+2A0h] ; +0x29d, 0x1402ae8bd test rcx, rcx ; +0x2a4, 0x1402ae8c4 jz short loc_1402AE8CF ; +0x2a7, 0x1402ae8c7 call cs:?release@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::release(void) ; +0x2a9, 0x1402ae8c9 mov [rbx+2A0h], rdi ; +0x2af, 0x1402ae8cf mov rcx, rdi ; +0x2b6, 0x1402ae8d6 call cs:?retain@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::retain(void) ; +0x2b9, 0x1402ae8d9 cmp byte ptr [rdi+50h], 0 ; +0x2bf, 0x1402ae8df jz short loc_1402AE8F0 ; +0x2c3, 0x1402ae8e3 mov eax, [rbx+298h] ; +0x2c5, 0x1402ae8e5 cmp [rdi+40h], eax ; +0x2cb, 0x1402ae8eb jnz short loc_1402AE93E ; +0x2ce, 0x1402ae8ee mov rcx, [rbx+2B0h] ; +0x2d0, 0x1402ae8f0 mov rax, [rcx] ; +0x2d7, 0x1402ae8f7 xor edx, edx ; +0x2da, 0x1402ae8fa call qword ptr [rax+140h] ; +0x2dc, 0x1402ae8fc mov rcx, [rbx+2B0h] ; +0x2e2, 0x1402ae902 mov rax, [rcx] ; +0x2e9, 0x1402ae909 xor edx, edx ; +0x2ec, 0x1402ae90c call qword ptr [rax+398h] ; +0x2ee, 0x1402ae90e mov rcx, [rbx+2A8h] ; +0x2f4, 0x1402ae914 mov rax, [rcx] ; +0x2fb, 0x1402ae91b xor edx, edx ; +0x2fe, 0x1402ae91e call qword ptr [rax+140h] ; +0x300, 0x1402ae920 mov byte ptr [rbx+29Ch], 1 ; +0x306, 0x1402ae926 cmp byte ptr [rbx+29Dh], 0 ; +0x30d, 0x1402ae92d jz short loc_1402AE93E ; +0x314, 0x1402ae934 mov rcx, rbx ; +0x316, 0x1402ae936 call RewardUnlockLayer__playRewardEffect ; +0x319, 0x1402ae939 mov rbx, [rsp+58h+arg_0] ; +0x31e, 0x1402ae93e mov rsi, [rsp+58h+arg_18] ; +0x323, 0x1402ae943 add rsp, 50h ; +0x328, 0x1402ae948 pop rdi ; +0x32c, 0x1402ae94c retn ; +0x32d, 0x1402ae94d