; ; GJSmartTemplate::dataLoaded from 0x1402b5540 to 0x1402b580f (719 bytes) ; ; 3 xrefs: ; > GJObjectDecoder::getDecodedObject @ 0x1402843d5 ; > @ 0x1406d2420 ; > @ 0x1406d242c ; ; 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-38h+arg_10], rbx ; +0x0, 0x1402b5540 push rbp ; +0x5, 0x1402b5545 push rsi ; +0x6, 0x1402b5546 push rdi ; +0x7, 0x1402b5547 push r12 ; +0x8, 0x1402b5548 push r13 ; +0xa, 0x1402b554a push r14 ; +0xc, 0x1402b554c push r15 ; +0xe, 0x1402b554e mov rbp, rsp ; +0x10, 0x1402b5550 sub rsp, 70h ; +0x13, 0x1402b5553 mov rax, cs:__security_cookie ; +0x17, 0x1402b5557 xor rax, rsp ; +0x1e, 0x1402b555e mov [rbp+var_8], rax ; +0x21, 0x1402b5561 mov rbx, rdx ; +0x25, 0x1402b5565 mov r15, rcx ; +0x28, 0x1402b5568 lea rdx, word_140531EA4 ; +0x2b, 0x1402b556b mov rcx, rbx ; +0x32, 0x1402b5572 call cs:?getIntegerForKey@DS_Dictionary@@QEAAHPEBD@Z; DS_Dictionary::getIntegerForKey(char const *) ; +0x35, 0x1402b5575 mov [r15+0C8h], eax ; +0x3b, 0x1402b557b lea r8, word_140531EA0 ; +0x42, 0x1402b5582 lea rdx, [rbp+var_28] ; +0x49, 0x1402b5589 mov rcx, rbx ; +0x4d, 0x1402b558d call cs:?getStringForKey@DS_Dictionary@@QEAA?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@PEBD@Z; DS_Dictionary::getStringForKey(char const *) ; +0x50, 0x1402b5590 lea rcx, [r15+88h] ; +0x56, 0x1402b5596 mov rdx, rax ; +0x5d, 0x1402b559d call sub_140051590 ; +0x60, 0x1402b55a0 lea rcx, [rbp+var_28] ; +0x65, 0x1402b55a5 call sub_14003A830 ; +0x69, 0x1402b55a9 lea rdx, word_140531E94 ; +0x6e, 0x1402b55ae mov rcx, rbx ; +0x75, 0x1402b55b5 call cs:?getIntegerForKey@DS_Dictionary@@QEAAHPEBD@Z; DS_Dictionary::getIntegerForKey(char const *) ; +0x78, 0x1402b55b8 test eax, eax ; +0x7e, 0x1402b55be setnz al ; +0x80, 0x1402b55c0 mov [r15+82h], al ; +0x83, 0x1402b55c3 lea rdx, word_140531E90 ; +0x8a, 0x1402b55ca mov rcx, rbx ; +0x91, 0x1402b55d1 call cs:?getIntegerForKey@DS_Dictionary@@QEAAHPEBD@Z; DS_Dictionary::getIntegerForKey(char const *) ; +0x94, 0x1402b55d4 test eax, eax ; +0x9a, 0x1402b55da setnz al ; +0x9c, 0x1402b55dc mov [r15+80h], al ; +0x9f, 0x1402b55df lea rdx, a6; "6" ; +0xa6, 0x1402b55e6 mov rcx, rbx ; +0xad, 0x1402b55ed call cs:?getIntegerForKey@DS_Dictionary@@QEAAHPEBD@Z; DS_Dictionary::getIntegerForKey(char const *) ; +0xb0, 0x1402b55f0 test eax, eax ; +0xb6, 0x1402b55f6 setnz al ; +0xb8, 0x1402b55f8 mov [r15+81h], al ; +0xbb, 0x1402b55fb lea rdx, word_140531E88 ; +0xc2, 0x1402b5602 mov rcx, rbx ; +0xc9, 0x1402b5609 call cs:?getIntegerForKey@DS_Dictionary@@QEAAHPEBD@Z; DS_Dictionary::getIntegerForKey(char const *) ; +0xcc, 0x1402b560c test eax, eax ; +0xd2, 0x1402b5612 setnz al ; +0xd4, 0x1402b5614 mov [r15+83h], al ; +0xd7, 0x1402b5617 xor r8d, r8d ; +0xde, 0x1402b561e lea rdx, word_140531E9C ; +0xe1, 0x1402b5621 mov rcx, rbx ; +0xe8, 0x1402b5628 call cs:?getDictForKey@DS_Dictionary@@QEAAPEAVCCDictionary@cocos2d@@PEBD_N@Z; DS_Dictionary::getDictForKey(char const *,bool) ; +0xeb, 0x1402b562b mov rbx, rax ; +0xf1, 0x1402b5631 mov rcx, [r15+38h] ; +0xf4, 0x1402b5634 cmp rcx, rax ; +0xf8, 0x1402b5638 jz short loc_1402B5661 ; +0xfb, 0x1402b563b test rax, rax ; +0xfd, 0x1402b563d jz short loc_1402B564B ; +0x100, 0x1402b5640 mov rcx, rax ; +0x102, 0x1402b5642 call cs:?retain@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::retain(void) ; +0x105, 0x1402b5645 mov rcx, [r15+38h] ; +0x10b, 0x1402b564b test rcx, rcx ; +0x10f, 0x1402b564f jz short loc_1402B565A ; +0x112, 0x1402b5652 call cs:?release@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::release(void) ; +0x114, 0x1402b5654 mov [r15+38h], rbx ; +0x11a, 0x1402b565a mov rcx, rbx ; +0x11e, 0x1402b565e call cs:?allKeys@CCDictionary@cocos2d@@QEAAPEAVCCArray@2@XZ; cocos2d::CCDictionary::allKeys(void) ; +0x121, 0x1402b5661 mov r12, rax ; +0x127, 0x1402b5667 xor r13d, r13d ; +0x12a, 0x1402b566a mov r14d, r13d ; +0x12d, 0x1402b566d mov rcx, rax ; +0x130, 0x1402b5670 call cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x133, 0x1402b5673 test eax, eax ; +0x139, 0x1402b5679 jz loc_1402B57E5 ; +0x13b, 0x1402b567b mov edx, r14d ; +0x141, 0x1402b5681 mov rcx, r12 ; +0x144, 0x1402b5684 call cs:?stringAtIndex@CCArray@cocos2d@@QEAAPEAVCCString@2@I@Z; cocos2d::CCArray::stringAtIndex(uint) ; +0x147, 0x1402b5687 mov rcx, rax ; +0x14d, 0x1402b568d call cs:?getCString@CCString@cocos2d@@QEBAPEBDXZ; cocos2d::CCString::getCString(void) ; +0x150, 0x1402b5690 xorps xmm0, xmm0 ; +0x156, 0x1402b5696 movups xmmword ptr [rbp+Src], xmm0 ; +0x159, 0x1402b5699 mov [rbp+Size], r13 ; +0x15d, 0x1402b569d mov [rbp+var_30], r13 ; +0x161, 0x1402b56a1 mov r8, 0FFFFFFFFFFFFFFFFh ; +0x165, 0x1402b56a5 nop dword ptr [rax+00h] ; +0x16c, 0x1402b56ac inc r8 ; +0x170, 0x1402b56b0 cmp byte ptr [rax+r8], 0 ; +0x173, 0x1402b56b3 jnz short loc_1402B56B0 ; +0x178, 0x1402b56b8 mov rdx, rax ; +0x17a, 0x1402b56ba lea rcx, [rbp+Src] ; +0x17d, 0x1402b56bd call sub_14003A930 ; +0x181, 0x1402b56c1 nop ; +0x186, 0x1402b56c6 xorps xmm0, xmm0 ; +0x187, 0x1402b56c7 movups [rbp+var_28], xmm0 ; +0x18a, 0x1402b56ca mov [rbp+var_18], r13 ; +0x18e, 0x1402b56ce mov [rbp+var_10], r13 ; +0x192, 0x1402b56d2 lea rsi, [rbp+Src] ; +0x196, 0x1402b56d6 cmp [rbp+var_30], 0Fh ; +0x19a, 0x1402b56da cmova rsi, [rbp+Src] ; +0x19f, 0x1402b56df mov rdi, [rbp+Size] ; +0x1a4, 0x1402b56e4 mov rax, 7FFFFFFFFFFFFFFFh ; +0x1a8, 0x1402b56e8 cmp rdi, rax ; +0x1b2, 0x1402b56f2 ja loc_1402B5809 ; +0x1b5, 0x1402b56f5 mov [rbp+var_10], 0Fh ; +0x1bb, 0x1402b56fb cmp rdi, 0Fh ; +0x1c3, 0x1402b5703 ja short loc_1402B5716 ; +0x1c7, 0x1402b5707 mov [rbp+var_18], rdi ; +0x1c9, 0x1402b5709 movups xmm0, xmmword ptr [rsi] ; +0x1cd, 0x1402b570d movups [rbp+var_28], xmm0 ; +0x1d0, 0x1402b5710 jmp short loc_1402B5758 ; +0x1d4, 0x1402b5714 mov rbx, rdi ; +0x1d6, 0x1402b5716 or rbx, 0Fh ; +0x1d9, 0x1402b5719 cmp rbx, rax ; +0x1dd, 0x1402b571d jbe short loc_1402B5727 ; +0x1e0, 0x1402b5720 mov rbx, rax ; +0x1e2, 0x1402b5722 jmp short loc_1402B5734 ; +0x1e5, 0x1402b5725 cmp rbx, 16h ; +0x1e7, 0x1402b5727 mov eax, 16h ; +0x1eb, 0x1402b572b cmovb rbx, rax ; +0x1f0, 0x1402b5730 lea rcx, [rbx+1] ; +0x1f4, 0x1402b5734 call sub_14003AA10 ; +0x1f8, 0x1402b5738 mov qword ptr [rbp+var_28], rax ; +0x1fd, 0x1402b573d mov [rbp+var_18], rdi ; +0x201, 0x1402b5741 mov [rbp+var_10], rbx ; +0x205, 0x1402b5745 lea r8, [rdi+1]; Size ; +0x209, 0x1402b5749 mov rdx, rsi; Src ; +0x20d, 0x1402b574d mov rcx, rax; void * ; +0x210, 0x1402b5750 call memcpy ; +0x213, 0x1402b5753 lea rdx, [rbp+var_28] ; +0x218, 0x1402b5758 mov rcx, r15 ; +0x21c, 0x1402b575c call GJSmartTemplate__saveRemap ; +0x21f, 0x1402b575f lea rdx, [rbp+Src] ; +0x224, 0x1402b5764 mov rcx, [r15+38h] ; +0x228, 0x1402b5768 call cs:?objectForKey@CCDictionary@cocos2d@@QEAAPEAVCCObject@2@AEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z; cocos2d::CCDictionary::objectForKey(std::string const &) ; +0x22c, 0x1402b576c test rax, rax ; +0x232, 0x1402b5772 jz short loc_1402B57C7 ; +0x235, 0x1402b5775 mov rbx, [rax+38h] ; +0x237, 0x1402b5777 mov eax, [rbx] ; +0x23b, 0x1402b577b test eax, eax ; +0x23d, 0x1402b577d jz short loc_1402B57C7 ; +0x23f, 0x1402b577f mov rbx, [rbx+10h] ; +0x241, 0x1402b5781 lea rdi, [rax-1] ; +0x245, 0x1402b5785 lea rdi, [rbx+rdi*8] ; +0x249, 0x1402b5789 cmp rbx, rdi ; +0x24d, 0x1402b578d ja short loc_1402B57C7 ; +0x250, 0x1402b5790 mov rax, [rbx] ; +0x252, 0x1402b5792 test rax, rax ; +0x255, 0x1402b5795 jz short loc_1402B57C7 ; +0x258, 0x1402b5798 lea rcx, [rax+38h]; void * ; +0x25a, 0x1402b579a lea rax, [rbp+Src] ; +0x25e, 0x1402b579e cmp rcx, rax ; +0x262, 0x1402b57a2 jz short loc_1402B57BE ; +0x265, 0x1402b57a5 lea rdx, [rbp+Src] ; +0x267, 0x1402b57a7 cmp [rbp+var_30], 0Fh ; +0x26b, 0x1402b57ab cmova rdx, [rbp+Src]; Src ; +0x270, 0x1402b57b0 mov r8, [rbp+Size]; Size ; +0x275, 0x1402b57b5 call sub_14003CCE0 ; +0x279, 0x1402b57b9 add rbx, 8 ; +0x27e, 0x1402b57be cmp rbx, rdi ; +0x282, 0x1402b57c2 jbe short loc_1402B5792 ; +0x285, 0x1402b57c5 lea rcx, [rbp+Src] ; +0x287, 0x1402b57c7 call sub_14003A830 ; +0x28b, 0x1402b57cb inc r14d ; +0x290, 0x1402b57d0 mov rcx, r12 ; +0x293, 0x1402b57d3 call cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x296, 0x1402b57d6 cmp r14d, eax ; +0x29c, 0x1402b57dc jb loc_1402B5681 ; +0x29f, 0x1402b57df mov rcx, [rbp+var_8] ; +0x2a5, 0x1402b57e5 xor rcx, rsp; StackCookie ; +0x2a9, 0x1402b57e9 call __security_check_cookie ; +0x2ac, 0x1402b57ec mov rbx, [rsp+70h+arg_10] ; +0x2b1, 0x1402b57f1 add rsp, 70h ; +0x2b9, 0x1402b57f9 pop r15 ; +0x2bd, 0x1402b57fd pop r14 ; +0x2bf, 0x1402b57ff pop r13 ; +0x2c1, 0x1402b5801 pop r12 ; +0x2c3, 0x1402b5803 pop rdi ; +0x2c5, 0x1402b5805 pop rsi ; +0x2c6, 0x1402b5806 pop rbp ; +0x2c7, 0x1402b5807 retn ; +0x2c8, 0x1402b5808 call sub_140007B50 ; +0x2c9, 0x1402b5809 db 90h ; +0x2ce, 0x1402b580e