Function at 0x5046b0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
xor eax, eax
mov dword [ebp - 0x34], 0
push ebx
xor ecx, ecx
mov dword [ebp - 4], eax
push esi
lea esi, [ebp - 0x34]
mov dword [ebp - 0xc], eax
cpuid
mov dword [esi], eax
mov eax, 1
mov dword [esi + 4], ebx
mov dword [esi + 8], ecx
xor ecx, ecx
mov dword [esi + 0xc], edx
lea esi, [ebp - 0x24]
cpuid
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [esi], eax
push edi
xor edi, edi
mov dword [esi + 4], ebx
cmp dword [ebp - 0x34], 7
mov dword [esi + 8], ecx
mov dword [ebp - 0x10], edi
mov dword [esi + 0xc], edx
jl 0x50472a
lea esi, [ebp - 0x14]
mov eax, 7
xor ecx, ecx
cpuid
mov dword [esi], eax
mov dword [esi + 4], ebx
mov dword [esi + 8], ecx
mov dword [esi + 0xc], edx
mov eax, dword [ebp - 0xc]
mov edi, dword [ebp - 0x10]
mov dword [ebp - 4], eax
mov esi, dword [ebp - 0x18]
mov ebx, dword [ebp - 0x1c]
and esi, 0x4000000
or esi, 0x2000000
mov eax, ebx
and eax, 0x180000
shr esi, 9
or esi, eax
mov eax, ebx
and eax, 0x200
shr esi, 9
or esi, eax
mov eax, edi
and eax, 0x200
shr esi, 3
shl eax, 2
or esi, eax
mov eax, ebx
and eax, 0x1c000000
cmp eax, 0x1c000000
jne 0x5047e8
call fcn.00504690
and eax, 6
cmp al, 6
jne 0x5047e8
mov ecx, ebx
mov eax, edi
and ecx, 0x20000000
and eax, 0x20
or ecx, 0x2000000
shl eax, 5
shr ecx, 0x10
and ebx, 0x1000
or ecx, eax
or ecx, ebx
or esi, ecx
call fcn.00504690
and eax, 0xe0
cmp al, 0xe0
jne 0x5047e8
mov edx, dword [ebp - 4]
mov ecx, edx
and ecx, 2
shr edi, 0xf
shl ecx, 4
mov eax, edx
and eax, 0x40
and edi, 0x18000
or ecx, eax
mov eax, edx
shl ecx, 5
and eax, 0x1000
or ecx, eax
and edx, 0x4100
add ecx, ecx
or ecx, edx
shl ecx, 6
or ecx, edi
or esi, ecx
mov edi, dword [sym.imp.MSVCR120.dll_getenv]
push str.LIBYUV_DISABLE_X86
call edi
add esp, 4
test eax, eax
je 0x504804
cmp byte [eax], 0x30
je 0x504804
and esi, 0xffffffef
push str.LIBYUV_DISABLE_SSE2
call edi
add esp, 4
test eax, eax
je 0x50481a
cmp byte [eax], 0x30
je 0x50481a
and esi, 0xffffffdf
push str.LIBYUV_DISABLE_SSSE3
call edi
add esp, 4
test eax, eax
je 0x504830
cmp byte [eax], 0x30
je 0x504830
and esi, 0xffffffbf
push str.LIBYUV_DISABLE_SSE41
call edi
add esp, 4
test eax, eax
je 0x504849
cmp byte [eax], 0x30
je 0x504849
and esi, 0xffffff7f
push str.LIBYUV_DISABLE_SSE42
call edi
add esp, 4
test eax, eax
je 0x504862
cmp byte [eax], 0x30
je 0x504862
and esi, 0xfffffeff
push str.LIBYUV_DISABLE_AVX
call edi
add esp, 4
test eax, eax
je 0x50487b
cmp byte [eax], 0x30
je 0x50487b
and esi, 0xfffffdff
push str.LIBYUV_DISABLE_AVX2
call edi
add esp, 4
test eax, eax
je 0x504894
cmp byte [eax], 0x30
je 0x504894
and esi, 0xfffffbff
push str.LIBYUV_DISABLE_ERMS
call edi
add esp, 4
test eax, eax
je 0x5048ad
cmp byte [eax], 0x30
je 0x5048ad
and esi, 0xfffff7ff
push str.LIBYUV_DISABLE_FMA3
call edi
add esp, 4
test eax, eax
je 0x5048c6
cmp byte [eax], 0x30
je 0x5048c6
and esi, 0xffffefff
push str.LIBYUV_DISABLE_F16C
call edi
add esp, 4
test eax, eax
je 0x5048df
cmp byte [eax], 0x30
je 0x5048df
and esi, 0xffffdfff
push str.LIBYUV_DISABLE_AVX512BW
call edi
add esp, 4
test eax, eax
je 0x5048f8
cmp byte [eax], 0x30
je 0x5048f8
and esi, 0xffff7fff
push str.LIBYUV_DISABLE_ASM
call edi
add esp, 4
test eax, eax
je 0x50490e
xor ecx, ecx
cmp byte [eax], 0x30
cmovne esi, ecx
or esi, 1
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret