{"type": "func", "start": 4295819232, "end": 4295819417, "name": "GJAccountManager::onRegisterAccountCompleted", "pseudocode": "// \n// GJAccountManager::onRegisterAccountCompleted from 0x1000cffe0 to 0x1000d0099 (185 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\nunsigned __int8 __fastcall GJAccountManager::onRegisterAccountCompleted(GJAccountManager *a1, unsigned __int8 *a2)\n{\n  const void *v2; // rbx\n  __int64 v3; // r12\n  unsigned __int8 result; // al\n  GJAccountRegisterDelegate *m_accountRegisterDelegate; // r14\n  unsigned int v6; // eax\n  __int16 __s2[27]; // [rsp+9h] [rbp-37h] BYREF\n\n  GJAccountManager::removeDLFromActive(a1, \"reg_account\");\n  __s2[0] = 49;\n  v2 = a2 + 1;\n  v3 = *a2 >> 1;\n  if ( (*a2 & 1) != 0 )\n  {\n    v2 = *((const void **)a2 + 2);\n    v3 = *((_QWORD *)a2 + 1);\n  }\n  result = memcmp(v2, __s2, v3 != 0) != 0;\n  m_accountRegisterDelegate = a1->m_accountRegisterDelegate;\n  if ( result | (v3 != 1) )\n  {\n    if ( m_accountRegisterDelegate )\n    {\n      v6 = atoi((const char *)v2);\n      return ((__int64 (__fastcall *)(GJAccountRegisterDelegate *, _QWORD))m_accountRegisterDelegate->registerAccountFailed)(\n               m_accountRegisterDelegate,\n               v6);\n    }\n  }\n  else if ( m_accountRegisterDelegate )\n  {\n    return ((__int64 (__fastcall *)(GJAccountRegisterDelegate *))m_accountRegisterDelegate->registerAccountFinished)(m_accountRegisterDelegate);\n  }\n  return result;\n}", "assembly": "; \n; GJAccountManager::onRegisterAccountCompleted from 0x1000cffe0 to 0x1000d0099 (185 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, 0x1000cffe0\nmov     rbp, rsp                                                       ; +0x1, 0x1000cffe1\npush    r15                                                            ; +0x4, 0x1000cffe4\npush    r14                                                            ; +0x6, 0x1000cffe6\npush    r12                                                            ; +0x8, 0x1000cffe8\npush    rbx                                                            ; +0xa, 0x1000cffea\nsub     rsp, 20h                                                       ; +0xb, 0x1000cffeb\nmov     r15, rsi                                                       ; +0xf, 0x1000cffef\nmov     r14, rdi                                                       ; +0x12, 0x1000cfff2\nlea     rsi, aRegAccount; \"reg_account\"                                ; +0x15, 0x1000cfff5\ncall    GJAccountManager__removeDLFromActive                           ; +0x1c, 0x1000cfffc\nmov     [rbp+__s2], 31h ; '1'                                          ; +0x21, 0x1000d0001\nmovzx   eax, byte ptr [r15]                                            ; +0x27, 0x1000d0007\nlea     rbx, [r15+1]                                                   ; +0x2b, 0x1000d000b\nmov     r12d, eax                                                      ; +0x2f, 0x1000d000f\nshr     r12d, 1                                                        ; +0x32, 0x1000d0012\ntest    al, 1                                                          ; +0x35, 0x1000d0015\ncmovnz  rbx, [r15+10h]                                                 ; +0x37, 0x1000d0017\ncmovnz  r12, [r15+8]                                                   ; +0x3c, 0x1000d001c\nlea     rsi, [rbp+__s2]; __s2                                          ; +0x41, 0x1000d0021\nxor     edx, edx                                                       ; +0x45, 0x1000d0025\ntest    r12, r12                                                       ; +0x47, 0x1000d0027\nsetnz   dl; __n                                                        ; +0x4a, 0x1000d002a\nmov     rdi, rbx; __s1                                                 ; +0x4d, 0x1000d002d\ncall    _memcmp                                                        ; +0x50, 0x1000d0030\ntest    eax, eax                                                       ; +0x55, 0x1000d0035\nsetnz   al                                                             ; +0x57, 0x1000d0037\ncmp     r12, 1                                                         ; +0x5a, 0x1000d003a\nsetnz   cl                                                             ; +0x5e, 0x1000d003e\nmov     r14, [r14+188h]                                                ; +0x61, 0x1000d0041\nor      cl, al                                                         ; +0x68, 0x1000d0048\njnz     short loc_1000D0065                                            ; +0x6a, 0x1000d004a\ntest    r14, r14                                                       ; +0x6c, 0x1000d004c\njz      short loc_1000D008C                                            ; +0x6f, 0x1000d004f\nmov     rax, [r14]                                                     ; +0x71, 0x1000d0051\nmov     rdi, r14                                                       ; +0x74, 0x1000d0054\nadd     rsp, 20h                                                       ; +0x77, 0x1000d0057\npop     rbx                                                            ; +0x7b, 0x1000d005b\npop     r12                                                            ; +0x7c, 0x1000d005c\npop     r14                                                            ; +0x7e, 0x1000d005e\npop     r15                                                            ; +0x80, 0x1000d0060\npop     rbp                                                            ; +0x82, 0x1000d0062\njmp     qword ptr [rax]                                                ; +0x83, 0x1000d0063\ntest    r14, r14                                                       ; +0x85, 0x1000d0065\njz      short loc_1000D008C                                            ; +0x88, 0x1000d0068\nmov     rdi, rbx; char *                                               ; +0x8a, 0x1000d006a\ncall    _atoi                                                          ; +0x8d, 0x1000d006d\nmov     rcx, [r14]                                                     ; +0x92, 0x1000d0072\nmov     rcx, [rcx+8]                                                   ; +0x95, 0x1000d0075\nmov     rdi, r14                                                       ; +0x99, 0x1000d0079\nmov     esi, eax                                                       ; +0x9c, 0x1000d007c\nadd     rsp, 20h                                                       ; +0x9e, 0x1000d007e\npop     rbx                                                            ; +0xa2, 0x1000d0082\npop     r12                                                            ; +0xa3, 0x1000d0083\npop     r14                                                            ; +0xa5, 0x1000d0085\npop     r15                                                            ; +0xa7, 0x1000d0087\npop     rbp                                                            ; +0xa9, 0x1000d0089\njmp     rcx                                                            ; +0xaa, 0x1000d008a\nadd     rsp, 20h                                                       ; +0xac, 0x1000d008c\npop     rbx                                                            ; +0xb0, 0x1000d0090\npop     r12                                                            ; +0xb1, 0x1000d0091\npop     r14                                                            ; +0xb3, 0x1000d0093\npop     r15                                                            ; +0xb5, 0x1000d0095\npop     rbp                                                            ; +0xb7, 0x1000d0097\nretn                                                                   ; +0xb8, 0x1000d0098", "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"}