Function at 0x10005d10
Capabilities:
Inspect section memory permissions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
cmp byte [0x100b99cc], 0
push ebx
push esi
push edi
jne 0x10005fe9
xor eax, eax
lea edi, [ebp - 0x18]
xor ecx, ecx
push ebx
cpuid
mov esi, ebx
pop ebx
mov dword [edi], eax
mov dword [edi + 4], esi
mov dword [edi + 8], ecx
xor ecx, ecx
mov dword [edi + 0xc], edx
mov eax, dword [ebp - 0x18]
mov dword [ebp - 8], eax
mov eax, 0x80000000
push ebx
cpuid
mov esi, ebx
pop ebx
mov dword [edi], eax
mov dword [edi + 4], esi
mov dword [edi + 8], ecx
xor ecx, ecx
mov dword [edi + 0xc], edx
mov eax, dword [ebp - 0x18]
mov dword [ebp - 4], eax
mov eax, 1
push ebx
cpuid
mov esi, ebx
pop ebx
mov dword [edi], eax
mov dword [edi + 4], esi
mov dword [edi + 8], ecx
mov dword [edi + 0xc], edx
mov eax, dword [ebp - 0xc]
mov edi, dword [0x100b99c0]
test al, 0x10
je 0x10005d90
or edi, 1
mov dword [0x100b99c0], edi
test eax, 0x800000
je 0x10005da0
or edi, 2
mov dword [0x100b99c0], edi
test eax, 0x2000000
je 0x10005db0
or edi, 4
mov dword [0x100b99c0], edi
test eax, 0x4000000
je 0x10005dc0
or edi, 8
mov dword [0x100b99c0], edi
test eax, 0x10000000
je 0x10005dd0
or edi, 0x40
mov dword [0x100b99c0], edi
mov eax, dword [ebp - 0x10]
test al, 1
je 0x10005de3
or edi, 0x100
mov dword [0x100b99c0], edi
test eax, 0x200
je 0x10005df6
or edi, 0x200
mov dword [0x100b99c0], edi
test eax, 0x80000
je 0x10005e09
or edi, 0x1000
mov dword [0x100b99c0], edi
test eax, 0x100000
je 0x10005e1c
or edi, 0x2000
mov dword [0x100b99c0], edi
test eax, 0x2000000
je 0x10005e2f
or edi, 0x4000
mov dword [0x100b99c0], edi
test eax, 0x10000000
je 0x10005e42
or edi, 0x8000
mov dword [0x100b99c0], edi
cmp dword [ebp - 4], 0x80000000
jb 0x10005fef
mov eax, 0x80000001
xor ecx, ecx
push ebx
cpuid
mov esi, ebx
pop ebx
lea ebx, [ebp - 0x18]
mov dword [ebx], eax
mov dword [ebx + 4], esi
mov dword [ebx + 8], ecx
mov dword [ebx + 0xc], edx
mov eax, dword [ebp - 0xc]
test eax, eax
jns 0x10005e7a
or edi, 0x10
mov dword [0x100b99c0], edi
test eax, 0x40000000
je 0x10005e8a
or edi, 0x20
mov dword [0x100b99c0], edi
test eax, 0x20000000
je 0x10005e9d
or edi, 0x80
mov dword [0x100b99c0], edi
mov eax, dword [ebp - 0x10]
test al, 0x40
je 0x10005eb0
or edi, 0x400
mov dword [0x100b99c0], edi
test eax, 0x10000
je 0x10005ec3
or edi, 0x800
mov dword [0x100b99c0], edi
cmp dword [ebp - 8], 7
jl 0x10005fef
mov eax, 7
xor ecx, ecx
push ebx
cpuid
mov esi, ebx
pop ebx
lea ebx, [ebp - 0x18]
mov dword [ebx], eax
mov dword [ebx + 4], esi
mov dword [ebx + 8], ecx
mov dword [ebx + 0xc], edx
mov eax, dword [ebp - 0x14]
test al, 0x20
je 0x10005efb
or edi, 0x10000
mov dword [0x100b99c0], edi
test eax, 0x10000
je 0x10005f0e
or edi, 0x20000
mov dword [0x100b99c0], edi
test eax, 0x20000
je 0x10005f21
or edi, 0x40000
mov dword [0x100b99c0], edi
test eax, 0x200000
je 0x10005f34
or edi, 0x80000
mov dword [0x100b99c0], edi
test eax, 0x4000000
je 0x10005f47
or edi, 0x100000
mov dword [0x100b99c0], edi
test eax, 0x8000000
je 0x10005f5a
or edi, 0x200000
mov dword [0x100b99c0], edi
test eax, 0x10000000
je 0x10005f6d
or edi, 0x400000
mov dword [0x100b99c0], edi
test eax, 0x40000000
je 0x10005f80
or edi, 0x800000
mov dword [0x100b99c0], edi
test eax, eax
jns 0x10005f90
or edi, 0x1000000
mov dword [0x100b99c0], edi
mov eax, dword [ebp - 0x10]
test al, 2
je 0x10005fa3
or edi, 0x2000000
mov dword [0x100b99c0], edi
test eax, 0x4000
je 0x10005fb6
or edi, 0x4000000
mov dword [0x100b99c0], edi
mov eax, dword [ebp - 0xc]
test al, 4
je 0x10005fc9
or edi, 0x8000000
mov dword [0x100b99c0], edi
test al, 8
je 0x10005fd9
or edi, 0x10000000
mov dword [0x100b99c0], edi
mov eax, edi
mov byte [0x100b99cc], 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, dword [0x100b99c0]
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret