// // sub_1005C92C0 from 0x1005c92c0 to 0x1005c98d8 (1560 bytes) // // 1 xrefs: // > processGJGameStateFields @ 0x1005e1976 // // 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:49 +0000 // void __fastcall sub_1005C92C0(__int64 *a1, _QWORD *a2) { _QWORD *v2; // r13 __int64 v3; // rax __int64 v4; // rcx __int64 v5; // rax void **v6; // r12 int v7; // r15d char *v8; // rdi const char *v9; // rdi _QWORD *v10; // rdi _QWORD *v11; // rbx __int64 v12; // rsi signed int v13; // r14d void **v14; // rbx char *v15; // rdi const char *v16; // rdi signed int v17; // r15d signed int v18; // r14d __int64 v19; // rax char *v20; // rdi int v21; // eax __int64 v22; // rax char *v23; // rdi const char *v24; // rdi char *v25; // rdi const char *v26; // rdi float v27; // xmm0_4 float v28; // xmm0_4 __int64 v29; // rax char *v30; // rdi const char *v31; // rdi char *v32; // rdi const char *v33; // rdi float v34; // xmm0_4 float v35; // xmm0_4 __int64 v36; // rax signed int v37; // r14d signed int v38; // r13d char *v39; // rdi const char *v40; // rdi int v41; // r15d int v42; // r13d signed int v43; // r15d float v44; // xmm0_4 char *v45; // rdi const char *v46; // rdi float v47; // xmm0_4 char *v48; // rdi const char *v49; // rdi int v50; // eax char *v51; // rdi const char *v52; // rdi int v53; // eax char *v54; // rdi const char *v55; // rdi int v56; // r15d int v57; // eax void **v58; // rbx void *v59; // rdi int *v60; // [rsp+8h] [rbp-98h] BYREF std::string v61; // [rsp+10h] [rbp-90h] BYREF _QWORD *v62; // [rsp+28h] [rbp-78h] int v63; // [rsp+34h] [rbp-6Ch] BYREF char v64; // [rsp+3Bh] [rbp-65h] BYREF int v65; // [rsp+3Ch] [rbp-64h] void *__p; // [rsp+40h] [rbp-60h] BYREF void **v67; // [rsp+48h] [rbp-58h] signed int v68; // [rsp+58h] [rbp-48h] __int64 v69; // [rsp+60h] [rbp-40h] __int64 v70; // [rsp+68h] [rbp-38h] float v71; // [rsp+74h] [rbp-2Ch] v2 = a2; memset(&v61, 0, sizeof(v61)); 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=(&v61, (const std::string *)(v4 + 24 * v3)); } sub_1005C67B0((__int64)&__p, (unsigned __int8 *)&v61, "|", a1[4]); v5 = v68; v6 = (void **)__p; v7 = 0; if ( v68 < (int)(-1431655765 * ((unsigned __int64)((char *)v67 - (_BYTE *)__p) >> 3)) ) { ++v68; v8 = (char *)__p + 24 * v5; if ( (*v8 & 1) != 0 ) v9 = *((const char **)v8 + 2); else v9 = v8 + 1; v7 = atoi(v9); } if ( a2[3] ) { v10 = (_QWORD *)a2[2]; if ( v10 ) { do { v11 = (_QWORD *)*v10; operator delete(v10); v10 = v11; } while ( v11 ); } a2[2] = 0; v12 = a2[1]; if ( v12 ) __bzero(*v2, 8 * v12); v2[3] = 0; v6 = (void **)__p; } if ( v7 > 0 ) { v13 = v68; v14 = v67; v62 = v2; while ( 1 ) { v63 = 0; if ( v13 < (int)(-1431655765 * ((unsigned __int64)((char *)v14 - (char *)v6) >> 3)) ) { v68 = v13 + 1; v15 = (char *)&v6[3 * v13]; if ( (*v15 & 1) != 0 ) v16 = *((const char **)v15 + 2); else v16 = v15 + 1; v63 = atoi(v16); } v65 = v7; v60 = &v63; v70 = sub_1005FAFB0(v2, &v63, &unk_100A0D5BE, &v60, &v64); v17 = v68; v6 = (void **)__p; v14 = v67; v18 = -1431655765 * ((unsigned __int64)((char *)v67 - (_BYTE *)__p) >> 3); if ( v68 < v18 ) { v19 = v68; v17 = ++v68; v20 = (char *)__p + 24 * v19; if ( (*v20 & 1) != 0 ) { v21 = atoi(*((const char **)v20 + 2)); if ( !v21 ) goto LABEL_32; } else { v21 = atoi(v20 + 1); if ( !v21 ) goto LABEL_32; } if ( v69 ) { v22 = sub_1001446A0(v69, v21); v17 = v68; v6 = (void **)__p; v14 = v67; v18 = -1431655765 * ((unsigned __int64)((char *)v67 - (_BYTE *)__p) >> 3); *(_QWORD *)(v70 + 24) = v22; if ( v17 >= v18 ) goto LABEL_29; goto LABEL_33; } } LABEL_32: *(_QWORD *)(v70 + 24) = 0; if ( v17 >= v18 ) { LABEL_29: v71 = 0.0; if ( v17 >= v18 ) goto LABEL_37; goto LABEL_30; } LABEL_33: v68 = v17 + 1; v25 = (char *)&v6[3 * v17]; if ( (*v25 & 1) != 0 ) v26 = *((const char **)v25 + 2); else v26 = v25 + 1; v27 = strtod(v26, nullptr); v71 = v27; v17 = v68; v6 = (void **)__p; v14 = v67; if ( v68 >= (int)(-1431655765 * ((unsigned __int64)((char *)v67 - (_BYTE *)__p) >> 3)) ) { LABEL_37: v28 = 0.0; goto LABEL_40; } LABEL_30: v68 = v17 + 1; v23 = (char *)&v6[3 * v17]; if ( (*v23 & 1) != 0 ) v24 = *((const char **)v23 + 2); else v24 = v23 + 1; v28 = strtod(v24, nullptr); v17 = v68; v6 = (void **)__p; v14 = v67; LABEL_40: v29 = v70; *(float *)(v70 + 32) = v71; *(float *)(v29 + 36) = v28; if ( v17 >= (int)(-1431655765 * ((unsigned __int64)((char *)v14 - (char *)v6) >> 3)) ) { v71 = 0.0; LABEL_48: v35 = 0.0; goto LABEL_51; } v68 = v17 + 1; v30 = (char *)&v6[3 * v17]; if ( (*v30 & 1) != 0 ) v31 = *((const char **)v30 + 2); else v31 = v30 + 1; v34 = strtod(v31, nullptr); v71 = v34; v17 = v68; v6 = (void **)__p; v14 = v67; if ( v68 >= (int)(-1431655765 * ((unsigned __int64)((char *)v67 - (_BYTE *)__p) >> 3)) ) goto LABEL_48; ++v68; v32 = (char *)__p + 24 * v17; if ( (*v32 & 1) != 0 ) v33 = *((const char **)v32 + 2); else v33 = v32 + 1; v35 = strtod(v33, nullptr); v17 = v68; v6 = (void **)__p; v14 = v67; LABEL_51: v36 = v70; *(float *)(v70 + 40) = v71; *(float *)(v36 + 44) = v35; v37 = -1431655765 * ((unsigned __int64)((char *)v14 - (char *)v6) >> 3); if ( v17 >= v37 ) { v38 = v17; goto LABEL_55; } v38 = v17 + 1; v68 = v17 + 1; v39 = (char *)&v6[3 * v17]; if ( (*v39 & 1) != 0 ) v40 = *((const char **)v39 + 2); else v40 = v39 + 1; v44 = atof(v40); *(float *)(v70 + 48) = v44; if ( v38 >= v37 ) { LABEL_55: v41 = v38; if ( v38 < v37 ) goto LABEL_65; LABEL_56: v42 = v41; if ( v41 < v37 ) goto LABEL_69; LABEL_57: v43 = v42; v2 = v62; if ( v43 >= v37 ) goto LABEL_16; LABEL_73: v13 = v43 + 1; v68 = v43 + 1; v54 = (char *)&v6[3 * v43]; if ( (*v54 & 1) != 0 ) v55 = *((const char **)v54 + 2); else v55 = v54 + 1; v56 = v65; v57 = atoi(v55); *(_DWORD *)(v70 + 64) = v57; v7 = v56 - 1; if ( !v7 ) break; } else { v41 = v17 + 2; v68 = v38 + 1; v45 = (char *)&v6[3 * v38]; if ( (*v45 & 1) != 0 ) v46 = *((const char **)v45 + 2); else v46 = v45 + 1; v47 = atof(v46); *(float *)(v70 + 52) = v47; if ( v41 >= v37 ) goto LABEL_56; LABEL_65: v42 = v41 + 1; v68 = v41 + 1; v48 = (char *)&v6[3 * v41]; if ( (*v48 & 1) != 0 ) v49 = *((const char **)v48 + 2); else v49 = v48 + 1; v50 = atoi(v49); *(_DWORD *)(v70 + 56) = v50; if ( v42 >= v37 ) goto LABEL_57; LABEL_69: v43 = v42 + 1; v68 = v42 + 1; v51 = (char *)&v6[3 * v42]; if ( (*v51 & 1) != 0 ) v52 = *((const char **)v51 + 2); else v52 = v51 + 1; v2 = v62; v53 = atoi(v52); *(_DWORD *)(v70 + 60) = v53; if ( v43 < v37 ) goto LABEL_73; LABEL_16: v13 = v43; v7 = v65 - 1; if ( v65 == 1 ) break; } } } if ( v6 ) { v58 = v67; v59 = v6; if ( v67 != v6 ) { do { if ( (*(_BYTE *)(v58 - 3) & 1) != 0 ) operator delete(*(v58 - 1)); v58 -= 3; } while ( v58 != v6 ); v59 = __p; } v67 = v6; operator delete(v59); } if ( (*(_BYTE *)&v61.__r_.__value_.__s.0 & 1) != 0 ) operator delete(v61.__r_.__value_.__l.__data_); }
GD Web Decomp Icon

GD Web Decomp

Raw Source