SdbpGetPathCustomSdbPreRS3

NTSTATUS __stdcall SdbpGetPathCustomSdbPreRS3(_NTSTRSAFE_PWSTR pszDest, UINT64 cchDest, INT64 a3, INT16 *a4){
  _NTSTRSAFE_PCWSTR *v7; 
  int ProcessHostGuestArchitectures; 
  INT8 *v9; 
  UINT64 v10; 
  __int16 v11[2]; 
  __int16 v12; 
  _NTSTRSAFE_PCWSTR pszSrc[2]; 
  int v14; 
  wchar_t v15; 
  __int128 v16[2]; 
  __int16 v17; 

  *(_QWORD *)pszSrc = *(_QWORD *)L"Custom";
  v14 = *(_DWORD *)L"om";
  v15 = aCustom[6];
  v16[0] = *(_OWORD *)L"Custom\\Custom64";
  v16[1] = *(_OWORD *)L"ustom64";
  if( cchDest < 7 )
    return -1073741789;
  v12 = -1;
  **(_WORD **)&pszDest = 0;
  v7 = pszSrc;
  v17 = 0;
  v11[0] = -1;
  ProcessHostGuestArchitectures = SdbpGetProcessHostGuestArchitectures(&v12, v11, a4);
  if( ProcessHostGuestArchitectures >= 0 )
  {
    if( v11[0] == 9 || v11[0] == 12 )
      v7 = (_NTSTRSAFE_PCWSTR *)v16;
    ProcessHostGuestArchitectures = AslPathCombine((_NTSTRSAFE_PCWSTR)v7);
    if( ProcessHostGuestArchitectures >= 0 )
      return SdbpGetPathAppPatch(pszDest, cchDest);
    v9 = (INT8 *)"AslPathCombine failed [%x]";
    v10 = 1161i64;
  }
  else
  {
    v9 = (INT8 *)"SdbpGetProcessHostGuestArchitectures failed [%x]";
    v10 = 1147i64;
  }
  AslLogCallPrintf(1ui64, (INT8 *)"SdbpGetPathCustomSdbPreRS3", v10, v9);
  return ProcessHostGuestArchitectures;
}

Referenced by:

No references.