; ; EditorSFXManager::dataLoaded from 0x14018af20 to 0x14018b3c7 (1191 bytes) ; ; 3 xrefs: ; > GameManager::dataLoaded @ 0x140283371 ; > @ 0x140918f08 ; > @ 0x140918f14 ; ; 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:40 +0000 ; test rdx, rdx ; +0x0, 0x14018af20 jz locret_14018B3AC ; +0x3, 0x14018af23 mov [rsp-38h+arg_10], rbx ; +0x9, 0x14018af29 push rbp ; +0xe, 0x14018af2e push rsi ; +0xf, 0x14018af2f push rdi ; +0x10, 0x14018af30 push r12 ; +0x11, 0x14018af31 push r13 ; +0x13, 0x14018af33 push r14 ; +0x15, 0x14018af35 push r15 ; +0x17, 0x14018af37 mov rbp, rsp ; +0x19, 0x14018af39 sub rsp, 80h ; +0x1c, 0x14018af3c mov rax, cs:__security_cookie ; +0x23, 0x14018af43 xor rax, rsp ; +0x2a, 0x14018af4a mov [rbp+var_10], rax ; +0x2d, 0x14018af4d mov rdi, rdx ; +0x31, 0x14018af51 mov r14, rcx ; +0x34, 0x14018af54 lea rdx, aEditorsfxversi; "editorSFXVersion" ; +0x37, 0x14018af57 mov rcx, rdi ; +0x3e, 0x14018af5e call cs:?getIntegerForKey@DS_Dictionary@@QEAAHPEBD@Z; DS_Dictionary::getIntegerForKey(char const *) ; +0x41, 0x14018af61 mov r13d, eax ; +0x47, 0x14018af67 xorps xmm0, xmm0 ; +0x4a, 0x14018af6a movups xmmword ptr [rbp+Block], xmm0 ; +0x4d, 0x14018af6d xor esi, esi ; +0x51, 0x14018af71 mov [rbp+Size], rsi ; +0x53, 0x14018af73 mov [rbp+Size+8], 0Fh ; +0x57, 0x14018af77 mov byte ptr [rbp+Block], sil ; +0x5f, 0x14018af7f test eax, eax ; +0x63, 0x14018af83 jle loc_14018B02F ; +0x65, 0x14018af85 lea r8, aEditorsfx; "editorSFX" ; +0x6b, 0x14018af8b lea rdx, [rbp+var_30] ; +0x72, 0x14018af92 mov rcx, rdi ; +0x76, 0x14018af96 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 *) ; +0x79, 0x14018af99 mov rbx, rax ; +0x7f, 0x14018af9f lea rax, [rbp+Block] ; +0x82, 0x14018afa2 cmp rax, rbx ; +0x86, 0x14018afa6 jz short loc_14018B026 ; +0x89, 0x14018afa9 mov rdx, [rbp+Size+8] ; +0x8b, 0x14018afab cmp rdx, 0Fh ; +0x8f, 0x14018afaf jbe short loc_14018AFF8 ; +0x93, 0x14018afb3 inc rdx ; +0x95, 0x14018afb5 mov rcx, [rbp+Block]; Block ; +0x98, 0x14018afb8 mov rax, rcx ; +0x9c, 0x14018afbc cmp rdx, 1000h ; +0x9f, 0x14018afbf jb short loc_14018AFF3 ; +0xa6, 0x14018afc6 add rdx, 27h ; ''' ; +0xa8, 0x14018afc8 mov rcx, [rcx-8] ; +0xac, 0x14018afcc sub rax, rcx ; +0xb0, 0x14018afd0 sub rax, 8 ; +0xb3, 0x14018afd3 cmp rax, 1Fh ; +0xb7, 0x14018afd7 jbe short loc_14018AFF3 ; +0xbb, 0x14018afdb mov [rsp+80h+Reserved], rsi; Reserved ; +0xbd, 0x14018afdd xor r9d, r9d; LineNo ; +0xc2, 0x14018afe2 xor r8d, r8d; FileName ; +0xc5, 0x14018afe5 xor edx, edx; FunctionName ; +0xc8, 0x14018afe8 xor ecx, ecx; Expression ; +0xca, 0x14018afea call cs:_invoke_watson ; +0xcc, 0x14018afec db 0CCh ; +0xd2, 0x14018aff2 call j_j_free ; +0xd3, 0x14018aff3 mov [rbp+Size], rsi ; +0xd8, 0x14018aff8 mov [rbp+Size+8], 0Fh ; +0xdc, 0x14018affc mov byte ptr [rbp+Block], 0 ; +0xe4, 0x14018b004 movups xmm0, xmmword ptr [rbx] ; +0xe8, 0x14018b008 movups xmmword ptr [rbp+Block], xmm0 ; +0xeb, 0x14018b00b movups xmm1, xmmword ptr [rbx+10h] ; +0xef, 0x14018b00f movups xmmword ptr [rbp+Size], xmm1 ; +0xf3, 0x14018b013 mov [rbx+10h], rsi ; +0xf7, 0x14018b017 mov qword ptr [rbx+18h], 0Fh ; +0xfb, 0x14018b01b mov byte ptr [rbx], 0 ; +0x103, 0x14018b023 lea rcx, [rbp+var_30] ; +0x106, 0x14018b026 call sub_14003D310 ; +0x10a, 0x14018b02a lea rdx, aEditorsfxfavor; "editorSFXFavoriteCount" ; +0x10f, 0x14018b02f mov rcx, rdi ; +0x116, 0x14018b036 call cs:?getIntegerForKey@DS_Dictionary@@QEAAHPEBD@Z; DS_Dictionary::getIntegerForKey(char const *) ; +0x119, 0x14018b039 mov r15d, eax ; +0x11f, 0x14018b03f lea rdx, aEditorsfxmycou; "editorSFXMyCount" ; +0x122, 0x14018b042 mov rcx, rdi ; +0x129, 0x14018b049 call cs:?getIntegerForKey@DS_Dictionary@@QEAAHPEBD@Z; DS_Dictionary::getIntegerForKey(char const *) ; +0x12c, 0x14018b04c mov r12d, eax ; +0x132, 0x14018b052 lea rsi, [rbp+Block] ; +0x135, 0x14018b055 cmp [rbp+Size+8], 0Fh ; +0x139, 0x14018b059 cmova rsi, [rbp+Block] ; +0x13e, 0x14018b05e mov rcx, [rbp+Size] ; +0x143, 0x14018b063 test rcx, rcx ; +0x147, 0x14018b067 jz short loc_14018B095 ; +0x14a, 0x14018b06a lea rbx, [rcx+rsi] ; +0x14c, 0x14018b06c mov r8b, 3Bh ; ';' ; +0x150, 0x14018b070 mov rdx, rbx ; +0x153, 0x14018b073 mov rcx, rsi ; +0x156, 0x14018b076 call sub_140677120 ; +0x159, 0x14018b079 cmp rax, rbx ; +0x15e, 0x14018b07e jz short loc_14018B095 ; +0x161, 0x14018b081 sub rax, rsi ; +0x163, 0x14018b083 cmp rax, 0FFFFFFFFFFFFFFFFh ; +0x166, 0x14018b086 jz short loc_14018B095 ; +0x16a, 0x14018b08a inc rax ; +0x16c, 0x14018b08c cmp rax, [rbp+Size] ; +0x16f, 0x14018b08f jb short loc_14018B0A4 ; +0x173, 0x14018b093 test r15d, r15d ; +0x175, 0x14018b095 jg short loc_14018B0A4 ; +0x178, 0x14018b098 test r12d, r12d ; +0x17a, 0x14018b09a jg short loc_14018B0A4 ; +0x17d, 0x14018b09d xor sil, sil ; +0x17f, 0x14018b09f jmp short loc_14018B0A7 ; +0x182, 0x14018b0a2 mov sil, 1 ; +0x184, 0x14018b0a4 cmp qword ptr [r14+10h], 0 ; +0x187, 0x14018b0a7 jnz short loc_14018B0F1 ; +0x18c, 0x14018b0ac lea rbx, [r14+0E8h] ; +0x18e, 0x14018b0ae mov rcx, rbx ; +0x195, 0x14018b0b5 call sub_14018AEB0 ; +0x198, 0x14018b0b8 test al, al ; +0x19d, 0x14018b0bd jnz short loc_14018B0F1 ; +0x19f, 0x14018b0bf mov rcx, [r14+0D0h] ; +0x1a1, 0x14018b0c1 test rcx, rcx ; +0x1a8, 0x14018b0c8 jz short loc_14018B0D7 ; +0x1ab, 0x14018b0cb call cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x1ad, 0x14018b0cd test eax, eax ; +0x1b3, 0x14018b0d3 jnz short loc_14018B0F1 ; +0x1b5, 0x14018b0d5 mov rcx, [r14+0D8h] ; +0x1b7, 0x14018b0d7 test rcx, rcx ; +0x1be, 0x14018b0de jz short loc_14018B0ED ; +0x1c1, 0x14018b0e1 call cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x1c3, 0x14018b0e3 test eax, eax ; +0x1c9, 0x14018b0e9 jnz short loc_14018B0F1 ; +0x1cb, 0x14018b0eb xor al, al ; +0x1cd, 0x14018b0ed jmp short loc_14018B0FA ; +0x1cf, 0x14018b0ef mov al, 1 ; +0x1d1, 0x14018b0f1 lea rbx, [r14+0E8h] ; +0x1d3, 0x14018b0f3 test sil, sil ; +0x1da, 0x14018b0fa jnz short loc_14018B107 ; +0x1dd, 0x14018b0fd test al, al ; +0x1df, 0x14018b0ff jnz loc_14018B37D ; +0x1e1, 0x14018b101 mov rcx, r14 ; +0x1e7, 0x14018b107 call EditorSFXManager__clearAll ; +0x1ea, 0x14018b10a mov qword ptr [rbx+10h], 0 ; +0x1ef, 0x14018b10f mov rax, rbx ; +0x1f7, 0x14018b117 cmp qword ptr [rbx+18h], 0Fh ; +0x1fa, 0x14018b11a jbe short loc_14018B124 ; +0x1ff, 0x14018b11f mov rax, [rbx] ; +0x201, 0x14018b121 mov byte ptr [rax], 0 ; +0x204, 0x14018b124 mov r8, [rbp+Size]; Size ; +0x207, 0x14018b127 test r8, r8 ; +0x20b, 0x14018b12b jz short loc_14018B14F ; +0x20e, 0x14018b12e lea rax, [rbp+Block] ; +0x210, 0x14018b130 cmp rbx, rax ; +0x214, 0x14018b134 jz short loc_14018B14F ; +0x217, 0x14018b137 lea rdx, [rbp+Block] ; +0x219, 0x14018b139 cmp [rbp+Size+8], 0Fh ; +0x21d, 0x14018b13d cmova rdx, [rbp+Block]; Src ; +0x222, 0x14018b142 mov rcx, rbx; void * ; +0x227, 0x14018b147 call sub_1400405A0 ; +0x22a, 0x14018b14a mov rcx, [r14+0D0h] ; +0x22f, 0x14018b14f test rcx, rcx ; +0x236, 0x14018b156 jz short loc_14018B161 ; +0x239, 0x14018b159 call cs:?removeAllObjects@CCArray@cocos2d@@QEAAXXZ; cocos2d::CCArray::removeAllObjects(void) ; +0x23b, 0x14018b15b xor esi, esi ; +0x241, 0x14018b161 test r15d, r15d ; +0x243, 0x14018b163 jle loc_14018B21D ; +0x246, 0x14018b166 nop dword ptr [rax+00h] ; +0x24c, 0x14018b16c mov edx, esi ; +0x250, 0x14018b170 lea rcx, aEditorsfxfavor_0; "editorSFXFavorite_%d" ; +0x252, 0x14018b172 call cs:?createWithFormat@CCString@cocos2d@@SAPEAV12@PEBDZZ; cocos2d::CCString::createWithFormat(char const *,...) ; +0x259, 0x14018b179 mov rcx, rax ; +0x25f, 0x14018b17f call cs:?getCString@CCString@cocos2d@@QEBAPEBDXZ; cocos2d::CCString::getCString(void) ; +0x262, 0x14018b182 xorps xmm0, xmm0 ; +0x268, 0x14018b188 movups [rbp+var_30], xmm0 ; +0x26b, 0x14018b18b xorps xmm1, xmm1 ; +0x26f, 0x14018b18f movdqu [rbp+var_20], xmm1 ; +0x272, 0x14018b192 mov r8, 0FFFFFFFFFFFFFFFFh ; +0x277, 0x14018b197 xchg ax, ax ; +0x27e, 0x14018b19e inc r8 ; +0x280, 0x14018b1a0 cmp byte ptr [rax+r8], 0 ; +0x283, 0x14018b1a3 jnz short loc_14018B1A0 ; +0x288, 0x14018b1a8 mov rdx, rax ; +0x28a, 0x14018b1aa lea rcx, [rbp+var_30] ; +0x28d, 0x14018b1ad call sub_14003D230 ; +0x291, 0x14018b1b1 nop ; +0x296, 0x14018b1b6 lea rdx, [rbp+var_30] ; +0x297, 0x14018b1b7 cmp qword ptr [rbp+var_20+8], 0Fh ; +0x29b, 0x14018b1bb cmova rdx, qword ptr [rbp+var_30] ; +0x2a0, 0x14018b1c0 mov rcx, rdi ; +0x2a5, 0x14018b1c5 call cs:?stepIntoSubDictWithKey@DS_Dictionary@@QEAA_NPEBD@Z; DS_Dictionary::stepIntoSubDictWithKey(char const *) ; +0x2a8, 0x14018b1c8 test al, al ; +0x2ae, 0x14018b1ce jz short loc_14018B209 ; +0x2b0, 0x14018b1d0 call GJEditorSoundConfig__create_1 ; +0x2b2, 0x14018b1d2 mov rbx, rax ; +0x2b7, 0x14018b1d7 test rax, rax ; +0x2ba, 0x14018b1da jz short loc_14018B1FF ; +0x2bd, 0x14018b1dd mov rdx, rdi ; +0x2bf, 0x14018b1df mov rcx, rax ; +0x2c2, 0x14018b1e2 call GJEditorSoundConfig__dataLoaded ; +0x2c5, 0x14018b1e5 mov rcx, [r14+0D0h] ; +0x2ca, 0x14018b1ea test rcx, rcx ; +0x2d1, 0x14018b1f1 jz short loc_14018B1FF ; +0x2d4, 0x14018b1f4 mov rdx, rbx ; +0x2d6, 0x14018b1f6 call cs:?addObject@CCArray@cocos2d@@QEAAXPEAVCCObject@2@@Z; cocos2d::CCArray::addObject(cocos2d::CCObject *) ; +0x2d9, 0x14018b1f9 mov rcx, rdi ; +0x2df, 0x14018b1ff call cs:?stepOutOfSubDict@DS_Dictionary@@QEAAXXZ; DS_Dictionary::stepOutOfSubDict(void) ; +0x2e2, 0x14018b202 nop ; +0x2e8, 0x14018b208 lea rcx, [rbp+var_30] ; +0x2e9, 0x14018b209 call sub_14003D310 ; +0x2ed, 0x14018b20d inc esi ; +0x2f2, 0x14018b212 cmp esi, r15d ; +0x2f4, 0x14018b214 jl loc_14018B170 ; +0x2f7, 0x14018b217 mov rcx, [r14+0D8h] ; +0x2fd, 0x14018b21d test rcx, rcx ; +0x304, 0x14018b224 jz short loc_14018B22F ; +0x307, 0x14018b227 call cs:?removeAllObjects@CCArray@cocos2d@@QEAAXXZ; cocos2d::CCArray::removeAllObjects(void) ; +0x309, 0x14018b229 xor esi, esi ; +0x30f, 0x14018b22f test r12d, r12d ; +0x311, 0x14018b231 jle loc_14018B31F ; +0x314, 0x14018b234 nop word ptr [rax+rax+00h] ; +0x31a, 0x14018b23a mov edx, esi ; +0x320, 0x14018b240 lea rcx, aEditorsfxmyD; "editorSFXMy_%d" ; +0x322, 0x14018b242 call cs:?createWithFormat@CCString@cocos2d@@SAPEAV12@PEBDZZ; cocos2d::CCString::createWithFormat(char const *,...) ; +0x329, 0x14018b249 mov rcx, rax ; +0x32f, 0x14018b24f call cs:?getCString@CCString@cocos2d@@QEBAPEBDXZ; cocos2d::CCString::getCString(void) ; +0x332, 0x14018b252 xorps xmm0, xmm0 ; +0x338, 0x14018b258 movups [rbp+var_30], xmm0 ; +0x33b, 0x14018b25b xorps xmm1, xmm1 ; +0x33f, 0x14018b25f movdqu [rbp+var_20], xmm1 ; +0x342, 0x14018b262 mov r8, 0FFFFFFFFFFFFFFFFh ; +0x347, 0x14018b267 xchg ax, ax ; +0x34e, 0x14018b26e inc r8 ; +0x350, 0x14018b270 cmp byte ptr [rax+r8], 0 ; +0x353, 0x14018b273 jnz short loc_14018B270 ; +0x358, 0x14018b278 mov rdx, rax ; +0x35a, 0x14018b27a lea rcx, [rbp+var_30] ; +0x35d, 0x14018b27d call sub_14003D230 ; +0x361, 0x14018b281 nop ; +0x366, 0x14018b286 lea rdx, [rbp+var_30] ; +0x367, 0x14018b287 cmp qword ptr [rbp+var_20+8], 0Fh ; +0x36b, 0x14018b28b cmova rdx, qword ptr [rbp+var_30] ; +0x370, 0x14018b290 mov rcx, rdi ; +0x375, 0x14018b295 call cs:?stepIntoSubDictWithKey@DS_Dictionary@@QEAA_NPEBD@Z; DS_Dictionary::stepIntoSubDictWithKey(char const *) ; +0x378, 0x14018b298 test al, al ; +0x37e, 0x14018b29e jz short loc_14018B2D9 ; +0x380, 0x14018b2a0 call GJEditorSoundConfig__create_1 ; +0x382, 0x14018b2a2 mov rbx, rax ; +0x387, 0x14018b2a7 test rax, rax ; +0x38a, 0x14018b2aa jz short loc_14018B2CF ; +0x38d, 0x14018b2ad mov rdx, rdi ; +0x38f, 0x14018b2af mov rcx, rax ; +0x392, 0x14018b2b2 call GJEditorSoundConfig__dataLoaded ; +0x395, 0x14018b2b5 mov rcx, [r14+0D8h] ; +0x39a, 0x14018b2ba test rcx, rcx ; +0x3a1, 0x14018b2c1 jz short loc_14018B2CF ; +0x3a4, 0x14018b2c4 mov rdx, rbx ; +0x3a6, 0x14018b2c6 call cs:?addObject@CCArray@cocos2d@@QEAAXPEAVCCObject@2@@Z; cocos2d::CCArray::addObject(cocos2d::CCObject *) ; +0x3a9, 0x14018b2c9 mov rcx, rdi ; +0x3af, 0x14018b2cf call cs:?stepOutOfSubDict@DS_Dictionary@@QEAAXXZ; DS_Dictionary::stepOutOfSubDict(void) ; +0x3b2, 0x14018b2d2 nop ; +0x3b8, 0x14018b2d8 mov rdx, qword ptr [rbp+var_20+8] ; +0x3b9, 0x14018b2d9 cmp rdx, 0Fh ; +0x3bd, 0x14018b2dd jbe short loc_14018B314 ; +0x3c1, 0x14018b2e1 inc rdx ; +0x3c3, 0x14018b2e3 mov rcx, qword ptr [rbp+var_30] ; +0x3c6, 0x14018b2e6 mov rax, rcx ; +0x3ca, 0x14018b2ea cmp rdx, 1000h ; +0x3cd, 0x14018b2ed jb short loc_14018B30F ; +0x3d4, 0x14018b2f4 add rdx, 27h ; ''' ; +0x3d6, 0x14018b2f6 mov rcx, [rcx-8]; Block ; +0x3da, 0x14018b2fa sub rax, rcx ; +0x3de, 0x14018b2fe sub rax, 8 ; +0x3e1, 0x14018b301 cmp rax, 1Fh ; +0x3e5, 0x14018b305 ja loc_14018B3AD ; +0x3e9, 0x14018b309 call j_j_free ; +0x3ef, 0x14018b30f inc esi ; +0x3f4, 0x14018b314 cmp esi, r12d ; +0x3f6, 0x14018b316 jl loc_14018B240 ; +0x3f9, 0x14018b319 lea rdx, aEditorsfxnextl; "editorSFXNextLocalID" ; +0x3ff, 0x14018b31f mov rcx, rdi ; +0x406, 0x14018b326 call cs:?getIntegerForKey@DS_Dictionary@@QEAAHPEBD@Z; DS_Dictionary::getIntegerForKey(char const *) ; +0x409, 0x14018b329 mov edx, 1 ; +0x40f, 0x14018b32f test eax, eax ; +0x414, 0x14018b334 cmovg edx, eax ; +0x416, 0x14018b336 mov [r14+0E0h], edx ; +0x419, 0x14018b339 mov dword ptr [r14+108h], 3F800000h ; +0x420, 0x14018b340 test r13d, r13d ; +0x42b, 0x14018b34b jle short loc_14018B37D ; +0x42e, 0x14018b34e lea rdx, aEditorsfxgloba; "editorSFXGlobalVolume" ; +0x430, 0x14018b350 mov rcx, rdi ; +0x437, 0x14018b357 call cs:?getFloatForKey@DS_Dictionary@@QEAAMPEBD@Z; DS_Dictionary::getFloatForKey(char const *) ; +0x43a, 0x14018b35a xorps xmm1, xmm1 ; +0x440, 0x14018b360 comiss xmm1, xmm0 ; +0x443, 0x14018b363 ja short loc_14018B374 ; +0x446, 0x14018b366 movss xmm1, cs:flt_140835080 ; +0x448, 0x14018b368 minss xmm1, xmm0 ; +0x450, 0x14018b370 movss dword ptr [r14+108h], xmm1 ; +0x454, 0x14018b374 lea rcx, [rbp+Block] ; +0x45d, 0x14018b37d call sub_14003D310 ; +0x461, 0x14018b381 mov rcx, [rbp+var_10] ; +0x466, 0x14018b386 xor rcx, rsp; StackCookie ; +0x46a, 0x14018b38a call __security_check_cookie ; +0x46d, 0x14018b38d mov rbx, [rsp+80h+arg_10] ; +0x472, 0x14018b392 add rsp, 80h ; +0x47a, 0x14018b39a pop r15 ; +0x481, 0x14018b3a1 pop r14 ; +0x483, 0x14018b3a3 pop r13 ; +0x485, 0x14018b3a5 pop r12 ; +0x487, 0x14018b3a7 pop rdi ; +0x489, 0x14018b3a9 pop rsi ; +0x48a, 0x14018b3aa pop rbp ; +0x48b, 0x14018b3ab retn ; +0x48c, 0x14018b3ac mov [rsp+80h+Reserved], 0; Reserved ; +0x48d, 0x14018b3ad xor r9d, r9d; LineNo ; +0x496, 0x14018b3b6 xor r8d, r8d; FileName ; +0x499, 0x14018b3b9 xor edx, edx; FunctionName ; +0x49c, 0x14018b3bc xor ecx, ecx; Expression ; +0x49e, 0x14018b3be call cs:_invoke_watson ; +0x4a0, 0x14018b3c0 db 0CCh ; +0x4a6, 0x14018b3c6