// // sub_581414 from 0x581414 to 0x5814ba (166 bytes) // // 3 xrefs: // > GJAccountManager::registerAccount @ 0x581e80 // > GJAccountManager::registerAccount @ 0x581e9c // > GJAccountManager::registerAccount @ 0x581eb4 // // This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False! // // 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:52:53 +0000 // int *__fastcall sub_581414(int *a1, unsigned __int8 *a2) { int v4; // r1 int v5; // r1 int v6; // r3 bool v7; // nf unsigned __int8 *v8; // r7 unsigned __int8 *v9; // r6 int v10; // r5 int v11; // t1 int *v12; // r0 char v13; // r1 *a1 = 0; a1[1] = 0; a1[2] = 0; v4 = *a2; if ( (v4 & 1) != 0 ) v5 = *((_DWORD *)a2 + 1); else v5 = v4 >> 1; std::string::reserve(a1, 3 * v5); v6 = *a2; v7 = (v6 & 1) != 0; if ( (v6 & 1) != 0 ) { v8 = *((unsigned __int8 **)a2 + 2); } else { v8 = a2 + 1; v6 >>= 1; } if ( v7 ) v6 = *((_DWORD *)a2 + 1); v9 = &v8[v6]; while ( v8 != v9 ) { v11 = *v8++; v10 = v11; if ( (v11 & 0xFFFFFFDF) - 65 <= 0x19 || (unsigned int)(v10 - 48) <= 9 || (unsigned int)(v10 - 45) <= 1 || v10 == 95 || v10 == 126 ) { v12 = a1; v13 = v10; } else { std::string::push_back(a1, 37); std::string::push_back(a1, a0123456789abcd_3[v10 >> 4]); v12 = a1; v13 = a0123456789abcd_3[v10 & 0xF]; } std::string::push_back(v12, v13); } return a1; }
GD Web Decomp Icon

GD Web Decomp

Raw Source