{"type": "func", "start": 4605232, "end": 4605342, "name": "GJAccountManager::onRegisterAccountCompleted", "pseudocode": "// \n// GJAccountManager::onRegisterAccountCompleted from 0x464530 to 0x46459e (110 bytes)\n// \n// 1 xrefs:\n// > GJAccountManager::handleIt @ 0x465bb6\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\nint __fastcall GJAccountManager::onRegisterAccountCompleted(GJAccountManager *a1, const char **a2, int a3, int a4)\n{\n  int v6; // r7\n  int result; // r0\n  GJAccountRegisterDelegate *m_accountRegisterDelegate; // r4\n  int v9; // r0\n  _DWORD v10[2]; // [sp+8h] [bp-8h] BYREF\n\n  v10[0] = a3;\n  v10[1] = a4;\n  GJAccountManager::removeDLFromActive(a1, \"reg_account\");\n  sub_776584((int)v10, (char *)&aO1i2r3e45s7t89[1]);\n  v6 = sub_774DBC(a2, v10);\n  result = sub_774008(v10);\n  m_accountRegisterDelegate = a1->m_accountRegisterDelegate;\n  if ( v6 )\n  {\n    if ( m_accountRegisterDelegate )\n    {\n      v9 = atoi(*a2);\n      return ((int (__fastcall *)(GJAccountRegisterDelegate *, int))m_accountRegisterDelegate->registerAccountFailed)(\n               m_accountRegisterDelegate,\n               v9);\n    }\n  }\n  else if ( m_accountRegisterDelegate )\n  {\n    return ((int (__fastcall *)(GJAccountRegisterDelegate *))m_accountRegisterDelegate->registerAccountFinished)(a1->m_accountRegisterDelegate);\n  }\n  return result;\n}", "assembly": "; \n; GJAccountManager::onRegisterAccountCompleted from 0x464530 to 0x46459e (110 bytes)\n; \n; 1 xrefs:\n; > GJAccountManager::handleIt @ 0x465bb6\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.W          {R0-R8,LR}                                             ; +0x0, 0x464530\nMOV             R6, R1                                                 ; +0x4, 0x464534\nLDR             R5, =(__stack_chk_guard_ptr - 0x464542)                ; +0x6, 0x464536\nADD             R4, SP, #0x10+var_8                                    ; +0x8, 0x464538\nLDR             R1, =(aRegAccount - 0x464546); \"reg_account\"           ; +0xa, 0x46453a\nMOV             R8, R0                                                 ; +0xc, 0x46453c\nADD             R5, PC; __stack_chk_guard_ptr                          ; +0xe, 0x46453e\nLDR             R5, [R5]; __stack_chk_guard                            ; +0x10, 0x464540\nADD             R1, PC; \"reg_account\"                                  ; +0x12, 0x464542\nLDR             R3, [R5]                                               ; +0x14, 0x464544\nSTR             R3, [SP,#0x10+var_4]                                   ; +0x16, 0x464546\nBL              _ZN16GJAccountManager18removeDLFromActiveEPKc; GJAccountManager::removeDLFromActive(char const*) ; +0x18, 0x464548\nLDR             R1, =(aO1i2r3e45s7t89+2 - 0x464556); \"1i2r3e45s7t89g\"  ; +0x1c, 0x46454c\nADD             R2, SP, #0x10+var_C                                    ; +0x1e, 0x46454e\nMOV             R0, R4; int                                            ; +0x20, 0x464550\nADD             R1, PC; \"1i2r3e45s7t89g\" ; char *                      ; +0x22, 0x464552\nBL              sub_776584                                             ; +0x24, 0x464554\nMOV             R1, R4                                                 ; +0x28, 0x464558\nMOV             R0, R6                                                 ; +0x2a, 0x46455a\nBL              sub_774DBC                                             ; +0x2c, 0x46455c\nMOV             R7, R0                                                 ; +0x30, 0x464560\nMOV             R0, R4                                                 ; +0x32, 0x464562\nBL              sub_774008                                             ; +0x34, 0x464564\nLDR.W           R4, [R8,#0x120]                                        ; +0x38, 0x464568\nCBNZ            R7, loc_46457A                                         ; +0x3c, 0x46456c\nCBZ             R4, loc_46458C                                         ; +0x3e, 0x46456e\nLDR             R3, [R4]                                               ; +0x40, 0x464570\nMOV             R0, R4                                                 ; +0x42, 0x464572\nLDR             R3, [R3]                                               ; +0x44, 0x464574\nBLX             R3                                                     ; +0x46, 0x464576\nB               loc_46458C                                             ; +0x48, 0x464578\nCBZ             R4, loc_46458C                                         ; +0x4a, 0x46457a\nLDR             R0, [R6]; char *                                       ; +0x4c, 0x46457c\nBLX             atoi                                                   ; +0x4e, 0x46457e\nLDR             R3, [R4]                                               ; +0x52, 0x464582\nLDR             R3, [R3,#4]                                            ; +0x54, 0x464584\nMOV             R1, R0                                                 ; +0x56, 0x464586\nMOV             R0, R4                                                 ; +0x58, 0x464588\nBLX             R3                                                     ; +0x5a, 0x46458a\nLDR             R2, [SP,#0x10+var_4]                                   ; +0x5c, 0x46458c\nLDR             R3, [R5]                                               ; +0x5e, 0x46458e\nCMP             R2, R3                                                 ; +0x60, 0x464590\nBEQ             loc_464598                                             ; +0x62, 0x464592\nBLX             __stack_chk_fail                                       ; +0x64, 0x464594\nADD             SP, SP, #0x10                                          ; +0x68, 0x464598\nPOP.W           {R4-R8,PC}                                             ; +0x6a, 0x46459a", "xrefs": ["GJAccountManager::handleIt @ 0x465bb6"], "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"}