// // GameLevelManager::onRequestUserAccessCompleted from 0x1401649a0 to 0x140164c0a (618 bytes) // // 2 xrefs: // > GameLevelManager::handleIt @ 0x140143a5d // > @ 0x1406cac8c // // This function is hookable on this platform! // // Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings // // Hidden C++ exception states: #wind=5 void __fastcall GameLevelManager::onRequestUserAccessCompleted(__int64 a1, const void **a2, __int64 a3) { void *v6; // rcx const void *v7; // rcx unsigned __int64 v8; // rbp size_t v9; // r8 int v10; // edi __int64 v11; // rcx const char *v12; // rcx int v13; // eax int v14; // esi __int64 v15; // rax _DWORD *v16; // rdi float v17; // xmm0_4 void (__fastcall ***v18)(_QWORD, _QWORD, __int64); // rcx void *v19; // [rsp+20h] [rbp-78h] void *v20; // [rsp+20h] [rbp-78h] void *Block[2]; // [rsp+38h] [rbp-60h] BYREF __int64 v22; // [rsp+48h] [rbp-50h] unsigned __int64 v23; // [rsp+50h] [rbp-48h] *(_OWORD *)Block = 0; v22 = 6; v23 = 15; strcpy((char *)Block, "req_ua"); cocos2d::CCDictionary::removeObjectForKey(*(_QWORD *)(a1 + 592), Block); if ( v23 > 0xF ) { v6 = Block[0]; if ( v23 + 1 >= 0x1000 ) { v6 = *((void **)Block[0] - 1); if ( (unsigned __int64)((char *)Block[0] - (char *)v6 - 8) > 0x1F ) invalid_parameter_noinfo_noreturn(); } j_j_free(v6); } *(_OWORD *)Block = 0; v22 = 2; v23 = 15; strcpy((char *)Block, "-1"); v7 = a2; if ( (unsigned __int64)a2[3] > 0xF ) v7 = *a2; v8 = (unsigned __int64)a2[2]; v9 = v8; if ( v8 > 2 ) v9 = 2; v10 = memcmp(v7, Block, v9); if ( !v10 ) { if ( v8 >= 2 ) v10 = v8 > 2; else v10 = -1; } if ( !v10 ) { v11 = *(_QWORD *)(a1 + 808); if ( v11 ) (*(void (__fastcall **)(__int64, _QWORD, __int64))(*(_QWORD *)v11 + 8LL))(v11, 0, 43); } v12 = (const char *)a2; if ( (unsigned __int64)a2[3] > 0xF ) v12 = (const char *)*a2; v13 = atoi(v12); v14 = v13; if ( v13 == 99 ) { v15 = qword_1406C2ED8; if ( !qword_1406C2ED8 ) { v19 = operator new(0x668u); qword_1406C2ED8 = sub_14017AB00(v19); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8); v15 = qword_1406C2ED8; } *(_BYTE *)(v15 + 1024) = 1; } else { if ( (unsigned int)(v13 - 1) > 1 ) goto LABEL_29; v16 = (_DWORD *)qword_1406C2ED8; if ( !qword_1406C2ED8 ) { v20 = operator new(0x668u); qword_1406C2ED8 = sub_14017AB00(v20); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8); v16 = (_DWORD *)qword_1406C2ED8; } v16[255] = v14; v17 = (float)((float)rand() / 32767.0) * 1000.0; v16[254] = (int)v17; v16[253] = v14 + (int)v17; } v18 = *(void (__fastcall ****)(_QWORD, _QWORD, __int64))(a1 + 808); if ( v18 ) (**v18)(v18, 0, 43); LABEL_29: sub_14003A830((__int64)a2); sub_14003A830(a3); }