; ; GJSmartTemplate::saveRemapToDict from 0x1402b0ef0 to 0x1402b10c5 (469 bytes) ; ; 8 xrefs: ; > GJSmartTemplate::saveRemap @ 0x1402b0b9e ; > GJSmartTemplate::saveRemap @ 0x1402b0be1 ; > GJSmartTemplate::saveRemap @ 0x1402b0c24 ; > GJSmartTemplate::saveRemap @ 0x1402b0d1e ; > GJSmartTemplate::saveRemap @ 0x1402b0d63 ; > GJSmartTemplate::saveRemap @ 0x1402b0e47 ; > GJSmartTemplate::saveRemap @ 0x1402b0e8a ; > @ 0x1406d233c ; ; 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_0], rbx ; +0x0, 0x1402b0ef0 push rbp ; +0x5, 0x1402b0ef5 push rsi ; +0x6, 0x1402b0ef6 push rdi ; +0x7, 0x1402b0ef7 push r12 ; +0x8, 0x1402b0ef8 push r13 ; +0xa, 0x1402b0efa push r14 ; +0xc, 0x1402b0efc push r15 ; +0xe, 0x1402b0efe sub rsp, 70h ; +0x10, 0x1402b0f00 mov rax, cs:__security_cookie ; +0x14, 0x1402b0f04 xor rax, rsp ; +0x1b, 0x1402b0f0b mov [rsp+0A8h+var_48], rax ; +0x1e, 0x1402b0f0e mov rbx, r9 ; +0x23, 0x1402b0f13 mov rsi, r8 ; +0x26, 0x1402b0f16 mov rdi, rdx ; +0x29, 0x1402b0f19 mov [rsp+0A8h+var_80], rdx ; +0x2c, 0x1402b0f1c mov [rsp+0A8h+var_78], rdx ; +0x31, 0x1402b0f21 mov [rsp+0A8h+var_70], r8 ; +0x36, 0x1402b0f26 cmp qword ptr [rdx+10h], 0 ; +0x3b, 0x1402b0f2b jz loc_1402B108D ; +0x40, 0x1402b0f30 mov rcx, rbx ; +0x46, 0x1402b0f36 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 &) ; +0x49, 0x1402b0f39 mov r12, rax ; +0x4f, 0x1402b0f3f test rax, rax ; +0x52, 0x1402b0f42 jnz short loc_1402B0F5F ; +0x55, 0x1402b0f45 call cs:?create@CCArray@cocos2d@@SAPEAV12@XZ; cocos2d::CCArray::create(void) ; +0x57, 0x1402b0f47 mov r12, rax ; +0x5d, 0x1402b0f4d mov r8, rdi ; +0x60, 0x1402b0f50 mov rdx, rax ; +0x63, 0x1402b0f53 mov rcx, rbx ; +0x66, 0x1402b0f56 call cs:?setObject@CCDictionary@cocos2d@@QEAAXPEAVCCObject@2@AEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z; cocos2d::CCDictionary::setObject(cocos2d::CCObject *,std::string const &) ; +0x69, 0x1402b0f59 xor ebx, ebx ; +0x6f, 0x1402b0f5f mov r15d, ebx ; +0x71, 0x1402b0f61 mov rcx, r12 ; +0x74, 0x1402b0f64 call cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x77, 0x1402b0f67 test eax, eax ; +0x7d, 0x1402b0f6d jz loc_1402B1077 ; +0x7f, 0x1402b0f6f nop word ptr [rax+rax+00000000h] ; +0x85, 0x1402b0f75 mov edx, r15d ; +0x90, 0x1402b0f80 mov rcx, r12 ; +0x93, 0x1402b0f83 call cs:?stringAtIndex@CCArray@cocos2d@@QEAAPEAVCCString@2@I@Z; cocos2d::CCArray::stringAtIndex(uint) ; +0x96, 0x1402b0f86 mov rcx, rax ; +0x9c, 0x1402b0f8c call cs:?getCString@CCString@cocos2d@@QEBAPEBDXZ; cocos2d::CCString::getCString(void) ; +0x9f, 0x1402b0f8f xorps xmm0, xmm0 ; +0xa5, 0x1402b0f95 movups xmmword ptr [rsp+0A8h+Buf1], xmm0 ; +0xa8, 0x1402b0f98 mov [rsp+0A8h+var_58], rbx ; +0xad, 0x1402b0f9d mov [rsp+0A8h+var_50], rbx ; +0xb2, 0x1402b0fa2 mov r8, 0FFFFFFFFFFFFFFFFh ; +0xb7, 0x1402b0fa7 xchg ax, ax ; +0xbe, 0x1402b0fae inc r8 ; +0xc0, 0x1402b0fb0 cmp byte ptr [rax+r8], 0 ; +0xc3, 0x1402b0fb3 jnz short loc_1402B0FB0 ; +0xc8, 0x1402b0fb8 mov rdx, rax ; +0xca, 0x1402b0fba lea rcx, [rsp+0A8h+Buf1] ; +0xcd, 0x1402b0fbd call sub_14003A930 ; +0xd2, 0x1402b0fc2 mov rdx, rsi ; +0xd7, 0x1402b0fc7 cmp qword ptr [rsi+18h], 0Fh ; +0xda, 0x1402b0fca jbe short loc_1402B0FD4 ; +0xdf, 0x1402b0fcf mov rdx, [rsi]; Buf2 ; +0xe1, 0x1402b0fd1 lea rcx, [rsp+0A8h+Buf1] ; +0xe4, 0x1402b0fd4 mov r13, [rsp+0A8h+var_50] ; +0xe9, 0x1402b0fd9 cmp r13, 0Fh ; +0xee, 0x1402b0fde setnbe [rsp+0A8h+var_88] ; +0xf2, 0x1402b0fe2 mov rdi, [rsp+0A8h+Buf1] ; +0xf7, 0x1402b0fe7 cmova rcx, rdi; Buf1 ; +0xfc, 0x1402b0fec mov r14, [rsi+10h] ; +0x100, 0x1402b0ff0 mov rbp, [rsp+0A8h+var_58] ; +0x104, 0x1402b0ff4 mov r8, rbp ; +0x109, 0x1402b0ff9 cmp r14, rbp ; +0x10c, 0x1402b0ffc cmovb r8, r14; Size ; +0x10f, 0x1402b0fff call memcmp ; +0x113, 0x1402b1003 mov ebx, eax ; +0x118, 0x1402b1008 test eax, eax ; +0x11a, 0x1402b100a jnz short loc_1402B1020 ; +0x11c, 0x1402b100c cmp rbp, r14 ; +0x11e, 0x1402b100e jnb short loc_1402B1018 ; +0x121, 0x1402b1011 lea ebx, [rax-1] ; +0x123, 0x1402b1013 jmp short loc_1402B1020 ; +0x126, 0x1402b1016 xor ebx, ebx ; +0x128, 0x1402b1018 cmp rbp, r14 ; +0x12a, 0x1402b101a setnbe bl ; +0x12d, 0x1402b101d cmp [rsp+0A8h+var_88], 0 ; +0x130, 0x1402b1020 jz short loc_1402B1054 ; +0x135, 0x1402b1025 lea rdx, [r13+1] ; +0x137, 0x1402b1027 mov rax, rdi ; +0x13b, 0x1402b102b cmp rdx, 1000h ; +0x13e, 0x1402b102e jb short loc_1402B104C ; +0x145, 0x1402b1035 add rdx, 27h ; ''' ; +0x147, 0x1402b1037 mov rdi, [rdi-8] ; +0x14b, 0x1402b103b sub rax, rdi ; +0x14f, 0x1402b103f add rax, 0FFFFFFFFFFFFFFF8h ; +0x152, 0x1402b1042 cmp rax, 1Fh ; +0x156, 0x1402b1046 ja short loc_1402B1070 ; +0x15a, 0x1402b104a mov rcx, rdi; Block ; +0x15c, 0x1402b104c call j_j_free ; +0x15f, 0x1402b104f test ebx, ebx ; +0x164, 0x1402b1054 jz short loc_1402B108D ; +0x166, 0x1402b1056 inc r15d ; +0x168, 0x1402b1058 mov rcx, r12 ; +0x16b, 0x1402b105b call cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x16e, 0x1402b105e cmp r15d, eax ; +0x174, 0x1402b1064 jnb short loc_1402B1077 ; +0x177, 0x1402b1067 xor ebx, ebx ; +0x179, 0x1402b1069 jmp loc_1402B0F80 ; +0x17b, 0x1402b106b call cs:_invalid_parameter_noinfo_noreturn ; +0x180, 0x1402b1070 db 0CCh ; +0x186, 0x1402b1076 mov rcx, rsi ; +0x187, 0x1402b1077 call cs:?create@CCString@cocos2d@@SAPEAV12@AEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z; cocos2d::CCString::create(std::string const &) ; +0x18a, 0x1402b107a mov rdx, rax ; +0x190, 0x1402b1080 mov rcx, r12 ; +0x193, 0x1402b1083 call cs:?addObject@CCArray@cocos2d@@QEAAXPEAVCCObject@2@@Z; cocos2d::CCArray::addObject(cocos2d::CCObject *) ; +0x196, 0x1402b1086 nop ; +0x19c, 0x1402b108c mov rcx, [rsp+0A8h+var_80] ; +0x19d, 0x1402b108d call sub_14003A830 ; +0x1a2, 0x1402b1092 nop ; +0x1a7, 0x1402b1097 mov rcx, rsi ; +0x1a8, 0x1402b1098 call sub_14003A830 ; +0x1ab, 0x1402b109b mov rcx, [rsp+0A8h+var_48] ; +0x1b0, 0x1402b10a0 xor rcx, rsp; StackCookie ; +0x1b5, 0x1402b10a5 call __security_check_cookie ; +0x1b8, 0x1402b10a8 mov rbx, [rsp+0A8h+arg_0] ; +0x1bd, 0x1402b10ad add rsp, 70h ; +0x1c5, 0x1402b10b5 pop r15 ; +0x1c9, 0x1402b10b9 pop r14 ; +0x1cb, 0x1402b10bb pop r13 ; +0x1cd, 0x1402b10bd pop r12 ; +0x1cf, 0x1402b10bf pop rdi ; +0x1d1, 0x1402b10c1 pop rsi ; +0x1d2, 0x1402b10c2 pop rbp ; +0x1d3, 0x1402b10c3 retn ; +0x1d4, 0x1402b10c4