{"type": "func", "start": 6443115920, "end": 6443116049, "name": "cocos2d::CCUserDefault::getBoolForKey", "pseudocode": "// \n// cocos2d::CCUserDefault::getBoolForKey from 0x1800a2590 to 0x1800a2611 (129 bytes)\n// \n// 3 xrefs:\n// > cocos2d::CCUserDefault::getBoolForKey @ 0x1800a2583\n// > <???> @ 0x18014cf68\n// > <???> @ 0x1801c1878\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_BOOL8 __fastcall cocos2d::CCUserDefault::getBoolForKey(cocos2d::CCUserDefault *this, char *a2, bool a3)\n{\n  const char *Str; // rbx\n  __int64 v5; // rax\n  __int64 v6; // rcx\n  __int64 v8; // [rsp+58h] [rbp+20h]\n\n  Str = nullptr;\n  v5 = sub_1800A2AE0(a2);\n  if ( v5 )\n  {\n    v6 = *(_QWORD *)(v5 + 48);\n    if ( v6 )\n      Str = tinyxml2::StrPair::GetStr((tinyxml2::StrPair *)(v6 + 24));\n  }\n  if ( Str )\n    a3 = strcmp(Str, \"true\") == 0;\n  if ( v8 )\n    (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v8 + 128LL))(v8, 1);\n  return a3;\n}", "assembly": "; \n; cocos2d::CCUserDefault::getBoolForKey from 0x1800a2590 to 0x1800a2611 (129 bytes)\n; \n; 3 xrefs:\n; > cocos2d::CCUserDefault::getBoolForKey @ 0x1800a2583\n; > <???> @ 0x18014cf68\n; > <???> @ 0x1801c1878\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, 0x1800a2590\npush    rdi                                                            ; +0x5, 0x1800a2595\nsub     rsp, 30h                                                       ; +0x6, 0x1800a2596\nmovzx   edi, r8b                                                       ; +0xa, 0x1800a259a\nmov     rcx, rdx; Str2                                                 ; +0xe, 0x1800a259e\nlea     r8, [rsp+38h+arg_18]                                           ; +0x11, 0x1800a25a1\nxor     ebx, ebx                                                       ; +0x16, 0x1800a25a6\nlea     rdx, [rsp+38h+var_18]                                          ; +0x18, 0x1800a25a8\ncall    sub_1800A2AE0                                                  ; +0x1d, 0x1800a25ad\ntest    rax, rax                                                       ; +0x22, 0x1800a25b2\njz      short loc_1800A25CC                                            ; +0x25, 0x1800a25b5\nmov     rcx, [rax+30h]                                                 ; +0x27, 0x1800a25b7\ntest    rcx, rcx                                                       ; +0x2b, 0x1800a25bb\njz      short loc_1800A25CC                                            ; +0x2e, 0x1800a25be\nadd     rcx, 18h; this                                                 ; +0x30, 0x1800a25c0\ncall    ?GetStr@StrPair@tinyxml2@@QEAAPEBDXZ; tinyxml2::StrPair::GetStr(void) ; +0x34, 0x1800a25c4\nmov     rbx, rax                                                       ; +0x39, 0x1800a25c9\ntest    rbx, rbx                                                       ; +0x3c, 0x1800a25cc\njz      short loc_1800A25E6                                            ; +0x3f, 0x1800a25cf\nlea     rdx, Str1; \"true\"                                              ; +0x41, 0x1800a25d1\nmov     rcx, rbx; Str1                                                 ; +0x48, 0x1800a25d8\ncall    strcmp                                                         ; +0x4b, 0x1800a25db\ntest    eax, eax                                                       ; +0x50, 0x1800a25e0\nsetz    dil                                                            ; +0x52, 0x1800a25e2\nmov     rcx, [rsp+38h+arg_18]                                          ; +0x56, 0x1800a25e6\ntest    rcx, rcx                                                       ; +0x5b, 0x1800a25eb\njz      short loc_1800A2602                                            ; +0x5e, 0x1800a25ee\nmov     rdx, [rcx]                                                     ; +0x60, 0x1800a25f0\nmov     r8, [rdx+80h]                                                  ; +0x63, 0x1800a25f3\nmov     edx, 1                                                         ; +0x6a, 0x1800a25fa\ncall    r8                                                             ; +0x6f, 0x1800a25ff\nmov     rbx, [rsp+38h+arg_0]                                           ; +0x72, 0x1800a2602\nmovzx   eax, dil                                                       ; +0x77, 0x1800a2607\nadd     rsp, 30h                                                       ; +0x7b, 0x1800a260b\npop     rdi                                                            ; +0x7f, 0x1800a260f\nretn                                                                   ; +0x80, 0x1800a2610", "xrefs": ["cocos2d::CCUserDefault::getBoolForKey @ 0x1800a2583", "<???> @ 0x18014cf68", "<???> @ 0x1801c1878"], "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"}