{"type": "func", "start": 5371877392, "end": 5371877621, "name": "GJAccountManager::addDLToActive", "pseudocode": "// \n// GJAccountManager::addDLToActive from 0x140305810 to 0x1403058f5 (229 bytes)\n// \n// 6 xrefs:\n// > GJAccountManager::registerAccount @ 0x140305f50\n// > GJAccountManager::loginAccount @ 0x1403066cb\n// > GJAccountManager::backupAccount @ 0x1403075ae\n// > GJAccountManager::syncAccount @ 0x14030862d\n// > GJAccountManager::updateAccountSettings @ 0x140309c3f\n// > <???> @ 0x14091e548\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:30:09 +0000\n// \n\n// Hidden C++ exception states: #wind=1\nvoid __fastcall GJAccountManager::addDLToActive(__int64 a1, _BYTE *a2)\n{\n  __int64 v4; // rsi\n  size_t v5; // r8\n  void *v6; // rcx\n  void *Block[2]; // [rsp+30h] [rbp-38h] BYREF\n  __int128 v8; // [rsp+40h] [rbp-28h]\n\n  v4 = cocos2d::CCNode::create();\n  *(_OWORD *)Block = 0;\n  v8 = 0;\n  v5 = -1;\n  do\n    ++v5;\n  while ( a2[v5] );\n  sub_14003D230(Block, a2, v5);\n  cocos2d::CCDictionary::setObject(*(_QWORD *)(a1 + 320), v4, Block);\n  if ( *((_QWORD *)&v8 + 1) > 0xFu )\n  {\n    v6 = Block[0];\n    if ( (unsigned __int64)(*((_QWORD *)&v8 + 1) + 1LL) >= 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(v6);\n  }\n}", "assembly": "; \n; GJAccountManager::addDLToActive from 0x140305810 to 0x1403058f5 (229 bytes)\n; \n; 6 xrefs:\n; > GJAccountManager::registerAccount @ 0x140305f50\n; > GJAccountManager::loginAccount @ 0x1403066cb\n; > GJAccountManager::backupAccount @ 0x1403075ae\n; > GJAccountManager::syncAccount @ 0x14030862d\n; > GJAccountManager::updateAccountSettings @ 0x140309c3f\n; > <???> @ 0x14091e548\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:30:09 +0000\n; \nmov     [rsp+arg_10], rbx                                              ; +0x0, 0x140305810\nmov     [rsp+arg_18], rsi                                              ; +0x5, 0x140305815\npush    rdi                                                            ; +0xa, 0x14030581a\nsub     rsp, 60h                                                       ; +0xb, 0x14030581b\nmov     rax, cs:__security_cookie                                      ; +0xf, 0x14030581f\nxor     rax, rsp                                                       ; +0x16, 0x140305826\nmov     [rsp+68h+var_18], rax                                          ; +0x19, 0x140305829\nmov     rbx, rdx                                                       ; +0x1e, 0x14030582e\nmov     rdi, rcx                                                       ; +0x21, 0x140305831\ncall    cs:?create@CCNode@cocos2d@@SAPEAV12@XZ; cocos2d::CCNode::create(void) ; +0x24, 0x140305834\nmov     rsi, rax                                                       ; +0x2a, 0x14030583a\nxorps   xmm0, xmm0                                                     ; +0x2d, 0x14030583d\nmovups  xmmword ptr [rsp+68h+Block], xmm0                              ; +0x30, 0x140305840\nxorps   xmm1, xmm1                                                     ; +0x35, 0x140305845\nmovdqu  [rsp+68h+var_28], xmm1                                         ; +0x38, 0x140305848\nmov     r8, 0FFFFFFFFFFFFFFFFh                                         ; +0x3e, 0x14030584e\ninc     r8                                                             ; +0x45, 0x140305855\ncmp     byte ptr [rbx+r8], 0                                           ; +0x48, 0x140305858\njnz     short loc_140305855                                            ; +0x4d, 0x14030585d\nmov     rdx, rbx                                                       ; +0x4f, 0x14030585f\nlea     rcx, [rsp+68h+Block]                                           ; +0x52, 0x140305862\ncall    sub_14003D230                                                  ; +0x57, 0x140305867\nnop                                                                    ; +0x5c, 0x14030586c\nlea     r8, [rsp+68h+Block]                                            ; +0x5d, 0x14030586d\nmov     rdx, rsi                                                       ; +0x62, 0x140305872\nmov     rcx, [rdi+140h]                                                ; +0x65, 0x140305875\ncall    cs:?setObject@CCDictionary@cocos2d@@QEAAXPEAVCCObject@2@AEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z; cocos2d::CCDictionary::setObject(cocos2d::CCObject *,std::string const &) ; +0x6c, 0x14030587c\nnop                                                                    ; +0x72, 0x140305882\nmov     rdx, qword ptr [rsp+68h+var_28+8]                              ; +0x73, 0x140305883\ncmp     rdx, 0Fh                                                       ; +0x78, 0x140305888\njbe     short loc_1403058D6                                            ; +0x7c, 0x14030588c\ninc     rdx                                                            ; +0x7e, 0x14030588e\nmov     rcx, [rsp+68h+Block]; Block                                    ; +0x81, 0x140305891\nmov     rax, rcx                                                       ; +0x86, 0x140305896\ncmp     rdx, 1000h                                                     ; +0x89, 0x140305899\njb      short loc_1403058D1                                            ; +0x90, 0x1403058a0\nadd     rdx, 27h ; '''                                                 ; +0x92, 0x1403058a2\nmov     rcx, [rcx-8]                                                   ; +0x96, 0x1403058a6\nsub     rax, rcx                                                       ; +0x9a, 0x1403058aa\nsub     rax, 8                                                         ; +0x9d, 0x1403058ad\ncmp     rax, 1Fh                                                       ; +0xa1, 0x1403058b1\njbe     short loc_1403058D1                                            ; +0xa5, 0x1403058b5\nmov     [rsp+68h+Reserved], 0; Reserved                                ; +0xa7, 0x1403058b7\nxor     r9d, r9d; LineNo                                               ; +0xb0, 0x1403058c0\nxor     r8d, r8d; FileName                                             ; +0xb3, 0x1403058c3\nxor     edx, edx; FunctionName                                         ; +0xb6, 0x1403058c6\nxor     ecx, ecx; Expression                                           ; +0xb8, 0x1403058c8\ncall    cs:_invoke_watson                                              ; +0xba, 0x1403058ca\ndb 0CCh                                                                ; +0xc0, 0x1403058d0\ncall    j_j_free                                                       ; +0xc1, 0x1403058d1\nmov     rcx, [rsp+68h+var_18]                                          ; +0xc6, 0x1403058d6\nxor     rcx, rsp; StackCookie                                          ; +0xcb, 0x1403058db\ncall    __security_check_cookie                                        ; +0xce, 0x1403058de\nlea     r11, [rsp+68h+var_8]                                           ; +0xd3, 0x1403058e3\nmov     rbx, [r11+20h]                                                 ; +0xd8, 0x1403058e8\nmov     rsi, [r11+28h]                                                 ; +0xdc, 0x1403058ec\nmov     rsp, r11                                                       ; +0xe0, 0x1403058f0\npop     rdi                                                            ; +0xe3, 0x1403058f3\nretn                                                                   ; +0xe4, 0x1403058f4", "xrefs": ["GJAccountManager::registerAccount @ 0x140305f50", "GJAccountManager::loginAccount @ 0x1403066cb", "GJAccountManager::backupAccount @ 0x1403075ae", "GJAccountManager::syncAccount @ 0x14030862d", "GJAccountManager::updateAccountSettings @ 0x140309c3f", "<???> @ 0x14091e548"], "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"}