; ; AnimatedShopKeeper::playReactAnimation from 0x1402afbe0 to 0x1402afe6b (651 bytes) ; ; 2 xrefs: ; > GJShopLayer::ccTouchBegan @ 0x1402aeb39 ; > @ 0x1406d22b8 ; ; 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-8+arg_8], rbx ; +0x0, 0x1402afbe0 mov [rsp-8+arg_10], rsi ; +0x5, 0x1402afbe5 mov [rsp-8+arg_18], rdi ; +0xa, 0x1402afbea push rbp ; +0xf, 0x1402afbef push r12 ; +0x10, 0x1402afbf0 push r13 ; +0x12, 0x1402afbf2 push r14 ; +0x14, 0x1402afbf4 push r15 ; +0x16, 0x1402afbf6 lea rbp, [rsp-37h] ; +0x18, 0x1402afbf8 sub rsp, 0B0h ; +0x1d, 0x1402afbfd mov rax, cs:__security_cookie ; +0x24, 0x1402afc04 xor rax, rsp ; +0x2b, 0x1402afc0b mov [rbp+57h+var_30], rax ; +0x2e, 0x1402afc0e mov rdi, rcx ; +0x32, 0x1402afc12 cmp byte ptr [rcx+2F5h], 0 ; +0x35, 0x1402afc15 jnz loc_1402AFE38 ; +0x3c, 0x1402afc1c mov edx, [rcx+2FCh] ; +0x42, 0x1402afc22 inc edx ; +0x48, 0x1402afc28 mov [rcx+2FCh], edx ; +0x4a, 0x1402afc2a cmp edx, 3 ; +0x50, 0x1402afc30 jle short loc_1402AFC40 ; +0x53, 0x1402afc33 mov edx, 1 ; +0x55, 0x1402afc35 mov [rcx+2FCh], edx ; +0x5a, 0x1402afc3a lea rcx, aGrunt0IOgg; "grunt0%i.ogg" ; +0x60, 0x1402afc40 call cs:?createWithFormat@CCString@cocos2d@@SAPEAV12@PEBDZZ; cocos2d::CCString::createWithFormat(char const *,...) ; +0x67, 0x1402afc47 mov rcx, rax ; +0x6d, 0x1402afc4d call cs:?getCString@CCString@cocos2d@@QEBAPEBDXZ; cocos2d::CCString::getCString(void) ; +0x70, 0x1402afc50 xorps xmm0, xmm0 ; +0x76, 0x1402afc56 movups xmmword ptr [rbp+57h+Src], xmm0 ; +0x79, 0x1402afc59 xor r12d, r12d ; +0x7d, 0x1402afc5d mov [rbp+57h+var_40], r12 ; +0x80, 0x1402afc60 mov [rbp+57h+var_38], r12 ; +0x84, 0x1402afc64 mov r8, 0FFFFFFFFFFFFFFFFh ; +0x88, 0x1402afc68 nop ; +0x8f, 0x1402afc6f inc r8 ; +0x90, 0x1402afc70 cmp [rax+r8], r12b ; +0x93, 0x1402afc73 jnz short loc_1402AFC70 ; +0x97, 0x1402afc77 mov rdx, rax ; +0x99, 0x1402afc79 lea rcx, [rbp+57h+Src] ; +0x9c, 0x1402afc7c call sub_14003A930 ; +0xa0, 0x1402afc80 nop ; +0xa5, 0x1402afc85 lea rax, [rbp+57h+var_A0] ; +0xa6, 0x1402afc86 mov [rbp+57h+var_78], rax ; +0xaa, 0x1402afc8a xorps xmm0, xmm0 ; +0xae, 0x1402afc8e movups [rbp+57h+var_A0], xmm0 ; +0xb1, 0x1402afc91 mov [rbp+57h+var_90], r12 ; +0xb5, 0x1402afc95 mov [rbp+57h+var_88], r12 ; +0xb9, 0x1402afc99 lea r15, [rbp+57h+Src] ; +0xbd, 0x1402afc9d mov r14, [rbp+57h+Src] ; +0xc1, 0x1402afca1 mov r13, [rbp+57h+var_38] ; +0xc5, 0x1402afca5 cmp r13, 0Fh ; +0xc9, 0x1402afca9 cmova r15, r14 ; +0xcd, 0x1402afcad mov rbx, 7FFFFFFFFFFFFFFFh ; +0xd1, 0x1402afcb1 mov rsi, [rbp+57h+var_40] ; +0xdb, 0x1402afcbb cmp rsi, rbx ; +0xdf, 0x1402afcbf ja loc_1402AFE65 ; +0xe2, 0x1402afcc2 mov [rbp+57h+var_88], 0Fh ; +0xe8, 0x1402afcc8 cmp rsi, 0Fh ; +0xf0, 0x1402afcd0 ja short loc_1402AFCE4 ; +0xf4, 0x1402afcd4 mov [rbp+57h+var_90], rsi ; +0xf6, 0x1402afcd6 movups xmm0, xmmword ptr [r15] ; +0xfa, 0x1402afcda movups [rbp+57h+var_A0], xmm0 ; +0xfe, 0x1402afcde jmp short loc_1402AFD24 ; +0x102, 0x1402afce2 mov rax, rsi ; +0x104, 0x1402afce4 or rax, 0Fh ; +0x107, 0x1402afce7 cmp rax, rbx ; +0x10b, 0x1402afceb ja short loc_1402AFCFF ; +0x10e, 0x1402afcee mov rbx, rax ; +0x110, 0x1402afcf0 mov ecx, 16h ; +0x113, 0x1402afcf3 cmp rax, rcx ; +0x118, 0x1402afcf8 cmovb rbx, rcx ; +0x11b, 0x1402afcfb lea rcx, [rbx+1] ; +0x11f, 0x1402afcff call sub_14003AA10 ; +0x123, 0x1402afd03 mov qword ptr [rbp+57h+var_A0], rax ; +0x128, 0x1402afd08 mov [rbp+57h+var_90], rsi ; +0x12c, 0x1402afd0c mov [rbp+57h+var_88], rbx ; +0x130, 0x1402afd10 lea r8, [rsi+1]; Size ; +0x134, 0x1402afd14 mov rdx, r15; Src ; +0x138, 0x1402afd18 mov rcx, rax; void * ; +0x13b, 0x1402afd1b call memcpy ; +0x13e, 0x1402afd1e nop ; +0x143, 0x1402afd23 mov rcx, cs:qword_1406C2E88 ; +0x144, 0x1402afd24 test rcx, rcx ; +0x14b, 0x1402afd2b jnz short loc_1402AFD5E ; +0x14e, 0x1402afd2e mov ecx, 888h; Size ; +0x150, 0x1402afd30 call ??2@YAPEAX_K@Z; operator new(unsigned __int64) ; +0x155, 0x1402afd35 mov [rbp+57h+var_80], rax ; +0x15a, 0x1402afd3a mov rcx, rax ; +0x15e, 0x1402afd3e call FMODAudioEngine__FMODAudioEngine ; +0x161, 0x1402afd41 nop ; +0x166, 0x1402afd46 mov cs:qword_1406C2E88, rax ; +0x167, 0x1402afd47 mov rdx, [rax] ; +0x16e, 0x1402afd4e mov rcx, rax ; +0x171, 0x1402afd51 call qword ptr [rdx+48h] ; +0x174, 0x1402afd54 mov rcx, cs:qword_1406C2E88 ; +0x177, 0x1402afd57 movss xmm0, cs:dword_140622B5C ; +0x17e, 0x1402afd5e movss [rsp+0D0h+var_B0], xmm0 ; +0x186, 0x1402afd66 xorps xmm3, xmm3 ; +0x18c, 0x1402afd6c movss xmm2, cs:flt_140622C24 ; +0x18f, 0x1402afd6f lea rdx, [rbp+57h+var_A0] ; +0x197, 0x1402afd77 call FMODAudioEngine__playEffect ; +0x19b, 0x1402afd7b mov qword ptr [rbp+57h+var_A0+8], r12 ; +0x1a0, 0x1402afd80 mov [rbp+57h+var_90], 7 ; +0x1a4, 0x1402afd84 mov [rbp+57h+var_88], 0Fh ; +0x1ac, 0x1402afd8c mov rax, cs:qword_14057DB78 ; +0x1b4, 0x1402afd94 mov dword ptr [rbp+57h+var_A0], eax ; +0x1bb, 0x1402afd9b movzx eax, word ptr cs:qword_14057DB78+4 ; +0x1be, 0x1402afd9e mov word ptr [rbp+57h+var_A0+4], ax ; +0x1c5, 0x1402afda5 movzx eax, byte ptr cs:qword_14057DB78+6 ; +0x1c9, 0x1402afda9 mov byte ptr [rbp+57h+var_A0+6], al ; +0x1d0, 0x1402afdb0 mov byte ptr [rbp+57h+var_A0+7], 0 ; +0x1d3, 0x1402afdb3 lea rax, [rbp+57h+var_A0] ; +0x1d7, 0x1402afdb7 mov [rbp+57h+var_80], rax ; +0x1db, 0x1402afdbb mov rcx, [rdi+298h] ; +0x1df, 0x1402afdbf call SpriteAnimationManager__overridePrio ; +0x1e6, 0x1402afdc6 lea rdx, [rbp+57h+var_A0] ; +0x1eb, 0x1402afdcb lea rcx, [rbp+57h+var_70] ; +0x1ef, 0x1402afdcf call sub_14003BDB0 ; +0x1f3, 0x1402afdd3 mov rdx, rax ; +0x1f8, 0x1402afdd8 mov rcx, [rdi+298h] ; +0x1fb, 0x1402afddb call SpriteAnimationManager__runAnimation ; +0x202, 0x1402afde2 nop ; +0x207, 0x1402afde7 lea rcx, [rbp+57h+var_A0] ; +0x208, 0x1402afde8 call sub_14003A830 ; +0x20c, 0x1402afdec mov byte ptr [rdi+2F5h], 1 ; +0x211, 0x1402afdf1 inc dword ptr [rdi+2F8h] ; +0x218, 0x1402afdf8 cmp r13, 0Fh ; +0x21e, 0x1402afdfe jbe short loc_1402AFE38 ; +0x222, 0x1402afe02 lea rdx, [r13+1] ; +0x224, 0x1402afe04 mov rax, r14 ; +0x228, 0x1402afe08 cmp rdx, 1000h ; +0x22b, 0x1402afe0b jb short loc_1402AFE30 ; +0x232, 0x1402afe12 add rdx, 27h ; ''' ; +0x234, 0x1402afe14 mov r14, [r14-8] ; +0x238, 0x1402afe18 sub rax, r14 ; +0x23c, 0x1402afe1c add rax, 0FFFFFFFFFFFFFFF8h ; +0x23f, 0x1402afe1f cmp rax, 1Fh ; +0x243, 0x1402afe23 jbe short loc_1402AFE30 ; +0x247, 0x1402afe27 call cs:_invalid_parameter_noinfo_noreturn ; +0x249, 0x1402afe29 align 10h ; +0x24f, 0x1402afe2f mov rcx, r14; Block ; +0x250, 0x1402afe30 call j_j_free ; +0x253, 0x1402afe33 mov rcx, [rbp+57h+var_30] ; +0x258, 0x1402afe38 xor rcx, rsp; StackCookie ; +0x25c, 0x1402afe3c call __security_check_cookie ; +0x25f, 0x1402afe3f lea r11, [rsp+0D0h+var_20] ; +0x264, 0x1402afe44 mov rbx, [r11+38h] ; +0x26c, 0x1402afe4c mov rsi, [r11+40h] ; +0x270, 0x1402afe50 mov rdi, [r11+48h] ; +0x274, 0x1402afe54 mov rsp, r11 ; +0x278, 0x1402afe58 pop r15 ; +0x27b, 0x1402afe5b pop r14 ; +0x27d, 0x1402afe5d pop r13 ; +0x27f, 0x1402afe5f pop r12 ; +0x281, 0x1402afe61 pop rbp ; +0x283, 0x1402afe63 retn ; +0x284, 0x1402afe64 call sub_140007B50 ; +0x285, 0x1402afe65 db 90h ; +0x28a, 0x1402afe6a