Newer
Older
AMI-Aptio-BIOS-Reversed / LnvDriverPei / StrLenInternal.c
@Ajax Dong Ajax Dong 2 days ago 786 bytes Init
unsigned int __thiscall StrLenInternal(char *%04d_%02d_%02d_%02d:%02d:%02d_:_%a.)
{
  int v2; // eax
  unsigned int n0xF4240; // eax

  if ( ((unsigned __int8)%04d_%02d_%02d_%02d:%02d:%02d_:_%a. & 1) != 0 )
  {
    v2 = GetDebugService();
    if ( v2 )
      (*(void (__cdecl **)(const char *, int, const char *))(v2 + 4))(
        "e:\\hs\\MdePkg\\Library\\BaseLib\\SafeString.c",
        128,
        "((UINTN) String & 0x00000001) == 0");
  }
  if ( !%04d_%02d_%02d_%02d:%02d:%02d_:_%a. )
    return 0;
  n0xF4240 = 0;
  if ( *(_WORD *)%04d_%02d_%02d_%02d:%02d:%02d_:_%a. )
  {
    while ( n0xF4240 < 0xF4240 )
    {
      ++n0xF4240;
      if ( !*((_WORD *)%04d_%02d_%02d_%02d:%02d:%02d_:_%a. + n0xF4240) )
        return n0xF4240;
    }
    return 1000001;
  }
  return n0xF4240;
}