; ; GameObject::saveActiveColors from 0x1401a08d0 to 0x1401a0a76 (422 bytes) ; ; 7 xrefs: ; > EnhancedGameObject::saveActiveColors @ 0x1401a4bd9 ; > @ 0x140556958 ; > @ 0x1405570c8 ; > @ 0x14055e100 ; > @ 0x1405c8818 ; > @ 0x14060e2f8 ; > @ 0x1406cbe74 ; ; 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 ; push rbx ; +0x0, 0x1401a08d0 sub rsp, 20h ; +0x2, 0x1401a08d2 mov rbx, rcx ; +0x6, 0x1401a08d6 mov eax, [rcx+3A0h] ; +0x9, 0x1401a08d9 mov [rcx+3A4h], eax ; +0xf, 0x1401a08df mov r9, [rcx+450h] ; +0x15, 0x1401a08e5 test r9, r9 ; +0x1c, 0x1401a08ec jz short loc_1401A0904 ; +0x1f, 0x1401a08ef mov ecx, [r9+4] ; +0x21, 0x1401a08f1 mov eax, [r9] ; +0x25, 0x1401a08f5 cmp ecx, eax ; +0x28, 0x1401a08f8 jz short loc_1401A0900 ; +0x2a, 0x1401a08fa test eax, eax ; +0x2c, 0x1401a08fc jnz short loc_1401A0906 ; +0x2e, 0x1401a08fe mov eax, ecx ; +0x30, 0x1401a0900 jmp short loc_1401A0906 ; +0x32, 0x1401a0902 xor eax, eax ; +0x34, 0x1401a0904 mov [rbx+294h], eax ; +0x36, 0x1401a0906 mov r8, [rbx+458h] ; +0x3c, 0x1401a090c test r8, r8 ; +0x43, 0x1401a0913 jz short loc_1401A092B ; +0x46, 0x1401a0916 mov ecx, [r8+4] ; +0x48, 0x1401a0918 mov edx, [r8] ; +0x4c, 0x1401a091c cmp ecx, edx ; +0x4f, 0x1401a091f jz short loc_1401A0927 ; +0x51, 0x1401a0921 test edx, edx ; +0x53, 0x1401a0923 jnz short loc_1401A092D ; +0x55, 0x1401a0925 mov edx, ecx ; +0x57, 0x1401a0927 jmp short loc_1401A092D ; +0x59, 0x1401a0929 xor edx, edx ; +0x5b, 0x1401a092b mov ecx, 44Dh ; +0x5d, 0x1401a092d test eax, eax ; +0x62, 0x1401a0932 js short loc_1401A093E ; +0x64, 0x1401a0934 cmp eax, ecx ; +0x66, 0x1401a0936 jle short loc_1401A0940 ; +0x68, 0x1401a0938 mov eax, ecx ; +0x6a, 0x1401a093a jmp short loc_1401A0940 ; +0x6c, 0x1401a093c xor eax, eax ; +0x6e, 0x1401a093e mov [rbx+294h], eax ; +0x70, 0x1401a0940 test edx, edx ; +0x76, 0x1401a0946 js short loc_1401A0952 ; +0x78, 0x1401a0948 cmp edx, ecx ; +0x7a, 0x1401a094a jg short loc_1401A0954 ; +0x7c, 0x1401a094c mov ecx, edx ; +0x7e, 0x1401a094e jmp short loc_1401A0954 ; +0x80, 0x1401a0950 xor ecx, ecx ; +0x82, 0x1401a0952 mov [rbx+298h], ecx ; +0x84, 0x1401a0954 movzx eax, byte ptr [r9+20h] ; +0x8a, 0x1401a095a mov [rbx+29Ch], al ; +0x8f, 0x1401a095f test r8, r8 ; +0x95, 0x1401a0965 jz short loc_1401A0975 ; +0x98, 0x1401a0968 cmp byte ptr [r8+20h], 0 ; +0x9a, 0x1401a096a jz short loc_1401A0975 ; +0x9f, 0x1401a096f mov al, 1 ; +0xa1, 0x1401a0971 jmp short loc_1401A0977 ; +0xa3, 0x1401a0973 xor al, al ; +0xa5, 0x1401a0975 mov [rbx+29Dh], al ; +0xa7, 0x1401a0977 mov rax, cs:qword_1406C2ED8 ; +0xad, 0x1401a097d test rax, rax ; +0xb4, 0x1401a0984 jnz short loc_1401A09B8 ; +0xb7, 0x1401a0987 mov ecx, 668h; Size ; +0xb9, 0x1401a0989 call ??2@YAPEAX_K@Z; operator new(unsigned __int64) ; +0xbe, 0x1401a098e mov [rsp+28h+arg_0], rax ; +0xc3, 0x1401a0993 mov rcx, rax ; +0xc8, 0x1401a0998 call sub_14017AB00 ; +0xcb, 0x1401a099b nop ; +0xd0, 0x1401a09a0 mov cs:qword_1406C2ED8, rax ; +0xd1, 0x1401a09a1 mov rdx, [rax] ; +0xd8, 0x1401a09a8 mov rcx, rax ; +0xdb, 0x1401a09ab call qword ptr [rdx+48h] ; +0xde, 0x1401a09ae mov rax, cs:qword_1406C2ED8 ; +0xe1, 0x1401a09b1 cmp byte ptr [rax+2BAh], 0 ; +0xe8, 0x1401a09b8 jnz short loc_1401A09F3 ; +0xef, 0x1401a09bf mov edx, [rbx+294h] ; +0xf1, 0x1401a09c1 mov rcx, [rbx+508h] ; +0xf7, 0x1401a09c7 call GJEffectManager__getColorSprite ; +0xfe, 0x1401a09ce mov [rbx+4F8h], rax ; +0x103, 0x1401a09d3 mov edx, [rbx+298h] ; +0x10a, 0x1401a09da mov rcx, [rbx+508h] ; +0x110, 0x1401a09e0 call GJEffectManager__getColorSprite ; +0x117, 0x1401a09e7 mov [rbx+500h], rax ; +0x11c, 0x1401a09ec cmp byte ptr [rbx+41Ah], 0 ; +0x123, 0x1401a09f3 jz short loc_1401A0A03 ; +0x12a, 0x1401a09fa mov byte ptr [rbx+412h], 1 ; +0x12c, 0x1401a09fc cmp byte ptr [rbx+41Bh], 0 ; +0x133, 0x1401a0a03 jz short loc_1401A0A13 ; +0x13a, 0x1401a0a0a mov byte ptr [rbx+413h], 1 ; +0x13c, 0x1401a0a0c movzx eax, byte ptr [rbx+4C6h] ; +0x143, 0x1401a0a13 test al, al ; +0x14a, 0x1401a0a1a jz short loc_1401A0A28 ; +0x14c, 0x1401a0a1c mov dword ptr [rbx+3A0h], 7 ; +0x14e, 0x1401a0a1e mov ecx, [rbx+3A0h] ; +0x158, 0x1401a0a28 cmp ecx, 19h ; +0x15e, 0x1401a0a2e ja short loc_1401A0A3D ; +0x161, 0x1401a0a31 mov edx, 2200001h ; +0x163, 0x1401a0a33 bt edx, ecx ; +0x168, 0x1401a0a38 jb short loc_1401A0A3F ; +0x16b, 0x1401a0a3b mov al, 1 ; +0x16d, 0x1401a0a3d mov [rbx+36Ch], al ; +0x16f, 0x1401a0a3f cmp ecx, 7 ; +0x175, 0x1401a0a45 setz al ; +0x178, 0x1401a0a48 mov [rbx+511h], al ; +0x17b, 0x1401a0a4b mov [rbx+512h], al ; +0x181, 0x1401a0a51 cmp byte ptr [rbx+516h], 0 ; +0x187, 0x1401a0a57 jz short loc_1401A0A70 ; +0x18e, 0x1401a0a5e cmp byte ptr [rbx+28Dh], 0 ; +0x190, 0x1401a0a60 jnz short loc_1401A0A70 ; +0x197, 0x1401a0a67 mov byte ptr [rbx+3EFh], 1 ; +0x199, 0x1401a0a69 add rsp, 20h ; +0x1a0, 0x1401a0a70 pop rbx ; +0x1a4, 0x1401a0a74 retn ; +0x1a5, 0x1401a0a75