{"type": "func", "start": 4299743600, "end": 4299743947, "name": "AccountRegisterLayer::registerAccountFinished", "pseudocode": "// \n// AccountRegisterLayer::registerAccountFinished from 0x10048e170 to 0x10048e2cb (347 bytes)\n// \n// 2 xrefs:\n// > sub_10048E300 @ 0x10048e30c\n// > <???> @ 0x100b4e878\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:30:45 +0000\n// \n\n__int64 __fastcall AccountRegisterLayer::registerAccountFinished(__int64 a1)\n{\n  __int64 v1; // rbx\n  __int64 v2; // rax\n  const char *CString; // r14\n  size_t v4; // rax\n  size_t v5; // r12\n  __int64 v6; // r15\n  char *v7; // r13\n  size_t v8; // rbx\n  __int64 v9; // r14\n  char v11; // [rsp+0h] [rbp-60h]\n  void *v12[3]; // [rsp+8h] [rbp-58h] BYREF\n  _QWORD __dst[2]; // [rsp+20h] [rbp-40h] BYREF\n  void *v14; // [rsp+30h] [rbp-30h]\n\n  v1 = a1;\n  CCTextInputNode::getString(v12, *(_QWORD *)(a1 + 704));\n  v2 = sub_10088E820(\n         \"Thank you for registering.\\n\"\n         \"A confirmation email has been sent to your inbox <cy>%s</c>.\\n\"\n         \"Please <cg>activate</c> your account.\",\n         v11);\n  CString = (const char *)cocos2d::CCString::getCString(v2);\n  if ( ((__int64)v12[0] & 1) != 0 )\n    operator delete(v12[2]);\n  v4 = strlen(CString);\n  if ( v4 >= 0xFFFFFFFFFFFFFFF8LL )\n    sub_100003630();\n  v5 = v4;\n  v6 = a1 + 672;\n  if ( v4 >= 0x17 )\n  {\n    v8 = 26;\n    if ( (v4 | 7) != 0x17 )\n      v8 = (v4 | 7) + 1;\n    v7 = (char *)operator new(v8);\n    v14 = v7;\n    __dst[0] = v8 + 1;\n    v1 = a1;\n    v6 = a1 + 672;\n    __dst[1] = v5;\n    goto LABEL_10;\n  }\n  LOBYTE(__dst[0]) = 2 * v4;\n  v7 = (char *)__dst + 1;\n  if ( v4 )\nLABEL_10:\n    memmove(v7, CString, v5);\n  v7[v5] = 0;\n  v9 = FLAlertLayer::create_1(v6, \"Created\", __dst, \"OK\", 0, 320.0);\n  if ( (__dst[0] & 1) != 0 )\n    operator delete(v14);\n  (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v9 + 72LL))(v9, 1);\n  (*(void (__fastcall **)(__int64))(*(_QWORD *)v9 + 1312LL))(v9);\n  return (*(__int64 (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(v1 + 768) + 344LL))(*(_QWORD *)(v1 + 768), 0);\n}", "assembly": "; \n; AccountRegisterLayer::registerAccountFinished from 0x10048e170 to 0x10048e2cb (347 bytes)\n; \n; 2 xrefs:\n; > sub_10048E300 @ 0x10048e30c\n; > <???> @ 0x100b4e878\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:30:45 +0000\n; \npush    rbp                                                            ; +0x0, 0x10048e170\nmov     rbp, rsp                                                       ; +0x1, 0x10048e171\npush    r15                                                            ; +0x4, 0x10048e174\npush    r14                                                            ; +0x6, 0x10048e176\npush    r13                                                            ; +0x8, 0x10048e178\npush    r12                                                            ; +0xa, 0x10048e17a\npush    rbx                                                            ; +0xc, 0x10048e17c\nsub     rsp, 38h                                                       ; +0xd, 0x10048e17d\nmov     rbx, rdi                                                       ; +0x11, 0x10048e181\nmov     rsi, [rdi+2C0h]                                                ; +0x14, 0x10048e184\nlea     rdi, [rbp+var_58]                                              ; +0x1b, 0x10048e18b\ncall    CCTextInputNode__getString                                     ; +0x1f, 0x10048e18f\ntest    [rbp+var_58], 1                                                ; +0x24, 0x10048e194\njz      short loc_10048E1A0                                            ; +0x28, 0x10048e198\nmov     rsi, [rbp+__p]                                                 ; +0x2a, 0x10048e19a\njmp     short loc_10048E1A4                                            ; +0x2e, 0x10048e19e\nlea     rsi, [rbp+var_57]                                              ; +0x30, 0x10048e1a0\nlea     rdi, aThankYouForReg; \"Thank you for registering.\\nA confirmat\"... ; +0x34, 0x10048e1a4\nxor     eax, eax                                                       ; +0x3b, 0x10048e1ab\ncall    sub_10088E820                                                  ; +0x3d, 0x10048e1ad\nmov     rdi, rax                                                       ; +0x42, 0x10048e1b2\ncall    cocos2d__CCString__getCString                                  ; +0x45, 0x10048e1b5\nmov     r14, rax                                                       ; +0x4a, 0x10048e1ba\ntest    [rbp+var_58], 1                                                ; +0x4d, 0x10048e1bd\njz      short loc_10048E1CC                                            ; +0x51, 0x10048e1c1\nmov     rdi, [rbp+__p]; __p                                            ; +0x53, 0x10048e1c3\ncall    __ZdlPv; operator delete(void *)                               ; +0x57, 0x10048e1c7\nmov     rdi, r14; __s                                                  ; +0x5c, 0x10048e1cc\ncall    _strlen                                                        ; +0x5f, 0x10048e1cf\ncmp     rax, 0FFFFFFFFFFFFFFF8h                                        ; +0x64, 0x10048e1d4\njnb     loc_10048E2C6                                                  ; +0x68, 0x10048e1d8\nmov     r12, rax                                                       ; +0x6e, 0x10048e1de\nlea     r15, [rbx+2A0h]                                                ; +0x71, 0x10048e1e1\ncmp     rax, 17h                                                       ; +0x78, 0x10048e1e8\njnb     short loc_10048E200                                            ; +0x7c, 0x10048e1ec\nlea     eax, [r12+r12]                                                 ; +0x7e, 0x10048e1ee\nmov     byte ptr [rbp+__dst], al                                       ; +0x82, 0x10048e1f2\nlea     r13, [rbp+__dst+1]                                             ; +0x85, 0x10048e1f5\ntest    r12, r12                                                       ; +0x89, 0x10048e1f9\njnz     short loc_10048E240                                            ; +0x8c, 0x10048e1fc\njmp     short loc_10048E24E                                            ; +0x8e, 0x10048e1fe\nmov     rax, r12                                                       ; +0x90, 0x10048e200\nor      rax, 7                                                         ; +0x93, 0x10048e203\nlea     rcx, [rax+1]                                                   ; +0x97, 0x10048e207\ncmp     rax, 17h                                                       ; +0x9b, 0x10048e20b\nmov     [rbp+var_60], r15                                              ; +0x9f, 0x10048e20f\nmov     r15, rbx                                                       ; +0xa3, 0x10048e213\nmov     ebx, 1Ah                                                       ; +0xa6, 0x10048e216\ncmovnz  rbx, rcx                                                       ; +0xab, 0x10048e21b\nmov     rdi, rbx; __sz                                                 ; +0xaf, 0x10048e21f\ncall    __Znwm; operator new(ulong)                                    ; +0xb2, 0x10048e222\nmov     r13, rax                                                       ; +0xb7, 0x10048e227\nmov     [rbp+var_30], rax                                              ; +0xba, 0x10048e22a\ninc     rbx                                                            ; +0xbe, 0x10048e22e\nmov     [rbp+__dst], rbx                                               ; +0xc1, 0x10048e231\nmov     rbx, r15                                                       ; +0xc5, 0x10048e235\nmov     r15, [rbp+var_60]                                              ; +0xc8, 0x10048e238\nmov     [rbp+var_38], r12                                              ; +0xcc, 0x10048e23c\nmov     rdi, r13; __dst                                                ; +0xd0, 0x10048e240\nmov     rsi, r14; __src                                                ; +0xd3, 0x10048e243\nmov     rdx, r12; __len                                                ; +0xd6, 0x10048e246\ncall    _memmove                                                       ; +0xd9, 0x10048e249\nmov     byte ptr [r13+r12+0], 0                                        ; +0xde, 0x10048e24e\nlea     rsi, aCreated; \"Created\"                                       ; +0xe4, 0x10048e254\nlea     rcx, aOk; \"OK\"                                                 ; +0xeb, 0x10048e25b\nlea     rdx, [rbp+__dst]                                               ; +0xf2, 0x10048e262\nmovss   xmm0, cs:dword_100A04128                                       ; +0xf6, 0x10048e266\nmov     rdi, r15                                                       ; +0xfe, 0x10048e26e\nxor     r8d, r8d                                                       ; +0x101, 0x10048e271\ncall    FLAlertLayer__create_1                                         ; +0x104, 0x10048e274\nmov     r14, rax                                                       ; +0x109, 0x10048e279\ntest    byte ptr [rbp+__dst], 1                                        ; +0x10c, 0x10048e27c\njz      short loc_10048E28B                                            ; +0x110, 0x10048e280\nmov     rdi, [rbp+var_30]; __p                                         ; +0x112, 0x10048e282\ncall    __ZdlPv; operator delete(void *)                               ; +0x116, 0x10048e286\nmov     rax, [r14]                                                     ; +0x11b, 0x10048e28b\nmov     rdi, r14                                                       ; +0x11e, 0x10048e28e\nmov     esi, 1                                                         ; +0x121, 0x10048e291\ncall    qword ptr [rax+48h]                                            ; +0x126, 0x10048e296\nmov     rax, [r14]                                                     ; +0x129, 0x10048e299\nmov     rdi, r14                                                       ; +0x12c, 0x10048e29c\ncall    qword ptr [rax+520h]                                           ; +0x12f, 0x10048e29f\nmov     rdi, [rbx+300h]                                                ; +0x135, 0x10048e2a5\nmov     rax, [rdi]                                                     ; +0x13c, 0x10048e2ac\nxor     esi, esi                                                       ; +0x13f, 0x10048e2af\ncall    qword ptr [rax+158h]                                           ; +0x141, 0x10048e2b1\nadd     rsp, 38h                                                       ; +0x147, 0x10048e2b7\npop     rbx                                                            ; +0x14b, 0x10048e2bb\npop     r12                                                            ; +0x14c, 0x10048e2bc\npop     r13                                                            ; +0x14e, 0x10048e2be\npop     r14                                                            ; +0x150, 0x10048e2c0\npop     r15                                                            ; +0x152, 0x10048e2c2\npop     rbp                                                            ; +0x154, 0x10048e2c4\nretn                                                                   ; +0x155, 0x10048e2c5\ncall    sub_100003630                                                  ; +0x156, 0x10048e2c6", "xrefs": ["sub_10048E300 @ 0x10048e30c", "<???> @ 0x100b4e878"], "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"}