; ; AnimatedShopKeeper::animationFinished from 0x1402aff00 to 0x1402b059e (1694 bytes) ; ; 2 xrefs: ; > @ 0x14057eca0 ; > @ 0x1406d22d0 ; ; 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-38h+arg_10], rbx ; +0x0, 0x1402aff00 push rbp ; +0x5, 0x1402aff05 push rsi ; +0x6, 0x1402aff06 push rdi ; +0x7, 0x1402aff07 push r12 ; +0x8, 0x1402aff08 push r13 ; +0xa, 0x1402aff0a push r14 ; +0xc, 0x1402aff0c push r15 ; +0xe, 0x1402aff0e mov rbp, rsp ; +0x10, 0x1402aff10 sub rsp, 80h ; +0x13, 0x1402aff13 mov rax, cs:__security_cookie ; +0x1a, 0x1402aff1a xor rax, rsp ; +0x21, 0x1402aff21 mov [rbp+var_10], rax ; +0x24, 0x1402aff24 mov rbx, rdx ; +0x28, 0x1402aff28 mov rsi, rcx ; +0x2b, 0x1402aff2b xor ecx, ecx ; +0x2e, 0x1402aff2e mov dword ptr [rbp+var_60], ecx ; +0x30, 0x1402aff30 dec dword ptr [rsi+2ECh] ; +0x33, 0x1402aff33 dec dword ptr [rsi+2F0h] ; +0x39, 0x1402aff39 xorps xmm0, xmm0 ; +0x3f, 0x1402aff3f movups [rbp+Buf2], xmm0 ; +0x42, 0x1402aff42 mov r14d, 7 ; +0x46, 0x1402aff46 mov [rbp+var_20], r14 ; +0x4c, 0x1402aff4c mov [rbp+var_18], 0Fh ; +0x50, 0x1402aff50 mov rax, cs:qword_14057DB78 ; +0x58, 0x1402aff58 mov dword ptr [rbp+Buf2], eax ; +0x5f, 0x1402aff5f movzx eax, word ptr cs:qword_14057DB78+4 ; +0x62, 0x1402aff62 mov word ptr [rbp+Buf2+4], ax ; +0x69, 0x1402aff69 movzx eax, byte ptr cs:qword_14057DB78+6 ; +0x6d, 0x1402aff6d mov byte ptr [rbp+Buf2+6], al ; +0x74, 0x1402aff74 mov byte ptr [rbp+Buf2+7], cl ; +0x77, 0x1402aff77 movups xmmword ptr [rbp+Buf1], xmm0 ; +0x7a, 0x1402aff7a mov [rbp+var_40], rcx ; +0x7e, 0x1402aff7e mov [rbp+var_38], rcx ; +0x82, 0x1402aff82 mov rdi, 0FFFFFFFFFFFFFFFFh ; +0x86, 0x1402aff86 mov r8, rdi ; +0x8d, 0x1402aff8d inc r8 ; +0x90, 0x1402aff90 cmp byte ptr [rdx+r8], 0 ; +0x93, 0x1402aff93 jnz short loc_1402AFF90 ; +0x98, 0x1402aff98 lea rcx, [rbp+Buf1] ; +0x9a, 0x1402aff9a call sub_14003A930 ; +0x9e, 0x1402aff9e lea rcx, [rbp+Buf1] ; +0xa3, 0x1402affa3 mov r15, [rbp+Buf1] ; +0xa7, 0x1402affa7 mov r13, [rbp+var_38] ; +0xab, 0x1402affab cmp r13, 0Fh ; +0xaf, 0x1402affaf cmova rcx, r15; Buf1 ; +0xb3, 0x1402affb3 mov r12, [rbp+var_40] ; +0xb7, 0x1402affb7 mov r8, r12 ; +0xbb, 0x1402affbb cmp r12, 7 ; +0xbe, 0x1402affbe cmova r8, r14; Size ; +0xc2, 0x1402affc2 lea rdx, [rbp+Buf2]; Buf2 ; +0xc6, 0x1402affc6 call memcmp ; +0xca, 0x1402affca mov r14d, eax ; +0xcf, 0x1402affcf test eax, eax ; +0xd2, 0x1402affd2 jnz short loc_1402AFFEC ; +0xd4, 0x1402affd4 cmp r12, 7 ; +0xd6, 0x1402affd6 jnb short loc_1402AFFE1 ; +0xda, 0x1402affda mov r14d, edi ; +0xdc, 0x1402affdc jmp short loc_1402AFFEC ; +0xdf, 0x1402affdf xor r14d, r14d ; +0xe1, 0x1402affe1 cmp r12, 7 ; +0xe4, 0x1402affe4 setnbe r14b ; +0xe8, 0x1402affe8 cmp r13, 0Fh ; +0xec, 0x1402affec jbe short loc_1402B0027 ; +0xf0, 0x1402afff0 lea rdx, [r13+1] ; +0xf2, 0x1402afff2 mov rax, r15 ; +0xf6, 0x1402afff6 cmp rdx, 1000h ; +0xf9, 0x1402afff9 jb short loc_1402B001E ; +0x100, 0x1402b0000 add rdx, 27h ; ''' ; +0x102, 0x1402b0002 mov r15, [r15-8] ; +0x106, 0x1402b0006 sub rax, r15 ; +0x10a, 0x1402b000a add rax, 0FFFFFFFFFFFFFFF8h ; +0x10d, 0x1402b000d cmp rax, 1Fh ; +0x111, 0x1402b0011 jbe short loc_1402B001E ; +0x115, 0x1402b0015 call cs:_invalid_parameter_noinfo_noreturn ; +0x117, 0x1402b0017 align 2 ; +0x11d, 0x1402b001d mov rcx, r15; Block ; +0x11e, 0x1402b001e call j_j_free ; +0x121, 0x1402b0021 nop ; +0x126, 0x1402b0026 test r14d, r14d ; +0x127, 0x1402b0027 jnz short loc_1402B0033 ; +0x12a, 0x1402b002a mov [rsi+2F5h], r14b ; +0x12c, 0x1402b002c xorps xmm0, xmm0 ; +0x133, 0x1402b0033 movups xmmword ptr [rbp+Buf1], xmm0 ; +0x136, 0x1402b0036 mov r12d, 6 ; +0x13a, 0x1402b003a mov [rbp+var_40], r12 ; +0x140, 0x1402b0040 mov [rbp+var_38], 0Fh ; +0x144, 0x1402b0044 mov eax, cs:dword_14057DB88 ; +0x14c, 0x1402b004c mov dword ptr [rbp+Buf1], eax ; +0x152, 0x1402b0052 movzx eax, cs:word_14057DB8C ; +0x155, 0x1402b0055 mov word ptr [rbp+Buf1+4], ax ; +0x15c, 0x1402b005c mov byte ptr [rbp+Buf1+6], 0 ; +0x160, 0x1402b0060 mov dword ptr [rbp+var_60], 1 ; +0x164, 0x1402b0064 movups [rbp+Buf2], xmm0 ; +0x16b, 0x1402b006b xor eax, eax ; +0x16f, 0x1402b006f mov [rbp+var_20], rax ; +0x171, 0x1402b0071 mov [rbp+var_18], rax ; +0x175, 0x1402b0075 mov r8, rdi ; +0x179, 0x1402b0079 nop dword ptr [rax+00h] ; +0x17c, 0x1402b007c inc r8 ; +0x180, 0x1402b0080 cmp [rbx+r8], al ; +0x183, 0x1402b0083 jnz short loc_1402B0080 ; +0x187, 0x1402b0087 mov rdx, rbx ; +0x189, 0x1402b0089 lea rcx, [rbp+Buf2] ; +0x18c, 0x1402b008c call sub_14003A930 ; +0x190, 0x1402b0090 lea rcx, [rbp+Buf2] ; +0x195, 0x1402b0095 mov r14, qword ptr [rbp+Buf2] ; +0x199, 0x1402b0099 mov r13, [rbp+var_18] ; +0x19d, 0x1402b009d cmp r13, 0Fh ; +0x1a1, 0x1402b00a1 cmova rcx, r14; Buf1 ; +0x1a5, 0x1402b00a5 mov r15, [rbp+var_20] ; +0x1a9, 0x1402b00a9 mov r8, r15 ; +0x1ad, 0x1402b00ad cmp r15, 6 ; +0x1b0, 0x1402b00b0 cmova r8, r12; Size ; +0x1b4, 0x1402b00b4 lea rdx, [rbp+Buf1]; Buf2 ; +0x1b8, 0x1402b00b8 call memcmp ; +0x1bc, 0x1402b00bc test eax, eax ; +0x1c1, 0x1402b00c1 jnz short loc_1402B00CB ; +0x1c3, 0x1402b00c3 cmp r15, 6 ; +0x1c5, 0x1402b00c5 jz short loc_1402B00E2 ; +0x1c9, 0x1402b00c9 cmp dword ptr [rsi+2F0h], 0 ; +0x1cb, 0x1402b00cb jg short loc_1402B00E2 ; +0x1d2, 0x1402b00d2 cmp dword ptr [rsi+2E8h], 4 ; +0x1d4, 0x1402b00d4 jz short loc_1402B00E2 ; +0x1db, 0x1402b00db mov r15b, 1 ; +0x1dd, 0x1402b00dd jmp short loc_1402B00E5 ; +0x1e0, 0x1402b00e0 xor r15b, r15b ; +0x1e2, 0x1402b00e2 cmp r13, 0Fh ; +0x1e5, 0x1402b00e5 jbe short loc_1402B0120 ; +0x1e9, 0x1402b00e9 lea rdx, [r13+1] ; +0x1eb, 0x1402b00eb mov rax, r14 ; +0x1ef, 0x1402b00ef cmp rdx, 1000h ; +0x1f2, 0x1402b00f2 jb short loc_1402B0117 ; +0x1f9, 0x1402b00f9 add rdx, 27h ; ''' ; +0x1fb, 0x1402b00fb mov r14, [r14-8] ; +0x1ff, 0x1402b00ff sub rax, r14 ; +0x203, 0x1402b0103 add rax, 0FFFFFFFFFFFFFFF8h ; +0x206, 0x1402b0106 cmp rax, 1Fh ; +0x20a, 0x1402b010a jbe short loc_1402B0117 ; +0x20e, 0x1402b010e call cs:_invalid_parameter_noinfo_noreturn ; +0x210, 0x1402b0110 db 0CCh ; +0x216, 0x1402b0116 mov rcx, r14; Block ; +0x217, 0x1402b0117 call j_j_free ; +0x21a, 0x1402b011a nop ; +0x21f, 0x1402b011f test r15b, r15b ; +0x220, 0x1402b0120 jz loc_1402B01C0 ; +0x223, 0x1402b0123 mov byte ptr [rsi+2F4h], 0 ; +0x229, 0x1402b0129 call cs:rand ; +0x230, 0x1402b0130 movd xmm0, eax ; +0x236, 0x1402b0136 cvtdq2ps xmm0, xmm0 ; +0x23a, 0x1402b013a divss xmm0, cs:dword_140623644 ; +0x23d, 0x1402b013d mulss xmm0, cs:flt_140623010 ; +0x245, 0x1402b0145 addss xmm0, cs:flt_14062307C ; +0x24d, 0x1402b014d cvttss2si eax, xmm0 ; +0x255, 0x1402b0155 mov [rsi+2F0h], eax ; +0x259, 0x1402b0159 xorps xmm0, xmm0 ; +0x25f, 0x1402b015f movups xmmword ptr [rbp+Buf1], xmm0 ; +0x262, 0x1402b0162 mov [rbp+var_40], r12 ; +0x266, 0x1402b0166 mov [rbp+var_38], 0Fh ; +0x26a, 0x1402b016a mov eax, cs:dword_14057DB88 ; +0x272, 0x1402b0172 mov dword ptr [rbp+Buf1], eax ; +0x278, 0x1402b0178 movzx eax, cs:word_14057DB8C ; +0x27b, 0x1402b017b mov word ptr [rbp+Buf1+4], ax ; +0x282, 0x1402b0182 mov byte ptr [rbp+Buf1+6], 0 ; +0x286, 0x1402b0186 lea rax, [rbp+Buf1] ; +0x28a, 0x1402b018a mov [rbp+var_60], rax ; +0x28e, 0x1402b018e mov rcx, [rsi+298h] ; +0x292, 0x1402b0192 call SpriteAnimationManager__overridePrio ; +0x299, 0x1402b0199 lea rdx, [rbp+Buf1] ; +0x29e, 0x1402b019e lea rcx, [rbp+Buf2] ; +0x2a2, 0x1402b01a2 call sub_14003BDB0 ; +0x2a6, 0x1402b01a6 mov rdx, rax ; +0x2ab, 0x1402b01ab mov rcx, [rsi+298h] ; +0x2ae, 0x1402b01ae call SpriteAnimationManager__runAnimation ; +0x2b5, 0x1402b01b5 nop ; +0x2ba, 0x1402b01ba jmp loc_1402B056E ; +0x2bb, 0x1402b01bb xorps xmm0, xmm0 ; +0x2c0, 0x1402b01c0 movups xmmword ptr [rbp+Buf1], xmm0 ; +0x2c3, 0x1402b01c3 mov [rbp+var_40], r12 ; +0x2c7, 0x1402b01c7 mov [rbp+var_38], 0Fh ; +0x2cb, 0x1402b01cb mov eax, cs:dword_14057DB6C ; +0x2d3, 0x1402b01d3 mov dword ptr [rbp+Buf1], eax ; +0x2d9, 0x1402b01d9 movzx eax, cs:word_14057DB70 ; +0x2dc, 0x1402b01dc mov word ptr [rbp+Buf1+4], ax ; +0x2e3, 0x1402b01e3 mov byte ptr [rbp+Buf1+6], 0 ; +0x2e7, 0x1402b01e7 mov dword ptr [rbp+var_60], 4 ; +0x2eb, 0x1402b01eb movups [rbp+Buf2], xmm0 ; +0x2f2, 0x1402b01f2 xor eax, eax ; +0x2f6, 0x1402b01f6 mov [rbp+var_20], rax ; +0x2f8, 0x1402b01f8 mov [rbp+var_18], rax ; +0x2fc, 0x1402b01fc mov r8, rdi ; +0x300, 0x1402b0200 inc r8 ; +0x303, 0x1402b0203 cmp [rbx+r8], al ; +0x306, 0x1402b0206 jnz short loc_1402B0203 ; +0x30a, 0x1402b020a mov rdx, rbx ; +0x30c, 0x1402b020c lea rcx, [rbp+Buf2] ; +0x30f, 0x1402b020f call sub_14003A930 ; +0x313, 0x1402b0213 lea rcx, [rbp+Buf2] ; +0x318, 0x1402b0218 mov r14, qword ptr [rbp+Buf2] ; +0x31c, 0x1402b021c mov r13, [rbp+var_18] ; +0x320, 0x1402b0220 cmp r13, 0Fh ; +0x324, 0x1402b0224 cmova rcx, r14; Buf1 ; +0x328, 0x1402b0228 mov r15, [rbp+var_20] ; +0x32c, 0x1402b022c mov r8, r15 ; +0x330, 0x1402b0230 cmp r15, 6 ; +0x333, 0x1402b0233 cmova r8, r12; Size ; +0x337, 0x1402b0237 lea rdx, [rbp+Buf1]; Buf2 ; +0x33b, 0x1402b023b call memcmp ; +0x33f, 0x1402b023f test eax, eax ; +0x344, 0x1402b0244 jnz short loc_1402B025B ; +0x346, 0x1402b0246 cmp r15, 6 ; +0x348, 0x1402b0248 jnz short loc_1402B025B ; +0x34c, 0x1402b024c cmp [rsi+2ECh], eax ; +0x34e, 0x1402b024e jg short loc_1402B025B ; +0x354, 0x1402b0254 mov r15b, 1 ; +0x356, 0x1402b0256 jmp short loc_1402B025E ; +0x359, 0x1402b0259 xor r15b, r15b ; +0x35b, 0x1402b025b cmp r13, 0Fh ; +0x35e, 0x1402b025e jbe short loc_1402B0299 ; +0x362, 0x1402b0262 lea rdx, [r13+1] ; +0x364, 0x1402b0264 mov rax, r14 ; +0x368, 0x1402b0268 cmp rdx, 1000h ; +0x36b, 0x1402b026b jb short loc_1402B0290 ; +0x372, 0x1402b0272 add rdx, 27h ; ''' ; +0x374, 0x1402b0274 mov r14, [r14-8] ; +0x378, 0x1402b0278 sub rax, r14 ; +0x37c, 0x1402b027c add rax, 0FFFFFFFFFFFFFFF8h ; +0x37f, 0x1402b027f cmp rax, 1Fh ; +0x383, 0x1402b0283 jbe short loc_1402B0290 ; +0x387, 0x1402b0287 call cs:_invalid_parameter_noinfo_noreturn ; +0x389, 0x1402b0289 align 10h ; +0x38f, 0x1402b028f mov rcx, r14; Block ; +0x390, 0x1402b0290 call j_j_free ; +0x393, 0x1402b0293 nop ; +0x398, 0x1402b0298 test r15b, r15b ; +0x399, 0x1402b0299 jz loc_1402B03C0 ; +0x39c, 0x1402b029c call cs:rand ; +0x3a2, 0x1402b02a2 movd xmm0, eax ; +0x3a8, 0x1402b02a8 cvtdq2ps xmm0, xmm0 ; +0x3ac, 0x1402b02ac divss xmm0, cs:dword_140623644 ; +0x3af, 0x1402b02af comiss xmm0, cs:dword_140622BD8 ; +0x3b7, 0x1402b02b7 jbe short loc_1402B0327 ; +0x3be, 0x1402b02be cmp dword ptr [rsi+2E8h], 4 ; +0x3c0, 0x1402b02c0 jz short loc_1402B0327 ; +0x3c7, 0x1402b02c7 xorps xmm0, xmm0 ; +0x3c9, 0x1402b02c9 movups xmmword ptr [rbp+Buf1], xmm0 ; +0x3cc, 0x1402b02cc mov [rbp+var_40], r12 ; +0x3d0, 0x1402b02d0 mov [rbp+var_38], 0Fh ; +0x3d4, 0x1402b02d4 mov eax, cs:dword_14057DB80 ; +0x3dc, 0x1402b02dc mov dword ptr [rbp+Buf1], eax ; +0x3e2, 0x1402b02e2 movzx eax, cs:word_14057DB84 ; +0x3e5, 0x1402b02e5 mov word ptr [rbp+Buf1+4], ax ; +0x3ec, 0x1402b02ec mov byte ptr [rbp+Buf1+6], 0 ; +0x3f0, 0x1402b02f0 lea rax, [rbp+Buf1] ; +0x3f4, 0x1402b02f4 mov [rbp+var_58], rax ; +0x3f8, 0x1402b02f8 mov rcx, [rsi+298h] ; +0x3fc, 0x1402b02fc call SpriteAnimationManager__overridePrio ; +0x403, 0x1402b0303 lea rdx, [rbp+Buf1] ; +0x408, 0x1402b0308 lea rcx, [rbp+Buf2] ; +0x40c, 0x1402b030c call sub_14003BDB0 ; +0x410, 0x1402b0310 mov rdx, rax ; +0x415, 0x1402b0315 mov rcx, [rsi+298h] ; +0x418, 0x1402b0318 call SpriteAnimationManager__runAnimation ; +0x41f, 0x1402b031f nop ; +0x424, 0x1402b0324 jmp short loc_1402B0383 ; +0x425, 0x1402b0325 xorps xmm0, xmm0 ; +0x427, 0x1402b0327 movups xmmword ptr [rbp+Buf1], xmm0 ; +0x42a, 0x1402b032a mov [rbp+var_40], r12 ; +0x42e, 0x1402b032e mov [rbp+var_38], 0Fh ; +0x432, 0x1402b0332 mov eax, cs:dword_14057DB64 ; +0x43a, 0x1402b033a mov dword ptr [rbp+Buf1], eax ; +0x440, 0x1402b0340 movzx eax, cs:word_14057DB68 ; +0x443, 0x1402b0343 mov word ptr [rbp+Buf1+4], ax ; +0x44a, 0x1402b034a mov byte ptr [rbp+Buf1+6], 0 ; +0x44e, 0x1402b034e lea rax, [rbp+Buf1] ; +0x452, 0x1402b0352 mov [rbp+var_58], rax ; +0x456, 0x1402b0356 mov rcx, [rsi+298h] ; +0x45a, 0x1402b035a call SpriteAnimationManager__overridePrio ; +0x461, 0x1402b0361 lea rdx, [rbp+Buf1] ; +0x466, 0x1402b0366 lea rcx, [rbp+Buf2] ; +0x46a, 0x1402b036a call sub_14003BDB0 ; +0x46e, 0x1402b036e mov rdx, rax ; +0x473, 0x1402b0373 mov rcx, [rsi+298h] ; +0x476, 0x1402b0376 call SpriteAnimationManager__runAnimation ; +0x47d, 0x1402b037d nop ; +0x482, 0x1402b0382 lea rcx, [rbp+Buf1] ; +0x483, 0x1402b0383 call sub_14003A830 ; +0x487, 0x1402b0387 call cs:rand ; +0x48c, 0x1402b038c movd xmm0, eax ; +0x492, 0x1402b0392 cvtdq2ps xmm0, xmm0 ; +0x496, 0x1402b0396 divss xmm0, cs:dword_140623644 ; +0x499, 0x1402b0399 mulss xmm0, cs:flt_140622F28 ; +0x4a1, 0x1402b03a1 addss xmm0, cs:width ; +0x4a9, 0x1402b03a9 cvttss2si eax, xmm0 ; +0x4b1, 0x1402b03b1 mov [rsi+2ECh], eax ; +0x4b5, 0x1402b03b5 jmp loc_1402B0577 ; +0x4bb, 0x1402b03bb xorps xmm0, xmm0 ; +0x4c0, 0x1402b03c0 movups xmmword ptr [rbp+Buf1], xmm0 ; +0x4c3, 0x1402b03c3 mov [rbp+var_40], r12 ; +0x4c7, 0x1402b03c7 mov [rbp+var_38], 0Fh ; +0x4cb, 0x1402b03cb mov eax, cs:dword_14057DB88 ; +0x4d3, 0x1402b03d3 mov dword ptr [rbp+Buf1], eax ; +0x4d9, 0x1402b03d9 movzx eax, cs:word_14057DB8C ; +0x4dc, 0x1402b03dc mov word ptr [rbp+Buf1+4], ax ; +0x4e3, 0x1402b03e3 mov byte ptr [rbp+Buf1+6], 0 ; +0x4e7, 0x1402b03e7 mov dword ptr [rbp+var_60], 10h ; +0x4eb, 0x1402b03eb movups [rbp+Buf2], xmm0 ; +0x4f2, 0x1402b03f2 xor eax, eax ; +0x4f6, 0x1402b03f6 mov [rbp+var_20], rax ; +0x4f8, 0x1402b03f8 mov [rbp+var_18], rax ; +0x4fc, 0x1402b03fc inc rdi ; +0x500, 0x1402b0400 cmp [rbx+rdi], al ; +0x503, 0x1402b0403 jnz short loc_1402B0400 ; +0x506, 0x1402b0406 mov r8, rdi ; +0x508, 0x1402b0408 mov rdx, rbx ; +0x50b, 0x1402b040b lea rcx, [rbp+Buf2] ; +0x50e, 0x1402b040e call sub_14003A930 ; +0x512, 0x1402b0412 lea rcx, [rbp+Buf2] ; +0x517, 0x1402b0417 mov rbx, qword ptr [rbp+Buf2] ; +0x51b, 0x1402b041b mov r14, [rbp+var_18] ; +0x51f, 0x1402b041f cmp r14, 0Fh ; +0x523, 0x1402b0423 cmova rcx, rbx; Buf1 ; +0x527, 0x1402b0427 mov rdi, [rbp+var_20] ; +0x52b, 0x1402b042b mov r8, rdi ; +0x52f, 0x1402b042f cmp rdi, 6 ; +0x532, 0x1402b0432 cmova r8, r12; Size ; +0x536, 0x1402b0436 lea rdx, [rbp+Buf1]; Buf2 ; +0x53a, 0x1402b043a call memcmp ; +0x53e, 0x1402b043e test eax, eax ; +0x543, 0x1402b0443 jnz short loc_1402B0478 ; +0x545, 0x1402b0445 cmp rdi, 6 ; +0x547, 0x1402b0447 jnz short loc_1402B0478 ; +0x54b, 0x1402b044b cmp [rsi+2F4h], al ; +0x54d, 0x1402b044d jnz short loc_1402B0478 ; +0x553, 0x1402b0453 call cs:rand ; +0x555, 0x1402b0455 movd xmm0, eax ; +0x55b, 0x1402b045b cvtdq2ps xmm0, xmm0 ; +0x55f, 0x1402b045f divss xmm0, cs:dword_140623644 ; +0x562, 0x1402b0462 comiss xmm0, cs:dword_140622B38 ; +0x56a, 0x1402b046a jbe short loc_1402B0478 ; +0x571, 0x1402b0471 mov dil, 1 ; +0x573, 0x1402b0473 jmp short loc_1402B047B ; +0x576, 0x1402b0476 xor dil, dil ; +0x578, 0x1402b0478 cmp r14, 0Fh ; +0x57b, 0x1402b047b jbe short loc_1402B04B6 ; +0x57f, 0x1402b047f lea rdx, [r14+1] ; +0x581, 0x1402b0481 mov rax, rbx ; +0x585, 0x1402b0485 cmp rdx, 1000h ; +0x588, 0x1402b0488 jb short loc_1402B04AD ; +0x58f, 0x1402b048f add rdx, 27h ; ''' ; +0x591, 0x1402b0491 mov rbx, [rbx-8] ; +0x595, 0x1402b0495 sub rax, rbx ; +0x599, 0x1402b0499 add rax, 0FFFFFFFFFFFFFFF8h ; +0x59c, 0x1402b049c cmp rax, 1Fh ; +0x5a0, 0x1402b04a0 jbe short loc_1402B04AD ; +0x5a4, 0x1402b04a4 call cs:_invalid_parameter_noinfo_noreturn ; +0x5a6, 0x1402b04a6 db 0CCh ; +0x5ac, 0x1402b04ac mov rcx, rbx; Block ; +0x5ad, 0x1402b04ad call j_j_free ; +0x5b0, 0x1402b04b0 nop ; +0x5b5, 0x1402b04b5 xorps xmm0, xmm0 ; +0x5b6, 0x1402b04b6 mov [rbp+var_40], r12 ; +0x5b9, 0x1402b04b9 mov [rbp+var_38], 0Fh ; +0x5bd, 0x1402b04bd movups xmmword ptr [rbp+Buf1], xmm0 ; +0x5c5, 0x1402b04c5 mov byte ptr [rbp+Buf1+6], 0 ; +0x5c9, 0x1402b04c9 test dil, dil ; +0x5cd, 0x1402b04cd jz short loc_1402B0529 ; +0x5d0, 0x1402b04d0 mov eax, cs:dword_14057DB88 ; +0x5d2, 0x1402b04d2 mov dword ptr [rbp+Buf1], eax ; +0x5d8, 0x1402b04d8 movzx eax, cs:word_14057DB8C ; +0x5db, 0x1402b04db mov word ptr [rbp+Buf1+4], ax ; +0x5e2, 0x1402b04e2 lea rax, [rbp+Buf1] ; +0x5e6, 0x1402b04e6 mov [rbp+var_58], rax ; +0x5ea, 0x1402b04ea mov rcx, [rsi+298h] ; +0x5ee, 0x1402b04ee call SpriteAnimationManager__overridePrio ; +0x5f5, 0x1402b04f5 lea rdx, [rbp+Buf1] ; +0x5fa, 0x1402b04fa lea rcx, [rbp+Buf2] ; +0x5fe, 0x1402b04fe call sub_14003BDB0 ; +0x602, 0x1402b0502 mov rdx, rax ; +0x607, 0x1402b0507 mov rcx, [rsi+298h] ; +0x60a, 0x1402b050a call SpriteAnimationManager__runAnimation ; +0x611, 0x1402b0511 nop ; +0x616, 0x1402b0516 lea rcx, [rbp+Buf1] ; +0x617, 0x1402b0517 call sub_14003A830 ; +0x61b, 0x1402b051b mov byte ptr [rsi+2F4h], 1 ; +0x620, 0x1402b0520 jmp short loc_1402B0577 ; +0x627, 0x1402b0527 mov eax, cs:dword_14057DB6C ; +0x629, 0x1402b0529 mov dword ptr [rbp+Buf1], eax ; +0x62f, 0x1402b052f movzx eax, cs:word_14057DB70 ; +0x632, 0x1402b0532 mov word ptr [rbp+Buf1+4], ax ; +0x639, 0x1402b0539 lea rax, [rbp+Buf1] ; +0x63d, 0x1402b053d mov [rbp+var_58], rax ; +0x641, 0x1402b0541 mov rcx, [rsi+298h] ; +0x645, 0x1402b0545 call SpriteAnimationManager__overridePrio ; +0x64c, 0x1402b054c lea rdx, [rbp+Buf1] ; +0x651, 0x1402b0551 lea rcx, [rbp+Buf2] ; +0x655, 0x1402b0555 call sub_14003BDB0 ; +0x659, 0x1402b0559 mov rdx, rax ; +0x65e, 0x1402b055e mov rcx, [rsi+298h] ; +0x661, 0x1402b0561 call SpriteAnimationManager__runAnimation ; +0x668, 0x1402b0568 nop ; +0x66d, 0x1402b056d lea rcx, [rbp+Buf1] ; +0x66e, 0x1402b056e call sub_14003A830 ; +0x672, 0x1402b0572 mov rcx, [rbp+var_10] ; +0x677, 0x1402b0577 xor rcx, rsp; StackCookie ; +0x67b, 0x1402b057b call __security_check_cookie ; +0x67e, 0x1402b057e mov rbx, [rsp+80h+arg_10] ; +0x683, 0x1402b0583 add rsp, 80h ; +0x68b, 0x1402b058b pop r15 ; +0x692, 0x1402b0592 pop r14 ; +0x694, 0x1402b0594 pop r13 ; +0x696, 0x1402b0596 pop r12 ; +0x698, 0x1402b0598 pop rdi ; +0x69a, 0x1402b059a pop rsi ; +0x69b, 0x1402b059b pop rbp ; +0x69c, 0x1402b059c retn ; +0x69d, 0x1402b059d