// // sub_140112430 from 0x140112430 to 0x140112697 (615 bytes) // // 5 xrefs: // > DeathHistogram::setSurvival @ 0x140112ac1 // > DeathHistogram::setSurvival @ 0x140112d8b // > @ 0x1408969f4 // > @ 0x140896a04 // > @ 0x140915e3c // // 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 11:26:50 +0000 // float *__fastcall sub_140112430(float *a1, __int64 a2, float a3, float a4, float a5) { float v5; // xmm6_4 float v8; // xmm7_4 cocos2d::CCDrawNode *v9; // rdi float v10; // xmm8_4 const struct cocos2d::CCPoint *v11; // rax const struct cocos2d::CCPoint *v12; // rbx const struct cocos2d::CCPoint *v13; // rax const struct cocos2d::CCPoint *v14; // rax const struct cocos2d::CCPoint *v15; // rbx const struct cocos2d::CCPoint *v16; // rax struct cocos2d::CCLabelBMFont *v17; // rdi __int64 v18; // rbx __int64 v19; // rax _BYTE v21[8]; // [rsp+30h] [rbp-D8h] BYREF _BYTE v22[8]; // [rsp+38h] [rbp-D0h] BYREF __m128i si128; // [rsp+40h] [rbp-C8h] BYREF __m128i v24; // [rsp+50h] [rbp-B8h] BYREF v5 = a4; v8 = a5 - 4.0; si128 = _mm_load_si128((const __m128i *)&xmmword_140836960); v24 = _mm_load_si128((const __m128i *)&xmmword_140836A10); v9 = (cocos2d::CCDrawNode *)cocos2d::CCDrawNode::create(); v10 = a4; if ( (float)(a5 - 4.0) > a4 ) { do { cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v22, a3, fminf(v10 + 3.0, v8)); v12 = v11; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v21, a3, v10); cocos2d::CCDrawNode::drawSegment(v9, v13, v12, 1.5, (const struct cocos2d::_ccColor4F *)&si128); v10 = v10 + 6.0; } while ( v8 > v10 ); if ( v8 > a4 ) { do { cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v21, a3, fminf(v5 + 3.0, v8)); v15 = v14; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v22, a3, v5); cocos2d::CCDrawNode::drawSegment(v9, v16, v15, 0.5, (const struct cocos2d::_ccColor4F *)&v24); v5 = v5 + 6.0; } while ( v8 > v5 ); } } (*(void (__fastcall **)(__int64, cocos2d::CCDrawNode *))(*(_QWORD *)a2 + 464LL))(a2, v9); v17 = cocos2d::CCLabelBMFont::create("You", (const char *)&qword_140704F78); (*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *))(*(_QWORD *)v17 + 160LL))(v17); v18 = *(_QWORD *)v17; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v21, a3, a5 + 4.0); (*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *, __int64))(v18 + 184))(v17, v19); (*(void (__fastcall **)(__int64, struct cocos2d::CCLabelBMFont *, __int64))(*(_QWORD *)a2 + 456LL))(a2, v17, 5); sub_140110F30(a1, (__int64)v17, a3, a5 + 4.0, 0.31999999); return a1; }
GD Web Decomp Icon

GD Web Decomp

Raw Source