; ; DS_Dictionary::setIntegerForKey from 0x18001f250 to 0x18001f4d1 (641 bytes) ; ; 3 xrefs: ; > DS_Dictionary::setIntegerForKey @ 0x18001f243 ; > @ 0x18014cf68 ; > @ 0x1801b8db8 ; ; 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 r8d, r8d ; +0x0, 0x18001f250 jz locret_18001F4D0 ; +0x3, 0x18001f253 mov [rsp-8+arg_10], rbx ; +0x9, 0x18001f259 push rbp ; +0xe, 0x18001f25e push rsi ; +0xf, 0x18001f25f push rdi ; +0x10, 0x18001f260 push r14 ; +0x11, 0x18001f261 push r15 ; +0x13, 0x18001f263 lea rbp, [rsp-160h] ; +0x15, 0x18001f265 sub rsp, 260h ; +0x1d, 0x18001f26d mov rax, cs:__security_cookie ; +0x24, 0x18001f274 xor rax, rsp ; +0x2b, 0x18001f27b mov [rbp+180h+var_30], rax ; +0x2e, 0x18001f27e movzx r14d, r9b ; +0x35, 0x18001f285 mov eax, r8d ; +0x39, 0x18001f289 mov rsi, rdx ; +0x3c, 0x18001f28c mov rdi, rcx ; +0x3f, 0x18001f28f mov [rsp+280h+Size], 0 ; +0x42, 0x18001f292 mov [rsp+280h+var_238], 1F4h ; +0x4b, 0x18001f29b lea rcx, [rsp+280h+var_228] ; +0x54, 0x18001f2a4 mov [rsp+280h+Src], rcx ; +0x59, 0x18001f2a9 lea r8, [rsp+280h+var_260] ; +0x5e, 0x18001f2ae mov edx, eax ; +0x63, 0x18001f2b3 lea rcx, [rsp+280h+Size] ; +0x65, 0x18001f2b5 call sub_1800158E0 ; +0x6a, 0x18001f2ba lea rcx, [rsp+280h+var_250]; this ; +0x6f, 0x18001f2bf call ??0CCThread@cocos2d@@QEAA@XZ; cocos2d::CCThread::CCThread(void) ; +0x74, 0x18001f2c4 lea r15, aKey; "key" ; +0x79, 0x18001f2c9 lea rbx, aK; "k" ; +0x80, 0x18001f2d0 test r14b, r14b ; +0x87, 0x18001f2d7 jz loc_18001F363 ; +0x8a, 0x18001f2da mov r8, rbx ; +0x90, 0x18001f2e0 cmp byte ptr [rdi+0E8h], 0 ; +0x93, 0x18001f2e3 cmovnz r8, r15 ; +0x9a, 0x18001f2ea mov rcx, [rdi+0D8h] ; +0x9e, 0x18001f2ee sub rcx, 8 ; +0xa5, 0x18001f2f5 lea rdx, [rsp+280h+var_260] ; +0xa9, 0x18001f2f9 call sub_180082A40 ; +0xae, 0x18001f2fe lea rcx, [rsp+280h+var_260] ; +0xb3, 0x18001f303 call sub_1800823F0 ; +0xb8, 0x18001f308 test rax, rax ; +0xbd, 0x18001f30d jz short loc_18001F363 ; +0xc0, 0x18001f310 lea rcx, [rsp+280h+var_260] ; +0xc2, 0x18001f312 call sub_180082AC0 ; +0xc7, 0x18001f317 mov rcx, rax; String1 ; +0xcc, 0x18001f31c mov rdx, rsi; String2 ; +0xcf, 0x18001f31f call sub_180018D00 ; +0xd2, 0x18001f322 lea rdx, [rsp+280h+var_258] ; +0xd7, 0x18001f327 test eax, eax ; +0xdc, 0x18001f32c jz loc_18001F413 ; +0xde, 0x18001f32e mov r8, rbx ; +0xe4, 0x18001f334 cmp byte ptr [rdi+0E8h], 0 ; +0xe7, 0x18001f337 cmovnz r8, r15 ; +0xee, 0x18001f33e lea rcx, [rsp+280h+var_260] ; +0xf2, 0x18001f342 call sub_180084A40 ; +0xf7, 0x18001f347 mov rcx, [rax] ; +0xfc, 0x18001f34c mov [rsp+280h+var_260], rcx ; +0xff, 0x18001f34f lea rcx, [rsp+280h+var_260] ; +0x104, 0x18001f354 call sub_1800823F0 ; +0x109, 0x18001f359 test rax, rax ; +0x10e, 0x18001f35e jnz short loc_18001F312 ; +0x111, 0x18001f361 cmp byte ptr [rdi+0E8h], 0 ; +0x113, 0x18001f363 cmovnz rbx, r15 ; +0x11a, 0x18001f36a mov rcx, [rdi+0D8h] ; +0x11e, 0x18001f36e sub rcx, 8 ; +0x125, 0x18001f375 mov r8, rbx ; +0x129, 0x18001f379 lea rdx, [rsp+280h+var_258] ; +0x12c, 0x18001f37c call sub_180082790 ; +0x131, 0x18001f381 mov rax, [rax] ; +0x136, 0x18001f386 mov [rsp+280h+var_250], rax ; +0x139, 0x18001f389 mov r8d, 3 ; +0x13e, 0x18001f38e lea rdx, [rsp+280h+var_258] ; +0x144, 0x18001f394 lea rcx, [rsp+280h+var_250] ; +0x149, 0x18001f399 call sub_180082820 ; +0x14e, 0x18001f39e mov rcx, rax ; +0x153, 0x18001f3a3 mov rdx, rsi ; +0x156, 0x18001f3a6 call sub_180088520 ; +0x159, 0x18001f3a9 movzx r14d, byte ptr [rdi+0E8h] ; +0x15e, 0x18001f3ae mov rsi, [rsp+280h+Size] ; +0x166, 0x18001f3b6 lea rcx, [rsi+1] ; +0x16b, 0x18001f3bb mov rdx, [rsp+280h+var_238] ; +0x16f, 0x18001f3bf cmp rcx, rdx ; +0x174, 0x18001f3c4 jbe short loc_18001F43B ; +0x177, 0x18001f3c7 mov rax, rdx ; +0x179, 0x18001f3c9 shr rax, 1 ; +0x17c, 0x18001f3cc add rdx, rax ; +0x17f, 0x18001f3cf cmp rcx, rdx ; +0x182, 0x18001f3d2 cmovb rcx, rdx; Size ; +0x185, 0x18001f3d5 mov [rsp+280h+var_238], rcx ; +0x189, 0x18001f3d9 call sub_1800E4C6C ; +0x18e, 0x18001f3de mov rbx, rax ; +0x193, 0x18001f3e3 mov r8, [rsp+280h+Size]; Size ; +0x196, 0x18001f3e6 mov rdx, [rsp+280h+Src]; Src ; +0x19b, 0x18001f3eb mov rcx, rax; void * ; +0x1a0, 0x18001f3f0 call memmove ; +0x1a3, 0x18001f3f3 lea rax, [rsp+280h+var_228] ; +0x1a8, 0x18001f3f8 mov rcx, [rsp+280h+Src]; Block ; +0x1ad, 0x18001f3fd cmp rcx, rax ; +0x1b2, 0x18001f402 jz short loc_18001F40C ; +0x1b5, 0x18001f405 call j_j_free_0 ; +0x1b7, 0x18001f407 mov [rsp+280h+Src], rbx ; +0x1bc, 0x18001f40c jmp short loc_18001F440 ; +0x1c1, 0x18001f411 cmp byte ptr [rdi+0E8h], 0 ; +0x1c3, 0x18001f413 cmovnz rbx, r15 ; +0x1ca, 0x18001f41a mov rcx, [rdi+0D8h] ; +0x1ce, 0x18001f41e sub rcx, 8 ; +0x1d5, 0x18001f425 lea r9, [rsp+280h+var_260] ; +0x1d9, 0x18001f429 mov r8, rbx ; +0x1de, 0x18001f42e call sub_180084060 ; +0x1e1, 0x18001f431 jmp loc_18001F386 ; +0x1e6, 0x18001f436 mov rbx, [rsp+280h+Src] ; +0x1eb, 0x18001f43b mov byte ptr [rbx+rsi], 0 ; +0x1f0, 0x18001f440 mov rbx, [rsp+280h+Src] ; +0x1f4, 0x18001f444 lea rax, Buf2; "integer" ; +0x1f9, 0x18001f449 lea r8, aI; "i" ; +0x200, 0x18001f450 test r14b, r14b ; +0x207, 0x18001f457 cmovnz r8, rax ; +0x20a, 0x18001f45a mov rcx, [rdi+0D8h] ; +0x20e, 0x18001f45e sub rcx, 8 ; +0x215, 0x18001f465 lea r9, [rsp+280h+var_250] ; +0x219, 0x18001f469 lea rdx, [rsp+280h+var_258] ; +0x21e, 0x18001f46e call sub_180083ED0 ; +0x223, 0x18001f473 mov rcx, rax ; +0x228, 0x18001f478 mov r8d, 3 ; +0x22b, 0x18001f47b lea rdx, [rsp+280h+var_260] ; +0x231, 0x18001f481 call sub_180082820 ; +0x236, 0x18001f486 mov rcx, rax ; +0x23b, 0x18001f48b mov rdx, rbx ; +0x23e, 0x18001f48e call sub_180088520 ; +0x241, 0x18001f491 nop ; +0x246, 0x18001f496 lea rax, [rsp+280h+var_228] ; +0x247, 0x18001f497 mov rcx, [rsp+280h+Src]; Block ; +0x24c, 0x18001f49c cmp rcx, rax ; +0x251, 0x18001f4a1 jz short loc_18001F4AB ; +0x254, 0x18001f4a4 call j_j_free_0 ; +0x256, 0x18001f4a6 mov rcx, [rbp+180h+var_30] ; +0x25b, 0x18001f4ab xor rcx, rsp; StackCookie ; +0x262, 0x18001f4b2 call __security_check_cookie ; +0x265, 0x18001f4b5 mov rbx, [rsp+280h+arg_10] ; +0x26a, 0x18001f4ba add rsp, 260h ; +0x272, 0x18001f4c2 pop r15 ; +0x279, 0x18001f4c9 pop r14 ; +0x27b, 0x18001f4cb pop rdi ; +0x27d, 0x18001f4cd pop rsi ; +0x27e, 0x18001f4ce pop rbp ; +0x27f, 0x18001f4cf retn ; +0x280, 0x18001f4d0