// // AccountRegisterLayer::onSubmit from 0x10048d720 to 0x10048dd8d (1645 bytes) // // 1 xrefs: // > AccountRegisterLayer::init @ 0x10048c783 // // This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True! // // Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings // Generated at Fri, 27 Nov 2026 12:30:45 +0000 // void __fastcall AccountRegisterLayer::onSubmit(__int64 *a1) { unsigned int v2; // r14d _QWORD *v3; // rbx unsigned __int64 v4; // r15 size_t v5; // r14 char *v6; // rdi size_t v7; // r15 char *v8; // rsi size_t v9; // rdx char *v10; // r14 unsigned int v11; // eax __int64 v12; // rcx int v13; // edx __int64 v14; // rsi int v15; // edi bool v16; // r14 int v17; // r8d size_t v18; // r14 char *v19; // rdi size_t v20; // r15 char *v21; // rsi size_t v22; // rdx __int64 v23; // r14 int v24; // r9d int v25; // r10d int v26; // r9d int v27; // r10d int v28; // r9d int v29; // r10d int v30; // r9d bool v31; // r14 void *v32[3]; // [rsp+0h] [rbp-140h] BYREF void *v33[3]; // [rsp+18h] [rbp-128h] BYREF __int128 v34; // [rsp+30h] [rbp-110h] BYREF void *v35; // [rsp+40h] [rbp-100h] char __s[16]; // [rsp+50h] [rbp-F0h] BYREF void *v37; // [rsp+60h] [rbp-E0h] __int128 v38; // [rsp+70h] [rbp-D0h] BYREF void *v39; // [rsp+80h] [rbp-C0h] __int128 v40; // [rsp+90h] [rbp-B0h] BYREF void *v41; // [rsp+A0h] [rbp-A0h] size_t v42[2]; // [rsp+B0h] [rbp-90h] BYREF void *__s2; // [rsp+C0h] [rbp-80h] size_t v44[2]; // [rsp+C8h] [rbp-78h] BYREF void *v45; // [rsp+D8h] [rbp-68h] __int128 v46; // [rsp+E0h] [rbp-60h] BYREF void *v47; // [rsp+F0h] [rbp-50h] __int128 v48; // [rsp+F8h] [rbp-48h] BYREF void *__p; // [rsp+108h] [rbp-38h] __int128 __s1; // [rsp+110h] [rbp-30h] BYREF void *v51; // [rsp+120h] [rbp-20h] AccountRegisterLayer::resetLabels(); (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)a1[85] + 1160LL))(a1[85], 0); (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)a1[86] + 1160LL))(a1[86], 0); (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)a1[87] + 1160LL))(a1[87], 0); (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)a1[88] + 1160LL))(a1[88], 0); (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)a1[89] + 1160LL))(a1[89], 0); CCTextInputNode::getString(&v48, a1[85]); CCTextInputNode::getString(&__s1, a1[86]); CCTextInputNode::getString(v42, a1[87]); CCTextInputNode::getString(&v46, a1[88]); CCTextInputNode::getString(v44, a1[89]); v2 = sub_10048ED00(&__s1); if ( (v48 & 1) != 0 ) { sub_10001AD30(&v34, __p, *((unsigned __int64 *)&v48 + 1)); } else { v35 = __p; v34 = v48; } if ( (v34 & 1) != 0 ) { v4 = *((_QWORD *)&v34 + 1); operator delete(v35); if ( v4 <= 2 ) goto LABEL_6; } else if ( (unsigned __int8)v34 <= 4u ) { LABEL_6: (*(void (__fastcall **)(__int64, const char *))(*(_QWORD *)a1[90] + 928LL))( a1[90], "Too short. Minimum 3 characters"); v3 = a1 + 90; LABEL_7: (*(void (__fastcall **)(_QWORD, void *))(*(_QWORD *)*v3 + 1072LL))(*v3, &unk_100A0B960); goto LABEL_8; } if ( v2 > 2 ) { if ( (__s1 & 1) != 0 ) { v5 = *((_QWORD *)&__s1 + 1); v6 = (char *)v51; } else { v5 = (unsigned __int8)__s1 >> 1; v6 = (char *)&__s1 + 1; } v7 = LOBYTE(v42[0]) >> 1; if ( (v42[0] & 1) != 0 ) v7 = v42[1]; v8 = (char *)v42 + 1; if ( (v42[0] & 1) != 0 ) v8 = (char *)__s2; v9 = v5; if ( v7 < v5 ) v9 = v7; if ( memcmp(v6, v8, v9) || v7 != v5 ) { (*(void (__fastcall **)(__int64, const char *))(*(_QWORD *)a1[93] + 928LL))(a1[93], "Passwords do not match"); v3 = a1 + 93; goto LABEL_7; } if ( (v46 & 1) != 0 ) { sub_10001AD30(__s, v47, *((unsigned __int64 *)&v46 + 1)); } else { v37 = v47; *(_OWORD *)__s = v46; } if ( (__s[0] & 1) != 0 ) { v10 = (char *)v37; if ( !v37 ) goto LABEL_66; } else { v10 = &__s[1]; } if ( (unsigned __int8)((*v10 & 0xDF) - 65) > 0x19u ) { v16 = 0; goto LABEL_61; } v11 = strlen(v10); if ( !v11 ) { v16 = 0; if ( (__s[0] & 1) == 0 ) { LABEL_63: if ( v16 ) { if ( (v46 & 1) != 0 ) { v18 = *((_QWORD *)&v46 + 1); v19 = (char *)v47; } else { v18 = (unsigned __int8)v46 >> 1; v19 = (char *)&v46 + 1; } v20 = LOBYTE(v44[0]) >> 1; if ( (v44[0] & 1) != 0 ) v20 = v44[1]; v21 = (char *)v44 + 1; if ( (v44[0] & 1) != 0 ) v21 = (char *)v45; v22 = v18; if ( v20 < v18 ) v22 = v20; if ( memcmp(v19, v21, v22) || v20 != v18 ) { (*(void (__fastcall **)(__int64, const char *))(*(_QWORD *)a1[95] + 928LL))(a1[95], "Emails do not match"); v3 = a1 + 95; goto LABEL_7; } *(_QWORD *)(GJAccountManager::sharedState((__int64)v19, (__int64)v21) + 392) = a1 + 83; v23 = GJAccountManager::sharedState((__int64)v19, (__int64)v21); if ( (v48 & 1) != 0 ) { sub_10001AD30(&v40, __p, *((unsigned __int64 *)&v48 + 1)); } else { v41 = __p; v40 = v48; } CCTextInputNode::getString(v32, a1[86]); CCTextInputNode::getString(v33, a1[88]); v31 = GJAccountManager::registerAccount(v23); if ( ((__int64)v33[0] & 1) != 0 ) { operator delete(v33[2]); if ( ((__int64)v32[0] & 1) == 0 ) { LABEL_103: if ( (v40 & 1) == 0 ) goto LABEL_104; goto LABEL_108; } } else if ( ((__int64)v32[0] & 1) == 0 ) { goto LABEL_103; } operator delete(v32[2]); if ( (v40 & 1) == 0 ) { LABEL_104: if ( v31 ) { LABEL_105: AccountRegisterLayer::showLoadingUI(a1, &v40); goto LABEL_8; } LABEL_109: (*(void (__fastcall **)(__int64 *, __int64))(*a1 + 1392))(a1, 0xFFFFFFFFLL); goto LABEL_8; } LABEL_108: operator delete(v41); if ( v31 ) goto LABEL_105; goto LABEL_109; } LABEL_66: (*(void (__fastcall **)(__int64, const char *))(*(_QWORD *)a1[94] + 928LL))(a1[94], "Cannot use this email"); v3 = a1 + 94; goto LABEL_7; } LABEL_62: operator delete(v37); goto LABEL_63; } v12 = v11 & 3; if ( (unsigned __int64)v11 - 1 < 3 ) { v13 = -1; v14 = 0; v15 = -1; LABEL_49: if ( (v11 & 3) != 0 ) { do { v17 = (unsigned __int8)v10[v14]; if ( v17 == 46 ) { v13 = v14; } else if ( v17 == 64 ) { v15 = v14; } ++v14; --v12; } while ( v12 ); } v16 = 0; if ( v15 != -1 && v13 != -1 && v15 <= v13 ) { v16 = v13 < (int)(v11 - 1); if ( (__s[0] & 1) == 0 ) goto LABEL_63; goto LABEL_62; } LABEL_61: if ( (__s[0] & 1) == 0 ) goto LABEL_63; goto LABEL_62; } v13 = -1; v14 = 0; v15 = -1; while ( 1 ) { v24 = (unsigned __int8)v10[v14]; if ( v24 == 46 ) { v13 = v14; v25 = (unsigned __int8)v10[v14 + 1]; v26 = v14 + 1; if ( v25 == 46 ) goto LABEL_96; } else { if ( v24 == 64 ) v15 = v14; v25 = (unsigned __int8)v10[v14 + 1]; v26 = v14 + 1; if ( v25 == 46 ) { LABEL_96: v13 = v26; v27 = (unsigned __int8)v10[v14 + 2]; v28 = v14 + 2; if ( v27 == 46 ) goto LABEL_97; goto LABEL_91; } } if ( v25 == 64 ) v15 = v26; v27 = (unsigned __int8)v10[v14 + 2]; v28 = v14 + 2; if ( v27 == 46 ) { LABEL_97: v13 = v28; v29 = (unsigned __int8)v10[v14 + 3]; v30 = v14 + 3; if ( v29 != 46 ) goto LABEL_98; goto LABEL_82; } LABEL_91: if ( v27 == 64 ) v15 = v28; v29 = (unsigned __int8)v10[v14 + 3]; v30 = v14 + 3; if ( v29 != 46 ) { LABEL_98: if ( v29 == 64 ) v15 = v30; goto LABEL_83; } LABEL_82: v13 = v30; LABEL_83: v14 += 4; if ( v11 - v12 == v14 ) goto LABEL_49; } } if ( (__s1 & 1) != 0 ) { sub_10001AD30(&v38, v51, *((unsigned __int64 *)&__s1 + 1)); } else { v39 = v51; v38 = __s1; } sub_10048FA50(a1, &v38); if ( (v38 & 1) != 0 ) operator delete(v39); LABEL_8: if ( (v44[0] & 1) != 0 ) { operator delete(v45); if ( (v46 & 1) == 0 ) { LABEL_10: if ( (v42[0] & 1) == 0 ) goto LABEL_11; goto LABEL_21; } } else if ( (v46 & 1) == 0 ) { goto LABEL_10; } operator delete(v47); if ( (v42[0] & 1) == 0 ) { LABEL_11: if ( (__s1 & 1) == 0 ) goto LABEL_12; goto LABEL_22; } LABEL_21: operator delete(__s2); if ( (__s1 & 1) == 0 ) { LABEL_12: if ( (v48 & 1) == 0 ) return; goto LABEL_13; } LABEL_22: operator delete(v51); if ( (v48 & 1) != 0 ) LABEL_13: operator delete(__p); }
GD Web Decomp Icon

GD Web Decomp

Raw Source