int __cdecl safecrt_mbtowc(wchar_t *DstCh, const char *SrcCh, size_t SrcSizeInBytes){
int result;
int v4;
UINT8 *SourceCharacter;
result = 0;
v4 = (int)SrcCh;
if( SrcCh && *(_QWORD *)&SrcSizeInBytes )
{
if( *SrcCh )
{
SourceCharacter = (UINT8 *)SrcCh;
*DstCh = RtlAnsiCharToUnicodeChar(&SourceCharacter);
return(_DWORD)SourceCharacter - v4;
}
else if( DstCh )
{
*DstCh = 0;
}
}
return result;
}