; ; EditorSFXManager::importFromString from 0x1008ecdd0 to 0x1008ecfe0 (528 bytes) ; ; 2 xrefs: ; > sub_1008ED2F0 @ 0x1008ed428 ; > sub_1008EDE10 @ 0x1008edf97 ; ; 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 12:37:54 +0000 ; push rbp ; +0x0, 0x1008ecdd0 mov rbp, rsp ; +0x1, 0x1008ecdd1 push r15 ; +0x4, 0x1008ecdd4 push r14 ; +0x6, 0x1008ecdd6 push r13 ; +0x8, 0x1008ecdd8 push r12 ; +0xa, 0x1008ecdda push rbx ; +0xc, 0x1008ecddc sub rsp, 48h ; +0xd, 0x1008ecddd mov rbx, rcx ; +0x11, 0x1008ecde1 mov r14, rdx ; +0x14, 0x1008ecde4 movzx eax, byte ptr [rsi] ; +0x17, 0x1008ecde7 test al, 1 ; +0x1a, 0x1008ecdea jz short loc_1008ECE44 ; +0x1c, 0x1008ecdec mov rax, [rsi+8] ; +0x1e, 0x1008ecdee test rax, rax ; +0x22, 0x1008ecdf2 jz short loc_1008ECE4B ; +0x25, 0x1008ecdf5 mov [rbp+var_70], rdi ; +0x27, 0x1008ecdf7 lea rdi, [rbp+var_40]; this ; +0x2b, 0x1008ecdfb xor edx, edx ; +0x2f, 0x1008ecdff xor ecx, ecx ; +0x31, 0x1008ece01 call cocos2d__ZipUtils__decompressString ; +0x33, 0x1008ece03 movzx eax, byte ptr [rbp+var_40.__r_.__value_] ; +0x38, 0x1008ece08 test al, 1 ; +0x3c, 0x1008ece0c jz short loc_1008ECE67 ; +0x3e, 0x1008ece0e mov rax, qword ptr [rbp+var_40.__r_.__value_+8] ; +0x40, 0x1008ece10 test rax, rax ; +0x44, 0x1008ece14 jz short loc_1008ECE6E ; +0x47, 0x1008ece17 lea rdi, [rbp+var_40]; this ; +0x49, 0x1008ece19 mov esi, 3Bh ; ';'; __c ; +0x4d, 0x1008ece1d xor edx, edx; __pos ; +0x52, 0x1008ece22 call __ZNKSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE4findEcm; std::string::find(char,ulong) ; +0x54, 0x1008ece24 cmp rax, 0FFFFFFFFFFFFFFFFh ; +0x59, 0x1008ece29 jz short loc_1008ECE8A ; +0x5d, 0x1008ece2d mov r12, rax ; +0x5f, 0x1008ece2f movzx eax, byte ptr [rbp+var_40.__r_.__value_] ; +0x62, 0x1008ece32 test al, 1 ; +0x66, 0x1008ece36 jz short loc_1008ECEA9 ; +0x68, 0x1008ece38 mov rax, qword ptr [rbp+var_40.__r_.__value_+8] ; +0x6a, 0x1008ece3a mov rsi, qword ptr [rbp+var_40.__r_.__value_+10h] ; +0x6e, 0x1008ece3e jmp short loc_1008ECEAF ; +0x72, 0x1008ece42 shr eax, 1 ; +0x74, 0x1008ece44 test rax, rax ; +0x76, 0x1008ece46 jnz short loc_1008ECDF7 ; +0x79, 0x1008ece49 test rbx, rbx ; +0x7b, 0x1008ece4b jz short loc_1008ECE5F ; +0x7e, 0x1008ece4e lea rsi, aEmptyString; "Empty string." ; +0x80, 0x1008ece50 mov rdi, rbx; this ; +0x87, 0x1008ece57 call __ZNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6assignEPKc; std::string::assign(char const*) ; +0x8a, 0x1008ece5a xor r14d, r14d ; +0x8f, 0x1008ece5f jmp loc_1008ECFC9 ; +0x92, 0x1008ece62 shr eax, 1 ; +0x97, 0x1008ece67 test rax, rax ; +0x99, 0x1008ece69 jnz short loc_1008ECE19 ; +0x9c, 0x1008ece6c test rbx, rbx ; +0x9e, 0x1008ece6e jz short loc_1008ECE82 ; +0xa1, 0x1008ece71 lea rsi, aInvalidOrCorru; "Invalid or corrupt share string." ; +0xa3, 0x1008ece73 mov rdi, rbx; this ; +0xaa, 0x1008ece7a call __ZNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6assignEPKc; std::string::assign(char const*) ; +0xad, 0x1008ece7d xor r14d, r14d ; +0xb2, 0x1008ece82 jmp loc_1008ECFBA ; +0xb5, 0x1008ece85 test byte ptr [rbp+var_40.__r_.__value_], 1 ; +0xba, 0x1008ece8a jnz loc_1008ECF26 ; +0xbe, 0x1008ece8e mov rax, qword ptr [rbp+var_40.__r_.__value_+10h] ; +0xc4, 0x1008ece94 mov [rbp+var_50], rax ; +0xc8, 0x1008ece98 movups xmm0, xmmword ptr [rbp+var_40.__r_.__value_] ; +0xcc, 0x1008ece9c movaps [rbp+__dst], xmm0 ; +0xd0, 0x1008ecea0 jmp loc_1008ECF37 ; +0xd4, 0x1008ecea4 shr eax, 1 ; +0xd9, 0x1008ecea9 lea rsi, [rbp+var_40.__r_.__value_+1] ; +0xdb, 0x1008eceab cmp rax, r12 ; +0xdf, 0x1008eceaf cmovb r12, rax ; +0xe2, 0x1008eceb2 cmp r12, 0FFFFFFFFFFFFFFF8h ; +0xe6, 0x1008eceb6 jnb loc_1008ECFDB ; +0xea, 0x1008eceba cmp r12, 17h ; +0xf0, 0x1008ecec0 jnb short loc_1008ECED8 ; +0xf4, 0x1008ecec4 lea eax, [r12+r12] ; +0xf6, 0x1008ecec6 mov byte ptr [rbp+__dst], al ; +0xfa, 0x1008ececa lea r15, [rbp+__dst+1] ; +0xfd, 0x1008ececd test r12, r12 ; +0x101, 0x1008eced1 jnz short loc_1008ECF14 ; +0x104, 0x1008eced4 jmp short loc_1008ECF1F ; +0x106, 0x1008eced6 mov [rbp+__src], rsi ; +0x108, 0x1008eced8 mov rax, r12 ; +0x10c, 0x1008ecedc or rax, 7 ; +0x10f, 0x1008ecedf lea rcx, [rax+1] ; +0x113, 0x1008ecee3 cmp rax, 17h ; +0x117, 0x1008ecee7 mov r13d, 1Ah ; +0x11b, 0x1008eceeb cmovnz r13, rcx ; +0x121, 0x1008ecef1 mov rdi, r13; __sz ; +0x125, 0x1008ecef5 call __Znwm; operator new(ulong) ; +0x128, 0x1008ecef8 mov r15, rax ; +0x12d, 0x1008ecefd mov [rbp+var_50], rax ; +0x130, 0x1008ecf00 or r13, 1 ; +0x134, 0x1008ecf04 mov qword ptr [rbp+__dst], r13 ; +0x138, 0x1008ecf08 mov qword ptr [rbp+__dst+8], r12 ; +0x13c, 0x1008ecf0c mov rsi, [rbp+__src]; __src ; +0x140, 0x1008ecf10 mov rdi, r15; __dst ; +0x144, 0x1008ecf14 mov rdx, r12; __len ; +0x147, 0x1008ecf17 call _memmove ; +0x14a, 0x1008ecf1a mov byte ptr [r15+r12], 0 ; +0x14f, 0x1008ecf1f jmp short loc_1008ECF37 ; +0x154, 0x1008ecf24 mov rdx, qword ptr [rbp+var_40.__r_.__value_+8] ; +0x156, 0x1008ecf26 mov rsi, qword ptr [rbp+var_40.__r_.__value_+10h] ; +0x15a, 0x1008ecf2a lea rdi, [rbp+__dst] ; +0x15e, 0x1008ecf2e call sub_10001AD30 ; +0x162, 0x1008ecf32 test byte ptr [rbp+__dst], 1 ; +0x167, 0x1008ecf37 jz short loc_1008ECF83 ; +0x16b, 0x1008ecf3b mov rdi, [rbp+var_50]; char * ; +0x16d, 0x1008ecf3d call _atoi ; +0x171, 0x1008ecf41 add eax, 0FFFFFFFDh ; +0x176, 0x1008ecf46 cmp eax, 0FFFFFFFDh ; +0x179, 0x1008ecf49 jbe short loc_1008ECF94 ; +0x17c, 0x1008ecf4c xor edx, edx ; +0x17e, 0x1008ecf4e cmp dword ptr [r14], 0 ; +0x180, 0x1008ecf50 setz dl ; +0x184, 0x1008ecf54 lea rsi, [rbp+var_40] ; +0x187, 0x1008ecf57 mov rdi, [rbp+var_70] ; +0x18b, 0x1008ecf5b call EditorSFXManager__deserializeAll ; +0x18f, 0x1008ecf5f mov r14d, eax ; +0x194, 0x1008ecf64 test rbx, rbx ; +0x197, 0x1008ecf67 setz al ; +0x19a, 0x1008ecf6a or al, r14b ; +0x19d, 0x1008ecf6d jnz short loc_1008ECFAB ; +0x1a0, 0x1008ecf70 lea rsi, aParseError; "Parse error." ; +0x1a2, 0x1008ecf72 mov rdi, rbx; this ; +0x1a9, 0x1008ecf79 call __ZNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6assignEPKc; std::string::assign(char const*) ; +0x1ac, 0x1008ecf7c jmp short loc_1008ECFA8 ; +0x1b1, 0x1008ecf81 lea rdi, [rbp+__dst+1]; char * ; +0x1b3, 0x1008ecf83 call _atoi ; +0x1b7, 0x1008ecf87 add eax, 0FFFFFFFDh ; +0x1bc, 0x1008ecf8c cmp eax, 0FFFFFFFDh ; +0x1bf, 0x1008ecf8f ja short loc_1008ECF4E ; +0x1c2, 0x1008ecf92 test rbx, rbx ; +0x1c4, 0x1008ecf94 jz short loc_1008ECFA8 ; +0x1c7, 0x1008ecf97 lea rsi, aInvalidOrCorru; "Invalid or corrupt share string." ; +0x1c9, 0x1008ecf99 mov rdi, rbx; this ; +0x1d0, 0x1008ecfa0 call __ZNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6assignEPKc; std::string::assign(char const*) ; +0x1d3, 0x1008ecfa3 xor r14d, r14d ; +0x1d8, 0x1008ecfa8 test byte ptr [rbp+__dst], 1 ; +0x1db, 0x1008ecfab jz short loc_1008ECFBA ; +0x1df, 0x1008ecfaf mov rdi, [rbp+var_50]; __p ; +0x1e1, 0x1008ecfb1 call __ZdlPv; operator delete(void *) ; +0x1e5, 0x1008ecfb5 test byte ptr [rbp+var_40.__r_.__value_], 1 ; +0x1ea, 0x1008ecfba jz short loc_1008ECFC9 ; +0x1ee, 0x1008ecfbe mov rdi, qword ptr [rbp+var_40.__r_.__value_+10h]; __p ; +0x1f0, 0x1008ecfc0 call __ZdlPv; operator delete(void *) ; +0x1f4, 0x1008ecfc4 mov eax, r14d ; +0x1f9, 0x1008ecfc9 add rsp, 48h ; +0x1fc, 0x1008ecfcc pop rbx ; +0x200, 0x1008ecfd0 pop r12 ; +0x201, 0x1008ecfd1 pop r13 ; +0x203, 0x1008ecfd3 pop r14 ; +0x205, 0x1008ecfd5 pop r15 ; +0x207, 0x1008ecfd7 pop rbp ; +0x209, 0x1008ecfd9 retn ; +0x20a, 0x1008ecfda call sub_100003630 ; +0x20b, 0x1008ecfdb