{"type": "func", "start": 4295615872, "end": 4295616057, "name": "GJAccountManager::onRegisterAccountCompleted", "pseudocode": "// \n// GJAccountManager::onRegisterAccountCompleted from 0x10009e580 to 0x10009e639 (185 bytes)\n// \n// 0 xrefs:\n// \n// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 12:20:12 +0000\n// \n\nunsigned __int8 __fastcall GJAccountManager::onRegisterAccountCompleted(__int64 a1, unsigned __int8 *a2)\n{\n  const void *v2; // rbx\n  __int64 v3; // r12\n  unsigned __int8 result; // al\n  __int64 v5; // 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  v5 = *(_QWORD *)(a1 + 392);\n  if ( result | (v3 != 1) )\n  {\n    if ( v5 )\n    {\n      v6 = atoi((const char *)v2);\n      return (*(__int64 (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v5 + 8LL))(v5, v6);\n    }\n  }\n  else if ( v5 )\n  {\n    return (**(__int64 (__fastcall ***)(__int64))v5)(v5);\n  }\n  return result;\n}", "assembly": "; \n; GJAccountManager::onRegisterAccountCompleted from 0x10009e580 to 0x10009e639 (185 bytes)\n; \n; 0 xrefs:\n; \n; This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 12:20:12 +0000\n; \npush    rbp                                                            ; +0x0, 0x10009e580\nmov     rbp, rsp                                                       ; +0x1, 0x10009e581\npush    r15                                                            ; +0x4, 0x10009e584\npush    r14                                                            ; +0x6, 0x10009e586\npush    r12                                                            ; +0x8, 0x10009e588\npush    rbx                                                            ; +0xa, 0x10009e58a\nsub     rsp, 20h                                                       ; +0xb, 0x10009e58b\nmov     r15, rsi                                                       ; +0xf, 0x10009e58f\nmov     r14, rdi                                                       ; +0x12, 0x10009e592\nlea     rsi, aRegAccount; \"reg_account\"                                ; +0x15, 0x10009e595\ncall    GJAccountManager__removeDLFromActive                           ; +0x1c, 0x10009e59c\nmov     [rbp+__s2], 31h ; '1'                                          ; +0x21, 0x10009e5a1\nmovzx   eax, byte ptr [r15]                                            ; +0x27, 0x10009e5a7\nlea     rbx, [r15+1]                                                   ; +0x2b, 0x10009e5ab\nmov     r12d, eax                                                      ; +0x2f, 0x10009e5af\nshr     r12d, 1                                                        ; +0x32, 0x10009e5b2\ntest    al, 1                                                          ; +0x35, 0x10009e5b5\ncmovnz  rbx, [r15+10h]                                                 ; +0x37, 0x10009e5b7\ncmovnz  r12, [r15+8]                                                   ; +0x3c, 0x10009e5bc\nlea     rsi, [rbp+__s2]; __s2                                          ; +0x41, 0x10009e5c1\nxor     edx, edx                                                       ; +0x45, 0x10009e5c5\ntest    r12, r12                                                       ; +0x47, 0x10009e5c7\nsetnz   dl; __n                                                        ; +0x4a, 0x10009e5ca\nmov     rdi, rbx; __s1                                                 ; +0x4d, 0x10009e5cd\ncall    _memcmp                                                        ; +0x50, 0x10009e5d0\ntest    eax, eax                                                       ; +0x55, 0x10009e5d5\nsetnz   al                                                             ; +0x57, 0x10009e5d7\ncmp     r12, 1                                                         ; +0x5a, 0x10009e5da\nsetnz   cl                                                             ; +0x5e, 0x10009e5de\nmov     r14, [r14+188h]                                                ; +0x61, 0x10009e5e1\nor      cl, al                                                         ; +0x68, 0x10009e5e8\njnz     short loc_10009E605                                            ; +0x6a, 0x10009e5ea\ntest    r14, r14                                                       ; +0x6c, 0x10009e5ec\njz      short loc_10009E62C                                            ; +0x6f, 0x10009e5ef\nmov     rax, [r14]                                                     ; +0x71, 0x10009e5f1\nmov     rdi, r14                                                       ; +0x74, 0x10009e5f4\nadd     rsp, 20h                                                       ; +0x77, 0x10009e5f7\npop     rbx                                                            ; +0x7b, 0x10009e5fb\npop     r12                                                            ; +0x7c, 0x10009e5fc\npop     r14                                                            ; +0x7e, 0x10009e5fe\npop     r15                                                            ; +0x80, 0x10009e600\npop     rbp                                                            ; +0x82, 0x10009e602\njmp     qword ptr [rax]                                                ; +0x83, 0x10009e603\ntest    r14, r14                                                       ; +0x85, 0x10009e605\njz      short loc_10009E62C                                            ; +0x88, 0x10009e608\nmov     rdi, rbx; char *                                               ; +0x8a, 0x10009e60a\ncall    _atoi                                                          ; +0x8d, 0x10009e60d\nmov     rcx, [r14]                                                     ; +0x92, 0x10009e612\nmov     rcx, [rcx+8]                                                   ; +0x95, 0x10009e615\nmov     rdi, r14                                                       ; +0x99, 0x10009e619\nmov     esi, eax                                                       ; +0x9c, 0x10009e61c\nadd     rsp, 20h                                                       ; +0x9e, 0x10009e61e\npop     rbx                                                            ; +0xa2, 0x10009e622\npop     r12                                                            ; +0xa3, 0x10009e623\npop     r14                                                            ; +0xa5, 0x10009e625\npop     r15                                                            ; +0xa7, 0x10009e627\npop     rbp                                                            ; +0xa9, 0x10009e629\njmp     rcx                                                            ; +0xaa, 0x10009e62a\nadd     rsp, 20h                                                       ; +0xac, 0x10009e62c\npop     rbx                                                            ; +0xb0, 0x10009e630\npop     r12                                                            ; +0xb1, 0x10009e631\npop     r14                                                            ; +0xb3, 0x10009e633\npop     r15                                                            ; +0xb5, 0x10009e635\npop     rbp                                                            ; +0xb7, 0x10009e637\nretn                                                                   ; +0xb8, 0x10009e638", "xrefs": [], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}