// // DrawGridLayer::loadTimeMarkers from 0x14040a3a0 to 0x14040a689 (745 bytes) // // 4 xrefs: // > EditorUI::onPlayback @ 0x1401b4334 // > LevelEditorLayer::levelSettingsUpdated @ 0x1403ef8bd // > LevelEditorLayer::updateGameObjects @ 0x1403faeb0 // > @ 0x140925cc4 // // 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:31:59 +0000 // // Hidden C++ exception states: #wind=2 void __fastcall DrawGridLayer::loadTimeMarkers(__int64 a1, void **a2) { __int64 v2; // r14 void **v4; // rcx cocos2d::CCObject *v5; // rcx int v6; // ebp int v7; // xmm0_4 cocos2d::CCObject *v8; // rax __int64 v9; // rdx __int64 v10; // rsi const char *v11; // rcx const char *v12; // rcx int v13; // edx float v14; // xmm6_4 cocos2d::CCArray *v15; // rbx struct cocos2d::CCObject *v16; // rax cocos2d::CCArray *v17; // rbx struct cocos2d::CCObject *v18; // rax __int128 v19; // [rsp+50h] [rbp-98h] BYREF __int64 v20; // [rsp+60h] [rbp-88h] int v21; // [rsp+68h] [rbp-80h] BYREF void **v22; // [rsp+70h] [rbp-78h] v2 = (__int64)a2; v22 = a2; v4 = (void **)(a1 + 528); if ( v4 != a2 ) { if ( (unsigned __int64)a2[3] > 0xF ) a2 = (void **)*a2; sub_1400405A0(v4, a2, *(_QWORD *)(v2 + 16)); } v5 = *(cocos2d::CCObject **)(a1 + 568); v6 = 0; if ( v5 ) { cocos2d::CCObject::release(v5); *(_QWORD *)(a1 + 568) = 0; } if ( *(_QWORD *)(a1 + 544) ) { switch ( *(_DWORD *)(*(_QWORD *)(*(_QWORD *)(a1 + 520) + 3528LL) + 332LL) ) { case 1: v7 = *(_DWORD *)(a1 + 612); break; case 2: v7 = *(_DWORD *)(a1 + 620); break; case 3: v7 = *(_DWORD *)(a1 + 624); break; case 4: v7 = *(_DWORD *)(a1 + 628); break; default: v7 = *(_DWORD *)(a1 + 616); break; } *(_DWORD *)(a1 + 608) = v7; v19 = 0; v20 = 0; sub_1401C5360((__int64 *)v2, "~", (__int64 *)&v19); v8 = cocos2d::CCArray::createWithCapacity((__int64)(*((_QWORD *)&v19 + 1) - v19) >> 5); *(_QWORD *)(a1 + 568) = v8; cocos2d::CCObject::retain(v8); v9 = v19; if ( (__int64)(*((_QWORD *)&v19 + 1) - v19) >> 5 ) { v10 = 0; while ( 1 ) { v11 = (const char *)(v10 + v9); if ( *(_QWORD *)(v10 + v9 + 24) > 0xFu ) v11 = *(const char **)v11; atof(v11); v12 = (const char *)(v10 + v19 + 32); if ( *((_QWORD *)v12 + 3) > 0xFu ) v12 = *(const char **)v12; v14 = atof(v12); if ( v14 == 0.0 ) break; if ( v14 >= 0.80000001 ) goto LABEL_26; LABEL_27: v6 += 2; v10 += 64; v9 = v19; if ( v6 >= (unsigned __int64)((__int64)(*((_QWORD *)&v19 + 1) - v19) >> 5) ) goto LABEL_28; } v14 = 0.80000001; LABEL_26: LevelTools::posForTimeInternal( (unsigned int)&v21, v13, *(_QWORD *)(a1 + 592), *(_DWORD *)(*(_QWORD *)(*(_QWORD *)(a1 + 520) + 3528LL) + 332LL), *(_BYTE *)(*(_QWORD *)(*(_QWORD *)(a1 + 520) + 3528LL) + 341LL), 0, 0, *(_QWORD *)(a1 + 520) + 832LL); v15 = *(cocos2d::CCArray **)(a1 + 568); v16 = cocos2d::CCString::createWithFormat("%.02f", v21); cocos2d::CCArray::addObject(v15, v16); v17 = *(cocos2d::CCArray **)(a1 + 568); v18 = cocos2d::CCString::createWithFormat("%.02f", v14); cocos2d::CCArray::addObject(v17, v18); goto LABEL_27; } LABEL_28: sub_1400760C0((__int64 *)&v19); } sub_14003D310(v2); }
GD Web Decomp Icon

GD Web Decomp

Raw Source