// // sub_10058BE58 from 0x10058be58 to 0x10058c008 (432 bytes) // // 7 xrefs: // > sub_10058A924 @ 0x10058a988 // > sub_1005D475C @ 0x1005d4804 // > sub_1005EE750 @ 0x1005ee774 // > sub_1005F385C @ 0x1005f3920 // > sub_1006028A4 @ 0x1006028f8 // > sub_100605C30 @ 0x100605c90 // > sub_10060FFB4 @ 0x10060ffe4 // // 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 // _QWORD *__fastcall sub_10058BE58(__int64 a1) { _QWORD *v2; // x19 _BYTE *v3; // x0 void *v4; // x20 const void *v5; // x1 void *v6; // x22 const char *v7; // x0 size_t v8; // x0 int v9; // w23 _BYTE *v10; // x0 size_t v11; // x0 int v12; // w23 _BYTE *v13; // x0 _BYTE *v14; // x24 if ( !a1 ) return nullptr; if ( (*(_BYTE *)(a1 + 32) & 1) != 0 ) { v2 = (_QWORD *)sub_1005EE678(); if ( v2 ) { v3 = sub_100588710(*(unsigned int *)(a1 + 20), (__int64)"obj_lib.c", 83); v4 = v3; if ( v3 ) { v5 = *(const void **)(a1 + 24); if ( v5 ) memcpy(v3, v5, *(int *)(a1 + 20)); v6 = nullptr; v2[3] = v4; *((_DWORD *)v2 + 5) = *(_DWORD *)(a1 + 20); *((_DWORD *)v2 + 4) = *(_DWORD *)(a1 + 16); *v2 = 0; v2[1] = 0; v7 = *(const char **)(a1 + 8); if ( !v7 ) goto LABEL_11; v8 = strlen(v7); v9 = v8 + 1; v10 = sub_100588710(v8 + 1, (__int64)"obj_lib.c", 95); v6 = v10; if ( v10 ) { memcpy(v10, *(const void **)(a1 + 8), v9); v2[1] = v6; LABEL_11: if ( !*(_QWORD *)a1 ) { LABEL_14: *((_DWORD *)v2 + 8) = *(_DWORD *)(a1 + 32) | 0xD; return v2; } v11 = strlen(*(const char **)a1); v12 = v11 + 1; v13 = sub_100588710(v11 + 1, (__int64)"obj_lib.c", 104); v14 = v13; if ( v13 ) { memcpy(v13, *(const void **)a1, v12); *v2 = v14; goto LABEL_14; } sub_1005E0E48(8, 101, 65, "obj_lib.c", 115); if ( v6 ) sub_100588C44(v6); goto LABEL_17; } } sub_1005E0E48(8, 101, 65, "obj_lib.c", 115); LABEL_17: if ( v4 ) sub_100588C44(v4); sub_100588C44(v2); return nullptr; } sub_1005E0E48(8, 101, 13, "obj_lib.c", 80); return nullptr; } return (_QWORD *)a1; }
GD Web Decomp Icon

GD Web Decomp

Raw Source