; ; CCAnimatedSprite::initWithType from 0x140043a60 to 0x140043ccd (621 bytes) ; ; 2 xrefs: ; > GJShopLayer::init @ 0x1403b08a0 ; > @ 0x14090f734 ; ; This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True! ; ; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA ; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings ; Generated at Fri, 27 Nov 2026 11:25:30 +0000 ; mov [rsp+arg_18], rbx ; +0x0, 0x140043a60 push rbp ; +0x5, 0x140043a65 push rsi ; +0x6, 0x140043a66 push rdi ; +0x7, 0x140043a67 sub rsp, 90h ; +0x8, 0x140043a68 movaps [rsp+0A8h+var_28], xmm6 ; +0xf, 0x140043a6f mov rax, cs:__security_cookie ; +0x17, 0x140043a77 xor rax, rsp ; +0x1e, 0x140043a7e mov [rsp+0A8h+var_38], rax ; +0x21, 0x140043a81 movzx ebp, r9b ; +0x26, 0x140043a86 mov rbx, r8 ; +0x2a, 0x140043a8a mov rsi, rdx ; +0x2d, 0x140043a8d mov rdi, rcx ; +0x30, 0x140043a90 test r8, r8 ; +0x33, 0x140043a93 jnz loc_140043C47 ; +0x36, 0x140043a96 call ObjectManager__instance ; +0x3c, 0x140043a9c mov rcx, rax ; +0x41, 0x140043aa1 mov rdx, rsi ; +0x44, 0x140043aa4 call ObjectManager__getDefinition ; +0x47, 0x140043aa7 mov rcx, rax ; +0x4c, 0x140043aac xorps xmm0, xmm0 ; +0x4f, 0x140043aaf movups xmmword ptr [rsp+0A8h+Block], xmm0 ; +0x52, 0x140043ab2 movdqa xmm1, cs:xmmword_1408365C0 ; +0x57, 0x140043ab7 movdqu [rsp+0A8h+var_68], xmm1 ; +0x5f, 0x140043abf movsd xmm0, cs:qword_140706FF0 ; +0x65, 0x140043ac5 movsd [rsp+0A8h+Block], xmm0 ; +0x6d, 0x140043acd movzx eax, cs:word_140706FF8 ; +0x73, 0x140043ad3 mov word ptr [rsp+0A8h+Block+8], ax ; +0x7a, 0x140043ada movzx eax, cs:byte_140706FFA ; +0x7f, 0x140043adf mov byte ptr [rsp+0A8h+Block+0Ah], al ; +0x86, 0x140043ae6 mov byte ptr [rsp+0A8h+Block+0Bh], bl ; +0x8a, 0x140043aea lea rdx, [rsp+0A8h+Block] ; +0x8e, 0x140043aee call cs:?valueForKey@CCDictionary@cocos2d@@QEAAPEBVCCString@2@AEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z; cocos2d::CCDictionary::valueForKey(std::string const &) ; +0x93, 0x140043af3 mov rcx, rax ; +0x99, 0x140043af9 call cs:?getCString@CCString@cocos2d@@QEBAPEBDXZ; cocos2d::CCString::getCString(void) ; +0x9c, 0x140043afc xorps xmm0, xmm0 ; +0xa2, 0x140043b02 movups xmmword ptr [rsp+0A8h+Src], xmm0 ; +0xa5, 0x140043b05 xorps xmm1, xmm1 ; +0xaa, 0x140043b0a movdqu [rsp+0A8h+var_48], xmm1 ; +0xad, 0x140043b0d mov r8, 0FFFFFFFFFFFFFFFFh ; +0xb3, 0x140043b13 nop word ptr [rax+rax+00h] ; +0xba, 0x140043b1a inc r8 ; +0xc0, 0x140043b20 cmp byte ptr [rax+r8], 0 ; +0xc3, 0x140043b23 jnz short loc_140043B20 ; +0xc8, 0x140043b28 mov rdx, rax ; +0xca, 0x140043b2a lea rcx, [rsp+0A8h+Src] ; +0xcd, 0x140043b2d call sub_14003D230 ; +0xd2, 0x140043b32 nop ; +0xd7, 0x140043b37 mov rdx, qword ptr [rsp+0A8h+var_68+8] ; +0xd8, 0x140043b38 cmp rdx, 0Fh ; +0xdd, 0x140043b3d jbe short loc_140043B8B ; +0xe1, 0x140043b41 inc rdx ; +0xe3, 0x140043b43 mov rcx, [rsp+0A8h+Block]; Block ; +0xe6, 0x140043b46 mov rax, rcx ; +0xeb, 0x140043b4b cmp rdx, 1000h ; +0xee, 0x140043b4e jb short loc_140043B86 ; +0xf5, 0x140043b55 add rdx, 27h ; ''' ; +0xf7, 0x140043b57 mov rcx, [rcx-8] ; +0xfb, 0x140043b5b sub rax, rcx ; +0xff, 0x140043b5f sub rax, 8 ; +0x102, 0x140043b62 cmp rax, 1Fh ; +0x106, 0x140043b66 jbe short loc_140043B86 ; +0x10a, 0x140043b6a mov [rsp+0A8h+Reserved], 0; Reserved ; +0x10c, 0x140043b6c xor r9d, r9d; LineNo ; +0x115, 0x140043b75 xor r8d, r8d; FileName ; +0x118, 0x140043b78 xor edx, edx; FunctionName ; +0x11b, 0x140043b7b xor ecx, ecx; Expression ; +0x11d, 0x140043b7d call cs:_invoke_watson ; +0x11f, 0x140043b7f align 2 ; +0x125, 0x140043b85 call j_j_free ; +0x126, 0x140043b86 movdqa xmm6, cs:Size ; +0x12b, 0x140043b8b movdqu [rsp+0A8h+var_68], xmm6 ; +0x133, 0x140043b93 mov byte ptr [rsp+0A8h+Block], 0 ; +0x139, 0x140043b99 mov r8d, 4; Size ; +0x13e, 0x140043b9e lea rdx, aPng; ".png" ; +0x144, 0x140043ba4 lea rcx, [rsp+0A8h+Src]; Src ; +0x14b, 0x140043bab call sub_140044D80 ; +0x150, 0x140043bb0 lea rbx, [rsp+0A8h+Src] ; +0x155, 0x140043bb5 cmp qword ptr [rsp+0A8h+var_48+8], 0Fh ; +0x15a, 0x140043bba cmova rbx, [rsp+0A8h+Src] ; +0x160, 0x140043bc0 call cs:?sharedTextureCache@CCTextureCache@cocos2d@@SAPEAV12@XZ; cocos2d::CCTextureCache::sharedTextureCache(void) ; +0x166, 0x140043bc6 mov rcx, rax ; +0x16c, 0x140043bcc xor r8d, r8d ; +0x16f, 0x140043bcf mov rdx, rbx ; +0x172, 0x140043bd2 call cs:?addImage@CCTextureCache@cocos2d@@QEAAPEAVCCTexture2D@2@PEBD_N@Z; cocos2d::CCTextureCache::addImage(char const *,bool) ; +0x175, 0x140043bd5 mov rbx, rax ; +0x17b, 0x140043bdb mov rdx, qword ptr [rsp+0A8h+var_48+8] ; +0x17e, 0x140043bde cmp rdx, 0Fh ; +0x183, 0x140043be3 jbe short loc_140043C3C ; +0x187, 0x140043be7 inc rdx ; +0x189, 0x140043be9 mov r8, [rsp+0A8h+Src] ; +0x18c, 0x140043bec mov rcx, r8 ; +0x191, 0x140043bf1 cmp rdx, 1000h ; +0x194, 0x140043bf4 jb short loc_140043C2C ; +0x19b, 0x140043bfb add rdx, 27h ; ''' ; +0x19d, 0x140043bfd mov r8, [r8-8] ; +0x1a1, 0x140043c01 sub rcx, r8 ; +0x1a5, 0x140043c05 sub rcx, 8 ; +0x1a8, 0x140043c08 cmp rcx, 1Fh ; +0x1ac, 0x140043c0c jbe short loc_140043C2C ; +0x1b0, 0x140043c10 mov [rsp+0A8h+Reserved], 0; Reserved ; +0x1b2, 0x140043c12 xor r9d, r9d; LineNo ; +0x1bb, 0x140043c1b xor r8d, r8d; FileName ; +0x1be, 0x140043c1e xor edx, edx; FunctionName ; +0x1c1, 0x140043c21 xor ecx, ecx; Expression ; +0x1c3, 0x140043c23 call cs:_invoke_watson ; +0x1c5, 0x140043c25 align 4 ; +0x1cb, 0x140043c2b mov rcx, r8; Block ; +0x1cc, 0x140043c2c call j_j_free ; +0x1cf, 0x140043c2f movdqa xmm6, cs:Size ; +0x1d4, 0x140043c34 movdqu [rsp+0A8h+var_48], xmm6 ; +0x1dc, 0x140043c3c mov byte ptr [rsp+0A8h+Src], 0 ; +0x1e2, 0x140043c42 xorps xmm1, xmm1 ; +0x1e7, 0x140043c47 movss dword ptr [rsp+0A8h+Reserved], xmm1 ; +0x1ea, 0x140043c4a xorps xmm3, xmm3 ; +0x1f0, 0x140043c50 xorps xmm2, xmm2 ; +0x1f3, 0x140043c53 lea rcx, [rsp+0A8h+Block] ; +0x1f6, 0x140043c56 call cs:??0CCRect@cocos2d@@QEAA@MMMM@Z; cocos2d::CCRect::CCRect(float,float,float,float) ; +0x1fb, 0x140043c5b mov r8, rax ; +0x201, 0x140043c61 mov rdx, rbx ; +0x204, 0x140043c64 mov rcx, rdi ; +0x207, 0x140043c67 call cs:__imp_?initWithTexture@CCSprite@cocos2d@@UEAA_NPEAVCCTexture2D@2@AEBVCCRect@2@@Z; cocos2d::CCSprite::initWithTexture(cocos2d::CCTexture2D *,cocos2d::CCRect const &) ; +0x20a, 0x140043c6a test al, al ; +0x210, 0x140043c70 jz short loc_140043CA5 ; +0x212, 0x140043c72 mov byte ptr [rdi+22Fh], 1 ; +0x214, 0x140043c74 lea rcx, [rdi+258h]; void * ; +0x21b, 0x140043c7b xor r8d, r8d; Size ; +0x222, 0x140043c82 lea rdx, byte_1406ED6E0; Src ; +0x225, 0x140043c85 call sub_1400405A0 ; +0x22c, 0x140043c8c movzx r9d, bpl ; +0x231, 0x140043c91 mov r8, rbx ; +0x235, 0x140043c95 mov rdx, rsi ; +0x238, 0x140043c98 mov rcx, rdi ; +0x23b, 0x140043c9b call CCAnimatedSprite__loadType ; +0x23e, 0x140043c9e mov al, 1 ; +0x243, 0x140043ca3 mov rcx, [rsp+0A8h+var_38] ; +0x245, 0x140043ca5 xor rcx, rsp; StackCookie ; +0x24a, 0x140043caa call __security_check_cookie ; +0x24d, 0x140043cad mov rbx, [rsp+0A8h+arg_18] ; +0x252, 0x140043cb2 movaps xmm6, [rsp+0A8h+var_28] ; +0x25a, 0x140043cba add rsp, 90h ; +0x262, 0x140043cc2 pop rdi ; +0x269, 0x140043cc9 pop rsi ; +0x26a, 0x140043cca pop rbp ; +0x26b, 0x140043ccb retn ; +0x26c, 0x140043ccc