{"type": "func", "start": 6443116416, "end": 6443116615, "name": "cocos2d::CCUserDefault::getStringForKey", "pseudocode": "// \n// cocos2d::CCUserDefault::getStringForKey from 0x1800a2780 to 0x1800a2847 (199 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x18014cf68\n// > <???> @ 0x1801c18b4\n// \n// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 11:22:14 +0000\n// \n\n// Hidden C++ exception states: #wind=1\n__int64 __fastcall cocos2d::CCUserDefault::getStringForKey(__int64 a1, __int64 a2, __int64 a3)\n{\n  void *v6; // rcx\n  void *Block[3]; // [rsp+40h] [rbp-38h] BYREF\n  unsigned __int64 v9; // [rsp+58h] [rbp-20h]\n\n  sub_180005A10(Block, (char *)Text);\n  cocos2d::CCUserDefault::getStringForKey(a1, a2, a3, Block);\n  if ( v9 > 0xF )\n  {\n    v6 = Block[0];\n    if ( v9 + 1 >= 0x1000 )\n    {\n      v6 = *((void **)Block[0] - 1);\n      if ( (unsigned __int64)((char *)Block[0] - (char *)v6 - 8) > 0x1F )\n        invoke_watson(nullptr, nullptr, nullptr, 0, 0);\n    }\n    j_j_free_0(v6);\n  }\n  return a2;\n}", "assembly": "; \n; cocos2d::CCUserDefault::getStringForKey from 0x1800a2780 to 0x1800a2847 (199 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x18014cf68\n; > <???> @ 0x1801c18b4\n; \n; This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 11:22:14 +0000\n; \nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x1800a2780\nmov     [rsp+arg_18], rsi                                              ; +0x5, 0x1800a2785\npush    rdi                                                            ; +0xa, 0x1800a278a\nsub     rsp, 70h                                                       ; +0xb, 0x1800a278b\nmov     rax, cs:__security_cookie                                      ; +0xf, 0x1800a278f\nxor     rax, rsp                                                       ; +0x16, 0x1800a2796\nmov     [rsp+78h+var_18], rax                                          ; +0x19, 0x1800a2799\nmov     rdi, r8                                                        ; +0x1e, 0x1800a279e\nmov     rsi, rdx                                                       ; +0x21, 0x1800a27a1\nmov     rbx, rcx                                                       ; +0x24, 0x1800a27a4\nmov     [rsp+78h+var_40], rdx                                          ; +0x27, 0x1800a27a7\nlea     rdx, Text; Str                                                 ; +0x2c, 0x1800a27ac\nlea     rcx, [rsp+78h+Block]; void *                                   ; +0x33, 0x1800a27b3\ncall    sub_180005A10                                                  ; +0x38, 0x1800a27b8\nnop                                                                    ; +0x3d, 0x1800a27bd\nlea     r9, [rsp+78h+Block]                                            ; +0x3e, 0x1800a27be\nmov     r8, rdi                                                        ; +0x43, 0x1800a27c3\nmov     rdx, rsi                                                       ; +0x46, 0x1800a27c6\nmov     rcx, rbx                                                       ; +0x49, 0x1800a27c9\ncall    ?getStringForKey@CCUserDefault@cocos2d@@QEAA?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@PEBDAEBV34@@Z; cocos2d::CCUserDefault::getStringForKey(char const *,std::string const &) ; +0x4c, 0x1800a27cc\nnop                                                                    ; +0x51, 0x1800a27d1\nmov     rdx, [rsp+78h+var_20]                                          ; +0x52, 0x1800a27d2\ncmp     rdx, 0Fh                                                       ; +0x57, 0x1800a27d7\njbe     short loc_1800A2825                                            ; +0x5b, 0x1800a27db\ninc     rdx                                                            ; +0x5d, 0x1800a27dd\nmov     rcx, [rsp+78h+Block]; Block                                    ; +0x60, 0x1800a27e0\nmov     rax, rcx                                                       ; +0x65, 0x1800a27e5\ncmp     rdx, 1000h                                                     ; +0x68, 0x1800a27e8\njb      short loc_1800A2820                                            ; +0x6f, 0x1800a27ef\nadd     rdx, 27h ; '''                                                 ; +0x71, 0x1800a27f1\nmov     rcx, [rcx-8]                                                   ; +0x75, 0x1800a27f5\nsub     rax, rcx                                                       ; +0x79, 0x1800a27f9\nsub     rax, 8                                                         ; +0x7c, 0x1800a27fc\ncmp     rax, 1Fh                                                       ; +0x80, 0x1800a2800\njbe     short loc_1800A2820                                            ; +0x84, 0x1800a2804\nmov     [rsp+78h+Reserved], 0; Reserved                                ; +0x86, 0x1800a2806\nxor     r9d, r9d; LineNo                                               ; +0x8f, 0x1800a280f\nxor     r8d, r8d; FileName                                             ; +0x92, 0x1800a2812\nxor     edx, edx; FunctionName                                         ; +0x95, 0x1800a2815\nxor     ecx, ecx; Expression                                           ; +0x97, 0x1800a2817\ncall    cs:_invoke_watson                                              ; +0x99, 0x1800a2819\nalign 20h                                                              ; +0x9f, 0x1800a281f\ncall    j_j_free_0                                                     ; +0xa0, 0x1800a2820\nmov     rax, rsi                                                       ; +0xa5, 0x1800a2825\nmov     rcx, [rsp+78h+var_18]                                          ; +0xa8, 0x1800a2828\nxor     rcx, rsp; StackCookie                                          ; +0xad, 0x1800a282d\ncall    __security_check_cookie                                        ; +0xb0, 0x1800a2830\nlea     r11, [rsp+78h+var_8]                                           ; +0xb5, 0x1800a2835\nmov     rbx, [r11+10h]                                                 ; +0xba, 0x1800a283a\nmov     rsi, [r11+28h]                                                 ; +0xbe, 0x1800a283e\nmov     rsp, r11                                                       ; +0xc2, 0x1800a2842\npop     rdi                                                            ; +0xc5, 0x1800a2845\nretn                                                                   ; +0xc6, 0x1800a2846", "xrefs": ["<???> @ 0x18014cf68", "<???> @ 0x1801c18b4"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}