INT64 __stdcall SiGetSystemPartition(_FIRMWARE_TYPE FirmwareType, WCHAR **SystemPartition){
INT64 result;
__int64 v5;
UINT64 *v6;
result = SiGetBootDeviceName(1i64, (WCHAR *)L"WindowsSysPartDevice", 0i64, 0i64, 0, SystemPartition);
if( (int)result < 0 )
return SiGetFirmwareSystemPartition((WCHAR *)(unsigned int)FirmwareType, SystemPartition, v5, v6);
return result;
}