{"type": "func", "start": 4295824928, "end": 4295825075, "name": "GJAccountManager::onUpdateAccountSettingsCompleted", "pseudocode": "// \n// GJAccountManager::onUpdateAccountSettingsCompleted from 0x1000d1620 to 0x1000d16b3 (147 bytes)\n// \n// 0 xrefs:\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\nchar __fastcall GJAccountManager::onUpdateAccountSettingsCompleted(GJAccountManager *a1, unsigned __int8 *a2)\n{\n  const void *v3; // rdi\n  unsigned __int64 v4; // rcx\n  size_t v5; // rdx\n  bool v6; // r14\n  int v7; // eax\n  __int64 (***m_accountSettingsDelegate)(void); // rdi\n  char result; // al\n  __int64 (**v10)(void); // rax\n  _WORD __s2[19]; // [rsp+9h] [rbp-27h] BYREF\n\n  GJAccountManager::removeDLFromActive(a1, \"acc_sett\");\n  strcpy((char *)__s2, \"-1\");\n  v3 = a2 + 1;\n  v4 = *a2 >> 1;\n  if ( (*a2 & 1) != 0 )\n  {\n    v3 = *((const void **)a2 + 2);\n    v4 = *((_QWORD *)a2 + 1);\n  }\n  v5 = 2;\n  if ( v4 < 2 )\n    v5 = v4;\n  v6 = v4 != 2;\n  v7 = memcmp(v3, __s2, v5);\n  m_accountSettingsDelegate = (__int64 (***)(void))a1->m_accountSettingsDelegate;\n  result = v6 || v7 != 0;\n  if ( result )\n  {\n    if ( !m_accountSettingsDelegate )\n      return result;\n    v10 = *m_accountSettingsDelegate;\n  }\n  else\n  {\n    if ( !m_accountSettingsDelegate )\n      return result;\n    v10 = *m_accountSettingsDelegate + 1;\n  }\n  return (*v10)();\n}", "assembly": "; \n; GJAccountManager::onUpdateAccountSettingsCompleted from 0x1000d1620 to 0x1000d16b3 (147 bytes)\n; \n; 0 xrefs:\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, 0x1000d1620\nmov     rbp, rsp                                                       ; +0x1, 0x1000d1621\npush    r14                                                            ; +0x4, 0x1000d1624\npush    rbx                                                            ; +0x6, 0x1000d1626\nsub     rsp, 20h                                                       ; +0x7, 0x1000d1627\nmov     r14, rsi                                                       ; +0xb, 0x1000d162b\nmov     rbx, rdi                                                       ; +0xe, 0x1000d162e\nlea     rsi, aAccSett; \"acc_sett\"                                      ; +0x11, 0x1000d1631\ncall    GJAccountManager__removeDLFromActive                           ; +0x18, 0x1000d1638\nmov     [rbp+__s2], 312Dh                                              ; +0x1d, 0x1000d163d\nmov     [rbp+var_25], 0                                                ; +0x23, 0x1000d1643\nmovzx   eax, byte ptr [r14]                                            ; +0x27, 0x1000d1647\nlea     rdi, [r14+1]                                                   ; +0x2b, 0x1000d164b\nmov     ecx, eax                                                       ; +0x2f, 0x1000d164f\nshr     ecx, 1                                                         ; +0x31, 0x1000d1651\ntest    al, 1                                                          ; +0x33, 0x1000d1653\ncmovnz  rdi, [r14+10h]; __s1                                           ; +0x35, 0x1000d1655\nlea     rsi, [rbp+__s2]; __s2                                          ; +0x3a, 0x1000d165a\ncmovnz  rcx, [r14+8]                                                   ; +0x3e, 0x1000d165e\ncmp     rcx, 2                                                         ; +0x43, 0x1000d1663\nmov     edx, 2                                                         ; +0x47, 0x1000d1667\ncmovb   rdx, rcx; __n                                                  ; +0x4c, 0x1000d166c\nsetnz   r14b                                                           ; +0x50, 0x1000d1670\ncall    _memcmp                                                        ; +0x54, 0x1000d1674\ntest    eax, eax                                                       ; +0x59, 0x1000d1679\nsetnz   al                                                             ; +0x5b, 0x1000d167b\nmov     rdi, [rbx+1B0h]                                                ; +0x5e, 0x1000d167e\nor      al, r14b                                                       ; +0x65, 0x1000d1685\njnz     short loc_1000D1698                                            ; +0x68, 0x1000d1688\ntest    rdi, rdi                                                       ; +0x6a, 0x1000d168a\njz      short loc_1000D16AA                                            ; +0x6d, 0x1000d168d\nmov     rax, [rdi]                                                     ; +0x6f, 0x1000d168f\nadd     rax, 8                                                         ; +0x72, 0x1000d1692\njmp     short loc_1000D16A0                                            ; +0x76, 0x1000d1696\ntest    rdi, rdi                                                       ; +0x78, 0x1000d1698\njz      short loc_1000D16AA                                            ; +0x7b, 0x1000d169b\nmov     rax, [rdi]                                                     ; +0x7d, 0x1000d169d\nadd     rsp, 20h                                                       ; +0x80, 0x1000d16a0\npop     rbx                                                            ; +0x84, 0x1000d16a4\npop     r14                                                            ; +0x85, 0x1000d16a5\npop     rbp                                                            ; +0x87, 0x1000d16a7\njmp     qword ptr [rax]                                                ; +0x88, 0x1000d16a8\nadd     rsp, 20h                                                       ; +0x8a, 0x1000d16aa\npop     rbx                                                            ; +0x8e, 0x1000d16ae\npop     r14                                                            ; +0x8f, 0x1000d16af\npop     rbp                                                            ; +0x91, 0x1000d16b1\nretn                                                                   ; +0x92, 0x1000d16b2", "xrefs": [], "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"}