; ; DS_Dictionary::setDictForKey from 0x18001ee00 to 0x18001ef90 (400 bytes) ; ; 3 xrefs: ; > DS_Dictionary::setObjectForKey @ 0x18001f60a ; > @ 0x18014cf68 ; > @ 0x1801b8da0 ; ; 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:27 +0000 ; test r8, r8 ; +0x0, 0x18001ee00 jz locret_18001EF75 ; +0x3, 0x18001ee03 mov [rsp+arg_18], rbx ; +0x9, 0x18001ee09 push rbp ; +0xe, 0x18001ee0e push rsi ; +0xf, 0x18001ee0f push rdi ; +0x10, 0x18001ee10 push r14 ; +0x11, 0x18001ee11 push r15 ; +0x13, 0x18001ee13 sub rsp, 70h ; +0x15, 0x18001ee15 movaps [rsp+98h+var_38], xmm6 ; +0x19, 0x18001ee19 mov rax, cs:__security_cookie ; +0x1e, 0x18001ee1e xor rax, rsp ; +0x25, 0x18001ee25 mov [rsp+98h+var_40], rax ; +0x28, 0x18001ee28 mov r15, r8 ; +0x2d, 0x18001ee2d mov rbx, rdx ; +0x30, 0x18001ee30 mov rdi, rcx ; +0x33, 0x18001ee33 call ?setSubDictForKey@DS_Dictionary@@QEAAXPEBD@Z; DS_Dictionary::setSubDictForKey(char const *) ; +0x36, 0x18001ee36 mov rdx, rbx; char * ; +0x3b, 0x18001ee3b mov rcx, rdi; this ; +0x3e, 0x18001ee3e call ?stepIntoSubDictWithKey@DS_Dictionary@@QEAA_NPEBD@Z; DS_Dictionary::stepIntoSubDictWithKey(char const *) ; +0x41, 0x18001ee41 test al, al ; +0x46, 0x18001ee46 jz loc_18001EF50 ; +0x48, 0x18001ee48 mov rcx, r15; this ; +0x4e, 0x18001ee4e call ?allKeys@CCDictionary@cocos2d@@QEAAPEAVCCArray@2@XZ; cocos2d::CCDictionary::allKeys(void) ; +0x51, 0x18001ee51 mov rsi, rax ; +0x56, 0x18001ee56 xor ebx, ebx ; +0x59, 0x18001ee59 mov rcx, rax; this ; +0x5b, 0x18001ee5b call ?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x5e, 0x18001ee5e test eax, eax ; +0x63, 0x18001ee63 jz loc_18001EF2A ; +0x65, 0x18001ee65 movdqa xmm6, cs:xmmword_1800EC500 ; +0x6b, 0x18001ee6b mov edx, ebx; unsigned int ; +0x73, 0x18001ee73 mov rcx, rsi; this ; +0x75, 0x18001ee75 call ?stringAtIndex@CCArray@cocos2d@@QEAAPEAVCCString@2@I@Z; cocos2d::CCArray::stringAtIndex(uint) ; +0x78, 0x18001ee78 mov rcx, rax; this ; +0x7d, 0x18001ee7d call ?getCString@CCString@cocos2d@@QEBAPEBDXZ; cocos2d::CCString::getCString(void) ; +0x80, 0x18001ee80 mov rbp, rax ; +0x85, 0x18001ee85 xorps xmm0, xmm0 ; +0x88, 0x18001ee88 movups [rsp+98h+var_60], xmm0 ; +0x8b, 0x18001ee8b xorps xmm1, xmm1 ; +0x90, 0x18001ee90 movdqu [rsp+98h+var_50], xmm1 ; +0x93, 0x18001ee93 mov rcx, rax; Str ; +0x99, 0x18001ee99 call strlen ; +0x9c, 0x18001ee9c mov r8, rax ; +0xa1, 0x18001eea1 mov rdx, rbp ; +0xa4, 0x18001eea4 lea rcx, [rsp+98h+var_60] ; +0xa7, 0x18001eea7 call sub_18000CEF0 ; +0xac, 0x18001eeac nop ; +0xb1, 0x18001eeb1 lea rdx, [rsp+98h+var_60] ; +0xb2, 0x18001eeb2 mov rcx, r15 ; +0xb7, 0x18001eeb7 call ?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 &) ; +0xba, 0x18001eeba mov r14, rax ; +0xbf, 0x18001eebf mov rdx, qword ptr [rsp+98h+var_50+8] ; +0xc2, 0x18001eec2 cmp rdx, 0Fh ; +0xc7, 0x18001eec7 jbe short loc_18001EEFF ; +0xcb, 0x18001eecb inc rdx ; +0xcd, 0x18001eecd mov rcx, qword ptr [rsp+98h+var_60] ; +0xd0, 0x18001eed0 mov r8, rcx ; +0xd5, 0x18001eed5 cmp rdx, 1000h ; +0xd8, 0x18001eed8 jb short loc_18001EEFA ; +0xdf, 0x18001eedf add rdx, 27h ; ''' ; +0xe1, 0x18001eee1 mov rcx, [rcx-8]; Block ; +0xe5, 0x18001eee5 sub r8, rcx ; +0xe9, 0x18001eee9 sub r8, 8 ; +0xec, 0x18001eeec cmp r8, 1Fh ; +0xf0, 0x18001eef0 ja loc_18001EF76 ; +0xf4, 0x18001eef4 call j_j_free_0 ; +0xfa, 0x18001eefa movdqu [rsp+98h+var_50], xmm6 ; +0xff, 0x18001eeff mov byte ptr [rsp+98h+var_60], 0 ; +0x105, 0x18001ef05 mov r8, r14; struct cocos2d::CCObject * ; +0x10a, 0x18001ef0a mov rdx, rbp; char * ; +0x10d, 0x18001ef0d mov rcx, rdi; this ; +0x110, 0x18001ef10 call ?setObjectForKey@DS_Dictionary@@QEAAXPEBDPEAVCCObject@cocos2d@@@Z; DS_Dictionary::setObjectForKey(char const *,cocos2d::CCObject *) ; +0x113, 0x18001ef13 inc ebx ; +0x118, 0x18001ef18 mov rcx, rsi; this ; +0x11a, 0x18001ef1a call ?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x11d, 0x18001ef1d cmp ebx, eax ; +0x122, 0x18001ef22 jb loc_18001EE73 ; +0x124, 0x18001ef24 mov rcx, [rdi+0D8h] ; +0x12a, 0x18001ef2a mov rax, rcx ; +0x131, 0x18001ef31 sub rax, [rdi+0D0h] ; +0x134, 0x18001ef34 sar rax, 3 ; +0x13b, 0x18001ef3b cmp rax, 1 ; +0x13f, 0x18001ef3f jbe short loc_18001EF50 ; +0x143, 0x18001ef43 lea rax, [rcx-8] ; +0x145, 0x18001ef45 mov [rdi+0D8h], rax ; +0x149, 0x18001ef49 mov rcx, [rsp+98h+var_40] ; +0x150, 0x18001ef50 xor rcx, rsp; StackCookie ; +0x155, 0x18001ef55 call __security_check_cookie ; +0x158, 0x18001ef58 mov rbx, [rsp+98h+arg_18] ; +0x15d, 0x18001ef5d movaps xmm6, [rsp+98h+var_38] ; +0x165, 0x18001ef65 add rsp, 70h ; +0x16a, 0x18001ef6a pop r15 ; +0x16e, 0x18001ef6e pop r14 ; +0x170, 0x18001ef70 pop rdi ; +0x172, 0x18001ef72 pop rsi ; +0x173, 0x18001ef73 pop rbp ; +0x174, 0x18001ef74 retn ; +0x175, 0x18001ef75 mov [rsp+98h+Reserved], 0; Reserved ; +0x176, 0x18001ef76 xor r9d, r9d; LineNo ; +0x17f, 0x18001ef7f xor r8d, r8d; FileName ; +0x182, 0x18001ef82 xor edx, edx; FunctionName ; +0x185, 0x18001ef85 xor ecx, ecx; Expression ; +0x187, 0x18001ef87 call cs:_invoke_watson ; +0x189, 0x18001ef89 align 10h ; +0x18f, 0x18001ef8f