; ; GJShopLayer::onExit from 0x1402ab820 to 0x1402aba9b (635 bytes) ; ; 2 xrefs: ; > @ 0x14057e0b0 ; > @ 0x1406d2210 ; ; 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_8], rbx ; +0x0, 0x1402ab820 mov [rsp+arg_10], rbp ; +0x5, 0x1402ab825 mov [rsp+arg_18], rsi ; +0xa, 0x1402ab82a push rdi ; +0xf, 0x1402ab82f push r12 ; +0x10, 0x1402ab830 push r13 ; +0x12, 0x1402ab832 push r14 ; +0x14, 0x1402ab834 push r15 ; +0x16, 0x1402ab836 sub rsp, 50h ; +0x18, 0x1402ab838 mov rax, cs:__security_cookie ; +0x1c, 0x1402ab83c xor rax, rsp ; +0x23, 0x1402ab843 mov [rsp+78h+var_30], rax ; +0x26, 0x1402ab846 mov rsi, rcx ; +0x2b, 0x1402ab84b call cs:__imp_?onExit@CCLayer@cocos2d@@UEAAXXZ; cocos2d::CCLayer::onExit(void) ; +0x2e, 0x1402ab84e add rsi, 1D0h ; +0x34, 0x1402ab854 mov r15, [rsi+10h] ; +0x3b, 0x1402ab85b mov r13, 7FFFFFFFFFFFFFFFh ; +0x3f, 0x1402ab85f mov rax, r13 ; +0x49, 0x1402ab869 sub rax, r15 ; +0x4c, 0x1402ab86c cmp rax, 6 ; +0x4f, 0x1402ab86f jb loc_1402ABA95 ; +0x53, 0x1402ab873 mov r12, rsi ; +0x59, 0x1402ab879 cmp qword ptr [rsi+18h], 0Fh ; +0x5c, 0x1402ab87c jbe short loc_1402AB886 ; +0x61, 0x1402ab881 mov r12, [rsi] ; +0x63, 0x1402ab883 xorps xmm0, xmm0 ; +0x66, 0x1402ab886 movups xmmword ptr [rsp+78h+Block], xmm0 ; +0x69, 0x1402ab889 xorps xmm1, xmm1 ; +0x6e, 0x1402ab88e movdqu [rsp+78h+var_40], xmm1 ; +0x71, 0x1402ab891 lea rbp, [r15+6] ; +0x77, 0x1402ab897 mov edi, 0Fh ; +0x7b, 0x1402ab89b mov ebx, edi ; +0x80, 0x1402ab8a0 lea r14, [rsp+78h+Block] ; +0x82, 0x1402ab8a2 lea eax, [rdi+7] ; +0x87, 0x1402ab8a7 cmp rbp, rbx ; +0x8a, 0x1402ab8aa jbe short loc_1402AB8D7 ; +0x8d, 0x1402ab8ad mov rbx, rbp ; +0x8f, 0x1402ab8af or rbx, rdi ; +0x92, 0x1402ab8b2 cmp rbx, r13 ; +0x95, 0x1402ab8b5 jbe short loc_1402AB8BF ; +0x98, 0x1402ab8b8 mov rbx, r13 ; +0x9a, 0x1402ab8ba jmp short loc_1402AB8C6 ; +0x9d, 0x1402ab8bd cmp rbx, rax ; +0x9f, 0x1402ab8bf cmovb rbx, rax ; +0xa2, 0x1402ab8c2 lea rcx, [rbx+1] ; +0xa6, 0x1402ab8c6 call sub_14003AA10 ; +0xaa, 0x1402ab8ca mov r14, rax ; +0xaf, 0x1402ab8cf mov [rsp+78h+Block], rax ; +0xb2, 0x1402ab8d2 mov qword ptr [rsp+78h+var_40], rbp ; +0xb7, 0x1402ab8d7 mov qword ptr [rsp+78h+var_40+8], rbx ; +0xbc, 0x1402ab8dc mov r8, r15; Size ; +0xc1, 0x1402ab8e1 mov rdx, r12; Src ; +0xc4, 0x1402ab8e4 mov rcx, r14; void * ; +0xc7, 0x1402ab8e7 call memcpy ; +0xca, 0x1402ab8ea mov ecx, dword ptr cs:aPlist; ".plist" ; +0xcf, 0x1402ab8ef mov [r14+r15], ecx ; +0xd5, 0x1402ab8f5 movzx eax, word ptr cs:aPlist+4; "st" ; +0xd9, 0x1402ab8f9 mov [r14+r15+4], ax ; +0xe0, 0x1402ab900 mov byte ptr [r14+rbp], 0 ; +0xe6, 0x1402ab906 lea rbx, [rsp+78h+Block] ; +0xeb, 0x1402ab90b cmp qword ptr [rsp+78h+var_40+8], 0Fh ; +0xf0, 0x1402ab910 cmova rbx, [rsp+78h+Block] ; +0xf6, 0x1402ab916 call cs:?sharedSpriteFrameCache@CCSpriteFrameCache@cocos2d@@SAPEAV12@XZ; cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(void) ; +0xfc, 0x1402ab91c mov rcx, rax ; +0x102, 0x1402ab922 mov rdx, rbx ; +0x105, 0x1402ab925 call cs:?removeSpriteFramesFromFile@CCSpriteFrameCache@cocos2d@@QEAAXPEBD@Z; cocos2d::CCSpriteFrameCache::removeSpriteFramesFromFile(char const *) ; +0x108, 0x1402ab928 nop ; +0x10e, 0x1402ab92e mov rdx, qword ptr [rsp+78h+var_40+8] ; +0x10f, 0x1402ab92f cmp rdx, 0Fh ; +0x114, 0x1402ab934 jbe short loc_1402AB96F ; +0x118, 0x1402ab938 inc rdx ; +0x11a, 0x1402ab93a mov rcx, [rsp+78h+Block]; Block ; +0x11d, 0x1402ab93d mov rax, rcx ; +0x122, 0x1402ab942 cmp rdx, 1000h ; +0x125, 0x1402ab945 jb short loc_1402AB96A ; +0x12c, 0x1402ab94c add rdx, 27h ; ''' ; +0x12e, 0x1402ab94e mov rcx, [rcx-8] ; +0x132, 0x1402ab952 sub rax, rcx ; +0x136, 0x1402ab956 add rax, 0FFFFFFFFFFFFFFF8h ; +0x139, 0x1402ab959 cmp rax, 1Fh ; +0x13d, 0x1402ab95d jbe short loc_1402AB96A ; +0x141, 0x1402ab961 call cs:_invalid_parameter_noinfo_noreturn ; +0x143, 0x1402ab963 align 2 ; +0x149, 0x1402ab969 call j_j_free ; +0x14a, 0x1402ab96a mov r14, [rsi+10h] ; +0x14f, 0x1402ab96f mov rax, r13 ; +0x153, 0x1402ab973 sub rax, r14 ; +0x156, 0x1402ab976 cmp rax, 4 ; +0x159, 0x1402ab979 jb loc_1402ABA8F ; +0x15d, 0x1402ab97d cmp qword ptr [rsi+18h], 0Fh ; +0x163, 0x1402ab983 jbe short loc_1402AB98D ; +0x168, 0x1402ab988 mov rsi, [rsi] ; +0x16a, 0x1402ab98a xorps xmm0, xmm0 ; +0x16d, 0x1402ab98d movups xmmword ptr [rsp+78h+Block], xmm0 ; +0x170, 0x1402ab990 xorps xmm1, xmm1 ; +0x175, 0x1402ab995 movdqu [rsp+78h+var_40], xmm1 ; +0x178, 0x1402ab998 lea rbp, [r14+4] ; +0x17e, 0x1402ab99e lea rbx, [rsp+78h+Block] ; +0x182, 0x1402ab9a2 cmp rbp, 0Fh ; +0x187, 0x1402ab9a7 jbe short loc_1402AB9DC ; +0x18b, 0x1402ab9ab mov rdi, rbp ; +0x18d, 0x1402ab9ad or rdi, 0Fh ; +0x190, 0x1402ab9b0 cmp rdi, r13 ; +0x194, 0x1402ab9b4 jbe short loc_1402AB9BE ; +0x197, 0x1402ab9b7 mov rdi, r13 ; +0x199, 0x1402ab9b9 jmp short loc_1402AB9CB ; +0x19c, 0x1402ab9bc cmp rdi, 16h ; +0x19e, 0x1402ab9be mov eax, 16h ; +0x1a2, 0x1402ab9c2 cmovb rdi, rax ; +0x1a7, 0x1402ab9c7 lea rcx, [rdi+1] ; +0x1ab, 0x1402ab9cb call sub_14003AA10 ; +0x1af, 0x1402ab9cf mov rbx, rax ; +0x1b4, 0x1402ab9d4 mov [rsp+78h+Block], rax ; +0x1b7, 0x1402ab9d7 mov qword ptr [rsp+78h+var_40], rbp ; +0x1bc, 0x1402ab9dc mov qword ptr [rsp+78h+var_40+8], rdi ; +0x1c1, 0x1402ab9e1 mov r8, r14; Size ; +0x1c6, 0x1402ab9e6 mov rdx, rsi; Src ; +0x1c9, 0x1402ab9e9 mov rcx, rbx; void * ; +0x1cc, 0x1402ab9ec call memcpy ; +0x1cf, 0x1402ab9ef mov dword ptr [rbx+r14], 676E702Eh ; +0x1d4, 0x1402ab9f4 mov byte ptr [rbx+rbp], 0 ; +0x1dc, 0x1402ab9fc lea rbx, [rsp+78h+Block] ; +0x1e0, 0x1402aba00 cmp qword ptr [rsp+78h+var_40+8], 0Fh ; +0x1e5, 0x1402aba05 cmova rbx, [rsp+78h+Block] ; +0x1eb, 0x1402aba0b call cs:?sharedTextureCache@CCTextureCache@cocos2d@@SAPEAV12@XZ; cocos2d::CCTextureCache::sharedTextureCache(void) ; +0x1f1, 0x1402aba11 mov rcx, rax ; +0x1f7, 0x1402aba17 mov rdx, rbx ; +0x1fa, 0x1402aba1a call cs:?removeTextureForKey@CCTextureCache@cocos2d@@QEAAXPEBD@Z; cocos2d::CCTextureCache::removeTextureForKey(char const *) ; +0x1fd, 0x1402aba1d nop ; +0x203, 0x1402aba23 mov rdx, qword ptr [rsp+78h+var_40+8] ; +0x204, 0x1402aba24 cmp rdx, 0Fh ; +0x209, 0x1402aba29 jbe short loc_1402ABA64 ; +0x20d, 0x1402aba2d inc rdx ; +0x20f, 0x1402aba2f mov rcx, [rsp+78h+Block]; Block ; +0x212, 0x1402aba32 mov rax, rcx ; +0x217, 0x1402aba37 cmp rdx, 1000h ; +0x21a, 0x1402aba3a jb short loc_1402ABA5F ; +0x221, 0x1402aba41 add rdx, 27h ; ''' ; +0x223, 0x1402aba43 mov rcx, [rcx-8] ; +0x227, 0x1402aba47 sub rax, rcx ; +0x22b, 0x1402aba4b add rax, 0FFFFFFFFFFFFFFF8h ; +0x22e, 0x1402aba4e cmp rax, 1Fh ; +0x232, 0x1402aba52 jbe short loc_1402ABA5F ; +0x236, 0x1402aba56 call cs:_invalid_parameter_noinfo_noreturn ; +0x238, 0x1402aba58 db 0CCh ; +0x23e, 0x1402aba5e call j_j_free ; +0x23f, 0x1402aba5f mov rcx, [rsp+78h+var_30] ; +0x244, 0x1402aba64 xor rcx, rsp; StackCookie ; +0x249, 0x1402aba69 call __security_check_cookie ; +0x24c, 0x1402aba6c lea r11, [rsp+78h+var_28] ; +0x251, 0x1402aba71 mov rbx, [r11+38h] ; +0x256, 0x1402aba76 mov rbp, [r11+40h] ; +0x25a, 0x1402aba7a mov rsi, [r11+48h] ; +0x25e, 0x1402aba7e mov rsp, r11 ; +0x262, 0x1402aba82 pop r15 ; +0x265, 0x1402aba85 pop r14 ; +0x267, 0x1402aba87 pop r13 ; +0x269, 0x1402aba89 pop r12 ; +0x26b, 0x1402aba8b pop rdi ; +0x26d, 0x1402aba8d retn ; +0x26e, 0x1402aba8e call sub_140007B50 ; +0x26f, 0x1402aba8f db 0CCh ; +0x274, 0x1402aba94 call sub_140007B50 ; +0x275, 0x1402aba95 db 0CCh ; +0x27a, 0x1402aba9a