{"type": "func", "start": 4295826448, "end": 4295826643, "name": "GJAccountManager::getDLObject", "pseudocode": "// \n// GJAccountManager::getDLObject from 0x1000d1c10 to 0x1000d1cd3 (195 bytes)\n// \n// 8 xrefs:\n// > GJAccountManager::isDLActive @ 0x1000d1bf4\n// > GJAccountManager::registerAccount @ 0x1000d1f14\n// > GJAccountManager::loginAccount @ 0x1000d21c4\n// > GJAccountManager::getAccountBackupURL @ 0x1000d29fb\n// > GJAccountManager::backupAccount @ 0x1000d2d31\n// > GJAccountManager::getAccountSyncURL @ 0x1000d327b\n// > GJAccountManager::syncAccount @ 0x1000d35be\n// > GJAccountManager::updateAccountSettings @ 0x1000d3a5d\n// \n// This function is hookable on this platform!\n// \n// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings\n// \n\ncocos2d::CCObject *__fastcall GJAccountManager::getDLObject(GJAccountManager *a1, const char *a2)\n{\n  double v2; // xmm0_8\n  cocos2d::CCDictionary *m_activeDownloads; // rbx\n  size_t v4; // rax\n  size_t v5; // r15\n  char *v6; // r12\n  size_t v7; // r13\n  cocos2d::CCObject *result; // rax\n  cocos2d::CCObject *v9; // rbx\n  _QWORD __dst[2]; // [rsp+0h] [rbp-40h] BYREF\n  void *__p; // [rsp+10h] [rbp-30h]\n\n  m_activeDownloads = a1->m_activeDownloads;\n  v4 = strlen(a2);\n  if ( v4 >= 0xFFFFFFFFFFFFFFF8LL )\n    sub_100006BF0(v2);\n  v5 = v4;\n  if ( v4 >= 0x17 )\n  {\n    v7 = 26;\n    if ( (v4 | 7) != 0x17 )\n      v7 = (v4 | 7) + 1;\n    v6 = (char *)operator new(v7);\n    __p = v6;\n    __dst[0] = v7 + 1;\n    __dst[1] = v5;\n    goto LABEL_8;\n  }\n  LOBYTE(__dst[0]) = 2 * v4;\n  v6 = (char *)__dst + 1;\n  if ( v4 )\nLABEL_8:\n    memcpy(v6, a2, v5);\n  v6[v5] = 0;\n  result = (cocos2d::CCObject *)cocos2d::CCDictionary::objectForKey_1(m_activeDownloads, __dst);\n  if ( (__dst[0] & 1) != 0 )\n  {\n    v9 = result;\n    operator delete(__p);\n    return v9;\n  }\n  return result;\n}", "assembly": "; \n; GJAccountManager::getDLObject from 0x1000d1c10 to 0x1000d1cd3 (195 bytes)\n; \n; 8 xrefs:\n; > GJAccountManager::isDLActive @ 0x1000d1bf4\n; > GJAccountManager::registerAccount @ 0x1000d1f14\n; > GJAccountManager::loginAccount @ 0x1000d21c4\n; > GJAccountManager::getAccountBackupURL @ 0x1000d29fb\n; > GJAccountManager::backupAccount @ 0x1000d2d31\n; > GJAccountManager::getAccountSyncURL @ 0x1000d327b\n; > GJAccountManager::syncAccount @ 0x1000d35be\n; > GJAccountManager::updateAccountSettings @ 0x1000d3a5d\n; \n; This function is hookable on this platform!\n; \n; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA\n; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings\n; \n\npush    rbp                                                            ; +0x0, 0x1000d1c10\nmov     rbp, rsp                                                       ; +0x1, 0x1000d1c11\npush    r15                                                            ; +0x4, 0x1000d1c14\npush    r14                                                            ; +0x6, 0x1000d1c16\npush    r13                                                            ; +0x8, 0x1000d1c18\npush    r12                                                            ; +0xa, 0x1000d1c1a\npush    rbx                                                            ; +0xc, 0x1000d1c1c\nsub     rsp, 18h                                                       ; +0xd, 0x1000d1c1d\nmov     r14, rsi                                                       ; +0x11, 0x1000d1c21\nmov     rbx, [rdi+140h]                                                ; +0x14, 0x1000d1c24\nmov     rdi, rsi; __s                                                  ; +0x1b, 0x1000d1c2b\ncall    _strlen                                                        ; +0x1e, 0x1000d1c2e\ncmp     rax, 0FFFFFFFFFFFFFFF8h                                        ; +0x23, 0x1000d1c33\njnb     loc_1000D1CCE                                                  ; +0x27, 0x1000d1c37\nmov     r15, rax                                                       ; +0x2d, 0x1000d1c3d\ncmp     rax, 17h                                                       ; +0x30, 0x1000d1c40\njnb     short loc_1000D1C58                                            ; +0x34, 0x1000d1c44\nlea     eax, [r15+r15]                                                 ; +0x36, 0x1000d1c46\nmov     byte ptr [rbp+__dst], al                                       ; +0x3a, 0x1000d1c4a\nlea     r12, [rbp+__dst+1]                                             ; +0x3d, 0x1000d1c4d\ntest    r15, r15                                                       ; +0x41, 0x1000d1c51\njnz     short loc_1000D1C8B                                            ; +0x44, 0x1000d1c54\njmp     short loc_1000D1C99                                            ; +0x46, 0x1000d1c56\nmov     rax, r15                                                       ; +0x48, 0x1000d1c58\nor      rax, 7                                                         ; +0x4b, 0x1000d1c5b\nlea     rcx, [rax+1]                                                   ; +0x4f, 0x1000d1c5f\ncmp     rax, 17h                                                       ; +0x53, 0x1000d1c63\nmov     r13d, 1Ah                                                      ; +0x57, 0x1000d1c67\ncmovnz  r13, rcx                                                       ; +0x5d, 0x1000d1c6d\nmov     rdi, r13; __sz                                                 ; +0x61, 0x1000d1c71\ncall    __Znwm; operator new(ulong)                                    ; +0x64, 0x1000d1c74\nmov     r12, rax                                                       ; +0x69, 0x1000d1c79\nmov     [rbp+__p], rax                                                 ; +0x6c, 0x1000d1c7c\ninc     r13                                                            ; +0x70, 0x1000d1c80\nmov     [rbp+__dst], r13                                               ; +0x73, 0x1000d1c83\nmov     [rbp+var_38], r15                                              ; +0x77, 0x1000d1c87\nmov     rdi, r12; __dst                                                ; +0x7b, 0x1000d1c8b\nmov     rsi, r14; __src                                                ; +0x7e, 0x1000d1c8e\nmov     rdx, r15; __n                                                  ; +0x81, 0x1000d1c91\ncall    _memcpy                                                        ; +0x84, 0x1000d1c94\nmov     byte ptr [r12+r15], 0                                          ; +0x89, 0x1000d1c99\nlea     rsi, [rbp+__dst]                                               ; +0x8e, 0x1000d1c9e\nmov     rdi, rbx                                                       ; +0x92, 0x1000d1ca2\ncall    cocos2d__CCDictionary__objectForKey_1                          ; +0x95, 0x1000d1ca5\ntest    byte ptr [rbp+__dst], 1                                        ; +0x9a, 0x1000d1caa\njz      short loc_1000D1CBF                                            ; +0x9e, 0x1000d1cae\nmov     rdi, [rbp+__p]; __p                                            ; +0xa0, 0x1000d1cb0\nmov     rbx, rax                                                       ; +0xa4, 0x1000d1cb4\ncall    __ZdlPv; operator delete(void *)                               ; +0xa7, 0x1000d1cb7\nmov     rax, rbx                                                       ; +0xac, 0x1000d1cbc\nadd     rsp, 18h                                                       ; +0xaf, 0x1000d1cbf\npop     rbx                                                            ; +0xb3, 0x1000d1cc3\npop     r12                                                            ; +0xb4, 0x1000d1cc4\npop     r13                                                            ; +0xb6, 0x1000d1cc6\npop     r14                                                            ; +0xb8, 0x1000d1cc8\npop     r15                                                            ; +0xba, 0x1000d1cca\npop     rbp                                                            ; +0xbc, 0x1000d1ccc\nretn                                                                   ; +0xbd, 0x1000d1ccd\ncall    sub_100006BF0                                                  ; +0xbe, 0x1000d1cce", "xrefs": ["GJAccountManager::isDLActive @ 0x1000d1bf4", "GJAccountManager::registerAccount @ 0x1000d1f14", "GJAccountManager::loginAccount @ 0x1000d21c4", "GJAccountManager::getAccountBackupURL @ 0x1000d29fb", "GJAccountManager::backupAccount @ 0x1000d2d31", "GJAccountManager::getAccountSyncURL @ 0x1000d327b", "GJAccountManager::syncAccount @ 0x1000d35be", "GJAccountManager::updateAccountSettings @ 0x1000d3a5d"], "is_objc": false, "is_arm32": false, "is_arm64": false, "bida_info": "8.0.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings"}