//
// GJAccountManager::getShaPassword from 0x14030a0b0 to 0x14030a21f (367 bytes)
//
// 3 xrefs:
// > AccountLoginLayer::onSubmit @ 0x140091ee3
// > GameManager::dataLoaded @ 0x140283c99
// > ??> @ 0x14091e638
//
// 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 11:30:10 +0000
//
// Hidden C++ exception states: #wind=2
_QWORD *__fastcall GJAccountManager::getShaPassword(_QWORD *a1, __int64 a2)
{
cocos2d::CCString *v4; // rax
char *CString; // rax
size_t v6; // rbx
size_t v7; // r8
_QWORD *v8; // r8
_QWORD *v9; // r9
__int64 v10; // rdx
int v12; // [rsp+20h] [rbp-A8h]
int v13; // [rsp+28h] [rbp-A0h]
unsigned __int8 v14[24]; // [rsp+48h] [rbp-80h] BYREF
__int64 v15; // [rsp+60h] [rbp-68h]
_QWORD Src[3]; // [rsp+68h] [rbp-60h] BYREF
unsigned __int64 v17; // [rsp+80h] [rbp-48h]
_BYTE v18[48]; // [rsp+88h] [rbp-40h] BYREF
v15 = a2;
sub_14003F4F0((__int64)Src, a2);
v13 = 103;
v12 = 120;
v4 = cocos2d::CCString::createWithFormat("%c%s%s%c%c%s", 109, "I29", "fmAn", v12, v13, "Ts");
CString = (char *)cocos2d::CCString::getCString(v4);
v6 = -1;
v7 = -1;
do
++v7;
while ( CString[v7] );
sub_140044D80(Src, CString, v7);
v8 = Src;
if ( v17 > 0xF )
v8 = (_QWORD *)Src[0];
v9 = Src;
if ( v17 > 0xF )
v9 = (_QWORD *)Src[0];
v10 = -1;
do
++v10;
while ( *((_BYTE *)v8 + v10) );
sub_14007E1A0((__int64)v9, v10, v14);
sub_14007E470(v14, v18);
*(_OWORD *)a1 = 0;
a1[2] = 0;
a1[3] = 0;
do
++v6;
while ( v18[v6] );
sub_14003D230(a1, v18, v6);
sub_14003D310((__int64)Src);
sub_14003D310(a2);
return a1;
}