; ; DS_Dictionary::getRectForKey from 0x18001aea0 to 0x18001b0a2 (514 bytes) ; ; 2 xrefs: ; > @ 0x1801438a8 ; > @ 0x1801aea34 ; ; 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_10], rbx ; +0x0, 0x18001aea0 push rbp ; +0x5, 0x18001aea5 push rsi ; +0x6, 0x18001aea6 push rdi ; +0x7, 0x18001aea7 push r14 ; +0x8, 0x18001aea8 push r15 ; +0xa, 0x18001aeaa sub rsp, 70h ; +0xc, 0x18001aeac mov rax, cs:__security_cookie ; +0x10, 0x18001aeb0 xor rax, rsp ; +0x17, 0x18001aeb7 mov [rsp+98h+var_30], rax ; +0x1a, 0x18001aeba mov rbp, r8 ; +0x1f, 0x18001aebf mov rdi, rdx ; +0x22, 0x18001aec2 mov rsi, rcx ; +0x25, 0x18001aec5 mov rcx, [rcx+0D8h] ; +0x28, 0x18001aec8 sub rcx, 8 ; +0x2f, 0x18001aecf lea r15, aKey; "key" ; +0x33, 0x18001aed3 lea r8, aK; "k" ; +0x3a, 0x18001aeda cmp byte ptr [rsi+0E8h], 0 ; +0x41, 0x18001aee1 cmovnz r8, r15 ; +0x48, 0x18001aee8 lea rdx, [rsp+98h+var_78] ; +0x4c, 0x18001aeec call sub_18007FB10 ; +0x51, 0x18001aef1 lea rcx, [rsp+98h+var_78] ; +0x56, 0x18001aef6 call sub_18007F4E0 ; +0x5b, 0x18001aefb test rax, rax ; +0x60, 0x18001af00 jz loc_18001AFB4 ; +0x63, 0x18001af03 lea r14, aString; "string" ; +0x69, 0x18001af09 lea rcx, [rsp+98h+var_78] ; +0x70, 0x18001af10 call sub_18007FB70 ; +0x75, 0x18001af15 mov r8, rbp ; +0x7a, 0x18001af1a sub r8, rax ; +0x7d, 0x18001af1d movzx edx, byte ptr [rax] ; +0x80, 0x18001af20 movzx ecx, byte ptr [rax+r8] ; +0x83, 0x18001af23 sub edx, ecx ; +0x88, 0x18001af28 jnz short loc_18001AF33 ; +0x8a, 0x18001af2a inc rax ; +0x8c, 0x18001af2c test ecx, ecx ; +0x8f, 0x18001af2f jnz short loc_18001AF20 ; +0x91, 0x18001af31 test edx, edx ; +0x93, 0x18001af33 jnz short loc_18001AF78 ; +0x95, 0x18001af35 lea r8, aS; "s" ; +0x97, 0x18001af37 cmp [rsi+0E8h], dl ; +0x9e, 0x18001af3e cmovnz r8, r14 ; +0xa4, 0x18001af44 lea rdx, [rsp+98h+var_58] ; +0xa8, 0x18001af48 lea rcx, [rsp+98h+var_78] ; +0xad, 0x18001af4d call sub_180081A50 ; +0xb2, 0x18001af52 mov rbx, rax ; +0xb7, 0x18001af57 lea rdx, [rsp+98h+var_70] ; +0xba, 0x18001af5a lea rcx, [rsp+98h+var_78] ; +0xbf, 0x18001af5f call sub_180081AB0 ; +0xc4, 0x18001af64 mov rcx, rax ; +0xc9, 0x18001af69 mov rdx, rbx ; +0xcc, 0x18001af6c call ??$?8$$CBU_EXCEPTION_RECORD@@$$CBU0@@std@@YA_NAEBV?$shared_ptr@$$CBU_EXCEPTION_RECORD@@@0@0@Z; std::operator==<_EXCEPTION_RECORD const,_EXCEPTION_RECORD const>(std::shared_ptr<_EXCEPTION_RECORD const> const &,std::shared_ptr<_EXCEPTION_RECORD const> const &) ; +0xcf, 0x18001af6f test al, al ; +0xd4, 0x18001af74 jnz short loc_18001AFE7 ; +0xd6, 0x18001af76 lea r8, aK; "k" ; +0xd8, 0x18001af78 cmp byte ptr [rsi+0E8h], 0 ; +0xdf, 0x18001af7f cmovnz r8, r15 ; +0xe6, 0x18001af86 lea rdx, [rsp+98h+var_60] ; +0xea, 0x18001af8a lea rcx, [rsp+98h+var_78] ; +0xef, 0x18001af8f call sub_180081A50 ; +0xf4, 0x18001af94 mov rcx, [rax] ; +0xf9, 0x18001af99 mov [rsp+98h+var_78], rcx ; +0xfc, 0x18001af9c lea rcx, [rsp+98h+var_78] ; +0x101, 0x18001afa1 call sub_18007F4E0 ; +0x106, 0x18001afa6 test rax, rax ; +0x10b, 0x18001afab jnz loc_18001AF10 ; +0x10e, 0x18001afae mov rcx, rdi; this ; +0x114, 0x18001afb4 lea rdx, unk_1801A8350; struct cocos2d::CCRect * ; +0x117, 0x18001afb7 call ??0CCRect@cocos2d@@QEAA@AEBV01@@Z; cocos2d::CCRect::CCRect(cocos2d::CCRect const &) ; +0x11e, 0x18001afbe mov rax, rdi ; +0x123, 0x18001afc3 mov rcx, [rsp+98h+var_30] ; +0x126, 0x18001afc6 xor rcx, rsp; StackCookie ; +0x12b, 0x18001afcb call __security_check_cookie ; +0x12e, 0x18001afce mov rbx, [rsp+98h+arg_10] ; +0x133, 0x18001afd3 add rsp, 70h ; +0x13b, 0x18001afdb pop r15 ; +0x13f, 0x18001afdf pop r14 ; +0x141, 0x18001afe1 pop rdi ; +0x143, 0x18001afe3 pop rsi ; +0x144, 0x18001afe4 pop rbp ; +0x145, 0x18001afe5 retn ; +0x146, 0x18001afe6 lea rcx, [rsp+98h+var_70]; this ; +0x147, 0x18001afe7 call ??0CCRect@cocos2d@@QEAA@XZ; cocos2d::CCRect::CCRect(void) ; +0x14c, 0x18001afec lea rdx, [rsp+98h+var_60] ; +0x151, 0x18001aff1 lea rcx, [rsp+98h+var_78] ; +0x156, 0x18001aff6 call sub_180081AB0 ; +0x15b, 0x18001affb mov rcx, rax ; +0x160, 0x18001b000 call sub_18007FB70 ; +0x163, 0x18001b003 xorps xmm0, xmm0 ; +0x168, 0x18001b008 movups xmmword ptr [rsp+98h+Block], xmm0 ; +0x16b, 0x18001b00b xorps xmm1, xmm1 ; +0x170, 0x18001b010 movdqu [rsp+98h+var_40], xmm1 ; +0x173, 0x18001b013 mov r8, 0FFFFFFFFFFFFFFFFh ; +0x179, 0x18001b019 inc r8 ; +0x180, 0x18001b020 cmp byte ptr [rax+r8], 0 ; +0x183, 0x18001b023 jnz short loc_18001B020 ; +0x188, 0x18001b028 mov rdx, rax ; +0x18a, 0x18001b02a lea rcx, [rsp+98h+Block] ; +0x18d, 0x18001b02d call sub_18000CE60 ; +0x192, 0x18001b032 nop ; +0x197, 0x18001b037 lea r8, [rsp+98h+var_70] ; +0x198, 0x18001b038 lea rdx, [rsp+98h+Block] ; +0x19d, 0x18001b03d mov rcx, rsi ; +0x1a2, 0x18001b042 call ?rectFromString@DS_Dictionary@@AEAA_NAEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@AEAVCCRect@cocos2d@@@Z; DS_Dictionary::rectFromString(std::string const &,cocos2d::CCRect &) ; +0x1a5, 0x18001b045 movzx ebx, al ; +0x1aa, 0x18001b04a mov rdx, qword ptr [rsp+98h+var_40+8] ; +0x1ad, 0x18001b04d cmp rdx, 0Fh ; +0x1b2, 0x18001b052 jbe short loc_18001B08D ; +0x1b6, 0x18001b056 inc rdx ; +0x1b8, 0x18001b058 mov rcx, [rsp+98h+Block]; Block ; +0x1bb, 0x18001b05b mov rax, rcx ; +0x1c0, 0x18001b060 cmp rdx, 1000h ; +0x1c3, 0x18001b063 jb short loc_18001B088 ; +0x1ca, 0x18001b06a add rdx, 27h ; ''' ; +0x1cc, 0x18001b06c mov rcx, [rcx-8] ; +0x1d0, 0x18001b070 sub rax, rcx ; +0x1d4, 0x18001b074 add rax, 0FFFFFFFFFFFFFFF8h ; +0x1d7, 0x18001b077 cmp rax, 1Fh ; +0x1db, 0x18001b07b jbe short loc_18001B088 ; +0x1df, 0x18001b07f call cs:_invalid_parameter_noinfo_noreturn ; +0x1e1, 0x18001b081 align 8 ; +0x1e7, 0x18001b087 call j_j_free_0 ; +0x1e8, 0x18001b088 mov rcx, rdi ; +0x1ed, 0x18001b08d test bl, bl ; +0x1f0, 0x18001b090 jz loc_18001AFB7 ; +0x1f2, 0x18001b092 lea rdx, [rsp+98h+var_70] ; +0x1f8, 0x18001b098 jmp loc_18001AFBE ; +0x1fd, 0x18001b09d