; ; EnhancedGameObject::setupAnimationVariables from 0x1402a6f00 to 0x1402a7260 (864 bytes) ; ; 4 xrefs: ; > EnhancedGameObject::saveActiveColors @ 0x1402a1bd5 ; > SetupAnimSettingsPopup::onClose @ 0x1405a217c ; > SetupAnimSettingsPopup::onClose @ 0x1405a21b2 ; > @ 0x14091dac8 ; ; 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:29:18 +0000 ; push rbx ; +0x0, 0x1402a6f00 sub rsp, 20h ; +0x2, 0x1402a6f02 mov rbx, rcx ; +0x6, 0x1402a6f06 cmp dword ptr [rcx+40Ch], 811h ; +0x9, 0x1402a6f09 jz loc_1402A6FEF ; +0x13, 0x1402a6f13 mov rcx, cs:qword_14090BFD0 ; +0x19, 0x1402a6f19 test rcx, rcx ; +0x20, 0x1402a6f20 jnz short loc_1402A6F57 ; +0x23, 0x1402a6f23 mov ecx, 6E8h; Size ; +0x25, 0x1402a6f25 call ??2@YAPEAX_K@Z; operator new(unsigned __int64) ; +0x2a, 0x1402a6f2a mov [rsp+28h+arg_0], rax ; +0x2f, 0x1402a6f2f mov rcx, rax ; +0x34, 0x1402a6f34 call GameManager__GameManager ; +0x37, 0x1402a6f37 nop ; +0x3c, 0x1402a6f3c mov cs:qword_14090BFD0, rax ; +0x3d, 0x1402a6f3d mov rcx, [rax] ; +0x44, 0x1402a6f44 mov rdx, [rcx+48h] ; +0x47, 0x1402a6f47 mov rcx, rax ; +0x4b, 0x1402a6f4b call rdx ; +0x4e, 0x1402a6f4e mov rcx, cs:qword_14090BFD0 ; +0x50, 0x1402a6f50 movsxd rdx, dword ptr [rbx+40Ch] ; +0x57, 0x1402a6f57 mov rcx, [rcx+198h] ; +0x5e, 0x1402a6f5e call cs:?objectForKey@CCDictionary@cocos2d@@QEAAPEAVCCObject@2@_J@Z; cocos2d::CCDictionary::objectForKey(__int64) ; +0x65, 0x1402a6f65 test rax, rax ; +0x6b, 0x1402a6f6b jz short loc_1402A6F75 ; +0x6e, 0x1402a6f6e mov eax, [rax+38h] ; +0x70, 0x1402a6f70 jmp short loc_1402A6F7A ; +0x73, 0x1402a6f73 mov eax, 1 ; +0x75, 0x1402a6f75 mov [rbx+578h], ax ; +0x7a, 0x1402a6f7a mov rcx, cs:qword_14090BFD0 ; +0x81, 0x1402a6f81 test rcx, rcx ; +0x88, 0x1402a6f88 jnz short loc_1402A6FBF ; +0x8b, 0x1402a6f8b mov ecx, 6E8h; Size ; +0x8d, 0x1402a6f8d call ??2@YAPEAX_K@Z; operator new(unsigned __int64) ; +0x92, 0x1402a6f92 mov [rsp+28h+arg_0], rax ; +0x97, 0x1402a6f97 mov rcx, rax ; +0x9c, 0x1402a6f9c call GameManager__GameManager ; +0x9f, 0x1402a6f9f nop ; +0xa4, 0x1402a6fa4 mov cs:qword_14090BFD0, rax ; +0xa5, 0x1402a6fa5 mov rcx, [rax] ; +0xac, 0x1402a6fac mov rdx, [rcx+48h] ; +0xaf, 0x1402a6faf mov rcx, rax ; +0xb3, 0x1402a6fb3 call rdx ; +0xb6, 0x1402a6fb6 mov rcx, cs:qword_14090BFD0 ; +0xb8, 0x1402a6fb8 movsxd rdx, dword ptr [rbx+40Ch] ; +0xbf, 0x1402a6fbf mov rcx, [rcx+190h] ; +0xc6, 0x1402a6fc6 call cs:?objectForKey@CCDictionary@cocos2d@@QEAAPEAVCCObject@2@_J@Z; cocos2d::CCDictionary::objectForKey(__int64) ; +0xcd, 0x1402a6fcd test rax, rax ; +0xd3, 0x1402a6fd3 jz short loc_1402A6FDF ; +0xd6, 0x1402a6fd6 movss xmm0, dword ptr [rax+38h] ; +0xd8, 0x1402a6fd8 jmp short loc_1402A6FE7 ; +0xdd, 0x1402a6fdd movss xmm0, cs:flt_140835080 ; +0xdf, 0x1402a6fdf movss dword ptr [rbx+574h], xmm0 ; +0xe7, 0x1402a6fe7 movss xmm1, dword ptr [rbx+56Ch] ; +0xef, 0x1402a6fef cmp byte ptr [rbx+598h], 0 ; +0xf7, 0x1402a6ff7 jz short loc_1402A701C ; +0xfe, 0x1402a6ffe movss xmm2, dword ptr [rbx+594h] ; +0x100, 0x1402a7000 xorps xmm0, xmm0 ; +0x108, 0x1402a7008 ucomiss xmm2, xmm0 ; +0x10b, 0x1402a700b jp short loc_1402A7012 ; +0x10e, 0x1402a700e jz short loc_1402A701C ; +0x110, 0x1402a7010 movaps xmm1, xmm2 ; +0x112, 0x1402a7012 andps xmm1, cs:xmmword_140836C90 ; +0x115, 0x1402a7015 movss xmm0, dword ptr [rbx+574h] ; +0x11c, 0x1402a701c divss xmm0, xmm1 ; +0x124, 0x1402a7024 movss dword ptr [rbx+574h], xmm0 ; +0x128, 0x1402a7028 mov ecx, [rbx+40Ch] ; +0x130, 0x1402a7030 cmp ecx, 73Bh ; +0x136, 0x1402a7036 jg short loc_1402A70BA ; +0x13c, 0x1402a703c jz loc_1402A711D; jumptable 00000001402A70EE cases 1852,1854-1856,1860,2020-2022,2024-2031,2033,2035-2040,2043-2055 ; +0x13e, 0x1402a703e sub ecx, 399h ; +0x144, 0x1402a7044 jz loc_1402A711D; jumptable 00000001402A70EE cases 1852,1854-1856,1860,2020-2022,2024-2031,2033,2035-2040,2043-2055 ; +0x14a, 0x1402a704a sub ecx, 256h ; +0x150, 0x1402a7050 jz loc_1402A711D; jumptable 00000001402A70EE cases 1852,1854-1856,1860,2020-2022,2024-2031,2033,2035-2040,2043-2055 ; +0x156, 0x1402a7056 cmp ecx, 63h ; 'c' ; +0x15c, 0x1402a705c jz loc_1402A711D; jumptable 00000001402A70EE cases 1852,1854-1856,1860,2020-2022,2024-2031,2033,2035-2040,2043-2055 ; +0x15f, 0x1402a705f mov byte ptr [rbx+570h], 0; jumptable 00000001402A70EE default case, cases 1853,1857-1859,1861-2019,2023,2032,2034,2041,2042 ; +0x165, 0x1402a7065 mov byte ptr [rbx+306h], 0 ; +0x16c, 0x1402a706c mov ecx, [rbx+40Ch] ; +0x173, 0x1402a7073 cmp ecx, 73Fh ; +0x179, 0x1402a7079 jnz loc_1402A7136 ; +0x17f, 0x1402a707f mov byte ptr [rbx+571h], 1 ; +0x185, 0x1402a7085 sub ecx, 732h ; +0x18c, 0x1402a708c jz loc_1402A7163 ; +0x192, 0x1402a7092 sub ecx, 41Ah ; +0x198, 0x1402a7098 jz loc_1402A7163 ; +0x19e, 0x1402a709e cmp ecx, 1 ; +0x1a4, 0x1402a70a4 jz loc_1402A7163 ; +0x1a7, 0x1402a70a7 mov byte ptr [rbx+572h], 0 ; +0x1ad, 0x1402a70ad add rsp, 20h ; +0x1b4, 0x1402a70b4 pop rbx ; +0x1b8, 0x1402a70b8 retn ; +0x1b9, 0x1402a70b9 cmp ecx, 0B33h ; +0x1ba, 0x1402a70ba jg short loc_1402A70F0 ; +0x1c0, 0x1402a70c0 jz short loc_1402A711D; jumptable 00000001402A70EE cases 1852,1854-1856,1860,2020-2022,2024-2031,2033,2035-2040,2043-2055 ; +0x1c2, 0x1402a70c2 sub ecx, 73Ch; switch 204 cases ; +0x1c4, 0x1402a70c4 cmp ecx, 0CBh ; +0x1ca, 0x1402a70ca ja short def_1402A70EE; jumptable 00000001402A70EE default case, cases 1853,1857-1859,1861-2019,2023,2032,2034,2041,2042 ; +0x1d0, 0x1402a70d0 movsxd rax, ecx ; +0x1d2, 0x1402a70d2 lea rdx, cs:140000000h ; +0x1d5, 0x1402a70d5 movzx eax, ds:(byte_1402A7178 - 140000000h)[rdx+rax] ; +0x1dc, 0x1402a70dc mov ecx, ds:(jpt_1402A70EE - 140000000h)[rdx+rax*4] ; +0x1e4, 0x1402a70e4 add rcx, rdx ; +0x1eb, 0x1402a70eb jmp rcx; switch jump ; +0x1ee, 0x1402a70ee sub ecx, 0B34h; switch 20 cases ; +0x1f0, 0x1402a70f0 cmp ecx, 13h ; +0x1f6, 0x1402a70f6 ja def_1402A70EE; jumptable 00000001402A70EE default case, cases 1853,1857-1859,1861-2019,2023,2032,2034,2041,2042 ; +0x1f9, 0x1402a70f9 movsxd rax, ecx ; +0x1ff, 0x1402a70ff lea rdx, cs:140000000h ; +0x202, 0x1402a7102 movzx eax, ds:(byte_1402A724C - 140000000h)[rdx+rax] ; +0x209, 0x1402a7109 mov ecx, ds:(jpt_1402A711B - 140000000h)[rdx+rax*4] ; +0x211, 0x1402a7111 add rcx, rdx ; +0x218, 0x1402a7118 jmp rcx; switch jump ; +0x21b, 0x1402a711b cmp byte ptr [rbx+59Ah], 0; jumptable 00000001402A70EE cases 1852,1854-1856,1860,2020-2022,2024-2031,2033,2035-2040,2043-2055 ; +0x21d, 0x1402a711d jnz def_1402A70EE; jumptable 00000001402A70EE default case, cases 1853,1857-1859,1861-2019,2023,2032,2034,2041,2042 ; +0x224, 0x1402a7124 mov byte ptr [rbx+570h], 1 ; +0x22a, 0x1402a712a jmp loc_1402A7073 ; +0x231, 0x1402a7131 mov byte ptr [rbx+571h], 0 ; +0x236, 0x1402a7136 cmp ecx, 731h ; +0x23d, 0x1402a713d jg loc_1402A708C ; +0x243, 0x1402a7143 jz short loc_1402A7163 ; +0x249, 0x1402a7149 sub ecx, 637h ; +0x24b, 0x1402a714b jz short loc_1402A7163 ; +0x251, 0x1402a7151 sub ecx, 2 ; +0x253, 0x1402a7153 jz short loc_1402A7163 ; +0x256, 0x1402a7156 sub ecx, 0F6h ; +0x258, 0x1402a7158 jmp loc_1402A709E ; +0x25e, 0x1402a715e mov byte ptr [rbx+572h], 1 ; +0x263, 0x1402a7163 add rsp, 20h ; +0x26a, 0x1402a716a pop rbx ; +0x26e, 0x1402a716e retn ; +0x26f, 0x1402a716f dd offset loc_1402A711D - 140000000h; jump table for switch statement ; +0x270, 0x1402a7170 db 0, 1, 0, 0, 0, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1; indirect table for switch statement ; +0x278, 0x1402a7178 dd offset loc_1402A711D - 140000000h; jump table for switch statement ; +0x344, 0x1402a7244 db 0, 0, 0, 0; indirect table for switch statement ; +0x34c, 0x1402a724c