; ; CustomizeObjectLayer::textChanged from 0x140143960 to 0x140143c0a (682 bytes) ; ; 2 xrefs: ; > @ 0x140739660 ; > @ 0x140917420 ; ; 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_10], rbx ; +0x0, 0x140143960 push rbp ; +0x5, 0x140143965 push rsi ; +0x6, 0x140143966 push rdi ; +0x7, 0x140143967 sub rsp, 80h ; +0x8, 0x140143968 mov rax, cs:__security_cookie ; +0xf, 0x14014396f xor rax, rsp ; +0x16, 0x140143976 mov [rsp+98h+var_20], rax ; +0x19, 0x140143979 mov rbx, rdx ; +0x1e, 0x14014397e mov rdi, rcx ; +0x21, 0x140143981 xor ebp, ebp ; +0x24, 0x140143984 cmp [rcx+17Ah], bpl ; +0x26, 0x140143986 jnz loc_140143BEA ; +0x2d, 0x14014398d mov rax, [rdx] ; +0x33, 0x140143993 mov rcx, rdx ; +0x36, 0x140143996 call qword ptr [rax+38h] ; +0x39, 0x140143999 test eax, eax ; +0x3c, 0x14014399c jnz loc_140143AF6 ; +0x3e, 0x14014399e mov rcx, [rbx+250h] ; +0x44, 0x1401439a4 add rcx, 258h ; +0x4b, 0x1401439ab mov rax, [rcx] ; +0x52, 0x1401439b2 call qword ptr [rax+8] ; +0x55, 0x1401439b5 xorps xmm0, xmm0 ; +0x58, 0x1401439b8 movups xmmword ptr [rsp+98h+String], xmm0 ; +0x5b, 0x1401439bb xorps xmm1, xmm1 ; +0x60, 0x1401439c0 movdqu [rsp+98h+var_30], xmm1 ; +0x63, 0x1401439c3 mov rbx, 0FFFFFFFFFFFFFFFFh ; +0x69, 0x1401439c9 inc rbx ; +0x70, 0x1401439d0 cmp [rax+rbx], bpl ; +0x73, 0x1401439d3 jnz short loc_1401439D0 ; +0x77, 0x1401439d7 mov r8, rbx ; +0x79, 0x1401439d9 mov rdx, rax ; +0x7c, 0x1401439dc lea rcx, [rsp+98h+String] ; +0x7f, 0x1401439df call sub_14003D230 ; +0x84, 0x1401439e4 lea rcx, [rsp+98h+String] ; +0x89, 0x1401439e9 cmp qword ptr [rsp+98h+var_30+8], 0Fh ; +0x8e, 0x1401439ee cmova rcx, [rsp+98h+String]; String ; +0x94, 0x1401439f4 call cs:atoi ; +0x9a, 0x1401439fa mov [rdi+0CCh], eax ; +0xa0, 0x140143a00 mov rdx, qword ptr [rsp+98h+var_30+8] ; +0xa6, 0x140143a06 cmp rdx, 0Fh ; +0xab, 0x140143a0b jbe short loc_140143A55 ; +0xaf, 0x140143a0f inc rdx ; +0xb1, 0x140143a11 mov rcx, [rsp+98h+String]; Block ; +0xb4, 0x140143a14 mov rax, rcx ; +0xb9, 0x140143a19 cmp rdx, 1000h ; +0xbc, 0x140143a1c jb short loc_140143A50 ; +0xc3, 0x140143a23 add rdx, 27h ; ''' ; +0xc5, 0x140143a25 mov rcx, [rcx-8] ; +0xc9, 0x140143a29 sub rax, rcx ; +0xcd, 0x140143a2d sub rax, 8 ; +0xd0, 0x140143a30 cmp rax, 1Fh ; +0xd4, 0x140143a34 jbe short loc_140143A50 ; +0xd8, 0x140143a38 mov [rsp+98h+Reserved], rbp; Reserved ; +0xda, 0x140143a3a xor r9d, r9d; LineNo ; +0xdf, 0x140143a3f xor r8d, r8d; FileName ; +0xe2, 0x140143a42 xor edx, edx; FunctionName ; +0xe5, 0x140143a45 xor ecx, ecx; Expression ; +0xe7, 0x140143a47 call cs:_invoke_watson ; +0xe9, 0x140143a49 align 10h ; +0xef, 0x140143a4f call j_j_free ; +0xf0, 0x140143a50 mov edx, [rdi+0CCh] ; +0xf5, 0x140143a55 lea rcx, word_1406ED6F8 ; +0xfb, 0x140143a5b call cs:?createWithFormat@CCString@cocos2d@@SAPEAV12@PEBDZZ; cocos2d::CCString::createWithFormat(char const *,...) ; +0x102, 0x140143a62 mov rcx, rax ; +0x108, 0x140143a68 call cs:?getCString@CCString@cocos2d@@QEBAPEBDXZ; cocos2d::CCString::getCString(void) ; +0x10b, 0x140143a6b mov rdx, rax ; +0x111, 0x140143a71 mov rcx, [rdi+138h] ; +0x114, 0x140143a74 call ButtonSprite__setString ; +0x11b, 0x140143a7b mov edx, [rdi+0CCh] ; +0x120, 0x140143a80 lea rcx, [rdi-220h] ; +0x126, 0x140143a86 call CustomizeObjectLayer__updateSelected ; +0x12d, 0x140143a8d lea rcx, [rdi-220h] ; +0x132, 0x140143a92 call CustomizeObjectLayer__updateColorSprite ; +0x139, 0x140143a99 mov edx, [rdi+0CCh] ; +0x13e, 0x140143a9e cmp edx, 3E8h ; +0x144, 0x140143aa4 jl short loc_140143AB8 ; +0x14a, 0x140143aaa mov ecx, edx ; +0x14c, 0x140143aac call GJSpecialColorSelect__textForColorIdx ; +0x14e, 0x140143aae mov rdx, rax ; +0x153, 0x140143ab3 jmp short loc_140143ADE ; +0x156, 0x140143ab6 test edx, edx ; +0x158, 0x140143ab8 jle short loc_140143AD7 ; +0x15a, 0x140143aba lea rcx, word_1406ED6F8 ; +0x15c, 0x140143abc call cs:?createWithFormat@CCString@cocos2d@@SAPEAV12@PEBDZZ; cocos2d::CCString::createWithFormat(char const *,...) ; +0x163, 0x140143ac3 mov rcx, rax ; +0x169, 0x140143ac9 call cs:?getCString@CCString@cocos2d@@QEBAPEBDXZ; cocos2d::CCString::getCString(void) ; +0x16c, 0x140143acc mov rdx, rax ; +0x172, 0x140143ad2 jmp short loc_140143ADE ; +0x175, 0x140143ad5 lea rdx, asc_1406ED6E4; " " ; +0x177, 0x140143ad7 mov rcx, [rdi+108h] ; +0x17e, 0x140143ade add rcx, 168h ; +0x185, 0x140143ae5 mov rax, [rcx] ; +0x18c, 0x140143aec call qword ptr [rax] ; +0x18f, 0x140143aef jmp loc_140143BEA ; +0x191, 0x140143af1 cmp eax, 1 ; +0x196, 0x140143af6 jnz loc_140143BEA ; +0x199, 0x140143af9 mov rcx, [rbx+250h] ; +0x19f, 0x140143aff add rcx, 258h ; +0x1a6, 0x140143b06 mov rax, [rcx] ; +0x1ad, 0x140143b0d call qword ptr [rax+8] ; +0x1b0, 0x140143b10 xorps xmm0, xmm0 ; +0x1b3, 0x140143b13 movups xmmword ptr [rsp+98h+String], xmm0 ; +0x1b6, 0x140143b16 xorps xmm1, xmm1 ; +0x1bb, 0x140143b1b movdqu [rsp+98h+var_30], xmm1 ; +0x1be, 0x140143b1e mov rbx, 0FFFFFFFFFFFFFFFFh ; +0x1c4, 0x140143b24 mov r8, rbx ; +0x1cb, 0x140143b2b xchg ax, ax ; +0x1ce, 0x140143b2e inc r8 ; +0x1d0, 0x140143b30 cmp [rax+r8], bpl ; +0x1d3, 0x140143b33 jnz short loc_140143B30 ; +0x1d7, 0x140143b37 mov rdx, rax ; +0x1d9, 0x140143b39 lea rcx, [rsp+98h+String] ; +0x1dc, 0x140143b3c call sub_14003D230 ; +0x1e1, 0x140143b41 nop ; +0x1e6, 0x140143b46 lea rdx, [rsp+98h+String] ; +0x1e7, 0x140143b47 cmp qword ptr [rsp+98h+var_30+8], 0Fh ; +0x1ec, 0x140143b4c cmova rdx, [rsp+98h+String] ; +0x1f2, 0x140143b52 xorps xmm0, xmm0 ; +0x1f8, 0x140143b58 movups [rsp+98h+var_60], xmm0 ; +0x1fb, 0x140143b5b mov [rsp+98h+var_50], rbp ; +0x200, 0x140143b60 mov [rsp+98h+var_48], rbp ; +0x205, 0x140143b65 nop word ptr [rax+rax+00h] ; +0x20a, 0x140143b6a inc rbx ; +0x210, 0x140143b70 cmp byte ptr [rdx+rbx], 0 ; +0x213, 0x140143b73 jnz short loc_140143B70 ; +0x217, 0x140143b77 mov r8, rbx ; +0x219, 0x140143b79 lea rcx, [rsp+98h+var_60] ; +0x21c, 0x140143b7c call sub_14003D230 ; +0x221, 0x140143b81 xor r8d, r8d ; +0x226, 0x140143b86 lea rdx, [rsp+98h+var_60] ; +0x229, 0x140143b89 mov rcx, [rdi+90h] ; +0x22e, 0x140143b8e call TextGameObject__updateTextObject ; +0x235, 0x140143b95 nop ; +0x23a, 0x140143b9a mov rdx, qword ptr [rsp+98h+var_30+8] ; +0x23b, 0x140143b9b cmp rdx, 0Fh ; +0x240, 0x140143ba0 jbe short loc_140143BEA ; +0x244, 0x140143ba4 inc rdx ; +0x246, 0x140143ba6 mov rcx, [rsp+98h+String]; Block ; +0x249, 0x140143ba9 mov rax, rcx ; +0x24e, 0x140143bae cmp rdx, 1000h ; +0x251, 0x140143bb1 jb short loc_140143BE5 ; +0x258, 0x140143bb8 add rdx, 27h ; ''' ; +0x25a, 0x140143bba mov rcx, [rcx-8] ; +0x25e, 0x140143bbe sub rax, rcx ; +0x262, 0x140143bc2 sub rax, 8 ; +0x265, 0x140143bc5 cmp rax, 1Fh ; +0x269, 0x140143bc9 jbe short loc_140143BE5 ; +0x26d, 0x140143bcd mov [rsp+98h+Reserved], rbp; Reserved ; +0x26f, 0x140143bcf xor r9d, r9d; LineNo ; +0x274, 0x140143bd4 xor r8d, r8d; FileName ; +0x277, 0x140143bd7 xor edx, edx; FunctionName ; +0x27a, 0x140143bda xor ecx, ecx; Expression ; +0x27c, 0x140143bdc call cs:_invoke_watson ; +0x27e, 0x140143bde db 0CCh ; +0x284, 0x140143be4 call j_j_free ; +0x285, 0x140143be5 mov rcx, [rsp+98h+var_20] ; +0x28a, 0x140143bea xor rcx, rsp; StackCookie ; +0x28f, 0x140143bef call __security_check_cookie ; +0x292, 0x140143bf2 mov rbx, [rsp+98h+arg_10] ; +0x297, 0x140143bf7 add rsp, 80h ; +0x29f, 0x140143bff pop rdi ; +0x2a6, 0x140143c06 pop rsi ; +0x2a7, 0x140143c07 pop rbp ; +0x2a8, 0x140143c08 retn ; +0x2a9, 0x140143c09