// // sub_10048E3F0 from 0x10048e3f0 to 0x10048e586 (406 bytes) // // 2 xrefs: // > AccountRegisterLayer::registerAccountFailed @ 0x10048e329 // > sub_10048E7E0 @ 0x10048e7f4 // // 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 // __int64 __fastcall sub_10048E3F0(__int64 **a1, int a2) { __int64 v2; // rax __int64 *v4; // rdi __int64 *v5; // rdi __int64 v6; // rax const char *v7; // rsi __int64 *v8; // rdi __int64 *v10; // rdi __int64 v11; // rax const char *v12; // rsi __int64 *v13; // rdi __int64 v14; // rax const char *v15; // rsi int v16; // [rsp+0h] [rbp-Ch] BYREF v16 = HIDWORD(v2); switch ( a2 ) { case -99: (*(void (__fastcall **)(__int64 *, const char *))(*a1[95] + 928))(a1[95], "Emails do not match"); v4 = a1[95]; return (*(__int64 (__fastcall **)(__int64 *, void *))(*v4 + 1072))(v4, &unk_100A0B960); case -15: v10 = a1[92]; v11 = *v10; v12 = "Too common"; goto LABEL_11; case -14: v10 = a1[92]; v11 = *v10; v12 = "Invalid characters"; goto LABEL_11; case -9: v5 = a1[90]; v6 = *v5; v7 = "Too short. Minimum 3 characters"; goto LABEL_16; case -8: (*(void (__fastcall **)(__int64 *, const std::string::value_type *))(*a1[92] + 928))( a1[92], "Minimum 8 characters"); v8 = a1[92]; BYTE2(v16) = -16; LOWORD(v16) = -21896; return (*(__int64 (__fastcall **)(__int64 *, int *))(*v8 + 1072))(v8, &v16); case -7: (*(void (__fastcall **)(__int64 *, const char *))(*a1[93] + 928))(a1[93], "Passwords do not match"); v4 = a1[93]; return (*(__int64 (__fastcall **)(__int64 *, void *))(*v4 + 1072))(v4, &unk_100A0B960); case -6: v13 = a1[94]; v14 = *v13; v15 = "Cannot use this email"; goto LABEL_13; case -5: v10 = a1[92]; v11 = *v10; v12 = "Password is invalid"; LABEL_11: (*(void (__fastcall **)(__int64 *, const char *))(v11 + 928))(v10, v12); v4 = a1[92]; return (*(__int64 (__fastcall **)(__int64 *, void *))(*v4 + 1072))(v4, &unk_100A0B960); case -4: v5 = a1[90]; v6 = *v5; v7 = "Username is invalid"; goto LABEL_16; case -3: v13 = a1[94]; v14 = *v13; v15 = "Email is already in use"; LABEL_13: (*(void (__fastcall **)(__int64 *, const char *))(v14 + 928))(v13, v15); v4 = a1[94]; return (*(__int64 (__fastcall **)(__int64 *, void *))(*v4 + 1072))(v4, &unk_100A0B960); case -2: v5 = a1[90]; v6 = *v5; v7 = "Username is already in use"; goto LABEL_16; default: v5 = a1[90]; v6 = *v5; v7 = "Something went wrong."; LABEL_16: (*(void (__fastcall **)(__int64 *, const char *))(v6 + 928))(v5, v7); v4 = a1[90]; return (*(__int64 (__fastcall **)(__int64 *, void *))(*v4 + 1072))(v4, &unk_100A0B960); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source