// // sub_10058BD88 from 0x10058bd88 to 0x10058be48 (192 bytes) // // 1 xrefs: // > sub_10058A924 @ 0x10058a970 // // 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 // __int64 __fastcall sub_10058BD88(int *a1, __int64 a2) { int v3; // w10 __int64 result; // x0 __int64 v5; // x9 __int64 v6; // x8 size_t v7; // x2 int v8; // w10 const char *v9; // x0 const char *v10; // x1 v3 = *a1; result = (unsigned int)(*a1 - *(_DWORD *)a2); if ( v3 == *(_DWORD *)a2 ) { v5 = *((_QWORD *)a1 + 1); v6 = *(_QWORD *)(a2 + 8); switch ( v3 ) { case 0: v7 = *(int *)(v5 + 20); v8 = *(_DWORD *)(v6 + 20); if ( (_DWORD)v7 == v8 ) result = memcmp(*(const void **)(v5 + 24), *(const void **)(v6 + 24), v7); else result = (unsigned int)(v7 - v8); break; case 1: v9 = *(const char **)v5; if ( *(_QWORD *)v5 ) { v10 = *(const char **)v6; if ( *(_QWORD *)v6 ) goto LABEL_9; result = 1; } else { result = 0xFFFFFFFFLL; } break; case 2: v9 = *(const char **)(v5 + 8); if ( v9 ) { v10 = *(const char **)(v6 + 8); if ( v10 ) LABEL_9: result = strcmp(v9, v10); else result = 1; } else { result = 0xFFFFFFFFLL; } break; case 3: result = (unsigned int)(*(_DWORD *)(v5 + 16) - *(_DWORD *)(v6 + 16)); break; default: result = 0; break; } } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source