// // GJAccountManager::loginAccount from 0x1000a0c90 to 0x1000a1048 (952 bytes) // // 1 xrefs: // > AccountLoginLayer::onSubmit @ 0x10049208d // // 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:20:13 +0000 // bool __fastcall GJAccountManager::loginAccount(__int64 a1) { __int64 DLObject; // rax __int64 v2; // rax __int64 v3; // rdx __int64 v4; // rax __int128 *v5; // rax __int64 v6; // rax const char *CString; // r14 size_t v8; // rax std::string::size_type v9; // r15 char *data; // r12 size_t v11; // r13 __int64 v12; // rax __int64 v13; // rax const std::string::value_type *v14; // rax __int64 v15; // rax const std::string::value_type *v16; // rax const char *v17; // r14 size_t v18; // rax size_t v19; // r15 char *v20; // r12 size_t v21; // r13 char v23; // [rsp+0h] [rbp-C0h] char v24; // [rsp+0h] [rbp-C0h] _QWORD v25[2]; // [rsp+18h] [rbp-A8h] BYREF void *v26; // [rsp+28h] [rbp-98h] char v27; // [rsp+30h] [rbp-90h] BYREF _BYTE v28[23]; // [rsp+31h] [rbp-8Fh] BYREF _QWORD v29[2]; // [rsp+48h] [rbp-78h] BYREF void *v30; // [rsp+58h] [rbp-68h] __int128 v31; // [rsp+60h] [rbp-60h] BYREF void *__p; // [rsp+70h] [rbp-50h] std::string __dst[2]; // [rsp+80h] [rbp-40h] BYREF DLObject = GJAccountManager::getDLObject(a1, "login_account"); if ( !DLObject ) { v2 = cocos2d::CCNode::create(a1); GJAccountManager::addDLToActive(a1, "login_account", v2); GameManager::sharedState(a1, "login_account", v3); if ( (*(_BYTE *)(v4 + 608) & 1) != 0 ) { sub_10001AD30(&v31, *(const void **)(v4 + 624), *(_QWORD *)(v4 + 616)); } else { v5 = (__int128 *)(v4 + 608); __p = *((void **)v5 + 2); v31 = *v5; } v6 = sub_10088E820("udid=%s&userName=%s&gjp2=%s", v23); CString = (const char *)cocos2d::CCString::getCString(v6); v8 = strlen(CString); if ( v8 >= 0xFFFFFFFFFFFFFFF8LL ) sub_100003630(); v9 = v8; if ( v8 >= 0x17 ) { v11 = 26; if ( (v8 | 7) != 0x17 ) v11 = (v8 | 7) + 1; data = (char *)operator new(v11); __dst[0].__r_.__value_.__r.__words[2] = (std::string::size_type)data; __dst[0].__r_.__value_.__r.__words[0] = v11 | 1; __dst[0].__r_.__value_.__l.__size_ = v9; } else { __dst[0].__r_.__value_.__s.0 = (std::string::__short::$7162EEB0FEF29CC674EFA33D0008C7E0)(2 * v8); data = __dst[0].__r_.__value_.__s.__data_; if ( !v8 ) { LABEL_13: data[v9] = 0; std::string::append(__dst, "&sID="); v12 = sub_1006DE2F0(__dst, "&sID="); sub_1006DE5E0(v12); v13 = sub_10088E820("%lld", v24); v14 = (const std::string::value_type *)cocos2d::CCString::getCString(v13); std::string::append(__dst, v14); std::string::append(__dst, "&secret="); v15 = sub_10088E820("%c%s%s%c%c%s", (char)"9"); v16 = (const std::string::value_type *)cocos2d::CCString::getCString(v15); std::string::append(__dst, v16); if ( (*(_BYTE *)&__dst[0].__r_.__value_.__s.0 & 1) != 0 ) v17 = __dst[0].__r_.__value_.__l.__data_; else v17 = __dst[0].__r_.__value_.__s.__data_; v26 = operator new(0x40u); v25[0] = 65; v25[1] = 62; strcpy((char *)v26, "https://www.boomlings.com/database/accounts/loginGJAccount.php"); v18 = strlen(v17); if ( v18 >= 0xFFFFFFFFFFFFFFF8LL ) sub_100003630(); v19 = v18; if ( v18 >= 0x17 ) { v21 = 26; if ( (v18 | 7) != 0x17 ) v21 = (v18 | 7) + 1; v20 = (char *)operator new(v21); v30 = v20; v29[0] = v21 | 1; v29[1] = v19; } else { LOBYTE(v29[0]) = 2 * v18; v20 = (char *)v29 + 1; if ( !v18 ) { LABEL_24: v20[v19] = 0; v27 = 24; strcpy(v28, "LoginAccount"); GJAccountManager::ProcessHttpRequest(a1, (__int64)v25, (__int64)v29, (__int64)&v27, 26); if ( (v27 & 1) != 0 ) { operator delete(*(void **)&v28[15]); if ( (v29[0] & 1) == 0 ) { LABEL_26: if ( (v25[0] & 1) == 0 ) goto LABEL_27; goto LABEL_34; } } else if ( (v29[0] & 1) == 0 ) { goto LABEL_26; } operator delete(v30); if ( (v25[0] & 1) == 0 ) { LABEL_27: if ( (*(_BYTE *)&__dst[0].__r_.__value_.__s.0 & 1) == 0 ) goto LABEL_28; goto LABEL_35; } LABEL_34: operator delete(v26); if ( (*(_BYTE *)&__dst[0].__r_.__value_.__s.0 & 1) == 0 ) { LABEL_28: if ( (v31 & 1) == 0 ) { LABEL_30: DLObject = 0; return DLObject == 0; } LABEL_29: operator delete(__p); goto LABEL_30; } LABEL_35: operator delete(__dst[0].__r_.__value_.__l.__data_); if ( (v31 & 1) == 0 ) goto LABEL_30; goto LABEL_29; } } memmove(v20, v17, v19); goto LABEL_24; } } memmove(data, CString, v9); goto LABEL_13; } return DLObject == 0; }
GD Web Decomp Icon

GD Web Decomp

Raw Source