// // sub_14008B620 from 0x14008b620 to 0x14008b7e6 (454 bytes) // // 2 xrefs: // > PlatformToolbox::getUniqueUserID @ 0x14008b8cf // > @ 0x140912860 // // 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:25:59 +0000 // // Hidden C++ exception states: #wind=1 __int64 __fastcall sub_14008B620(__int64 a1, void *a2) { size_t v4; // r8 const char *v5; // rdx PSID *v6; // rdi size_t v7; // r8 int v8; // eax cocos2d::CCString *v9; // rax const char *CString; // rax DWORD TokenInformationLength; // [rsp+30h] [rbp-58h] BYREF LPSTR StringSid; // [rsp+38h] [rbp-50h] BYREF __int128 Src; // [rsp+48h] [rbp-40h] BYREF __m128i si128; // [rsp+58h] [rbp-30h] StringSid = (LPSTR)a1; TokenInformationLength = 0; if ( !GetTokenInformation(a2, TokenUser, nullptr, 0, &TokenInformationLength) && GetLastError() != 122 ) { *(_OWORD *)a1 = 0; *(_QWORD *)(a1 + 16) = 0; *(_QWORD *)(a1 + 24) = 0; v4 = -1; do ++v4; while ( *(_BYTE *)v4 ); v5 = nullptr; LABEL_16: sub_14003D230((_QWORD *)a1, v5, v4); return a1; } v6 = (PSID *)LocalAlloc(0x40u, TokenInformationLength); if ( !v6 ) { LABEL_13: v8 = rand(); v9 = cocos2d::CCString::createWithFormat("NoUDID_%lld", (unsigned int)(v8 % 10000000)); CString = cocos2d::CCString::getCString(v9); *(_OWORD *)a1 = 0; *(_QWORD *)(a1 + 16) = 0; *(_QWORD *)(a1 + 24) = 0; v4 = -1; do ++v4; while ( CString[v4] ); v5 = CString; goto LABEL_16; } StringSid = nullptr; if ( !GetTokenInformation(a2, TokenUser, v6, TokenInformationLength, &TokenInformationLength) || !ConvertSidToStringSidA(*v6, &StringSid) ) { LocalFree(v6); goto LABEL_13; } Src = 0; si128 = _mm_load_si128((const __m128i *)&Size); LOBYTE(Src) = 0; v7 = -1; do ++v7; while ( StringSid[v7] ); sub_140044D80(&Src, StringSid, v7); LocalFree(StringSid); LocalFree(v6); *(_OWORD *)a1 = Src; *(__m128i *)(a1 + 16) = si128; return a1; }
GD Web Decomp Icon

GD Web Decomp

Raw Source