{"type": "func", "start": 4295623456, "end": 4295623665, "name": "GJAccountManager::addDLToActive", "pseudocode": "// \n// GJAccountManager::addDLToActive from 0x1000a0320 to 0x1000a03f1 (209 bytes)\n// \n// 8 xrefs:\n// > GJAccountManager::addDLToActive_1 @ 0x1000a030f\n// > GJAccountManager::registerAccount @ 0x1000a053a\n// > GJAccountManager::loginAccount @ 0x1000a0cdb\n// > GJAccountManager::getAccountBackupURL @ 0x1000a1512\n// > GJAccountManager::backupAccount @ 0x1000a1848\n// > GJAccountManager::getAccountSyncURL @ 0x1000a1da2\n// > GJAccountManager::syncAccount @ 0x1000a20e5\n// > GJAccountManager::updateAccountSettings @ 0x1000a26cf\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 12:20:13 +0000\n// \n\nvoid __fastcall GJAccountManager::addDLToActive(__int64 a1, const char *a2, __int64 a3)\n{\n  __int64 v4; // r14\n  size_t v5; // rax\n  size_t v6; // r12\n  char *v7; // r13\n  __int64 v8; // r14\n  size_t v9; // rbx\n  __int64 v10; // [rsp+8h] [rbp-48h]\n  _QWORD __dst[2]; // [rsp+10h] [rbp-40h] BYREF\n  void *__p; // [rsp+20h] [rbp-30h]\n\n  v4 = *(_QWORD *)(a1 + 320);\n  v5 = strlen(a2);\n  if ( v5 >= 0xFFFFFFFFFFFFFFF8LL )\n    sub_100003630();\n  v6 = v5;\n  if ( v5 >= 0x17 )\n  {\n    v10 = *(_QWORD *)(a1 + 320);\n    v8 = a3;\n    v9 = 26;\n    if ( (v5 | 7) != 0x17 )\n      v9 = (v5 | 7) + 1;\n    v7 = (char *)operator new(v9);\n    __p = v7;\n    __dst[0] = v9 + 1;\n    a3 = v8;\n    v4 = v10;\n    __dst[1] = v6;\n    goto LABEL_8;\n  }\n  LOBYTE(__dst[0]) = 2 * v5;\n  v7 = (char *)__dst + 1;\n  if ( v5 )\nLABEL_8:\n    memcpy(v7, a2, v6);\n  v7[v6] = 0;\n  cocos2d::CCDictionary::setObject(v4, a3, __dst);\n  if ( (__dst[0] & 1) != 0 )\n    operator delete(__p);\n}", "assembly": "; \n; GJAccountManager::addDLToActive from 0x1000a0320 to 0x1000a03f1 (209 bytes)\n; \n; 8 xrefs:\n; > GJAccountManager::addDLToActive_1 @ 0x1000a030f\n; > GJAccountManager::registerAccount @ 0x1000a053a\n; > GJAccountManager::loginAccount @ 0x1000a0cdb\n; > GJAccountManager::getAccountBackupURL @ 0x1000a1512\n; > GJAccountManager::backupAccount @ 0x1000a1848\n; > GJAccountManager::getAccountSyncURL @ 0x1000a1da2\n; > GJAccountManager::syncAccount @ 0x1000a20e5\n; > GJAccountManager::updateAccountSettings @ 0x1000a26cf\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 12:20:13 +0000\n; \npush    rbp                                                            ; +0x0, 0x1000a0320\nmov     rbp, rsp                                                       ; +0x1, 0x1000a0321\npush    r15                                                            ; +0x4, 0x1000a0324\npush    r14                                                            ; +0x6, 0x1000a0326\npush    r13                                                            ; +0x8, 0x1000a0328\npush    r12                                                            ; +0xa, 0x1000a032a\npush    rbx                                                            ; +0xc, 0x1000a032c\nsub     rsp, 28h                                                       ; +0xd, 0x1000a032d\nmov     rbx, rdx                                                       ; +0x11, 0x1000a0331\nmov     r15, rsi                                                       ; +0x14, 0x1000a0334\nmov     r14, [rdi+140h]                                                ; +0x17, 0x1000a0337\nmov     rdi, rsi; __s                                                  ; +0x1e, 0x1000a033e\ncall    _strlen                                                        ; +0x21, 0x1000a0341\ncmp     rax, 0FFFFFFFFFFFFFFF8h                                        ; +0x26, 0x1000a0346\njnb     loc_1000A03EC                                                  ; +0x2a, 0x1000a034a\nmov     r12, rax                                                       ; +0x30, 0x1000a0350\ncmp     rax, 17h                                                       ; +0x33, 0x1000a0353\njnb     short loc_1000A036B                                            ; +0x37, 0x1000a0357\nlea     eax, [r12+r12]                                                 ; +0x39, 0x1000a0359\nmov     byte ptr [rbp+__dst], al                                       ; +0x3d, 0x1000a035d\nlea     r13, [rbp+__dst+1]                                             ; +0x40, 0x1000a0360\ntest    r12, r12                                                       ; +0x44, 0x1000a0364\njnz     short loc_1000A03AB                                            ; +0x47, 0x1000a0367\njmp     short loc_1000A03B9                                            ; +0x49, 0x1000a0369\nmov     rax, r12                                                       ; +0x4b, 0x1000a036b\nor      rax, 7                                                         ; +0x4e, 0x1000a036e\nlea     rcx, [rax+1]                                                   ; +0x52, 0x1000a0372\ncmp     rax, 17h                                                       ; +0x56, 0x1000a0376\nmov     [rbp+var_48], r14                                              ; +0x5a, 0x1000a037a\nmov     r14, rbx                                                       ; +0x5e, 0x1000a037e\nmov     ebx, 1Ah                                                       ; +0x61, 0x1000a0381\ncmovnz  rbx, rcx                                                       ; +0x66, 0x1000a0386\nmov     rdi, rbx; __sz                                                 ; +0x6a, 0x1000a038a\ncall    __Znwm; operator new(ulong)                                    ; +0x6d, 0x1000a038d\nmov     r13, rax                                                       ; +0x72, 0x1000a0392\nmov     [rbp+__p], rax                                                 ; +0x75, 0x1000a0395\ninc     rbx                                                            ; +0x79, 0x1000a0399\nmov     [rbp+__dst], rbx                                               ; +0x7c, 0x1000a039c\nmov     rbx, r14                                                       ; +0x80, 0x1000a03a0\nmov     r14, [rbp+var_48]                                              ; +0x83, 0x1000a03a3\nmov     [rbp+var_38], r12                                              ; +0x87, 0x1000a03a7\nmov     rdi, r13; __dst                                                ; +0x8b, 0x1000a03ab\nmov     rsi, r15; __src                                                ; +0x8e, 0x1000a03ae\nmov     rdx, r12; __n                                                  ; +0x91, 0x1000a03b1\ncall    _memcpy                                                        ; +0x94, 0x1000a03b4\nmov     byte ptr [r13+r12+0], 0                                        ; +0x99, 0x1000a03b9\nlea     rdx, [rbp+__dst]                                               ; +0x9f, 0x1000a03bf\nmov     rdi, r14                                                       ; +0xa3, 0x1000a03c3\nmov     rsi, rbx                                                       ; +0xa6, 0x1000a03c6\ncall    cocos2d__CCDictionary__setObject                               ; +0xa9, 0x1000a03c9\ntest    byte ptr [rbp+__dst], 1                                        ; +0xae, 0x1000a03ce\njz      short loc_1000A03DD                                            ; +0xb2, 0x1000a03d2\nmov     rdi, [rbp+__p]; __p                                            ; +0xb4, 0x1000a03d4\ncall    __ZdlPv; operator delete(void *)                               ; +0xb8, 0x1000a03d8\nadd     rsp, 28h                                                       ; +0xbd, 0x1000a03dd\npop     rbx                                                            ; +0xc1, 0x1000a03e1\npop     r12                                                            ; +0xc2, 0x1000a03e2\npop     r13                                                            ; +0xc4, 0x1000a03e4\npop     r14                                                            ; +0xc6, 0x1000a03e6\npop     r15                                                            ; +0xc8, 0x1000a03e8\npop     rbp                                                            ; +0xca, 0x1000a03ea\nretn                                                                   ; +0xcb, 0x1000a03eb\ncall    sub_100003630                                                  ; +0xcc, 0x1000a03ec", "xrefs": ["GJAccountManager::addDLToActive_1 @ 0x1000a030f", "GJAccountManager::registerAccount @ 0x1000a053a", "GJAccountManager::loginAccount @ 0x1000a0cdb", "GJAccountManager::getAccountBackupURL @ 0x1000a1512", "GJAccountManager::backupAccount @ 0x1000a1848", "GJAccountManager::getAccountSyncURL @ 0x1000a1da2", "GJAccountManager::syncAccount @ 0x1000a20e5", "GJAccountManager::updateAccountSettings @ 0x1000a26cf"], "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"}