Function at 0x408760
Capabilities:
Inspect section memory permissions

Disassembly:
push ebx
push edi
sub esp, 0x44
pushfd
pop eax
mov ecx, eax
xor eax, 0x200000
push eax
popfd
pushfd
pop eax
xor eax, ecx
test eax, eax
je 0x408a38
xor eax, eax
cpuid
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x30], edx
mov eax, 1
cpuid
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x40], edx
cmp dword [esp + 0x28], 0x756e6547
jne 0x408a5a
cmp dword [esp + 0x30], 0x49656e69
jne 0x408a5a
cmp dword [esp + 0x2c], 0x6c65746e
jne 0x408a5a
cmp dword [esp + 0x24], 0
je 0x408a5a
movzx eax, byte [esp + 0x35]
and eax, 0xf
cmp eax, 5
je 0x408a22
cmp eax, 6
jne 0x4089fb
mov eax, dword [esp + 0x40]
mov ecx, eax
and ecx, 0x800000
mov ebx, 4
shr ecx, 0x16
shl ebx, cl
test eax, 0x1000000
je 0x408890
mov ecx, eax
mov ebx, 0x20
and ecx, 0x2000000
shr ecx, 0x18
shl ebx, cl
test eax, 0x4000000
mov ecx, dword [esp + 0x3c]
mov eax, ecx
je 0x408837
mov ebx, 0x400
test cl, 1
mov edx, ecx
je 0x408843
mov ebx, 0x800
test ecx, 0x200
je 0x408850
mov ebx, 0x1000
test ecx, 0x400000
je 0x40885d
mov ebx, 0x4000
test ecx, 0x80000
je 0x40886a
mov ebx, 0x2000
and eax, 0x900000
and edx, 0x2000002
cmp eax, 0x900000
jne 0x408881
mov ebx, 0x8000
cmp edx, 0x2000002
jne 0x408894
mov ebx, 0x10000
jmp 0x408894
mov ecx, dword [esp + 0x3c]
test ecx, 0x8000000
je 0x408a5f
mov ecx, 0
xgetbv
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x20]
and eax, 6
cmp eax, 6
jne 0x408a5f
mov edi, dword [esp + 0x3c]
test edi, 0x10000000
je 0x408a5f
and edi, 0x20000000
shr edi, 0xc
add edi, 0x20000
mov eax, 7
xor ecx, ecx
cpuid
mov dword [esp], eax
mov dword [esp + 4], ebx
mov dword [esp + 8], ecx
mov dword [esp + 0xc], edx
mov eax, 0x80000001
cpuid
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], edx
mov eax, dword [esp + 4]
test al, 0x20
je 0x408943
mov edx, eax
and edx, 0x108
cmp edx, 0x108
jne 0x408943
test byte [esp + 0x18], 0x20
je 0x408943
test dword [esp + 0x3c], 0x1000
je 0x408943
test al, 0x10
je 0x408943
test eax, 0x800
je 0x408943
mov edi, 0x200000
mov ebx, eax
and ebx, 0xc0000
cmp ebx, 0xc0000
mov ebx, edi
mov edx, dword [esp + 0x20]
jne 0x40895e
mov ebx, 0x800000
and edx, 0xe0
cmp edx, 0xe0
jne 0x408a5f
mov edx, eax
and edx, 0x4010000
cmp edx, 0x4010000
jne 0x408993
test eax, 0x8000000
je 0x408993
test eax, 0x10000000
je 0x408993
mov ebx, 0x2000000
mov edx, eax
and edx, 0x30000
cmp edx, 0x30000
jne 0x4089b6
test eax, 0x40000000
je 0x4089b6
test eax, 0x80000000
je 0x4089b6
mov ebx, 0x4000000
mov edx, dword [esp + 8]
mov eax, edx
and eax, 0x140
cmp eax, 0x140
jne 0x408a5f
test edx, 0x200
je 0x408a5f
test edx, 0x400
je 0x408a5f
test edx, 0x800
je 0x408a5f
test edx, 0x1000
je 0x408a5f
mov ebx, 0x10000000
jmp 0x408a5f
cmp eax, 0xf
jne 0x408a5a
mov ebx, 0x200
test dword [esp + 0x40], 0x4000000
jne 0x408a14
mov ebx, 1
test byte [esp + 0x3c], 1
je 0x408a5f
mov ebx, 0x800
jmp 0x408a5f
mov ecx, dword [esp + 0x40]
mov ebx, 2
and ecx, 0x800000
shr ecx, 0x16
shl ebx, cl
jmp 0x408a5f
xor eax, eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov ebx, 1
mov dword [0x4848b0], ebx
add esp, 0x44
pop edi
pop ebx
ret