; ; CustomizeObjectLayer::determineStartValues from 0x140142800 to 0x140142a21 (545 bytes) ; ; 2 xrefs: ; > CustomizeObjectLayer::init @ 0x14013f994 ; > @ 0x140917384 ; ; 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:27:10 +0000 ; mov [rsp+arg_8], rbx ; +0x0, 0x140142800 push rsi ; +0x5, 0x140142805 sub rsp, 20h ; +0x6, 0x140142806 mov rbx, rcx ; +0xa, 0x14014280a mov rcx, [rcx+2B0h] ; +0xd, 0x14014280d test rcx, rcx ; +0x14, 0x140142814 jz loc_1401428DF ; +0x17, 0x140142817 movzx eax, word ptr [rcx+418h] ; +0x1d, 0x14014281d test ax, ax ; +0x24, 0x140142824 jnz short loc_140142832 ; +0x27, 0x140142827 movzx eax, byte ptr [rcx+514h] ; +0x29, 0x140142829 jmp short loc_140142839 ; +0x30, 0x140142830 cmp ax, 1 ; +0x32, 0x140142832 setz al ; +0x36, 0x140142836 test al, al ; +0x39, 0x140142839 jnz short loc_140142861 ; +0x3b, 0x14014283b cmp qword ptr [rcx+380h], 0 ; +0x3d, 0x14014283d jnz short loc_140142861 ; +0x45, 0x140142845 mov rax, [rcx+450h] ; +0x47, 0x140142847 mov edx, [rax+4] ; +0x4e, 0x14014284e cmp edx, 3ECh ; +0x51, 0x140142851 jz short loc_140142861 ; +0x57, 0x140142857 test edx, edx ; +0x59, 0x140142859 jz short loc_140142861 ; +0x5b, 0x14014285b xor esi, esi ; +0x5d, 0x14014285d jmp short loc_140142868 ; +0x5f, 0x14014285f mov rsi, [rcx+450h] ; +0x61, 0x140142861 test rsi, rsi ; +0x68, 0x140142868 setnz al ; +0x6b, 0x14014286b mov [rbx+2F0h], al ; +0x6e, 0x14014286e movzx eax, word ptr [rcx+418h] ; +0x74, 0x140142874 test ax, ax ; +0x7b, 0x14014287b jnz short loc_140142889 ; +0x7e, 0x14014287e movzx eax, byte ptr [rcx+514h] ; +0x80, 0x140142880 jmp short loc_140142890 ; +0x87, 0x140142887 cmp ax, 1 ; +0x89, 0x140142889 setz al ; +0x8d, 0x14014288d test al, al ; +0x90, 0x140142890 jnz short loc_1401428B4 ; +0x92, 0x140142892 cmp qword ptr [rcx+380h], 0 ; +0x94, 0x140142894 jnz short loc_1401428B4 ; +0x9c, 0x14014289c mov rax, [rcx+450h] ; +0x9e, 0x14014289e mov edx, [rax+4] ; +0xa5, 0x1401428a5 cmp edx, 3ECh ; +0xa8, 0x1401428a8 jz short loc_1401428B4 ; +0xae, 0x1401428ae test edx, edx ; +0xb0, 0x1401428b0 jnz short loc_1401428BB ; +0xb2, 0x1401428b2 mov rax, [rcx+458h] ; +0xb4, 0x1401428b4 test rax, rax ; +0xbb, 0x1401428bb setnz al ; +0xbe, 0x1401428be mov [rbx+2F1h], al ; +0xc1, 0x1401428c1 movzx eax, byte ptr [rcx+404h] ; +0xc7, 0x1401428c7 mov [rbx+2F2h], al ; +0xce, 0x1401428ce mov rbx, [rsp+28h+arg_8] ; +0xd4, 0x1401428d4 add rsp, 20h ; +0xd9, 0x1401428d9 pop rsi ; +0xdd, 0x1401428dd retn ; +0xde, 0x1401428de mov rcx, [rbx+2B8h] ; +0xdf, 0x1401428df xor esi, esi ; +0xe6, 0x1401428e6 mov [rsp+28h+arg_0], rdi ; +0xe8, 0x1401428e8 mov edi, esi ; +0xed, 0x1401428ed mov byte ptr [rbx+2F2h], 1 ; +0xef, 0x1401428ef call cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0xf6, 0x1401428f6 test eax, eax ; +0xfc, 0x1401428fc jz loc_140142A11 ; +0xfe, 0x1401428fe nop dword ptr [rax+00h] ; +0x104, 0x140142904 nop dword ptr [rax+rax+00000000h] ; +0x108, 0x140142908 mov rcx, [rbx+2B8h] ; +0x110, 0x140142910 mov edx, edi ; +0x117, 0x140142917 call cs:?objectAtIndex@CCArray@cocos2d@@QEAAPEAVCCObject@2@I@Z; cocos2d::CCArray::objectAtIndex(uint) ; +0x119, 0x140142919 mov rcx, rax ; +0x11f, 0x14014291f cmp [rbx+2F0h], sil ; +0x122, 0x140142922 jz short loc_14014293A ; +0x129, 0x140142929 cmp [rbx+2F1h], sil ; +0x12b, 0x14014292b jnz loc_1401429EA ; +0x132, 0x140142932 jmp short loc_14014298F ; +0x138, 0x140142938 movzx eax, word ptr [rax+418h] ; +0x13a, 0x14014293a test ax, ax ; +0x141, 0x140142941 jnz short loc_14014294F ; +0x144, 0x140142944 movzx eax, byte ptr [rcx+514h] ; +0x146, 0x140142946 jmp short loc_140142956 ; +0x14d, 0x14014294d cmp ax, 1 ; +0x14f, 0x14014294f setz al ; +0x153, 0x140142953 test al, al ; +0x156, 0x140142956 jnz short loc_14014297C ; +0x158, 0x140142958 cmp [rcx+380h], rsi ; +0x15a, 0x14014295a jnz short loc_14014297C ; +0x161, 0x140142961 mov rax, [rcx+450h] ; +0x163, 0x140142963 mov edx, [rax+4] ; +0x16a, 0x14014296a cmp edx, 3ECh ; +0x16d, 0x14014296d jz short loc_14014297C ; +0x173, 0x140142973 mov rax, rsi ; +0x175, 0x140142975 test edx, edx ; +0x178, 0x140142978 jnz short loc_140142983 ; +0x17a, 0x14014297a mov rax, [rcx+450h] ; +0x17c, 0x14014297c test rax, rax ; +0x183, 0x140142983 setnz al ; +0x186, 0x140142986 mov [rbx+2F0h], al ; +0x189, 0x140142989 cmp [rbx+2F1h], sil ; +0x18f, 0x14014298f jnz short loc_1401429EA ; +0x196, 0x140142996 movzx eax, word ptr [rcx+418h] ; +0x198, 0x140142998 test ax, ax ; +0x19f, 0x14014299f jnz short loc_1401429AD ; +0x1a2, 0x1401429a2 movzx eax, byte ptr [rcx+514h] ; +0x1a4, 0x1401429a4 jmp short loc_1401429B4 ; +0x1ab, 0x1401429ab cmp ax, 1 ; +0x1ad, 0x1401429ad setz al ; +0x1b1, 0x1401429b1 test al, al ; +0x1b4, 0x1401429b4 jnz short loc_1401429D7 ; +0x1b6, 0x1401429b6 cmp [rcx+380h], rsi ; +0x1b8, 0x1401429b8 jnz short loc_1401429D7 ; +0x1bf, 0x1401429bf mov rax, [rcx+450h] ; +0x1c1, 0x1401429c1 mov edx, [rax+4] ; +0x1c8, 0x1401429c8 cmp edx, 3ECh ; +0x1cb, 0x1401429cb jz short loc_1401429D7 ; +0x1d1, 0x1401429d1 test edx, edx ; +0x1d3, 0x1401429d3 jnz short loc_1401429DE ; +0x1d5, 0x1401429d5 mov rax, [rcx+458h] ; +0x1d7, 0x1401429d7 test rax, rax ; +0x1de, 0x1401429de setnz al ; +0x1e1, 0x1401429e1 mov [rbx+2F1h], al ; +0x1e4, 0x1401429e4 cmp [rcx+404h], sil ; +0x1ea, 0x1401429ea jnz short loc_1401429FA ; +0x1f1, 0x1401429f1 mov [rbx+2F2h], sil ; +0x1f3, 0x1401429f3 mov rcx, [rbx+2B8h] ; +0x1fa, 0x1401429fa inc edi ; +0x201, 0x140142a01 call cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x203, 0x140142a03 cmp edi, eax ; +0x209, 0x140142a09 jb loc_140142910 ; +0x20b, 0x140142a0b mov rdi, [rsp+28h+arg_0] ; +0x211, 0x140142a11 mov rbx, [rsp+28h+arg_8] ; +0x216, 0x140142a16 add rsp, 20h ; +0x21b, 0x140142a1b pop rsi ; +0x21f, 0x140142a1f retn ; +0x220, 0x140142a20