// // sub_1005C7620 from 0x1005c7620 to 0x1005c77e5 (453 bytes) // // 2 xrefs: // > PlayerCheckpoint::processState @ 0x1005d8a78 // > processGJGameStateFields @ 0x1005e1985 // // 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:48 +0000 // void __fastcall sub_1005C7620(__int64 *a1, __int64 a2) { __int64 v2; // rax __int64 v3; // rcx __int64 v4; // rax void **v5; // r15 int v6; // r14d char *v7; // rdi const char *v8; // rdi __int64 v9; // r12 unsigned __int64 v10; // rcx signed int v11; // eax signed int v12; // r14d __int64 v13; // r13 const char *v14; // rdi float v15; // xmm0_4 signed int v16; // ebx char *v17; // rdi void **v18; // rbx void *v19; // rdi float *v20; // [rsp+0h] [rbp-80h] void *__p; // [rsp+8h] [rbp-78h] BYREF void **v22; // [rsp+10h] [rbp-70h] signed int v23; // [rsp+20h] [rbp-60h] std::string v24; // [rsp+30h] [rbp-50h] BYREF unsigned int v25[11]; // [rsp+54h] [rbp-2Ch] BYREF memset(&v24, 0, sizeof(v24)); v2 = *((int *)a1 + 6); v3 = *a1; if ( (int)v2 < (int)(-1431655765 * ((unsigned __int64)(a1[1] - *a1) >> 3)) ) { *((_DWORD *)a1 + 6) = v2 + 1; std::string::operator=(&v24, (const std::string *)(v3 + 24 * v2)); } sub_1005C67B0((__int64)&__p, (unsigned __int8 *)&v24, "|", a1[4]); v4 = v23; v5 = (void **)__p; v6 = 0; if ( v23 < (int)(-1431655765 * ((unsigned __int64)((char *)v22 - (_BYTE *)__p) >> 3)) ) { ++v23; v7 = (char *)__p + 24 * v4; if ( (*v7 & 1) != 0 ) v8 = *((const char **)v7 + 2); else v8 = v7 + 1; v6 = atoi(v8); } v9 = v6; v25[0] = 0; v10 = (__int64)(*(_QWORD *)(a2 + 8) - *(_QWORD *)a2) >> 2; if ( v6 <= v10 ) { if ( v6 < v10 ) *(_QWORD *)(a2 + 8) = *(_QWORD *)a2 + 4LL * v6; } else { sub_10040AFE0((void **)a2, v6 - v10, v25); v5 = (void **)__p; } if ( v6 > 0 ) { v11 = v23; v20 = *(float **)a2; v12 = -1431655765 * ((unsigned __int64)((char *)v22 - (char *)v5) >> 3); v13 = 0; do { if ( v11 < v12 ) { v16 = v11 + 1; v23 = v11 + 1; v17 = (char *)&v5[3 * v11]; if ( (*v17 & 1) != 0 ) v14 = *((const char **)v17 + 2); else v14 = v17 + 1; v15 = atof(v14); v20[v13] = v15; v11 = v16; } ++v13; } while ( v9 != v13 ); } if ( v5 ) { v18 = v22; v19 = v5; if ( v22 != v5 ) { do { if ( (*(_BYTE *)(v18 - 3) & 1) != 0 ) operator delete(*(v18 - 1)); v18 -= 3; } while ( v18 != v5 ); v19 = __p; } v22 = v5; operator delete(v19); } if ( (*(_BYTE *)&v24.__r_.__value_.__s.0 & 1) != 0 ) operator delete(v24.__r_.__value_.__l.__data_); }
GD Web Decomp Icon

GD Web Decomp

Raw Source