// // cocos2d::BitmapDC::getBitmapFromJavaShadowStroke from 0x7ec458 to 0x7ec6e2 (650 bytes) // // 2 xrefs: // > cocos2d::CCImage::initWithString @ 0x7ec752 // > cocos2d::CCImage::initWithStringShadowStroke @ 0x7ec7ea // // 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 12:01:00 +0000 // cocos2d::CCFileUtils *__fastcall cocos2d::BitmapDC::getBitmapFromJavaShadowStroke( int a1, int a2, int a3, int a4, int a5, int a6, float a7, float a8, float a9, float a10, char a11, float a12, float a13, float a14, int a15, char a16, float a17, float a18, float a19, float a20) { cocos2d::CCFileUtils *StaticMethodInfo; // r0 cocos2d::CCFileUtils *v22; // r5 int v23; // r0 unsigned __int8 *v24; // r10 unsigned int v25; // r3 unsigned __int8 *v26; // r9 int v27; // r2 char *v28; // r1 bool v29; // zf int v30; // r3 int v31; // r0 unsigned int v32; // r3 unsigned int v33; // r0 char *v34; // r10 int v35; // r9 char *v36; // r0 int v37; // r2 size_t v38; // r2 int v39; // r0 char *v40; // r1 int v41; // r9 int v43; // [sp+0h] [bp-A0h] unsigned __int8 *v44; // [sp+70h] [bp-30h] BYREF int v45; // [sp+78h] [bp-28h] BYREF int v46; // [sp+7Ch] [bp-24h] int v47; // [sp+80h] [bp-20h] int v48; // [sp+84h] [bp-1Ch] BYREF unsigned int v49; // [sp+88h] [bp-18h] void *v50; // [sp+8Ch] [bp-14h] int v51; // [sp+90h] [bp-10h] BYREF unsigned int v52; // [sp+94h] [bp-Ch] void *v53; // [sp+98h] [bp-8h] StaticMethodInfo = (cocos2d::CCFileUtils *)cocos2d::JniHelper::getStaticMethodInfo( &v45, "org/cocos2dx/lib/Cocos2dxBitmap", "createTextBitmapShadowStroke", "(Ljava/lang/String;Ljava/lang/String;IFFFIIIZFFFZFFFF)V"); v22 = StaticMethodInfo; if ( !StaticMethodInfo ) return v22; v23 = cocos2d::CCFileUtils::sharedFileUtils(StaticMethodInfo); (*(void (__fastcall **)(int *, int, int, _DWORD))(*(_DWORD *)v23 + 24))(&v48, v23, a6, 0); if ( (v48 & 1) != 0 ) { v24 = (unsigned __int8 *)v50; v25 = v49; } else { v25 = (int)(unsigned __int8)v48 >> 1; v24 = (unsigned __int8 *)&v48 + 1; } if ( v25 > 6 ) { v26 = &v24[v25]; std::__search( &v44, v24, &v24[v25], "assets/", (unsigned __int8 *)"", (int (__fastcall *)(int, _DWORD))std::char_traits::eq); if ( v44 != v26 && v44 == v24 ) { v51 = 0; v52 = 0; if ( (v48 & 1) != 0 ) { v27 = v49; v28 = (char *)v50; } else { v27 = (int)(unsigned __int8)v48 >> 1; v28 = (char *)&v48 + 1; } v53 = nullptr; std::string::__init(&v51, v28 + 7, v27 - 7); v30 = v48 & 1; v29 = v30 == 0; if ( (v48 & 1) != 0 ) { v30 = 0; *(_BYTE *)v50 = 0; } else { LOBYTE(v48) = v30; BYTE1(v48) = v30; } if ( !v29 ) v49 = v30; if ( (v48 & 1) != 0 ) { v31 = v49; v32 = (v48 & 0xFFFFFFFE) - 1; if ( v49 <= 0xA ) { if ( (v48 & 0xFFFFFFFE) != 0xB ) goto LABEL_22; goto LABEL_33; } } else { v31 = (int)(unsigned __int8)v48 >> 1; if ( v31 <= 10 ) goto LABEL_33; v32 = 10; } v33 = (v31 + 16) & 0xFFFFFFF0; if ( v33 - 1 != v32 ) { if ( v33 != 11 ) { v36 = (char *)operator new(v33); v35 = v48 & 1; if ( (v48 & 1) != 0 ) v34 = (char *)v50; else v34 = (char *)&v48 + 1; LABEL_26: if ( (v48 & 1) != 0 ) v37 = v49; else v37 = (int)(unsigned __int8)v48 >> 1; v38 = v37 + 1; if ( v38 ) memcpy(v36, v34, v38); if ( v35 ) operator delete(v34); goto LABEL_33; } LABEL_22: v34 = (char *)v50; v35 = 1; v36 = (char *)&v48 + 1; goto LABEL_26; } LABEL_33: v48 = v51; v49 = v52; v50 = v53; v51 = 0; v52 = 0; v53 = nullptr; std::string::~string((int)&v51); } } v39 = (*(int (__fastcall **)(int, int))(*(_DWORD *)v45 + 668))(v45, a2); if ( (v48 & 1) != 0 ) v40 = (char *)v50; else v40 = (char *)&v48 + 1; v41 = v39; v43 = (*(int (__fastcall **)(int, char *))(*(_DWORD *)v45 + 668))(v45, v40); _JNIEnv::CallStaticVoidMethod(v45, v46, v47, v41); (*(void (__fastcall **)(int, int))(*(_DWORD *)v45 + 92))(v45, v41); (*(void (__fastcall **)(int, int))(*(_DWORD *)v45 + 92))(v45, v43); (*(void (__fastcall **)(int, int))(*(_DWORD *)v45 + 92))(v45, v46); std::string::~string((int)&v48); return v22; }
GD Web Decomp Icon

GD Web Decomp

Raw Source