// // sub_10048FA50 from 0x10048fa50 to 0x10048fc09 (441 bytes) // // 3 xrefs: // > AccountRegisterLayer::onSubmit @ 0x10048d989 // > AccountRegisterLayer::textInputClosed @ 0x1004904b1 // > AccountRegisterLayer::textChanged @ 0x100490947 // // 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:46 +0000 // void __fastcall sub_10048FA50(__int64 a1, unsigned __int8 *a2) { __int64 v3; // rdi std::string::pointer data; // rsi std::string v5; // [rsp+0h] [rbp-30h] BYREF __int16 v6; // [rsp+24h] [rbp-Ch] BYREF char v7; // [rsp+26h] [rbp-Ah] memset(&v5, 0, sizeof(v5)); switch ( sub_10048ED00(a2) ) { case 0LL: std::string::assign(&v5, "Minimum 8 characters"); v7 = -16; v6 = -21896; v3 = *(_QWORD *)(a1 + 736); if ( (*(_BYTE *)&v5.__r_.__value_.__s.0 & 1) != 0 ) goto LABEL_15; goto LABEL_17; case 1LL: std::string::assign(&v5, "Invalid characters"); goto LABEL_12; case 2LL: std::string::assign(&v5, "Too common"); LABEL_12: v7 = 0; v6 = 255; v3 = *(_QWORD *)(a1 + 736); if ( (*(_BYTE *)&v5.__r_.__value_.__s.0 & 1) == 0 ) goto LABEL_17; goto LABEL_15; case 3LL: std::string::assign(&v5, "Weak"); v7 = 0; v6 = -29441; v3 = *(_QWORD *)(a1 + 736); if ( (*(_BYTE *)&v5.__r_.__value_.__s.0 & 1) == 0 ) goto LABEL_17; goto LABEL_15; case 4LL: std::string::assign(&v5, "Good"); v7 = 0; v6 = -10241; v3 = *(_QWORD *)(a1 + 736); if ( (*(_BYTE *)&v5.__r_.__value_.__s.0 & 1) == 0 ) goto LABEL_17; goto LABEL_15; case 5LL: std::string::assign(&v5, "Strong"); v7 = 65; v6 = -256; v3 = *(_QWORD *)(a1 + 736); if ( (*(_BYTE *)&v5.__r_.__value_.__s.0 & 1) != 0 ) goto LABEL_15; goto LABEL_17; case 6LL: std::string::assign(&v5, "Epic"); v7 = -1; v6 = 23265; v3 = *(_QWORD *)(a1 + 736); if ( (*(_BYTE *)&v5.__r_.__value_.__s.0 & 1) == 0 ) goto LABEL_17; goto LABEL_15; default: std::string::assign(&v5, ""); v7 = -1; v6 = -1; v3 = *(_QWORD *)(a1 + 736); if ( (*(_BYTE *)&v5.__r_.__value_.__s.0 & 1) != 0 ) LABEL_15: data = v5.__r_.__value_.__l.__data_; else LABEL_17: data = v5.__r_.__value_.__s.__data_; (*(void (__fastcall **)(__int64, std::string::pointer))(*(_QWORD *)v3 + 928LL))(v3, data); (*(void (__fastcall **)(_QWORD, __int16 *))(**(_QWORD **)(a1 + 736) + 1072LL))(*(_QWORD *)(a1 + 736), &v6); if ( (*(_BYTE *)&v5.__r_.__value_.__s.0 & 1) != 0 ) operator delete(v5.__r_.__value_.__l.__data_); return; } }
GD Web Decomp Icon

GD Web Decomp

Raw Source