; ; DS_Dictionary::getArrayForKey from 0x180019a20 to 0x180019b70 (336 bytes) ; ; 4 xrefs: ; > DS_Dictionary::getDictForKey @ 0x180019efc ; > DS_Dictionary::getObjectForKey @ 0x18001a996 ; > @ 0x18014cf68 ; > @ 0x1801b8a04 ; ; 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:21:25 +0000 ; mov [rsp+arg_8], rbx ; +0x0, 0x180019a20 mov [rsp+arg_10], rbp ; +0x5, 0x180019a25 mov [rsp+arg_18], rsi ; +0xa, 0x180019a2a push rdi ; +0xf, 0x180019a2f sub rsp, 60h ; +0x10, 0x180019a30 mov rax, cs:__security_cookie ; +0x14, 0x180019a34 xor rax, rsp ; +0x1b, 0x180019a3b mov [rsp+68h+var_18], rax ; +0x1e, 0x180019a3e mov rdi, rcx ; +0x23, 0x180019a43 test r8b, r8b ; +0x26, 0x180019a46 jnz short loc_180019A5E ; +0x29, 0x180019a49 call ?stepIntoSubDictWithKey@DS_Dictionary@@QEAA_NPEBD@Z; DS_Dictionary::stepIntoSubDictWithKey(char const *) ; +0x2b, 0x180019a4b test al, al ; +0x30, 0x180019a50 jnz short loc_180019A5E ; +0x32, 0x180019a52 call ?create@CCArray@cocos2d@@SAPEAV12@XZ; cocos2d::CCArray::create(void) ; +0x34, 0x180019a54 jmp loc_180019B33 ; +0x39, 0x180019a59 call ?create@CCArray@cocos2d@@SAPEAV12@XZ; cocos2d::CCArray::create(void) ; +0x3e, 0x180019a5e mov rbp, rax ; +0x43, 0x180019a63 lea rdx, aIsarr; "_isArr" ; +0x46, 0x180019a66 mov rcx, rdi; this ; +0x4d, 0x180019a6d call ?removeKey@DS_Dictionary@@QEAAXPEBD@Z; DS_Dictionary::removeKey(char const *) ; +0x50, 0x180019a70 mov rcx, rdi; this ; +0x55, 0x180019a75 call ?getNumKeys@DS_Dictionary@@QEAAIXZ; DS_Dictionary::getNumKeys(void) ; +0x58, 0x180019a78 mov esi, eax ; +0x5d, 0x180019a7d xor ebx, ebx ; +0x5f, 0x180019a7f test eax, eax ; +0x61, 0x180019a81 jle loc_180019B0A ; +0x63, 0x180019a83 nop dword ptr [rax+00000000h] ; +0x69, 0x180019a89 mov r8d, ebx ; +0x70, 0x180019a90 lea rdx, [rsp+68h+var_38] ; +0x73, 0x180019a93 mov rcx, rdi ; +0x78, 0x180019a98 call ?getKey@DS_Dictionary@@QEAA?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@I@Z; DS_Dictionary::getKey(uint) ; +0x7b, 0x180019a9b nop ; +0x80, 0x180019aa0 lea rdx, [rsp+68h+var_38] ; +0x81, 0x180019aa1 cmp [rsp+68h+var_20], 0Fh ; +0x86, 0x180019aa6 cmova rdx, [rsp+68h+var_38]; char * ; +0x8c, 0x180019aac mov rcx, rdi; this ; +0x92, 0x180019ab2 call ?getObjectForKey@DS_Dictionary@@QEAAPEAVCCObject@cocos2d@@PEBD@Z; DS_Dictionary::getObjectForKey(char const *) ; +0x95, 0x180019ab5 test rax, rax ; +0x9a, 0x180019aba jz short loc_180019ACB ; +0x9d, 0x180019abd mov rdx, rax; struct cocos2d::CCObject * ; +0x9f, 0x180019abf mov rcx, rbp; this ; +0xa2, 0x180019ac2 call ?addObject@CCArray@cocos2d@@QEAAXPEAVCCObject@2@@Z; cocos2d::CCArray::addObject(cocos2d::CCObject *) ; +0xa5, 0x180019ac5 nop ; +0xaa, 0x180019aca mov rdx, [rsp+68h+var_20] ; +0xab, 0x180019acb cmp rdx, 0Fh ; +0xb0, 0x180019ad0 jbe short loc_180019B04 ; +0xb4, 0x180019ad4 inc rdx ; +0xb6, 0x180019ad6 mov rcx, [rsp+68h+var_38] ; +0xb9, 0x180019ad9 mov rax, rcx ; +0xbe, 0x180019ade cmp rdx, 1000h ; +0xc1, 0x180019ae1 jb short loc_180019AFF ; +0xc8, 0x180019ae8 add rdx, 27h ; ''' ; +0xca, 0x180019aea mov rcx, [rcx-8]; Block ; +0xce, 0x180019aee sub rax, rcx ; +0xd2, 0x180019af2 sub rax, 8 ; +0xd5, 0x180019af5 cmp rax, 1Fh ; +0xd9, 0x180019af9 ja short loc_180019B56 ; +0xdd, 0x180019afd call j_j_free_0 ; +0xdf, 0x180019aff inc ebx ; +0xe4, 0x180019b04 cmp ebx, esi ; +0xe6, 0x180019b06 jl short loc_180019A90 ; +0xe8, 0x180019b08 mov rcx, [rdi+0D8h] ; +0xea, 0x180019b0a mov rax, rcx ; +0xf1, 0x180019b11 sub rax, [rdi+0D0h] ; +0xf4, 0x180019b14 sar rax, 3 ; +0xfb, 0x180019b1b cmp rax, 1 ; +0xff, 0x180019b1f jbe short loc_180019B30 ; +0x103, 0x180019b23 lea rax, [rcx-8] ; +0x105, 0x180019b25 mov [rdi+0D8h], rax ; +0x109, 0x180019b29 mov rax, rbp ; +0x110, 0x180019b30 mov rcx, [rsp+68h+var_18] ; +0x113, 0x180019b33 xor rcx, rsp; StackCookie ; +0x118, 0x180019b38 call __security_check_cookie ; +0x11b, 0x180019b3b lea r11, [rsp+68h+var_8] ; +0x120, 0x180019b40 mov rbx, [r11+18h] ; +0x125, 0x180019b45 mov rbp, [r11+20h] ; +0x129, 0x180019b49 mov rsi, [r11+28h] ; +0x12d, 0x180019b4d mov rsp, r11 ; +0x131, 0x180019b51 pop rdi ; +0x134, 0x180019b54 retn ; +0x135, 0x180019b55 mov [rsp+68h+Reserved], 0; Reserved ; +0x136, 0x180019b56 xor r9d, r9d; LineNo ; +0x13f, 0x180019b5f xor r8d, r8d; FileName ; +0x142, 0x180019b62 xor edx, edx; FunctionName ; +0x145, 0x180019b65 xor ecx, ecx; Expression ; +0x147, 0x180019b67 call cs:_invoke_watson ; +0x149, 0x180019b69 align 10h ; +0x14f, 0x180019b6f