{"type": "func", "start": 4298764792, "end": 4298764976, "name": "GJAccountManager::onRegisterAccountCompleted", "pseudocode": "// \n// GJAccountManager::onRegisterAccountCompleted from 0x10039f1f8 to 0x10039f2b0 (184 bytes)\n// \n// 1 xrefs:\n// > GJAccountManager::handleIt @ 0x10039f018\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\nvoid __fastcall GJAccountManager::onRegisterAccountCompleted(GJAccountManager *a1, char *a2)\n{\n  _BOOL4 v4; // w21\n  GJAccountRegisterDelegate *m_accountRegisterDelegate; // x20\n  __int64 v6; // x0\n  void *__p[2]; // [xsp+8h] [xbp-38h] BYREF\n  char v8; // [xsp+1Fh] [xbp-21h]\n\n  GJAccountManager::removeDLFromActive(a1, \"reg_account\");\n  sub_100009900(__p, \"1\");\n  v4 = sub_1000045BC(a2, __p);\n  if ( v8 < 0 )\n    operator delete(__p[0]);\n  m_accountRegisterDelegate = a1->m_accountRegisterDelegate;\n  if ( v4 )\n  {\n    if ( m_accountRegisterDelegate )\n      ((void (__fastcall *)(GJAccountRegisterDelegate *))m_accountRegisterDelegate->registerAccountFinished)(m_accountRegisterDelegate);\n  }\n  else if ( m_accountRegisterDelegate )\n  {\n    if ( a2[23] < 0 )\n      a2 = *(char **)a2;\n    v6 = atoi(a2);\n    ((void (__fastcall *)(GJAccountRegisterDelegate *, __int64))m_accountRegisterDelegate->registerAccountFailed)(\n      m_accountRegisterDelegate,\n      v6);\n  }\n}", "assembly": "; \n; GJAccountManager::onRegisterAccountCompleted from 0x10039f1f8 to 0x10039f2b0 (184 bytes)\n; \n; 1 xrefs:\n; > GJAccountManager::handleIt @ 0x10039f018\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\nSUB             SP, SP, #0x50                                          ; +0x0, 0x10039f1f8\nSTP             X22, X21, [SP,#0x40+var_20]                            ; +0x4, 0x10039f1fc\nSTP             X20, X19, [SP,#0x40+var_10]                            ; +0x8, 0x10039f200\nSTP             X29, X30, [SP,#0x40+var_s0]                            ; +0xc, 0x10039f204\nADD             X29, SP, #0x40                                         ; +0x10, 0x10039f208\nMOV             X19, X1                                                ; +0x14, 0x10039f20c\nMOV             X20, X0                                                ; +0x18, 0x10039f210\nADRL            X1, aRegAccount; \"reg_account\"                         ; +0x1c, 0x10039f214\nBL              GJAccountManager__removeDLFromActive                   ; +0x24, 0x10039f21c\nADRL            X1, a1; \"1\"                                            ; +0x28, 0x10039f220\nADD             X0, SP, #0x40+__p; int                                 ; +0x30, 0x10039f228\nBL              sub_100009900                                          ; +0x34, 0x10039f22c\nADD             X1, SP, #0x40+__p                                      ; +0x38, 0x10039f230\nMOV             X0, X19                                                ; +0x3c, 0x10039f234\nBL              sub_1000045BC                                          ; +0x40, 0x10039f238\nMOV             X21, X0                                                ; +0x44, 0x10039f23c\nLDRSB           W8, [SP,#0x40+var_21]                                  ; +0x48, 0x10039f240\nTBZ             W8, #0x1F, loc_10039F250                               ; +0x4c, 0x10039f244\nLDR             X0, [SP,#0x40+__p]; __p                                ; +0x50, 0x10039f248\nBL              __ZdlPv; operator delete(void *)                       ; +0x54, 0x10039f24c\nLDR             X20, [X20,#0x188]                                      ; +0x58, 0x10039f250\nCBZ             W21, loc_10039F270                                     ; +0x5c, 0x10039f254\nCBZ             X20, loc_10039F29C                                     ; +0x60, 0x10039f258\nLDR             X8, [X20]                                              ; +0x64, 0x10039f25c\nLDR             X8, [X8]                                               ; +0x68, 0x10039f260\nMOV             X0, X20                                                ; +0x6c, 0x10039f264\nBLR             X8                                                     ; +0x70, 0x10039f268\nB               loc_10039F29C                                          ; +0x74, 0x10039f26c\nCBZ             X20, loc_10039F29C                                     ; +0x78, 0x10039f270\nLDRSB           W8, [X19,#0x17]                                        ; +0x7c, 0x10039f274\nTBZ             W8, #0x1F, loc_10039F280                               ; +0x80, 0x10039f278\nLDR             X19, [X19]                                             ; +0x84, 0x10039f27c\nMOV             X0, X19; char *                                        ; +0x88, 0x10039f280\nBL              _atoi                                                  ; +0x8c, 0x10039f284\nMOV             X1, X0                                                 ; +0x90, 0x10039f288\nLDR             X8, [X20]                                              ; +0x94, 0x10039f28c\nLDR             X8, [X8,#8]                                            ; +0x98, 0x10039f290\nMOV             X0, X20                                                ; +0x9c, 0x10039f294\nBLR             X8                                                     ; +0xa0, 0x10039f298\nLDP             X29, X30, [SP,#0x40+var_s0]                            ; +0xa4, 0x10039f29c\nLDP             X20, X19, [SP,#0x40+var_10]                            ; +0xa8, 0x10039f2a0\nLDP             X22, X21, [SP,#0x40+var_20]                            ; +0xac, 0x10039f2a4\nADD             SP, SP, #0x50 ; 'P'                                    ; +0xb0, 0x10039f2a8\nRET                                                                    ; +0xb4, 0x10039f2ac", "xrefs": ["GJAccountManager::handleIt @ 0x10039f018"], "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"}