// // sub_1005C79F0 from 0x1005c79f0 to 0x1005c7ca6 (694 bytes) // // 1 xrefs: // > PlayerCheckpoint::processState @ 0x1005dc6d2 // // 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_1005C79F0(__int64 *a1, __int64 a2) { __int64 v2; // rax __int64 v3; // rcx __int64 v4; // rcx int v5; // r15d char *v6; // rdi const char *v7; // rdi int v8; // r14d int v9; // eax char *v10; // rbx signed int v11; // r13d __int64 v12; // rax signed int v13; // r12d char *v14; // rdi int v15; // r15d char *v16; // rax _BYTE *v17; // rax _QWORD *v18; // r13 __int64 v19; // rax _QWORD *v20; // rbx int v21; // eax _DWORD *v22; // r12 __int64 v23; // rax void **v24; // rbx void **v25; // r14 void *v26; // rdi std::string v27; // [rsp+10h] [rbp-70h] BYREF void *__p; // [rsp+28h] [rbp-58h] BYREF void **v29; // [rsp+30h] [rbp-50h] signed int v30; // [rsp+40h] [rbp-40h] int v31; // [rsp+50h] [rbp-30h] int v32; // [rsp+54h] [rbp-2Ch] memset(&v27, 0, sizeof(v27)); 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=(&v27, (const std::string *)(v3 + 24 * v2)); } sub_1005C67B0((__int64)&__p, (unsigned __int8 *)&v27, "|", a1[4]); v4 = v30; v5 = 0; if ( v30 < (int)(-1431655765 * ((unsigned __int64)((char *)v29 - (_BYTE *)__p) >> 3)) ) { ++v30; v6 = (char *)__p + 24 * v4; if ( (*v6 & 1) != 0 ) v7 = *((const char **)v6 + 2); else v7 = v6 + 1; v5 = atoi(v7); } sub_10001ADF0(a2, *(_QWORD **)(a2 + 8)); *(_QWORD *)a2 = a2 + 8; *(_OWORD *)(a2 + 8) = 0; if ( v5 > 0 ) { v8 = 0; v31 = v5; do { v10 = (char *)__p; v11 = -1431655765 * ((unsigned __int64)((char *)v29 - (_BYTE *)__p) >> 3); if ( v30 >= v11 ) { v15 = 0; goto LABEL_24; } v12 = v30; v13 = ++v30; v14 = (char *)__p + 24 * v12; if ( (*v14 & 1) != 0 ) { v15 = atoi(*((const char **)v14 + 2)); if ( v13 >= v11 ) goto LABEL_24; } else { v15 = atoi(v14 + 1); if ( v13 >= v11 ) goto LABEL_24; } v30 = v13 + 1; v16 = &v10[24 * v13]; if ( (*v16 & 1) != 0 ) { if ( *((_QWORD *)v16 + 1) == 1 ) { v17 = *((_BYTE **)v16 + 2); goto LABEL_23; } } else if ( *v16 == 2 ) { v17 = v16 + 1; LABEL_23: LOBYTE(v17) = *v17 == 49; v32 = (int)v17; goto LABEL_25; } LABEL_24: v32 = 0; LABEL_25: v18 = (_QWORD *)(a2 + 8); while ( 1 ) { v19 = *v18; v20 = v18; if ( !*v18 ) break; while ( 1 ) { v18 = (_QWORD *)v19; v21 = *(_DWORD *)(v19 + 28); if ( v15 < v21 ) break; if ( v15 <= v21 ) { v22 = v18; goto LABEL_11; } v19 = v18[1]; if ( !v19 ) { v20 = v18 + 1; goto LABEL_31; } } } LABEL_31: v22 = operator new(0x28u); v22[7] = v15; *((_BYTE *)v22 + 32) = 0; *(_OWORD *)v22 = 0; *((_QWORD *)v22 + 2) = v18; *v20 = v22; v23 = **(_QWORD **)a2; if ( v23 ) *(_QWORD *)a2 = v23; sub_10001B680(*(__int64 **)(a2 + 8), (__int64 *)v22); ++*(_QWORD *)(a2 + 16); LABEL_11: v9 = v31; *((_BYTE *)v22 + 32) = v32; ++v8; } while ( v8 != v9 ); } v24 = (void **)__p; if ( __p ) { v25 = v29; v26 = __p; if ( v29 != __p ) { do { if ( (*(_BYTE *)(v25 - 3) & 1) != 0 ) operator delete(*(v25 - 1)); v25 -= 3; } while ( v25 != v24 ); v26 = __p; } v29 = v24; operator delete(v26); } if ( (*(_BYTE *)&v27.__r_.__value_.__s.0 & 1) != 0 ) operator delete(v27.__r_.__value_.__l.__data_); }
GD Web Decomp Icon

GD Web Decomp

Raw Source