// // timerItemFromString from 0x49c5c0 to 0x49c794 (468 bytes) // // 1 xrefs: // > GJEffectManager::loadPersistentStateString @ 0x49ee3e // // 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 // int __fastcall timerItemFromString(int a1, _DWORD *a2) { int v2; // r2 const char **v4; // r5 double v5; // r0 const char **v6; // r5 double v7; // r0 const char **v8; // r5 double v9; // d7 double v10; // r0 const char **v11; // r5 const char **v12; // r5 const char *v13; // r0 int v14; // r0 int *v15; // r3 int v16; // r9 unsigned int v17; // r0 unsigned int v18; // r8 char *v19; // r10 const void *v20; // r1 signed int v21; // r3 void *v22; // r0 char *v23; // r9 const char **v25; // [sp+0h] [bp-34h] signed int v26; // [sp+Ch] [bp-28h] const char **v27; // [sp+14h] [bp-20h] BYREF int v28; // [sp+18h] [bp-1Ch] int v29; // [sp+1Ch] [bp-18h] const char **v30; // [sp+20h] [bp-14h] BYREF const char **v31; // [sp+24h] [bp-10h] int v32; // [sp+28h] [bp-Ch] int v33; // [sp+2Ch] [bp-8h] v2 = _stack_chk_guard; *(_QWORD *)(a1 + 8) = 0; *(_QWORD *)(a1 + 32) = 0; v33 = v2; *(_DWORD *)a1 = 0; *(_BYTE *)(a1 + 16) = 1; *(_BYTE *)(a1 + 24) = 0; *(_DWORD *)(a1 + 20) = 1065353216; *(_BYTE *)(a1 + 40) = 0; *(_DWORD *)(a1 + 44) = 0; *(_DWORD *)(a1 + 48) = 0; *(_DWORD *)(a1 + 52) = 0; *(_DWORD *)(a1 + 56) = 0; *(_DWORD *)(a1 + 60) = 0; *(_DWORD *)(a1 + 64) = 0; *(_BYTE *)(a1 + 68) = 0; v27 = nullptr; v28 = 0; v29 = 0; sub_49AFF4(a2, "&", (int)&v27); v4 = v27; if ( (unsigned int)(v28 - (_DWORD)v27) > 0x2B ) { *(_DWORD *)a1 = atoi(*v27); v5 = atof((const char *)*(_DWORD *)&byte_4[(_DWORD)v4]); v6 = v27; *(double *)(a1 + 8) = v5; *(_BYTE *)(a1 + 16) = atoi(*(const char **)&byte_8[(_DWORD)v6]) != 0; v7 = atof((const char *)*(_DWORD *)&byte_9[(_DWORD)v6 + 3]); v8 = v27; v9 = v7; LODWORD(v7) = *(_DWORD *)((char *)&word_10 + (_DWORD)v27); *((float *)&v9 + 1) = v9; *(_DWORD *)(a1 + 20) = HIDWORD(v9); *(_BYTE *)(a1 + 24) = atoi((const char *)LODWORD(v7)) != 0; v10 = atof((const char *)*(int *)((char *)&dword_14 + (_DWORD)v8)); v11 = v27; *(double *)(a1 + 32) = v10; *(_BYTE *)(a1 + 40) = atoi(*(const char **)((char *)&dword_18 + (_DWORD)v11)) != 0; *(_DWORD *)(a1 + 44) = atoi(*(const char **)((char *)&dword_1C + (_DWORD)v11)); *(_DWORD *)(a1 + 48) = atoi(*(const char **)((char *)&dword_20 + (_DWORD)v11)); *(_DWORD *)(a1 + 52) = atoi(*(const char **)((char *)&dword_24 + (_DWORD)v11)); *(_BYTE *)(a1 + 68) = atoi(*(const char **)((char *)&word_28 + (_DWORD)v11)) != 0; } if ( (unsigned int)(v28 - (_DWORD)v27) > 0x2F ) { v30 = nullptr; v31 = nullptr; v32 = 0; sub_49AFF4(v27 + 11, "_", (int)&v30); v12 = v30; v25 = v31; while ( v12 != v25 ) { v13 = *v12++; v14 = atoi(v13); v15 = *(int **)(a1 + 60); v16 = v14; if ( v15 == *(int **)(a1 + 64) ) { v17 = std::vector::_M_check_len((_DWORD *)(a1 + 56), 1u, (int)"vector::_M_emplace_back_aux"); v18 = v17; if ( v17 ) v19 = (char *)sub_498916(v17); else v19 = nullptr; v20 = *(const void **)(a1 + 56); v21 = *(_DWORD *)(a1 + 60) - (_DWORD)v20; if ( &v19[v21] ) *(_DWORD *)&v19[v21] = v16; if ( v21 >> 2 ) { v26 = v21; memmove(v19, v20, v21); v21 = v26; } v22 = *(void **)(a1 + 56); v23 = &v19[v21 + 4]; if ( v22 ) operator delete(v22); *(_DWORD *)(a1 + 56) = v19; *(_DWORD *)(a1 + 60) = v23; *(_DWORD *)(a1 + 64) = &v19[4 * v18]; } else { if ( v15 ) *v15 = v14; *(_DWORD *)(a1 + 60) = v15 + 1; } } std::vector::~vector((void **)&v30); } std::vector::~vector((void **)&v27); return a1; }
GD Web Decomp Icon

GD Web Decomp

Raw Source