// // AchievementBar::init from 0x1006f56f0 to 0x1006f6b47 (5207 bytes) // // 1 xrefs: // > AchievementBar::create @ 0x1006f56a7 // // 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:35:53 +0000 // char __fastcall AchievementBar::init(_QWORD *a1, __int64 a2, char *a3, const char *a4, int a5) { char result; // al __int64 v9; // rax _QWORD *v10; // rax __int64 v11; // rbx const std::string::value_type *v12; // rcx __int64 v13; // rax __int64 v14; // rcx void *v15; // r14 _QWORD *v16; // rbx double v17; // xmm0_8 char *v18; // rax void *v19; // r12 __int64 v20; // rax unsigned __int8 v21; // r12 __int64 *v22; // r13 float v23; // xmm0_4 __int64 v24; // rax char *v25; // r14 __int64 v26; // xmm0_8 const char *v27; // rdi size_t v28; // rax size_t v29; // r14 char *v30; // r12 size_t v31; // rbx char *v32; // rax unsigned __int64 v33; // rdi __int64 v34; // r15 unsigned __int64 v35; // rsi char *v36; // rdx unsigned __int64 v37; // rbx bool v38; // zf unsigned __int64 v39; // r14 char *v40; // r13 size_t v41; // r14 char *v42; // r12 char v43; // al const char *v44; // r14 unsigned __int64 v45; // r15 size_t v46; // rbx size_t v47; // rax size_t v48; // r13 char *v49; // rbx size_t v50; // r12 __int64 v51; // rax __int64 v52; // r14 __int64 v53; // rbx char *v54; // rax unsigned __int64 v55; // rsi char *v56; // rdx unsigned __int64 v57; // rdi __int64 v58; // rax const char *CString; // r13 __int64 v60; // rax int v61; // r12d size_t v62; // rax size_t v63; // r14 char *v64; // r15 _QWORD *v65; // rbx void *v66; // r15 int v67; // xmm0_4 const char *v68; // rsi size_t v69; // rdx void *v70; // r12 float *v71; // rax float v72; // xmm0_4 double v73; // xmm1_8 char *v74; // rdi size_t v75; // rax size_t v76; // r14 char *v77; // rbx size_t v78; // r15 char *v79; // r14 float *v80; // rbx __int64 v81; // r15 float v82; // xmm2_4 float v83; // xmm1_4 float v84; // xmm0_4 float v85; // xmm2_4 float v86; // xmm0_4 _QWORD *v87; // rbx float *v88; // rax void *v89; // r14 size_t v90; // rbx char v91; // bl void *v92; // r14 size_t v93; // rax char *v94; // rdi size_t v95; // rdx char v96; // r15 int v97; // r15d size_t v98; // rax size_t v99; // r14 char *v100; // r15 size_t v101; // rbx char v102; // bl void *v103; // r14 size_t v104; // rax char *v105; // rdi size_t v106; // rdx char v107; // r15 char v108; // bl char v109; // bl char v110; // bl char v111; // bl char v112; // bl char v113; // bl char v114; // bl char v115; // bl char v116; // bl char v117; // bl char v118; // bl __int64 v119; // rax char v120; // [rsp+0h] [rbp-120h] __int64 v121; // [rsp+18h] [rbp-108h] BYREF float v122; // [rsp+20h] [rbp-100h] BYREF char *v123; // [rsp+28h] [rbp-F8h] char v124; // [rsp+30h] [rbp-F0h] _BYTE v125[15]; // [rsp+31h] [rbp-EFh] BYREF void *v126; // [rsp+40h] [rbp-E0h] __int128 v127; // [rsp+48h] [rbp-D8h] BYREF void *v128; // [rsp+58h] [rbp-C8h] float v129; // [rsp+60h] [rbp-C0h] BYREF float v130; // [rsp+64h] [rbp-BCh] __int64 v131; // [rsp+68h] [rbp-B8h] char *v132; // [rsp+70h] [rbp-B0h] __int64 __dst; // [rsp+78h] [rbp-A8h] BYREF unsigned __int64 v134; // [rsp+80h] [rbp-A0h] void *v135; // [rsp+88h] [rbp-98h] _QWORD *v136; // [rsp+90h] [rbp-90h] float v137; // [rsp+9Ch] [rbp-84h] void *v138; // [rsp+A0h] [rbp-80h] __int64 v139; // [rsp+A8h] [rbp-78h] unsigned __int64 v140; // [rsp+B0h] [rbp-70h] char v141; // [rsp+BFh] [rbp-61h] _QWORD __s2[2]; // [rsp+C0h] [rbp-60h] BYREF void *__p; // [rsp+D0h] [rbp-50h] float v144; // [rsp+DCh] [rbp-44h] char __s[8]; // [rsp+E0h] [rbp-40h] BYREF size_t __n; // [rsp+E8h] [rbp-38h] void *v147; // [rsp+F0h] [rbp-30h] v139 = a2; result = cocos2d::CCNodeRGBA::init((__int64)a1); if ( !result ) return result; v132 = a3; v141 = result; v9 = cocos2d::CCDirector::sharedDirector(); cocos2d::CCDirector::getWinSize(&v121, v9); *(_DWORD *)__s = 0; v10 = cocos2d::CCLayerColor::create((__int64)__s, 0.0, 0.0); a1[43] = v10; (*(void (__fastcall **)(_QWORD *, _QWORD *))(*a1 + 456LL))(a1, v10); v11 = a1[43]; sub_100278250((float *)__s, *(float *)&v121 * 0.5, 40.0); (*(void (__fastcall **)(__int64, char *))(*(_QWORD *)v11 + 184LL))(v11, __s); v12 = "GJ_square01.png"; v144 = *(float *)&a5; if ( (_BYTE)a5 ) v12 = "GJ_square02.png"; v124 = 30; v13 = *(_QWORD *)v12; v14 = *(_QWORD *)(v12 + 7); *(_QWORD *)v125 = v13; *(_QWORD *)&v125[7] = v14; LOBYTE(v126) = 0; sub_100278270((__int64)__s, 0.0, 0.0, (__m128)0x42A00000u, (__m128)0x42A00000u); v15 = cocos2d::extension::CCScale9Sprite::create_2((__int64)v125, (unsigned __int64 *)__s); v136 = a1; sub_100278260((float *)__s, 300.0, 80.0); (*(void (__fastcall **)(void *, char *))(*(_QWORD *)v15 + 320LL))(v15, __s); v16 = v136; v17 = (*(double (__fastcall **)(_QWORD, void *, __int64))(*(_QWORD *)v136[43] + 464LL))(v136[43], v15, 1); v16[46] = v15; v18 = cocos2d::CCSprite::createWithSpriteFrameName((__int64)"achievementGlow_001.png", v17); v16[48] = v18; (*(void (__fastcall **)(char *, float))(*(_QWORD *)v18 + 160LL))(v18, 4.0); (*(void (__fastcall **)(_QWORD, _QWORD, __int64))(*(_QWORD *)v16[43] + 464LL))(v16[43], v16[48], 0xFFFFFFFFLL); (*(void (__fastcall **)(_QWORD, __int64))(*(_QWORD *)v16[48] + 1080LL))(v16[48], 0x100000302LL); sub_100278250(&v122, 40.0, 40.0); sub_100278270((__int64)__s, 0.0, 0.0, (__m128)0x42A00000u, (__m128)0x42A00000u); v19 = cocos2d::extension::CCScale9Sprite::create_2((__int64)"square02b_001.png", (unsigned __int64 *)__s); sub_100278260((float *)__s, 300.0, 80.0); (*(void (__fastcall **)(void *, char *))(*(_QWORD *)v19 + 320LL))(v19, __s); (*(void (__fastcall **)(_QWORD, void *, __int64))(*(_QWORD *)v136[43] + 464LL))(v136[43], v19, 100); v20 = (*(__int64 (__fastcall **)(void *))(*(_QWORD *)v15 + 192LL))(v15); (*(void (__fastcall **)(void *, __int64))(*(_QWORD *)v19 + 184LL))(v19, v20); (*(void (__fastcall **)(void *, _QWORD))(*(_QWORD *)v19 + 912LL))(v19, 0); cocos2d::extension::CCScale9Sprite::setBlendAdditive((__int64)v19, 1); v136[47] = v19; v123 = cocos2d::CCSprite::createWithSpriteFrameName((__int64)"playerSquare_001.png", COERCE_DOUBLE(1133903872)); v21 = LOBYTE(v144); if ( LOBYTE(v144) ) { v22 = (__int64 *)cocos2d::CCSprite::createWithSpriteFrameName((__int64)a4, COERCE_DOUBLE(1133903872)); v23 = 30.0 / *(float *)(*(__int64 (__fastcall **)(__int64 *))(*v22 + 328))(v22); v24 = *v22; v137 = 0.0; (*(void (__fastcall **)(__int64 *, float))(v24 + 160))(v22, v23); v25 = v132; goto LABEL_81; } v26 = 0; v137 = 0.0; if ( !a4 ) { LABEL_79: v25 = nullptr; goto LABEL_80; } v27 = a4; v28 = strlen(a4); if ( v28 >= 0xFFFFFFFFFFFFFFF8LL ) sub_100003630(); v29 = v28; if ( v28 >= 0x17 ) { v31 = 26; if ( (v28 | 7) != 0x17 ) v31 = (v28 | 7) + 1; v30 = (char *)operator new(v31); v135 = v30; __dst = v31 | 1; v134 = v29; goto LABEL_14; } LOBYTE(__dst) = 2 * v28; v30 = (char *)&__dst + 1; if ( v28 ) { LABEL_14: v27 = v30; memcpy(v30, a4, v29); } v30[v29] = 0; v131 = sub_1007FE900(v27); v32 = (char *)&__dst + 1; if ( (__dst & 1) != 0 ) { v32 = (char *)v135; v33 = v134; v34 = -1; if ( !v134 ) goto LABEL_25; LABEL_19: v35 = v33; v36 = v32; while ( *v36 != 95 ) { ++v36; if ( !--v35 ) { v36 = &v32[v33]; break; } } v34 = -1; if ( v36 != &v32[v33] ) v34 = v36 - v32; goto LABEL_25; } v33 = (unsigned __int8)__dst >> 1; v34 = -1; if ( (unsigned __int8)__dst >> 1 ) goto LABEL_19; LABEL_25: v140 = v33; v37 = 0; do { if ( (__dst & 1) != 0 ) { v39 = v134; if ( v134 < v37 ) LABEL_214: sub_100056810(); v40 = (char *)v135; } else { v39 = (unsigned __int8)__dst >> 1; v40 = (char *)&__dst + 1; if ( v37 > v39 ) goto LABEL_214; } v41 = v39 - v37; if ( v41 >= v34 - v37 ) v41 = v34 - v37; if ( v41 >= 0xFFFFFFFFFFFFFFF8LL ) sub_100003630(); if ( v41 >= 0x17 ) { v138 = (void *)v34; v45 = v37; v46 = (v41 | 7) + 1; if ( (v41 | 7) == 0x17 ) v46 = 26; v42 = (char *)operator new(v46); v147 = v42; *(_QWORD *)__s = v46 | 1; __n = v41; v37 = v45; v34 = (__int64)v138; } else { __s[0] = 2 * v41; v42 = &__s[1]; if ( !v41 ) { __s[1] = 0; v43 = __s[0]; if ( (__s[0] & 1) == 0 ) goto LABEL_38; goto LABEL_45; } } memmove(v42, &v40[v37], v41); v42[v41] = 0; v43 = __s[0]; if ( (__s[0] & 1) == 0 ) { LABEL_38: v21 = LOBYTE(v144); if ( !v43 && v37 == v140 ) goto LABEL_58; v44 = &__s[1]; goto LABEL_48; } LABEL_45: v21 = LOBYTE(v144); if ( !__n && v37 == v140 ) goto LABEL_58; v44 = (const char *)v147; LABEL_48: v47 = strlen(v44); if ( v47 >= 0xFFFFFFFFFFFFFFF8LL ) sub_100003630(); v48 = v47; v138 = (void *)v37; if ( v47 >= 0x17 ) { v50 = (v47 | 7) + 1; if ( (v47 | 7) == 0x17 ) v50 = 26; v49 = (char *)operator new(v50); __p = v49; __s2[0] = v50 | 1; __s2[1] = v48; v21 = LOBYTE(v144); LABEL_55: memmove(v49, v44, v48); goto LABEL_56; } LOBYTE(__s2[0]) = 2 * v47; v49 = (char *)__s2 + 1; if ( v47 ) goto LABEL_55; LABEL_56: v49[v48] = 0; v51 = sub_10088E600(__s2); sub_1007FEBF0(v131, v51); v37 = (unsigned __int64)v138; if ( (__s2[0] & 1) != 0 ) operator delete(__p); LABEL_58: v52 = v37; v53 = -1; if ( v34 == -1 ) goto LABEL_59; if ( (__dst & 1) != 0 ) { v54 = (char *)v135; v55 = v134; v52 = v34 + 1; if ( v134 <= v34 + 1 ) goto LABEL_59; } else { v55 = (unsigned __int8)__dst >> 1; v54 = (char *)&__dst + 1; v52 = v34 + 1; if ( v55 <= v34 + 1 ) goto LABEL_59; } v56 = &v54[v52]; v57 = v55 + ~v34; while ( *v56 != 95 ) { ++v56; if ( !--v57 ) { v56 = &v54[v55]; break; } } v53 = v56 - v54; if ( v56 == &v54[v55] ) v53 = -1; LABEL_59: if ( (__s[0] & 1) != 0 ) operator delete(v147); v38 = v34 == -1; v34 = v53; v37 = v52; } while ( !v38 ); if ( (__dst & 1) != 0 ) operator delete(v135); if ( (unsigned int)sub_1007FEF90(v131) < 2 ) goto LABEL_79; v58 = sub_1007FEFE0(v131, 0); CString = (const char *)cocos2d::CCString::getCString(v58); v60 = sub_1007FEFE0(v131, 1); v61 = cocos2d::CCString::intValue(v60); v62 = strlen(CString); if ( v62 >= 0xFFFFFFFFFFFFFFF8LL ) sub_100003630(); v63 = v62; if ( v62 >= 0x17 ) { v90 = 26; if ( (v62 | 7) != 0x17 ) v90 = (v62 | 7) + 1; v64 = (char *)operator new(v90); v147 = v64; *(_QWORD *)__s = v90 | 1; __n = v63; goto LABEL_118; } __s[0] = 2 * v62; v64 = &__s[1]; if ( v62 ) LABEL_118: memmove(v64, CString, v63); v64[v63] = 0; LOBYTE(__s2[0]) = 8; *(_DWORD *)((char *)__s2 + 1) = 1885956211; BYTE5(__s2[0]) = 0; v91 = __s[0]; v92 = v147; LODWORD(v138) = v61; if ( (__s[0] & 1) != 0 ) { v93 = __n; v94 = (char *)v147; } else { v93 = (unsigned __int8)__s[0] >> 1; v94 = &__s[1]; } v95 = 4; if ( v93 < 4 ) v95 = v93; v96 = (v93 == 4) & (memcmp(v94, (char *)__s2 + 1, v95) == 0); if ( (v91 & 1) != 0 ) operator delete(v92); v26 = 0; v137 = 0.0; v21 = LOBYTE(v144); if ( v96 ) { v97 = 4; goto LABEL_212; } v98 = strlen(CString); if ( v98 >= 0xFFFFFFFFFFFFFFF8LL ) sub_100003630(); v99 = v98; if ( v98 >= 0x17 ) { v101 = 26; if ( (v98 | 7) != 0x17 ) v101 = (v98 | 7) + 1; v100 = (char *)operator new(v101); v147 = v100; *(_QWORD *)__s = v101 | 1; __n = v99; goto LABEL_135; } __s[0] = 2 * v98; v100 = &__s[1]; if ( v98 ) LABEL_135: memmove(v100, CString, v99); v100[v99] = 0; LOBYTE(__s2[0]) = 8; *(_DWORD *)((char *)__s2 + 1) = 1819042146; BYTE5(__s2[0]) = 0; v102 = __s[0]; v103 = v147; if ( (__s[0] & 1) != 0 ) { v104 = __n; v105 = (char *)v147; } else { v104 = (unsigned __int8)__s[0] >> 1; v105 = &__s[1]; } v106 = 4; if ( v104 < 4 ) v106 = v104; v107 = (v104 == 4) & (memcmp(v105, (char *)__s2 + 1, v106) == 0); if ( (v102 & 1) != 0 ) operator delete(v103); v21 = LOBYTE(v144); if ( v107 ) { v97 = 5; goto LABEL_212; } sub_10000E4E0(__s, CString); sub_10000E4E0(__s2, "bird"); v108 = sub_1001914B0((unsigned __int8 *)__s, (unsigned __int8 *)__s2); if ( (__s2[0] & 1) != 0 ) { operator delete(__p); if ( (__s[0] & 1) != 0 ) goto LABEL_150; LABEL_147: if ( v108 ) goto LABEL_148; LABEL_151: sub_10000E4E0(__s, CString); sub_10000E4E0(__s2, "dart"); v109 = sub_1001914B0((unsigned __int8 *)__s, (unsigned __int8 *)__s2); if ( (__s2[0] & 1) != 0 ) { operator delete(__p); if ( (__s[0] & 1) == 0 ) { LABEL_153: if ( v109 ) { LABEL_154: v97 = 7; goto LABEL_212; } LABEL_157: sub_10000E4E0(__s, CString); sub_10000E4E0(__s2, "robot"); v110 = sub_1001914B0((unsigned __int8 *)__s, (unsigned __int8 *)__s2); if ( (__s2[0] & 1) != 0 ) { operator delete(__p); if ( (__s[0] & 1) == 0 ) { LABEL_159: if ( v110 ) { LABEL_160: v97 = 8; goto LABEL_212; } LABEL_163: sub_10000E4E0(__s, CString); sub_10000E4E0(__s2, "spider"); v111 = sub_1001914B0((unsigned __int8 *)__s, (unsigned __int8 *)__s2); if ( (__s2[0] & 1) != 0 ) { operator delete(__p); if ( (__s[0] & 1) == 0 ) { LABEL_165: if ( v111 ) { LABEL_166: v97 = 9; goto LABEL_212; } LABEL_169: sub_10000E4E0(__s, CString); sub_10000E4E0(__s2, "death"); v112 = sub_1001914B0((unsigned __int8 *)__s, (unsigned __int8 *)__s2); if ( (__s2[0] & 1) != 0 ) { operator delete(__p); if ( (__s[0] & 1) == 0 ) { LABEL_171: if ( v112 ) { LABEL_172: v97 = 11; goto LABEL_212; } LABEL_175: sub_10000E4E0(__s, CString); sub_10000E4E0(__s2, "special"); v113 = sub_1001914B0((unsigned __int8 *)__s, (unsigned __int8 *)__s2); if ( (__s2[0] & 1) != 0 ) { operator delete(__p); if ( (__s[0] & 1) == 0 ) { LABEL_177: if ( v113 ) { LABEL_178: v97 = 10; goto LABEL_212; } LABEL_181: sub_10000E4E0(__s, CString); sub_10000E4E0(__s2, "color"); v114 = sub_1001914B0((unsigned __int8 *)__s, (unsigned __int8 *)__s2); if ( (__s2[0] & 1) != 0 ) { operator delete(__p); if ( (__s[0] & 1) == 0 ) { LABEL_183: if ( v114 ) { LABEL_184: v97 = 2; goto LABEL_212; } LABEL_187: sub_10000E4E0(__s, CString); sub_10000E4E0(__s2, "color2"); v115 = sub_1001914B0((unsigned __int8 *)__s, (unsigned __int8 *)__s2); if ( (__s2[0] & 1) != 0 ) { operator delete(__p); if ( (__s[0] & 1) == 0 ) { LABEL_189: if ( v115 ) { LABEL_190: v97 = 3; goto LABEL_212; } LABEL_193: sub_10000E4E0(__s, CString); sub_10000E4E0(__s2, "swing"); v116 = sub_1001914B0((unsigned __int8 *)__s, (unsigned __int8 *)__s2); if ( (__s2[0] & 1) != 0 ) { operator delete(__p); if ( (__s[0] & 1) == 0 ) { LABEL_195: if ( v116 ) { LABEL_196: v97 = 13; LABEL_211: v21 = LOBYTE(v144); goto LABEL_212; } LABEL_199: sub_10000E4E0(__s, CString); sub_10000E4E0(__s2, "jetpack"); v117 = sub_1001914B0((unsigned __int8 *)__s, (unsigned __int8 *)__s2); if ( (__s2[0] & 1) != 0 ) { operator delete(__p); if ( (__s[0] & 1) == 0 ) { LABEL_201: if ( v117 ) { LABEL_202: v97 = 14; goto LABEL_211; } LABEL_205: sub_10000E4E0(__s, CString); sub_10000E4E0(__s2, "shipfire"); v118 = sub_1001914B0((unsigned __int8 *)__s, (unsigned __int8 *)__s2); if ( (__s2[0] & 1) != 0 ) operator delete(__p); if ( (__s[0] & 1) != 0 ) operator delete(v147); v97 = 1; if ( v118 ) v97 = 15; goto LABEL_211; } } else if ( (__s[0] & 1) == 0 ) { goto LABEL_201; } operator delete(v147); if ( v117 ) goto LABEL_202; goto LABEL_205; } } else if ( (__s[0] & 1) == 0 ) { goto LABEL_195; } operator delete(v147); if ( v116 ) goto LABEL_196; goto LABEL_199; } } else if ( (__s[0] & 1) == 0 ) { goto LABEL_189; } operator delete(v147); if ( v115 ) goto LABEL_190; goto LABEL_193; } } else if ( (__s[0] & 1) == 0 ) { goto LABEL_183; } operator delete(v147); if ( v114 ) goto LABEL_184; goto LABEL_187; } } else if ( (__s[0] & 1) == 0 ) { goto LABEL_177; } operator delete(v147); if ( v113 ) goto LABEL_178; goto LABEL_181; } } else if ( (__s[0] & 1) == 0 ) { goto LABEL_171; } operator delete(v147); if ( v112 ) goto LABEL_172; goto LABEL_175; } } else if ( (__s[0] & 1) == 0 ) { goto LABEL_165; } operator delete(v147); if ( v111 ) goto LABEL_166; goto LABEL_169; } } else if ( (__s[0] & 1) == 0 ) { goto LABEL_159; } operator delete(v147); if ( v110 ) goto LABEL_160; goto LABEL_163; } } else if ( (__s[0] & 1) == 0 ) { goto LABEL_153; } operator delete(v147); if ( v109 ) goto LABEL_154; goto LABEL_157; } if ( (__s[0] & 1) == 0 ) goto LABEL_147; LABEL_150: operator delete(v147); if ( !v108 ) goto LABEL_151; LABEL_148: v26 = 3238002688LL; v137 = -8.0; v97 = 6; LABEL_212: v119 = sub_10088E820("Unlocked new %s!", v120); v25 = (char *)cocos2d::CCString::getCString(v119); v22 = GJItemIcon::create(v97, (int)v138, 11513775, 0xFFFFFF, 0, 0, 1); if ( !v22 ) LABEL_80: v22 = (__int64 *)cocos2d::CCSprite::createWithSpriteFrameName((__int64)"GJ_achImage_001.png", *(double *)&v26); LABEL_81: (*(void (__fastcall **)(__int64 *, float *))(*v22 + 184))(v22, &v122); (*(void (__fastcall **)(_QWORD, __int64 *, __int64))(*(_QWORD *)v136[43] + 464LL))(v136[43], v22, 3); v65 = v136; v136[49] = v22; v66 = cocos2d::CCNode::create(); (*(void (__fastcall **)(_QWORD, void *, __int64))(*(_QWORD *)v65[43] + 464LL))(v65[43], v66, 2); v138 = v66; if ( v21 ) v67 = 1061997773; else v67 = 1060320051; LODWORD(v140) = v67; v68 = "bigFont.fnt"; if ( v21 ) v68 = "goldFont.fnt"; v69 = v21 + 11LL; __s[0] = 2 * v69; memcpy(&__s[1], v68, v69); *((_BYTE *)&__n + v21 + 4) = 0; v70 = cocos2d::CCLabelBMFont::create_3(v139, (__int64)&__s[1]); (*(void (__fastcall **)(void *, void *))(*(_QWORD *)v138 + 456LL))(v138, v70); sub_100278250((float *)__s2, 0.0, 0.5); (*(void (__fastcall **)(void *, _QWORD *))(*(_QWORD *)v70 + 296LL))(v70, __s2); (*(void (__fastcall **)(void *, float))(*(_QWORD *)v70 + 160LL))(v70, *(float *)&v140); v136[50] = v70; if ( *(float *)(*(__int64 (__fastcall **)(void *))(*(_QWORD *)v70 + 328LL))(v70) > 200.0 ) { v71 = (float *)(*(__int64 (__fastcall **)(void *))(*(_QWORD *)v70 + 328LL))(v70); (*(void (__fastcall **)(void *, float))(*(_QWORD *)v70 + 160LL))(v70, 200.0 / *v71); } v72 = (*(float (__fastcall **)(void *))(*(_QWORD *)v70 + 168LL))(v70); *(_QWORD *)&v73 = (unsigned int)v140; if ( *(float *)&v140 > v72 ) v73 = (*(double (__fastcall **)(void *))(*(_QWORD *)v70 + 168LL))(v70); (*(void (__fastcall **)(void *, double))(*(_QWORD *)v70 + 160LL))(v70, v73); v131 = (__int64)v22; v74 = v132; if ( v25 ) v74 = v25; v75 = strlen(v74); if ( v75 >= 0xFFFFFFFFFFFFFFF8LL ) sub_100003630(); v76 = v75; if ( v75 >= 0x17 ) { v78 = 26; if ( (v75 | 7) != 0x17 ) v78 = (v75 | 7) + 1; v77 = (char *)operator new(v78); v128 = v77; *(_QWORD *)&v127 = v78 | 1; *((_QWORD *)&v127 + 1) = v76; goto LABEL_99; } LOBYTE(v127) = 2 * v75; v77 = (char *)&v127 + 1; if ( v75 ) LABEL_99: memmove(v77, v74, v76); v77[v76] = 0; sub_100278250((float *)__s2, 0.0, 1.0); v79 = TextArea::create(&v127, (__int64)"chatFont.fnt", __s2, 0, 0, 1.0, 220.0, 20.0); if ( (v127 & 1) != 0 ) operator delete(v128); (*(void (__fastcall **)(void *, char *))(*(_QWORD *)v138 + 456LL))(v138, v79); sub_100278250((float *)__s2, 0.0, 0.5); (*(void (__fastcall **)(char *, _QWORD *))(*(_QWORD *)v79 + 296LL))(v79, __s2); sub_100278250((float *)__s2, 0.0, 5.0); v80 = (float *)v123; v81 = v131; (*(void (__fastcall **)(char *, _QWORD *))(*(_QWORD *)v79 + 184LL))(v79, __s2); *((_DWORD *)v79 + 162) = 1098907648; v136[51] = v79; LODWORD(v139) = *(_DWORD *)((*(__int64 (__fastcall **)(void *))(*(_QWORD *)v70 + 328LL))(v70) + 4); LODWORD(v140) = *(_DWORD *)((*(__int64 (__fastcall **)(char *))(*(_QWORD *)v79 + 328LL))(v79) + 4); sub_100278250((float *)&__dst, 0.0, 1.0); LODWORD(v132) = __dst; sub_100278250(&v129, 0.0, 1.0); *(float *)&v140 = *(float *)&v140 + 17.0; v82 = *(float *)&v139 * 0.5; *(float *)&v139 = (float)(*(float *)&v139 + *(float *)&v140) * 0.5; if ( LOBYTE(v144) ) v83 = 2.5; else v83 = 0.0; sub_100278250((float *)__s2, *(float *)&v132, v83 + (float)((float)((float)(*(float *)&v139 - v82) + v130) + 2.0)); (*(void (__fastcall **)(void *, _QWORD *))(*(_QWORD *)v70 + 184LL))(v70, __s2); sub_100278250((float *)&__dst, 0.0, -1.0); LODWORD(v132) = __dst; sub_100278250(&v129, 0.0, -1.0); sub_100278250( (float *)__s2, *(float *)&v132 + 1.0, (float)((float)((float)((float)(*(float *)&v140 * 0.5) - *(float *)&v139) + 15.0) + v130) + -1.0); (*(void (__fastcall **)(char *, _QWORD *))(*(_QWORD *)v79 + 184LL))(v79, __s2); (*(void (__fastcall **)(float *, float))(*(_QWORD *)v80 + 160LL))(v80, 1.0); if ( !LOBYTE(v144) ) (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v81 + 160LL))(v81, 1.0); v144 = v80[108]; LODWORD(v140) = (*(float (__fastcall **)(float *))(*(_QWORD *)v80 + 168LL))(v80); LODWORD(v139) = *(_DWORD *)(*(__int64 (__fastcall **)(void *))(*(_QWORD *)v70 + 328LL))(v70); v84 = (*(float (__fastcall **)(void *))(*(_QWORD *)v70 + 168LL))(v70); v85 = *((float *)v79 + 170); if ( v85 <= (float)(*(float *)&v139 * v84) ) { LODWORD(v139) = *(_DWORD *)(*(__int64 (__fastcall **)(void *))(*(_QWORD *)v70 + 328LL))(v70); v86 = (*(float (__fastcall **)(void *))(*(_QWORD *)v70 + 168LL))(v70); v85 = *(float *)&v139 * v86; } sub_100278250( (float *)__s2, (float)((float)(v144 * *(float *)&v140) * 0.5) - (float)((float)((float)((float)(v85 + 5.0) + (float)((float)(v144 * *(float *)&v140) * 0.5)) + 30.0) * 0.5), v137); v87 = v136; (*(void (__fastcall **)(__int64, _QWORD *))(*(_QWORD *)v81 + 184LL))(v81, __s2); v88 = (float *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v81 + 192LL))(v81); v89 = v138; sub_100278250((float *)__s2, *v88 + 30.0, 0.0); (*(void (__fastcall **)(void *, _QWORD *))(*(_QWORD *)v89 + 184LL))(v89, __s2); *((_DWORD *)v87 + 88) = 1118568448; if ( (__s[0] & 1) != 0 ) operator delete(v147); if ( (v124 & 1) != 0 ) operator delete(v126); return v141; }
GD Web Decomp Icon

GD Web Decomp

Raw Source