// // MultilineBitmapFont::readColorInfo from 0x14006c800 to 0x14006d0c2 (2242 bytes) // // 3 xrefs: // > MultilineBitmapFont::initWithFont @ 0x14006c09c // > @ 0x1406c606c // > @ 0x1406c6078 // // 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=1 __int64 __fastcall MultilineBitmapFont::readColorInfo(MultilineBitmapFont *a1, __int64 a2, __int64 *a3) { __int64 v6; // rcx unsigned __int64 v7; // rsi size_t v8; // rdi __int64 v9; // rax __int64 v10; // rcx int v11; // r14d unsigned __int64 v12; // rdx unsigned __int64 v13; // rax __int64 *v14; // rdi char v15; // di __int64 v16; // rax void *v17; // rdx __int64 v18; // rcx __int64 v19; // rax int v20; // esi __int64 v21; // rax void *v22; // rdx char v23; // di TextStyleSection *v24; // rax __int64 v25; // rcx __int64 v26; // rax int v27; // r14d int v28; // eax __int64 v29; // rcx unsigned __int64 v30; // rdi size_t v31; // r8 __int64 *v32; // rax const char *v33; // rcx float v34; // xmm6_4 char *v35; // rcx __int64 v36; // rax void *v37; // rdx __int64 v38; // rcx __int64 v39; // rax int v40; // edi __int64 v41; // rax void *v42; // rdx TextStyleSection *v43; // rax __int64 v44; // rcx __int64 v45; // rax int v46; // r14d int v47; // eax __int64 v48; // rcx size_t v49; // r8 __int64 *v50; // rax const char *v51; // rcx int v52; // r15d unsigned __int64 v53; // rcx unsigned __int64 v54; // rax unsigned __int64 v55; // rax size_t v56; // r8 __int64 *v57; // rax const char *v58; // rcx int v59; // esi char *v60; // rcx __int64 v61; // rax void *v62; // rdx __int64 v63; // rcx __int64 v64; // rax int v65; // edi __int64 v66; // rax void *v67; // rdx TextStyleSection *v68; // rax __int64 v69; // rcx __int64 v70; // rax int v71; // r14d __int128 v72; // xmm0 int v73; // eax __int64 v74; // rcx unsigned __int64 v75; // rdi size_t v76; // r8 __int64 *v77; // rax const char *v78; // rcx float v79; // xmm6_4 char *v80; // rcx __int64 v81; // rax void *v82; // rdx __int16 v84; // [rsp+38h] [rbp-39h] char *String[2]; // [rsp+48h] [rbp-29h] BYREF __int64 v86; // [rsp+58h] [rbp-19h] unsigned __int64 v87; // [rsp+60h] [rbp-11h] while ( 1 ) { while ( 1 ) { while ( 1 ) { v6 = (__int64)a3; v7 = a3[3]; if ( v7 > 0xF ) v6 = *a3; v8 = a3[2]; v9 = sub_14003BCE0(v6, v8, 0, " 0xF ) v14 = (__int64 *)*a3; v15 = *((_BYTE *)v14 + v13); v16 = sub_140041FF0(a3, v12, 4u, byte_140518980, 0); if ( a3 != (__int64 *)v16 ) { v17 = (void *)v16; if ( *(_QWORD *)(v16 + 24) > 0xFu ) v17 = *(void **)v16; sub_14003CCE0((void **)a3, v17, *(_QWORD *)(v16 + 16)); } MultilineBitmapFont::moveSpecialDescriptors(a1, v11, 4); v18 = (__int64)a3; if ( (unsigned __int64)a3[3] > 0xF ) v18 = *a3; v19 = sub_14003BCE0(v18, a3[2], 0, "", 4u); v20 = v19; if ( v19 == -1 ) goto LABEL_123; v21 = sub_140041FF0(a3, (int)v19, 4u, byte_140518980, 0); if ( a3 != (__int64 *)v21 ) { v22 = (void *)v21; if ( *(_QWORD *)(v21 + 24) > 0xFu ) v22 = *(void **)v21; sub_14003CCE0((void **)a3, v22, *(_QWORD *)(v21 + 16)); } MultilineBitmapFont::moveSpecialDescriptors(a1, v20, 4); switch ( v15 ) { case 'b': v84 = 21066; v23 = -31; break; case 'g': v84 = -7360; v23 = 72; break; case 'l': v84 = -21664; v23 = -17; break; case 'j': v84 = -14286; v23 = -1; break; case 'y': v84 = -1; v23 = 0; break; case 'o': v84 = -23041; v23 = 75; break; case 'r': v84 = 23295; v23 = 90; break; case 'p': v84 = 255; v23 = -1; break; case 'a': v84 = 12950; v23 = -1; break; case 'd': v84 = -26881; v23 = -1; break; case 'c': v84 = -1; v23 = -106; break; case 'f': v84 = -106; v23 = -1; break; case 's': v84 = -8961; v23 = 65; break; default: v84 = 255; v23 = 0; break; } v24 = TextStyleSection::create(v11, v20 - 1, Colored); *(_WORD *)&v24->m_color.r = v84; v24->m_color.b = v23; cocos2d::CCArray::addObject(a1->m_specialDescriptors, v24); } v25 = (__int64)a3; if ( v7 > 0xF ) v25 = *a3; v26 = sub_14003BCE0(v25, v8, 0, " 0xF ) v32 = (__int64 *)*a3; sub_14003A930(String, (char *)v32 + v29, v31); v33 = (const char *)String; if ( v87 > 0xF ) v33 = String[0]; v34 = (float)atoi(v33) / 100.0; if ( v87 > 0xF ) { v35 = String[0]; if ( v87 + 1 >= 0x1000 ) { v35 = *((char **)String[0] - 1); if ( (unsigned __int64)(String[0] - v35 - 8) > 0x1F ) invalid_parameter_noinfo_noreturn(); } j_j_free(v35); } v36 = sub_140041FF0(a3, v27, 6u, byte_140518980, 0); if ( a3 != (__int64 *)v36 ) { v37 = (void *)v36; if ( *(_QWORD *)(v36 + 24) > 0xFu ) v37 = *(void **)v36; sub_14003CCE0((void **)a3, v37, *(_QWORD *)(v36 + 16)); } MultilineBitmapFont::moveSpecialDescriptors(a1, v27, 6); v38 = (__int64)a3; if ( (unsigned __int64)a3[3] > 0xF ) v38 = *a3; v39 = sub_14003BCE0(v38, a3[2], 0, "", 4u); v40 = v39; if ( v39 == -1 ) { LABEL_123: v72 = 0; LABEL_124: *(_OWORD *)a2 = v72; *(_QWORD *)(a2 + 16) = 0; *(_QWORD *)(a2 + 24) = 0; *(_OWORD *)a2 = *(_OWORD *)a3; *(_OWORD *)(a2 + 16) = *((_OWORD *)a3 + 1); *(_BYTE *)a3 = 0; a3[3] = 15; a3[2] = 0; goto LABEL_125; } v41 = sub_140041FF0(a3, (int)v39, 4u, byte_140518980, 0); if ( a3 != (__int64 *)v41 ) { v42 = (void *)v41; if ( *(_QWORD *)(v41 + 24) > 0xFu ) v42 = *(void **)v41; sub_14003CCE0((void **)a3, v42, *(_QWORD *)(v41 + 16)); } MultilineBitmapFont::moveSpecialDescriptors(a1, v40, 4); v43 = TextStyleSection::create(v27, v40 - 1, (TextStyleType)2); v43->m_instantTime = v34; LABEL_122: cocos2d::CCArray::addObject(a1->m_specialDescriptors, v43); } v44 = (__int64)a3; if ( v7 > 0xF ) v44 = *a3; v45 = sub_14003BCE0(v44, v8, 0, " 0xF ) v69 = *a3; v70 = sub_14003BCE0(v69, v8, 0, " 0xF ) v77 = (__int64 *)*a3; sub_14003A930(String, (char *)v77 + v74, v76); v78 = (const char *)String; if ( v87 > 0xF ) v78 = String[0]; v79 = (float)atoi(v78) / 100.0; if ( v87 > 0xF ) { v80 = String[0]; if ( v87 + 1 >= 0x1000 ) { v80 = *((char **)String[0] - 1); if ( (unsigned __int64)(String[0] - v80 - 8) > 0x1F ) invalid_parameter_noinfo_noreturn(); } j_j_free(v80); } v81 = sub_140041FF0(a3, v71, 6u, byte_140518980, 0); if ( a3 != (__int64 *)v81 ) { v82 = (void *)v81; if ( *(_QWORD *)(v81 + 24) > 0xFu ) v82 = *(void **)v81; sub_14003CCE0((void **)a3, v82, *(_QWORD *)(v81 + 16)); } MultilineBitmapFont::moveSpecialDescriptors(a1, v71, 6); v43 = TextStyleSection::create(v71, -1, Delayed); v43->m_delay = v79; goto LABEL_122; } v47 = v45 + 2; v48 = v47; *(_OWORD *)String = 0; v86 = 0; v87 = 0; if ( v8 < v47 ) sub_14003BCC0(v47); v49 = v8 != v47; v50 = a3; if ( v7 > 0xF ) v50 = (__int64 *)*a3; sub_14003A930(String, (char *)v50 + v48, v49); v51 = (const char *)String; if ( v87 > 0xF ) v51 = String[0]; v52 = atoi(v51); sub_14003A830((__int64)String); v53 = v46 + 3; *(_OWORD *)String = 0; v86 = 0; v87 = 0; v54 = a3[2]; if ( v54 < v53 ) sub_14003BCC0(v53); v55 = v54 - v53; v56 = 2; if ( v55 < 2 ) v56 = v55; v57 = a3; if ( (unsigned __int64)a3[3] > 0xF ) v57 = (__int64 *)*a3; sub_14003A930(String, (char *)v57 + v53, v56); v58 = (const char *)String; if ( v87 > 0xF ) v58 = String[0]; v59 = atoi(v58); if ( v87 > 0xF ) { v60 = String[0]; if ( v87 + 1 >= 0x1000 ) { v60 = *((char **)String[0] - 1); if ( (unsigned __int64)(String[0] - v60 - 8) > 0x1F ) invalid_parameter_noinfo_noreturn(); } j_j_free(v60); } v61 = sub_140041FF0(a3, v46, 6u, byte_140518980, 0); if ( a3 != (__int64 *)v61 ) { v62 = (void *)v61; if ( *(_QWORD *)(v61 + 24) > 0xFu ) v62 = *(void **)v61; sub_14003CCE0((void **)a3, v62, *(_QWORD *)(v61 + 16)); } MultilineBitmapFont::moveSpecialDescriptors(a1, v46, 6); v63 = (__int64)a3; if ( (unsigned __int64)a3[3] > 0xF ) v63 = *a3; v64 = sub_14003BCE0(v63, a3[2], 0, "", 4u); v65 = v64; if ( v64 == -1 ) break; v66 = sub_140041FF0(a3, (int)v64, 4u, byte_140518980, 0); if ( a3 != (__int64 *)v66 ) { v67 = (void *)v66; if ( *(_QWORD *)(v66 + 24) > 0xFu ) v67 = *(void **)v66; sub_14003CCE0((void **)a3, v67, *(_QWORD *)(v66 + 16)); } MultilineBitmapFont::moveSpecialDescriptors(a1, v65, 4); v68 = TextStyleSection::create(v46, v65 - 1, Shake); v68->m_shakeIntensity = v52; v68->m_shakesPerSecond = v59; cocos2d::CCArray::addObject(a1->m_specialDescriptors, v68); } *(_OWORD *)a2 = 0; *(_QWORD *)(a2 + 16) = 0; *(_QWORD *)(a2 + 24) = 0; *(_OWORD *)a2 = *(_OWORD *)a3; *(_OWORD *)(a2 + 16) = *((_OWORD *)a3 + 1); a3[2] = 0; a3[3] = 15; *(_BYTE *)a3 = 0; LABEL_125: sub_14003A830((__int64)a3); return a2; }
GD Web Decomp Icon

GD Web Decomp

Raw Source