// // GauntletSprite::addLockedSprite from 0x10037fd90 to 0x10037ff92 (514 bytes) // // 3 xrefs: // > GauntletSprite::create @ 0x10037f50d // > GauntletSprite::toggleLockedSprite @ 0x10037fb82 // > GauntletSprite::init @ 0x10037fc95 // // 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:29:08 +0000 // void __fastcall GauntletSprite::addLockedSprite(unsigned int *a1) { char *v1; // r14 size_t v2; // rax size_t v3; // r15 char *v4; // r12 size_t v5; // r13 __int64 v6; // r14 __int64 v7; // rax double v8; // xmm0_8 char *v9; // rbx __int64 v10; // rax char v11; // [rsp+0h] [rbp-60h] BYREF char v12; // [rsp+1h] [rbp-5Fh] BYREF char *__s; // [rsp+10h] [rbp-50h] _QWORD __dst[2]; // [rsp+18h] [rbp-48h] BYREF void *__p; // [rsp+28h] [rbp-38h] float v16; // [rsp+34h] [rbp-2Ch] GauntletNode::frameForType(&v11, a1[79]); if ( (v11 & 1) != 0 ) v1 = __s; else v1 = &v12; v2 = strlen(v1); if ( v2 >= 0xFFFFFFFFFFFFFFF8LL ) sub_100003630(); v3 = v2; if ( v2 >= 0x17 ) { v5 = 26; if ( (v2 | 7) != 0x17 ) v5 = (v2 | 7) + 1; v4 = (char *)operator new(v5); __p = v4; __dst[0] = v5 | 1; __dst[1] = v3; goto LABEL_11; } LOBYTE(__dst[0]) = 2 * v2; v4 = (char *)__dst + 1; if ( v2 ) LABEL_11: memmove(v4, v1, v3); v4[v3] = 0; v6 = CCSpriteGrayscale::createWithSpriteFrameName(__dst); if ( (__dst[0] & 1) != 0 ) operator delete(__p); BYTE2(__dst[0]) = -1; LOWORD(__dst[0]) = -256; (*(void (__fastcall **)(__int64, _QWORD *))(*(_QWORD *)v6 + 960LL))(v6, __dst); (*(void (__fastcall **)(unsigned int *, __int64))(*(_QWORD *)a1 + 456LL))(a1, v6); GauntletSprite::luminanceForType(a1, a1[79]); CCSpriteWithHue::setLuminance(v6); v16 = *(float *)(*(__int64 (__fastcall **)(unsigned int *))(*(_QWORD *)a1 + 328LL))(a1); v7 = (*(__int64 (__fastcall **)(unsigned int *))(*(_QWORD *)a1 + 328LL))(a1); sub_100278250((float *)__dst, v16 * 0.5, *(float *)(v7 + 4) * 0.5); (*(void (__fastcall **)(__int64, _QWORD *))(*(_QWORD *)v6 + 184LL))(v6, __dst); BYTE2(__dst[0]) = -31; LOWORD(__dst[0]) = -7711; v8 = (*(double (__fastcall **)(__int64, _QWORD *))(*(_QWORD *)v6 + 960LL))(v6, __dst); v9 = cocos2d::CCSprite::createWithSpriteFrameName((__int64)"gauntletLock_001.png", v8); (*(void (__fastcall **)(__int64, char *, __int64))(*(_QWORD *)v6 + 464LL))(v6, v9, 1); v16 = *(float *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v6 + 328LL))(v6); v10 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v6 + 328LL))(v6); sub_100278250((float *)__dst, v16 * 0.5, 0.5 * *(float *)(v10 + 4)); (*(void (__fastcall **)(char *, _QWORD *))(*(_QWORD *)v9 + 184LL))(v9, __dst); if ( (v11 & 1) != 0 ) operator delete(__s); }
GD Web Decomp Icon

GD Web Decomp

Raw Source