; ; GameObject::shouldBlendColor from 0x140190c80 to 0x140190e16 (406 bytes) ; ; 9 xrefs: ; > EditorUI::spriteFromObjectString @ 0x14010e3da ; > EditorUI::spriteFromObjectString @ 0x14010e41b ; > GameObject::addMainSpriteToParent @ 0x14019bd6c ; > GameObject::addMainSpriteToParent @ 0x14019bdb0 ; > LevelEditorLayer::manualUpdateObjectColors @ 0x1402d9e8a ; > LevelEditorLayer::manualUpdateObjectColors @ 0x1402d9ec9 ; > PlayLayer::manualUpdateObjectColors @ 0x1403b0307 ; > PlayLayer::manualUpdateObjectColors @ 0x1403b0342 ; > @ 0x1406cb970 ; ; 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+arg_8], rbx ; +0x0, 0x140190c80 push rdi ; +0x5, 0x140190c85 sub rsp, 20h ; +0x6, 0x140190c86 movzx r9d, byte ptr [rcx+36Bh] ; +0xa, 0x140190c8a movzx r10d, byte ptr [rcx+28Dh] ; +0x12, 0x140190c92 xor edi, edi ; +0x1a, 0x140190c9a nop dword ptr [rax+00h] ; +0x1c, 0x140190c9c mov r8d, [rdx+4] ; +0x20, 0x140190ca0 mov eax, [rdx] ; +0x24, 0x140190ca4 cmp r8d, eax ; +0x26, 0x140190ca6 jz short loc_140190CAF ; +0x29, 0x140190ca9 test eax, eax ; +0x2b, 0x140190cab jnz short loc_140190CB2 ; +0x2d, 0x140190cad mov eax, r8d ; +0x2f, 0x140190caf mov ebx, edi ; +0x32, 0x140190cb2 test r9b, r9b ; +0x34, 0x140190cb4 cmovz ebx, eax ; +0x37, 0x140190cb7 test r10b, r10b ; +0x3a, 0x140190cba jnz loc_140190D7F ; +0x3d, 0x140190cbd mov eax, ebx ; +0x43, 0x140190cc3 test ebx, ebx ; +0x45, 0x140190cc5 jz loc_140190DD9 ; +0x47, 0x140190cc7 sub eax, 3EDh ; +0x4d, 0x140190ccd jz loc_140190D72 ; +0x52, 0x140190cd2 sub eax, 1 ; +0x58, 0x140190cd8 jz loc_140190D72 ; +0x5b, 0x140190cdb sub eax, 1 ; +0x61, 0x140190ce1 jz loc_140190D72 ; +0x64, 0x140190ce4 cmp eax, 5 ; +0x6a, 0x140190cea jnz short loc_140190CF8 ; +0x6d, 0x140190ced mov rdx, [rcx+450h] ; +0x6f, 0x140190cef jmp short loc_140190CA0 ; +0x76, 0x140190cf6 mov rax, cs:qword_1406C2ED8 ; +0x78, 0x140190cf8 test rax, rax ; +0x7f, 0x140190cff jnz short loc_140190D33 ; +0x82, 0x140190d02 mov ecx, 668h; Size ; +0x84, 0x140190d04 call ??2@YAPEAX_K@Z; operator new(unsigned __int64) ; +0x89, 0x140190d09 mov [rsp+28h+arg_0], rax ; +0x8e, 0x140190d0e mov rcx, rax ; +0x93, 0x140190d13 call sub_14017AB00 ; +0x96, 0x140190d16 nop ; +0x9b, 0x140190d1b mov cs:qword_1406C2ED8, rax ; +0x9c, 0x140190d1c mov rdx, [rax] ; +0xa3, 0x140190d23 mov rcx, rax ; +0xa6, 0x140190d26 call qword ptr [rdx+48h] ; +0xa9, 0x140190d29 mov rax, cs:qword_1406C2ED8 ; +0xac, 0x140190d2c test ebx, ebx ; +0xb3, 0x140190d33 cmovs ebx, edi ; +0xb5, 0x140190d35 mov ecx, 44Dh ; +0xb8, 0x140190d38 cmp ebx, ecx ; +0xbd, 0x140190d3d cmovg ebx, ecx ; +0xbf, 0x140190d3f mov rax, [rax+208h] ; +0xc2, 0x140190d42 mov rax, [rax+950h] ; +0xc9, 0x140190d49 movsxd rcx, ebx ; +0xd0, 0x140190d50 mov rax, [rax+2E0h] ; +0xd3, 0x140190d53 mov rax, [rax+rcx*8] ; +0xda, 0x140190d5a test rax, rax ; +0xde, 0x140190d5e jz short loc_140190DD9 ; +0xe1, 0x140190d61 movzx eax, byte ptr [rax+54h] ; +0xe3, 0x140190d63 mov rbx, [rsp+28h+arg_8] ; +0xe7, 0x140190d67 add rsp, 20h ; +0xec, 0x140190d6c pop rdi ; +0xf0, 0x140190d70 retn ; +0xf1, 0x140190d71 mov al, 1 ; +0xf2, 0x140190d72 mov rbx, [rsp+28h+arg_8] ; +0xf4, 0x140190d74 add rsp, 20h ; +0xf9, 0x140190d79 pop rdi ; +0xfd, 0x140190d7d retn ; +0xfe, 0x140190d7e mov rax, cs:qword_1406C2ED8 ; +0xff, 0x140190d7f test rax, rax ; +0x106, 0x140190d86 jnz short loc_140190DBA ; +0x109, 0x140190d89 mov ecx, 668h; Size ; +0x10b, 0x140190d8b call ??2@YAPEAX_K@Z; operator new(unsigned __int64) ; +0x110, 0x140190d90 mov [rsp+28h+arg_0], rax ; +0x115, 0x140190d95 mov rcx, rax ; +0x11a, 0x140190d9a call sub_14017AB00 ; +0x11d, 0x140190d9d nop ; +0x122, 0x140190da2 mov cs:qword_1406C2ED8, rax ; +0x123, 0x140190da3 mov rdx, [rax] ; +0x12a, 0x140190daa mov rcx, rax ; +0x12d, 0x140190dad call qword ptr [rdx+48h] ; +0x130, 0x140190db0 mov rax, cs:qword_1406C2ED8 ; +0x133, 0x140190db3 mov rdx, [rax+210h] ; +0x13a, 0x140190dba test ebx, ebx ; +0x141, 0x140190dc1 cmovs ebx, edi ; +0x143, 0x140190dc3 mov ecx, 44Dh ; +0x146, 0x140190dc6 cmp ebx, ecx ; +0x14b, 0x140190dcb cmovg ebx, ecx ; +0x14d, 0x140190dcd cmp byte ptr [rdx+38D1h], 0 ; +0x150, 0x140190dd0 jnz short loc_140190DE6 ; +0x157, 0x140190dd7 xor al, al ; +0x159, 0x140190dd9 mov rbx, [rsp+28h+arg_8] ; +0x15b, 0x140190ddb add rsp, 20h ; +0x160, 0x140190de0 pop rdi ; +0x164, 0x140190de4 retn ; +0x165, 0x140190de5 mov rdx, [rdx+3A10h] ; +0x166, 0x140190de6 movsxd rcx, ebx ; +0x16d, 0x140190ded mov rax, rcx ; +0x170, 0x140190df0 shr rax, 5 ; +0x173, 0x140190df3 lea r8, [rdx+rax*4] ; +0x177, 0x140190df7 and ecx, 1Fh ; +0x17b, 0x140190dfb mov eax, 1 ; +0x17e, 0x140190dfe shl eax, cl ; +0x183, 0x140190e03 test [r8], eax ; +0x185, 0x140190e05 setnz al ; +0x188, 0x140190e08 mov rbx, [rsp+28h+arg_8] ; +0x18b, 0x140190e0b add rsp, 20h ; +0x190, 0x140190e10 pop rdi ; +0x194, 0x140190e14 retn ; +0x195, 0x140190e15