; ; DS_Dictionary::getObjectForKey from 0x18001a7f0 to 0x18001aaef (767 bytes) ; ; 3 xrefs: ; > DS_Dictionary::getArrayForKey @ 0x180019ab5 ; > @ 0x18014cf68 ; > @ 0x1801b8a70 ; ; 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:26 +0000 ; mov [rsp-28h+arg_10], rbx ; +0x0, 0x18001a7f0 push rbp ; +0x5, 0x18001a7f5 push rsi ; +0x6, 0x18001a7f6 push rdi ; +0x7, 0x18001a7f7 push r14 ; +0x8, 0x18001a7f8 push r15 ; +0xa, 0x18001a7fa mov rbp, rsp ; +0xc, 0x18001a7fc sub rsp, 70h ; +0xf, 0x18001a7ff mov rax, cs:__security_cookie ; +0x13, 0x18001a803 xor rax, rsp ; +0x1a, 0x18001a80a mov [rbp+var_10], rax ; +0x1d, 0x18001a80d mov rsi, rdx ; +0x21, 0x18001a811 mov rdi, rcx ; +0x24, 0x18001a814 lea rbx, aKey; "key" ; +0x27, 0x18001a817 lea r8, aK; "k" ; +0x2e, 0x18001a81e cmp byte ptr [rcx+0E8h], 0 ; +0x35, 0x18001a825 cmovnz r8, rbx ; +0x3c, 0x18001a82c mov rcx, [rcx+0D8h] ; +0x40, 0x18001a830 sub rcx, 8 ; +0x47, 0x18001a837 lea rdx, [rbp+var_40] ; +0x4b, 0x18001a83b call sub_180082A40 ; +0x4f, 0x18001a83f lea rcx, [rbp+var_40] ; +0x54, 0x18001a844 call sub_1800823F0 ; +0x58, 0x18001a848 test rax, rax ; +0x5d, 0x18001a84d jz short loc_18001A89E ; +0x60, 0x18001a850 lea rcx, [rbp+var_40] ; +0x62, 0x18001a852 call sub_180082AC0 ; +0x66, 0x18001a856 mov rdx, rax; Str2 ; +0x6b, 0x18001a85b mov rcx, rsi; Str1 ; +0x6e, 0x18001a85e call strcmp ; +0x71, 0x18001a861 lea rdx, [rbp+var_38] ; +0x76, 0x18001a866 lea rcx, [rbp+var_40] ; +0x7a, 0x18001a86a test eax, eax ; +0x7e, 0x18001a86e jz short loc_18001A8C0 ; +0x80, 0x18001a870 lea r8, aK; "k" ; +0x82, 0x18001a872 cmp byte ptr [rdi+0E8h], 0 ; +0x89, 0x18001a879 cmovnz r8, rbx ; +0x90, 0x18001a880 call sub_180084A40 ; +0x94, 0x18001a884 mov rcx, [rax] ; +0x99, 0x18001a889 mov [rbp+var_40], rcx ; +0x9c, 0x18001a88c lea rcx, [rbp+var_40] ; +0xa0, 0x18001a890 call sub_1800823F0 ; +0xa4, 0x18001a894 test rax, rax ; +0xa9, 0x18001a899 jnz short loc_18001A852 ; +0xac, 0x18001a89c xor eax, eax ; +0xae, 0x18001a89e mov rcx, [rbp+var_10] ; +0xb0, 0x18001a8a0 xor rcx, rsp; StackCookie ; +0xb4, 0x18001a8a4 call __security_check_cookie ; +0xb7, 0x18001a8a7 mov rbx, [rsp+70h+arg_10] ; +0xbc, 0x18001a8ac add rsp, 70h ; +0xc4, 0x18001a8b4 pop r15 ; +0xc8, 0x18001a8b8 pop r14 ; +0xca, 0x18001a8ba pop rdi ; +0xcc, 0x18001a8bc pop rsi ; +0xcd, 0x18001a8bd pop rbp ; +0xce, 0x18001a8be retn ; +0xcf, 0x18001a8bf call sub_180084AC0 ; +0xd0, 0x18001a8c0 movzx ebx, byte ptr [rdi+0E8h] ; +0xd5, 0x18001a8c5 lea rcx, [rbp+var_38] ; +0xdc, 0x18001a8cc call sub_180084A20 ; +0xe0, 0x18001a8d0 mov rdx, rax; Str2 ; +0xe5, 0x18001a8d5 lea rax, aDict_1; "dict" ; +0xe8, 0x18001a8d8 lea rcx, aD; "d" ; +0xef, 0x18001a8df test bl, bl ; +0xf6, 0x18001a8e6 cmovnz rcx, rax; Str1 ; +0xf8, 0x18001a8e8 call strcmp ; +0xfc, 0x18001a8ec test eax, eax ; +0x101, 0x18001a8f1 jnz loc_18001A9AA ; +0x103, 0x18001a8f3 lea rdx, [rbp+var_38] ; +0x109, 0x18001a8f9 lea rcx, [rdi+0D0h] ; +0x10d, 0x18001a8fd call sub_18001C710 ; +0x114, 0x18001a904 lea rdx, aIsarr; "_isArr" ; +0x119, 0x18001a909 mov rcx, rdi; this ; +0x120, 0x18001a910 call ?getBoolForKey@DS_Dictionary@@QEAA_NPEBD@Z; DS_Dictionary::getBoolForKey(char const *) ; +0x123, 0x18001a913 movzx r14d, al ; +0x128, 0x18001a918 lea rdx, aKcek; "kCEK" ; +0x12c, 0x18001a91c mov rcx, rdi; this ; +0x133, 0x18001a923 call ?getIntegerForKey@DS_Dictionary@@QEAAHPEBD@Z; DS_Dictionary::getIntegerForKey(char const *) ; +0x136, 0x18001a926 mov ebx, eax ; +0x13b, 0x18001a92b test eax, eax ; +0x13d, 0x18001a92d jz short loc_18001A988 ; +0x13f, 0x18001a92f cmp eax, 0FFFFFFFFh ; +0x141, 0x18001a931 jnz short loc_18001A947 ; +0x144, 0x18001a934 lea rdx, aKcek; "kCEK" ; +0x146, 0x18001a936 mov rcx, rdi; this ; +0x14d, 0x18001a93d call ?getIntegerForKey@DS_Dictionary@@QEAAHPEBD@Z; DS_Dictionary::getIntegerForKey(char const *) ; +0x150, 0x18001a940 mov ebx, eax ; +0x155, 0x18001a945 call ?sharedDecoder@ObjectDecoder@@SAPEAV1@XZ; ObjectDecoder::sharedDecoder(void) ; +0x157, 0x18001a947 mov rcx, rax; this ; +0x15c, 0x18001a94c mov r8, rdi; struct DS_Dictionary * ; +0x15f, 0x18001a94f mov edx, ebx; int ; +0x162, 0x18001a952 call ?getDecodedObject@ObjectDecoder@@QEAAPEAVCCObject@cocos2d@@HPEAVDS_Dictionary@@@Z; ObjectDecoder::getDecodedObject(int,DS_Dictionary *) ; +0x164, 0x18001a954 mov rdx, [rdi+0D8h] ; +0x169, 0x18001a959 mov rcx, rdx ; +0x170, 0x18001a960 sub rcx, [rdi+0D0h] ; +0x173, 0x18001a963 sar rcx, 3 ; +0x17a, 0x18001a96a cmp rcx, 1 ; +0x17e, 0x18001a96e jbe loc_18001A8A0 ; +0x182, 0x18001a972 lea rcx, [rdx-8] ; +0x188, 0x18001a978 mov [rdi+0D8h], rcx ; +0x18c, 0x18001a97c jmp loc_18001A8A0 ; +0x193, 0x18001a983 mov r8b, 1; bool ; +0x198, 0x18001a988 mov rdx, rsi; char * ; +0x19b, 0x18001a98b mov rcx, rdi; this ; +0x19e, 0x18001a98e test r14b, r14b ; +0x1a1, 0x18001a991 jz short loc_18001A9A0 ; +0x1a4, 0x18001a994 call ?getArrayForKey@DS_Dictionary@@QEAAPEAVCCArray@cocos2d@@PEBD_N@Z; DS_Dictionary::getArrayForKey(char const *,bool) ; +0x1a6, 0x18001a996 jmp loc_18001A8A0 ; +0x1ab, 0x18001a99b call ?getDictForKey@DS_Dictionary@@QEAAPEAVCCDictionary@cocos2d@@PEBD_N@Z; DS_Dictionary::getDictForKey(char const *,bool) ; +0x1b0, 0x18001a9a0 jmp loc_18001A8A0 ; +0x1b5, 0x18001a9a5 movzx ebx, byte ptr [rdi+0E8h] ; +0x1ba, 0x18001a9aa lea rcx, [rbp+var_38] ; +0x1c1, 0x18001a9b1 call sub_180084A20 ; +0x1c5, 0x18001a9b5 mov rdx, rax; Str2 ; +0x1ca, 0x18001a9ba lea rax, Str1; "true" ; +0x1cd, 0x18001a9bd lea rcx, aT; "t" ; +0x1d4, 0x18001a9c4 test bl, bl ; +0x1db, 0x18001a9cb cmovnz rcx, rax; Str1 ; +0x1dd, 0x18001a9cd call strcmp ; +0x1e1, 0x18001a9d1 test eax, eax ; +0x1e6, 0x18001a9d6 jnz loc_18001AA60 ; +0x1e8, 0x18001a9d8 xorps xmm0, xmm0 ; +0x1ee, 0x18001a9de movups xmmword ptr [rbp+Block], xmm0 ; +0x1f1, 0x18001a9e1 movdqa xmm1, cs:xmmword_1800ED1C0 ; +0x1f5, 0x18001a9e5 movdqu [rbp+var_20], xmm1 ; +0x1fd, 0x18001a9ed mov word ptr [rbp+Block], 31h ; '1' ; +0x202, 0x18001a9f2 lea rcx, [rbp+Block] ; +0x208, 0x18001a9f8 call ?create@CCString@cocos2d@@SAPEAV12@AEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z; cocos2d::CCString::create(std::string const &) ; +0x20c, 0x18001a9fc mov rbx, rax ; +0x211, 0x18001aa01 mov rdx, qword ptr [rbp+var_20+8] ; +0x214, 0x18001aa04 cmp rdx, 0Fh ; +0x218, 0x18001aa08 jbe short loc_18001AA58 ; +0x21c, 0x18001aa0c inc rdx ; +0x21e, 0x18001aa0e mov r8, [rbp+Block] ; +0x221, 0x18001aa11 mov rcx, r8 ; +0x225, 0x18001aa15 cmp rdx, 1000h ; +0x228, 0x18001aa18 jb short loc_18001AA50 ; +0x22f, 0x18001aa1f add rdx, 27h ; ''' ; +0x231, 0x18001aa21 mov r8, [r8-8] ; +0x235, 0x18001aa25 sub rcx, r8 ; +0x239, 0x18001aa29 sub rcx, 8 ; +0x23c, 0x18001aa2c cmp rcx, 1Fh ; +0x240, 0x18001aa30 jbe short loc_18001AA50 ; +0x244, 0x18001aa34 mov [rsp+70h+Reserved], 0; Reserved ; +0x246, 0x18001aa36 xor r9d, r9d; LineNo ; +0x24f, 0x18001aa3f xor r8d, r8d; FileName ; +0x252, 0x18001aa42 xor edx, edx; FunctionName ; +0x255, 0x18001aa45 xor ecx, ecx; Expression ; +0x257, 0x18001aa47 call cs:_invoke_watson ; +0x259, 0x18001aa49 align 10h ; +0x25f, 0x18001aa4f mov rcx, r8; Block ; +0x260, 0x18001aa50 call j_j_free_0 ; +0x263, 0x18001aa53 mov rax, rbx ; +0x268, 0x18001aa58 jmp loc_18001A8A0 ; +0x26b, 0x18001aa5b lea rcx, [rbp+var_38] ; +0x270, 0x18001aa60 call sub_180082AC0 ; +0x274, 0x18001aa64 mov rbx, rax ; +0x279, 0x18001aa69 xorps xmm0, xmm0 ; +0x27c, 0x18001aa6c movups xmmword ptr [rbp+Block], xmm0 ; +0x27f, 0x18001aa6f xorps xmm1, xmm1 ; +0x283, 0x18001aa73 movdqu [rbp+var_20], xmm1 ; +0x286, 0x18001aa76 mov rcx, rax; Str ; +0x28b, 0x18001aa7b call strlen ; +0x28e, 0x18001aa7e mov r8, rax ; +0x293, 0x18001aa83 mov rdx, rbx ; +0x296, 0x18001aa86 lea rcx, [rbp+Block] ; +0x299, 0x18001aa89 call sub_18000CEF0 ; +0x29d, 0x18001aa8d nop ; +0x2a2, 0x18001aa92 lea rcx, [rbp+Block] ; +0x2a3, 0x18001aa93 call ?create@CCString@cocos2d@@SAPEAV12@AEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z; cocos2d::CCString::create(std::string const &) ; +0x2a7, 0x18001aa97 mov rbx, rax ; +0x2ac, 0x18001aa9c mov rdx, qword ptr [rbp+var_20+8] ; +0x2af, 0x18001aa9f cmp rdx, 0Fh ; +0x2b3, 0x18001aaa3 jbe short loc_18001AA58 ; +0x2b7, 0x18001aaa7 inc rdx ; +0x2b9, 0x18001aaa9 mov r8, [rbp+Block] ; +0x2bc, 0x18001aaac mov rcx, r8 ; +0x2c0, 0x18001aab0 cmp rdx, 1000h ; +0x2c3, 0x18001aab3 jb short loc_18001AA50 ; +0x2ca, 0x18001aaba add rdx, 27h ; ''' ; +0x2cc, 0x18001aabc mov r8, [r8-8] ; +0x2d0, 0x18001aac0 sub rcx, r8 ; +0x2d4, 0x18001aac4 sub rcx, 8 ; +0x2d7, 0x18001aac7 cmp rcx, 1Fh ; +0x2db, 0x18001aacb jbe loc_18001AA50 ; +0x2df, 0x18001aacf mov [rsp+70h+Reserved], 0; Reserved ; +0x2e5, 0x18001aad5 xor r9d, r9d; LineNo ; +0x2ee, 0x18001aade xor r8d, r8d; FileName ; +0x2f1, 0x18001aae1 xor edx, edx; FunctionName ; +0x2f4, 0x18001aae4 xor ecx, ecx; Expression ; +0x2f6, 0x18001aae6 call cs:_invoke_watson ; +0x2f8, 0x18001aae8 db 0CCh ; +0x2fe, 0x18001aaee