// // sub_1005D6A60 from 0x1005d6a60 to 0x1005d70c9 (1641 bytes) // // 1 xrefs: // > processEffectManagerState @ 0x1005f2a33 // // 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:32:58 +0000 // void __fastcall sub_1005D6A60(__int64 *a1, float *a2) { float *v2; // r13 __int64 v3; // rax __int64 v4; // rcx __int64 v5; // rcx char *v6; // rdi const char *v7; // rdi _QWORD *v8; // rbx __int64 v9; // rsi __int64 v10; // rcx signed int v11; // r15d char *v12; // r14 signed int v13; // r12d __int64 v14; // rax char *v15; // rdi const char *v16; // rdi int v17; // ebx char *v18; // rdi const char *v19; // rdi char *v20; // r12 __int64 v21; // r14 __int64 v22; // r15 unsigned __int64 v23; // rcx __int64 v24; // r14 void *v25; // rdi __int64 v26; // r12 __int64 v27; // rsi signed int v28; // eax char *v29; // r13 signed int v30; // r14d __int64 v31; // rcx __int64 v32; // rdx char *v33; // rcx char v34; // dl _BYTE *v35; // rcx bool v36; // cl int v37; // r15d char *v38; // rdi const char *v39; // rdi signed int v40; // ebx __int64 v41; // r15 char *v42; // rdi const char *v43; // rdi float v44; // xmm0_4 char *v45; // rdi const char *v46; // rdi char *v47; // rdi const char *v48; // rdi float v49; // xmm0_4 char *v50; // rdi const char *v51; // rdi char *v52; // rdi const char *v53; // rdi char *v54; // rax _BYTE *v55; // rax bool v56; // al void *v57; // rdi _QWORD *v58; // r14 __int64 v59; // r15 __int64 v60; // r12 void *v61; // rdi void **v62; // rbx void **v63; // r14 void *v64; // rdi int *v65; // [rsp+8h] [rbp-A8h] BYREF __int64 *v66; // [rsp+10h] [rbp-A0h] __int64 v67; // [rsp+18h] [rbp-98h] __int64 v68; // [rsp+20h] [rbp-90h] float *v69; // [rsp+28h] [rbp-88h] std::string v70; // [rsp+30h] [rbp-80h] BYREF __int64 v71; // [rsp+48h] [rbp-68h] int v72; // [rsp+54h] [rbp-5Ch] BYREF void *__p; // [rsp+58h] [rbp-58h] BYREF void **v74; // [rsp+60h] [rbp-50h] signed int v75; // [rsp+70h] [rbp-40h] int v76; // [rsp+84h] [rbp-2Ch] v2 = a2; memset(&v70, 0, sizeof(v70)); v3 = *((int *)a1 + 6); v4 = *a1; if ( (int)v3 < (int)(-1431655765 * ((unsigned __int64)(a1[1] - *a1) >> 3)) ) { *((_DWORD *)a1 + 6) = v3 + 1; std::string::operator=(&v70, (const std::string *)(v4 + 24 * v3)); } sub_1005C67B0((__int64)&__p, (unsigned __int8 *)&v70, ":", a1[4]); v5 = v75; v76 = 0; if ( v75 < (int)(-1431655765 * ((unsigned __int64)((char *)v74 - (_BYTE *)__p) >> 3)) ) { ++v75; v6 = (char *)__p + 24 * v5; if ( (*v6 & 1) != 0 ) v7 = *((const char **)v6 + 2); else v7 = v6 + 1; v76 = atoi(v7); } if ( *((_QWORD *)a2 + 3) ) { v8 = *((_QWORD **)a2 + 2); if ( v8 ) { do { v58 = (_QWORD *)*v8; v59 = v8[3]; if ( v59 ) { v60 = v8[4]; v57 = (void *)v8[3]; if ( v60 != v59 ) { do { v61 = *(void **)(v60 - 24); if ( v61 ) { *(_QWORD *)(v60 - 16) = v61; operator delete(v61); } v60 -= 56; } while ( v60 != v59 ); v57 = (void *)v8[3]; } v8[4] = v59; operator delete(v57); } operator delete(v8); v8 = v58; } while ( v58 ); } *((_QWORD *)a2 + 2) = 0; v9 = *((_QWORD *)a2 + 1); if ( v9 ) __bzero(*(_QWORD *)v2, 8 * v9); *((_QWORD *)v2 + 3) = 0; } if ( v76 > 0 ) { v10 = 0; v69 = v2; while ( 1 ) { v72 = 0; v11 = v75; v12 = (char *)__p; v13 = -1431655765 * ((unsigned __int64)((char *)v74 - (_BYTE *)__p) >> 3); v68 = v10; if ( v75 < v13 ) { v14 = v75; v11 = ++v75; v15 = (char *)__p + 24 * v14; if ( (*v15 & 1) != 0 ) v16 = *((const char **)v15 + 2); else v16 = v15 + 1; v72 = atoi(v16); } v17 = 0; if ( v11 < v13 ) { v75 = v11 + 1; v18 = &v12[24 * v11]; if ( (*v18 & 1) != 0 ) v19 = *((const char **)v18 + 2); else v19 = v18 + 1; v17 = atoi(v19); } v65 = &v72; v20 = sub_1002E33F0(v2, &v72, (__int64)&unk_100A0D5BE, &v65); v21 = *((_QWORD *)v20 + 3); v22 = *((_QWORD *)v20 + 4); v23 = 0x6DB6DB6DB6DB6DB7LL * ((v22 - v21) >> 3); v66 = (__int64 *)(v20 + 24); if ( v17 <= v23 ) { if ( v17 < v23 ) { v24 = 56LL * v17 + v21; while ( v22 != v24 ) { v25 = *(void **)(v22 - 24); if ( v25 ) { *(_QWORD *)(v22 - 16) = v25; operator delete(v25); } v22 -= 56; } *((_QWORD *)v20 + 4) = v24; } } else { sub_1005FD8D0(v20 + 24, v17 - v23); } if ( v17 > 0 ) break; LABEL_15: v10 = (unsigned int)(v68 + 1); v2 = v69; if ( (_DWORD)v10 == v76 ) goto LABEL_97; } v67 = 56LL * (unsigned int)v17; v26 = 0; while ( 1 ) { v27 = *v66; v28 = v75; v29 = (char *)__p; v30 = -1431655765 * ((unsigned __int64)((char *)v74 - (_BYTE *)__p) >> 3); if ( v75 >= v30 ) goto LABEL_46; v31 = v75; v28 = ++v75; v32 = 3 * v31; v33 = (char *)__p + 24 * v31; v34 = *((_BYTE *)__p + 8 * v32); if ( (v34 & 1) != 0 ) { if ( *((_QWORD *)v33 + 1) != 1 ) { LABEL_44: v36 = 0; goto LABEL_45; } v35 = *((_BYTE **)v33 + 2); } else { if ( v34 != 2 ) goto LABEL_44; v35 = v33 + 1; } v36 = *v35 == 49; LABEL_45: *(_BYTE *)(v27 + v26) = v36; LABEL_46: v71 = v27; if ( v28 >= v30 ) { v37 = v28; LABEL_50: v40 = v37; v41 = v71; if ( v40 >= v30 ) goto LABEL_51; goto LABEL_65; } v37 = v28 + 1; v75 = v28 + 1; v38 = &v29[24 * v28]; if ( (*v38 & 1) != 0 ) v39 = *((const char **)v38 + 2); else v39 = v38 + 1; v44 = atof(v39); *(float *)(v71 + v26 + 4) = v44; if ( v37 >= v30 ) goto LABEL_50; v40 = v37 + 1; v75 = v37 + 1; v45 = &v29[24 * v37]; if ( (*v45 & 1) != 0 ) v46 = *((const char **)v45 + 2); else v46 = v45 + 1; v41 = v71; v49 = atof(v46); *(float *)(v41 + v26 + 8) = v49; if ( v40 >= v30 ) { LABEL_51: if ( v40 >= v30 ) goto LABEL_72; goto LABEL_52; } LABEL_65: v75 = v40 + 1; v50 = &v29[24 * v40]; if ( (*v50 & 1) != 0 ) v51 = *((const char **)v50 + 2); else v51 = v50 + 1; *(_DWORD *)(v41 + v26 + 12) = atoi(v51); v40 = v75; if ( v75 >= v30 ) { LABEL_72: if ( v40 >= v30 ) goto LABEL_60; goto LABEL_73; } LABEL_52: v75 = v40 + 1; v42 = &v29[24 * v40]; if ( (*v42 & 1) != 0 ) v43 = *((const char **)v42 + 2); else v43 = v42 + 1; *(_DWORD *)(v41 + v26 + 16) = atoi(v43); v40 = v75; if ( v75 >= v30 ) { LABEL_60: if ( v40 < v30 ) goto LABEL_61; goto LABEL_77; } LABEL_73: v75 = v40 + 1; v52 = &v29[24 * v40]; if ( (*v52 & 1) != 0 ) v53 = *((const char **)v52 + 2); else v53 = v52 + 1; *(_DWORD *)(v41 + v26 + 20) = atoi(v53); v40 = v75; if ( v75 < v30 ) { LABEL_61: v75 = v40 + 1; v47 = &v29[24 * v40]; if ( (*v47 & 1) != 0 ) v48 = *((const char **)v47 + 2); else v48 = v47 + 1; *(_DWORD *)(v41 + v26 + 24) = atoi(v48); v40 = v75; if ( v75 >= v30 ) goto LABEL_86; LABEL_78: v75 = v40 + 1; v54 = &v29[24 * v40]; if ( (*v54 & 1) != 0 ) { if ( *((_QWORD *)v54 + 1) != 1 ) goto LABEL_84; v55 = *((_BYTE **)v54 + 2); LABEL_83: v56 = *v55 == 49; } else { if ( *v54 == 2 ) { v55 = v54 + 1; goto LABEL_83; } LABEL_84: v56 = 0; } *(_BYTE *)(v41 + v26 + 28) = v56; goto LABEL_86; } LABEL_77: if ( v40 < v30 ) goto LABEL_78; LABEL_86: sub_1005C7810((__int64 *)&__p, (__int64 *)(v41 + v26 + 32)); v26 += 56; if ( v67 == v26 ) goto LABEL_15; } } LABEL_97: v62 = (void **)__p; if ( __p ) { v63 = v74; v64 = __p; if ( v74 != __p ) { do { if ( (*(_BYTE *)(v63 - 3) & 1) != 0 ) operator delete(*(v63 - 1)); v63 -= 3; } while ( v63 != v62 ); v64 = __p; } v74 = v62; operator delete(v64); } if ( (*(_BYTE *)&v70.__r_.__value_.__s.0 & 1) != 0 ) operator delete(v70.__r_.__value_.__l.__data_); }
GD Web Decomp Icon

GD Web Decomp

Raw Source