// // sub_1008B85C0 from 0x1008b85c0 to 0x1008b8887 (711 bytes) // // 3 xrefs: // > sub_1008B7FE0 @ 0x1008b8176 // > sub_1008B8EA0 @ 0x1008b8fe9 // > sub_1008B8EA0 @ 0x1008b9346 // // 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:37:24 +0000 // __int64 __fastcall sub_1008B85C0(__int64 a1, int a2, double a3, float a4) { char *v5; // r12 float *v6; // rax __int64 v7; // rax double v8; // xmm0_8 char *v9; // r15 float *v10; // rax __int64 v11; // rax __int64 result; // rax char *v13; // rax __int64 CString; // rax void *v15; // r14 float v16; // [rsp+4h] [rbp-3Ch] float v17; // [rsp+8h] [rbp-38h] BYREF float v18; // [rsp+10h] [rbp-30h] float v19; // [rsp+14h] [rbp-2Ch] v19 = a4; v18 = *(float *)&a3; v5 = cocos2d::CCSprite::createWithSpriteFrameName((__int64)"whiteSquare60_001.png", a3); sub_100278250(&v17, 0.5, 0.0); (*(void (__fastcall **)(char *, float *))(*(_QWORD *)v5 + 296LL))(v5, &v17); v16 = v19 + -2.0; v6 = (float *)(*(__int64 (__fastcall **)(char *))(*(_QWORD *)v5 + 328LL))(v5); (*(void (__fastcall **)(char *, float))(*(_QWORD *)v5 + 128LL))(v5, v16 / *v6); v7 = (*(__int64 (__fastcall **)(char *))(*(_QWORD *)v5 + 328LL))(v5); (*(void (__fastcall **)(char *, float))(*(_QWORD *)v5 + 144LL))(v5, 8.0 / *(float *)(v7 + 4)); (*(void (__fastcall **)(char *, void *))(*(_QWORD *)v5 + 960LL))(v5, &unk_100A13630); (*(void (__fastcall **)(char *, __int64))(*(_QWORD *)v5 + 912LL))(v5, 110); sub_100278250(&v17, v18, 33.5); (*(void (__fastcall **)(char *, float *))(*(_QWORD *)v5 + 184LL))(v5, &v17); v8 = (*(double (__fastcall **)(__int64, char *))(*(_QWORD *)a1 + 456LL))(a1, v5); v9 = cocos2d::CCSprite::createWithSpriteFrameName((__int64)"whiteSquare60_001.png", v8); sub_100278250(&v17, 0.5, 0.0); (*(void (__fastcall **)(char *, float *))(*(_QWORD *)v9 + 296LL))(v9, &v17); v19 = v19 + -5.0; v10 = (float *)(*(__int64 (__fastcall **)(char *))(*(_QWORD *)v9 + 328LL))(v9); (*(void (__fastcall **)(char *, float))(*(_QWORD *)v9 + 128LL))(v9, v19 / *v10); v11 = (*(__int64 (__fastcall **)(char *))(*(_QWORD *)v9 + 328LL))(v9); (*(void (__fastcall **)(char *, float))(*(_QWORD *)v9 + 144LL))(v9, 5.0 / *(float *)(v11 + 4)); BYTE2(v17) = 23; LOWORD(v17) = 12371; (*(void (__fastcall **)(char *, float *))(*(_QWORD *)v9 + 960LL))(v9, &v17); (*(void (__fastcall **)(char *, __int64))(*(_QWORD *)v9 + 912LL))(v9, 130); sub_100278250(&v17, v18, 35.0); (*(void (__fastcall **)(char *, float *))(*(_QWORD *)v9 + 184LL))(v9, &v17); result = (*(__int64 (__fastcall **)(__int64, char *))(*(_QWORD *)a1 + 456LL))(a1, v9); if ( a2 > 0 ) { result = 5 * (a2 / 5u); if ( !(a2 % 5u) ) { v13 = sub_10088E820("%i", a2); CString = cocos2d::CCString::getCString((__int64)v13); v15 = cocos2d::CCLabelBMFont::create_3(CString, (__int64)"chatFont.fnt"); (*(void (__fastcall **)(void *, float))(*(_QWORD *)v15 + 160LL))(v15, 0.495); (*(void (__fastcall **)(void *, void *))(*(_QWORD *)v15 + 1072LL))(v15, &unk_100A13630); (*(void (__fastcall **)(void *, __int64))(*(_QWORD *)v15 + 1024LL))(v15, 200); sub_100278250(&v17, v18, 25.0); (*(void (__fastcall **)(void *, float *))(*(_QWORD *)v15 + 184LL))(v15, &v17); return (*(__int64 (__fastcall **)(__int64, void *))(*(_QWORD *)a1 + 456LL))(a1, v15); } } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source