; ; DS_Dictionary::setObjectForKey from 0x18001f330 to 0x18001f4f0 (448 bytes) ; ; 4 xrefs: ; > DS_Dictionary::setArrayForKey @ 0x18001e80c ; > DS_Dictionary::setDictForKey @ 0x18001ed8d ; > @ 0x1801438a8 ; > @ 0x1801aecec ; ; 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_18], rbx ; +0x0, 0x18001f330 push rbp ; +0x5, 0x18001f335 push rsi ; +0x6, 0x18001f336 push rdi ; +0x7, 0x18001f337 sub rsp, 80h ; +0x8, 0x18001f338 mov rax, cs:__security_cookie ; +0xf, 0x18001f33f xor rax, rsp ; +0x16, 0x18001f346 mov [rsp+98h+var_20], rax ; +0x19, 0x18001f349 mov rbx, r8 ; +0x1e, 0x18001f34e mov rsi, rdx ; +0x21, 0x18001f351 mov rdi, rcx ; +0x24, 0x18001f354 xor ebp, ebp ; +0x27, 0x18001f357 mov [rsp+98h+var_78], ebp ; +0x29, 0x18001f359 lea r9, ??_R0?AVCCString@cocos2d@@@8; cocos2d::CCString `RTTI Type Descriptor' ; +0x2d, 0x18001f35d lea r8, ??_R0?AVCCObject@cocos2d@@@8; cocos2d::CCObject `RTTI Type Descriptor' ; +0x34, 0x18001f364 xor edx, edx ; +0x3b, 0x18001f36b mov rcx, rbx ; +0x3d, 0x18001f36d call __RTDynamicCast ; +0x40, 0x18001f370 mov rcx, rbx; this ; +0x45, 0x18001f375 test rax, rax ; +0x48, 0x18001f378 jz loc_18001F427 ; +0x4b, 0x18001f37b call ?getCString@CCString@cocos2d@@QEBAPEBDXZ; cocos2d::CCString::getCString(void) ; +0x51, 0x18001f381 xorps xmm0, xmm0 ; +0x56, 0x18001f386 movups [rsp+98h+var_68], xmm0 ; +0x59, 0x18001f389 mov qword ptr [rsp+98h+var_58], rbp ; +0x5e, 0x18001f38e mov qword ptr [rsp+98h+var_58+8], rbp ; +0x63, 0x18001f393 mov r8, 0FFFFFFFFFFFFFFFFh ; +0x68, 0x18001f398 nop ; +0x6f, 0x18001f39f inc r8 ; +0x70, 0x18001f3a0 cmp [rax+r8], bpl ; +0x73, 0x18001f3a3 jnz short loc_18001F3A0 ; +0x77, 0x18001f3a7 mov rdx, rax ; +0x79, 0x18001f3a9 lea rcx, [rsp+98h+var_68] ; +0x7c, 0x18001f3ac call sub_18000CE60 ; +0x81, 0x18001f3b1 movups xmm0, [rsp+98h+var_68] ; +0x86, 0x18001f3b6 movups xmmword ptr [rsp+98h+Block], xmm0 ; +0x8b, 0x18001f3bb movups xmm1, [rsp+98h+var_58] ; +0x90, 0x18001f3c0 movups [rsp+98h+var_30], xmm1 ; +0x95, 0x18001f3c5 xor r9d, r9d ; +0x9a, 0x18001f3ca lea r8, [rsp+98h+Block] ; +0x9d, 0x18001f3cd mov rdx, rsi ; +0xa2, 0x18001f3d2 mov rcx, rdi ; +0xa5, 0x18001f3d5 call ?setStringForKey@DS_Dictionary@@QEAAXPEBDAEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@_N@Z; DS_Dictionary::setStringForKey(char const *,std::string const &,bool) ; +0xa8, 0x18001f3d8 nop ; +0xad, 0x18001f3dd mov rdx, qword ptr [rsp+98h+var_30+8] ; +0xae, 0x18001f3de cmp rdx, 0Fh ; +0xb3, 0x18001f3e3 jbe loc_18001F4D0 ; +0xb7, 0x18001f3e7 inc rdx ; +0xbd, 0x18001f3ed mov rcx, [rsp+98h+Block]; Block ; +0xc0, 0x18001f3f0 mov rax, rcx ; +0xc5, 0x18001f3f5 cmp rdx, 1000h ; +0xc8, 0x18001f3f8 jb short loc_18001F41D ; +0xcf, 0x18001f3ff add rdx, 27h ; ''' ; +0xd1, 0x18001f401 mov rcx, [rcx-8] ; +0xd5, 0x18001f405 sub rax, rcx ; +0xd9, 0x18001f409 add rax, 0FFFFFFFFFFFFFFF8h ; +0xdc, 0x18001f40c cmp rax, 1Fh ; +0xe0, 0x18001f410 jbe short loc_18001F41D ; +0xe4, 0x18001f414 call cs:_invalid_parameter_noinfo_noreturn ; +0xe6, 0x18001f416 db 0CCh ; +0xec, 0x18001f41c call j_j_free_0 ; +0xed, 0x18001f41d jmp loc_18001F4D0 ; +0xf2, 0x18001f422 mov [rsp+98h+var_78], ebp ; +0xf7, 0x18001f427 lea r9, ??_R0?AVCCDictionary@cocos2d@@@8; cocos2d::CCDictionary `RTTI Type Descriptor' ; +0xfb, 0x18001f42b lea r8, ??_R0?AVCCObject@cocos2d@@@8; cocos2d::CCObject `RTTI Type Descriptor' ; +0x102, 0x18001f432 xor edx, edx ; +0x109, 0x18001f439 call __RTDynamicCast ; +0x10b, 0x18001f43b test rax, rax ; +0x110, 0x18001f440 jz short loc_18001F455 ; +0x113, 0x18001f443 mov r8, rbx; struct cocos2d::CCDictionary * ; +0x115, 0x18001f445 mov rdx, rsi; char * ; +0x118, 0x18001f448 mov rcx, rdi; this ; +0x11b, 0x18001f44b call ?setDictForKey@DS_Dictionary@@QEAAXPEBDPEAVCCDictionary@cocos2d@@@Z; DS_Dictionary::setDictForKey(char const *,cocos2d::CCDictionary *) ; +0x11e, 0x18001f44e jmp short loc_18001F4D0 ; +0x123, 0x18001f453 mov [rsp+98h+var_78], ebp ; +0x125, 0x18001f455 lea r9, ??_R0?AVCCArray@cocos2d@@@8; cocos2d::CCArray `RTTI Type Descriptor' ; +0x129, 0x18001f459 lea r8, ??_R0?AVCCObject@cocos2d@@@8; cocos2d::CCObject `RTTI Type Descriptor' ; +0x130, 0x18001f460 xor edx, edx ; +0x137, 0x18001f467 mov rcx, rbx ; +0x139, 0x18001f469 call __RTDynamicCast ; +0x13c, 0x18001f46c test rax, rax ; +0x141, 0x18001f471 jz short loc_18001F486 ; +0x144, 0x18001f474 mov r8, rbx; struct cocos2d::CCArray * ; +0x146, 0x18001f476 mov rdx, rsi; char * ; +0x149, 0x18001f479 mov rcx, rdi; this ; +0x14c, 0x18001f47c call ?setArrayForKey@DS_Dictionary@@QEAAXPEBDPEAVCCArray@cocos2d@@@Z; DS_Dictionary::setArrayForKey(char const *,cocos2d::CCArray *) ; +0x14f, 0x18001f47f jmp short loc_18001F4D0 ; +0x154, 0x18001f484 mov rax, [rbx] ; +0x156, 0x18001f486 mov rcx, rbx ; +0x159, 0x18001f489 call qword ptr [rax+30h] ; +0x15c, 0x18001f48c test al, al ; +0x15f, 0x18001f48f jz short loc_18001F4D0 ; +0x161, 0x18001f491 mov r9b, 1; bool ; +0x163, 0x18001f493 xor r8d, r8d; bool ; +0x166, 0x18001f496 mov rdx, rsi; char * ; +0x169, 0x18001f499 mov rcx, rdi; this ; +0x16c, 0x18001f49c call ?setSubDictForKey@DS_Dictionary@@QEAAXPEBD_N1@Z; DS_Dictionary::setSubDictForKey(char const *,bool,bool) ; +0x16f, 0x18001f49f mov rax, [rbx] ; +0x174, 0x18001f4a4 mov rdx, rdi ; +0x177, 0x18001f4a7 mov rcx, rbx ; +0x17a, 0x18001f4aa call qword ptr [rax+28h] ; +0x17d, 0x18001f4ad mov rax, [rdi+0D8h] ; +0x180, 0x18001f4b0 sub rax, [rdi+0D0h] ; +0x187, 0x18001f4b7 sar rax, 3 ; +0x18e, 0x18001f4be cmp rax, 1 ; +0x192, 0x18001f4c2 jbe short loc_18001F4D0 ; +0x196, 0x18001f4c6 add qword ptr [rdi+0D8h], 0FFFFFFFFFFFFFFF8h ; +0x198, 0x18001f4c8 mov rcx, [rsp+98h+var_20] ; +0x1a0, 0x18001f4d0 xor rcx, rsp; StackCookie ; +0x1a5, 0x18001f4d5 call __security_check_cookie ; +0x1a8, 0x18001f4d8 mov rbx, [rsp+98h+arg_18] ; +0x1ad, 0x18001f4dd add rsp, 80h ; +0x1b5, 0x18001f4e5 pop rdi ; +0x1bc, 0x18001f4ec pop rsi ; +0x1bd, 0x18001f4ed pop rbp ; +0x1be, 0x18001f4ee retn ; +0x1bf, 0x18001f4ef