Function at 0x40f266
Capabilities:
Check os version

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
call dword [sym.imp.HAL.dll_KeGetCurrentIrql]
cmp al, 1
mov byte [ebp - 1], al
jb 0x41320b
mov ecx, dword [ebp + 0x14]
push ebx
mov ebx, dword [ebp + 8]
mov eax, 0x10001
push esi
mov esi, dword [ebp + 0x10]
and ecx, eax
cmp ecx, eax
push edi
mov edi, 0x20000
jne 0x40f333
mov eax, dword [esi + 0xc0]
mov edx, dword [ebx + 0x70]
mov ecx, eax
and ecx, edi
and edx, edi
cmp ecx, edx
setne byte [ebp + 0xb]
cmp byte [ebp + 0x18], 0
je 0x4200f3
test ecx, ecx
jne 0x446bd1
and eax, 0x3e0dd7
or eax, 0x200
mov dword [ebx + 0x70], eax
mov ecx, dword [esi + 0xb4]
mov dword [ebx + 0x60], ecx
mov ecx, dword [esi + 0xb8]
mov dword [ebx + 0x68], ecx
test edi, eax
mov eax, dword [esi + 0xbc]
jne 0x446bef
and eax, 0xfffc
cmp byte [ebp + 0x18], 0
je 0x40f2ff
or eax, 3
cmp byte [ebp + 0x18], 0
mov dword [ebx + 0x6c], eax
je 0x40f311
cmp eax, 8
jb 0x446bf7
push dword [esi + 0xc8]
push ebx
call fcn.0040f4b9
push dword [esi + 0xc4]
push ebx
call fcn.0040f21f
cmp byte [ebp + 0xb], 0
jne 0x41f3b4
mov ecx, dword [ebp + 0x14]
mov eax, 0x10004
and ecx, eax
cmp ecx, eax
jne 0x40f37d
test dword [ebx + 0x70], edi
jne 0x446c03
mov eax, dword [ebx + 0x6c]
test al, 1
je 0x4200cd
cmp eax, 0x1b
mov ecx, dword [esi + 0x90]
mov dword [ebx + 0x50], ecx
mov ecx, dword [esi + 0x94]
mov dword [ebx + 0x34], ecx
mov ecx, dword [esi + 0x98]
mov dword [ebx + 0x38], ecx
jne 0x446c3d
and dword [ebx + 0x30], 0
mov ecx, dword [ebp + 0x14]
mov eax, 0x10002
and ecx, eax
cmp ecx, eax
jne 0x40f3c1
mov eax, dword [esi + 0x9c]
mov dword [ebx + 0x54], eax
mov eax, dword [esi + 0xa0]
mov dword [ebx + 0x58], eax
mov eax, dword [esi + 0xa4]
mov dword [ebx + 0x5c], eax
mov eax, dword [esi + 0xac]
mov dword [ebx + 0x40], eax
mov eax, dword [esi + 0xa8]
mov dword [ebx + 0x3c], eax
mov eax, dword [esi + 0xb0]
mov dword [ebx + 0x44], eax
mov ecx, dword [ebp + 0x14]
mov eax, 0x10020
and ecx, eax
cmp ecx, eax
je 0x423844
mov ecx, dword [ebp + 0x14]
mov eax, 0x10008
and ecx, eax
cmp ecx, eax
je 0x434158
mov ecx, dword [ebp + 0x14]
mov eax, 0x10010
and ecx, eax
cmp ecx, eax
jne 0x40f46f
mov byte [ebp + 0x17], 0
xor edi, edi
cmp byte [ebp + 0x18], 0
mov eax, dword [edi*4 + 0x40f494]
je 0x42e6ac
mov edx, dword [esi + eax]
cmp dword [sym.ntoskrnl.exe_MmHighestUserAddress], edx
sbb eax, eax
not eax
and eax, edx
test eax, eax
mov ecx, dword [edi*4 + 0x40f6b4]
mov dword [ebx + ecx], eax
jne 0x43424c
inc edi
cmp edi, 3
jbe 0x40f3f9
mov eax, dword [esi + 0x14]
and eax, 0xe00f
mov dword [ebx + 0x28], eax
jne 0x446d3b
mov eax, dword [esi + 0x18]
lea ecx, [ebx + 0x2c]
and eax, 0xffff0155
lea edx, [ebp + 0x17]
mov dword [ecx], eax
call fcn.0040f6d9
cmp byte [ebp + 0x18], 0
je 0x40f46f
mov eax, dword fs:[0x124]
mov cl, byte [ebp + 0x17]
cmp cl, byte [eax + 0x2c]
jne 0x43425a
mov eax, dword fs:[0x124]
cmp byte [eax + 0x30], 0
jne 0x42f926
mov cl, byte [ebp - 1]
cmp cl, 1
pop edi
pop esi
pop ebx
jb 0x413200
leave
ret 0x14
call dword [sym.imp.HAL.dll_KfLowerIrql]
jmp 0x40f48e
mov cl, 1
call dword [sym.imp.HAL.dll_KfRaiseIrql]
mov byte [ebp - 1], al
jmp 0x40f27d
push ebx
call fcn.004051f5
jmp 0x40f333
mov eax, dword [esi + 0x90]
and eax, 0xfffc
cmp byte [ebp + 0x18], 0
jne 0x446c35
push 0x23
mov dword [ebx + 0x50], eax
pop eax
mov dword [ebx + 0x34], eax
mov dword [ebx + 0x38], eax
jmp 0x40f379
and eax, 0x3e0fd7
jmp 0x40f2ce
test byte [ebx + 0x6c], 1
je 0x40f3d3
cmp byte [0x4828c5], 0
lea edi, [ebx + 0x8c]
je 0x40f3d3
push 0
call fcn.0040b821
add esi, 0xcc
mov ecx, 0x80
rep movsd dword es:[edi], dword [esi]
and dword [ebx + 0x298], 0xfffffff1
mov eax, dword [0x4828bc]
and dword [ebx + 0xa4], eax
mov eax, dword fs:[0x124]
mov eax, dword [eax + 0x44]
cmp dword [eax + 0x158], 0
mov esi, dword [ebp + 0x10]
jne 0x446c4b
jmp 0x40f3d3
mov eax, dword [esi + eax]
jmp 0x40f419
or byte [ebx + 0x71], 0x30
jmp 0x40f47f
test byte [ebx + 0x6c], 1
je 0x40f3e5
cmp byte [0x4828c5], 0
je 0x446ce0
push 0
call fcn.0040b821
cmp byte [0x4828c4], 1
jne 0x446c79
mov ax, word [esi + 0x1c]
mov word [ebx + 0x8c], ax
mov ax, word [esi + 0x20]
xor edi, edi
mov word [ebx + 0x8e], ax
mov word [ebx + 0x90], di
mov eax, dword [esi + 0x24]
mov edx, eax
mov ecx, edi
shr edx, cl
and edx, 3
cmp dl, 3
jne 0x446c61
inc edi
inc edi
cmp edi, 0x10
jb 0x4341a5
mov eax, dword [esi + 0x28]
mov dword [ebx + 0x94], eax
mov eax, dword [esi + 0x2c]
and eax, 0xffff
mov dword [ebx + 0x98], eax
mov ax, word [esi + 0x2e]
mov word [ebx + 0x92], ax
mov eax, dword [esi + 0x30]
mov dword [ebx + 0x9c], eax
mov eax, dword [esi + 0x34]
mov dword [ebx + 0xa0], eax
lea edx, [ebx + 0xac]
push 0x20
xor eax, eax
pop ecx
mov edi, edx
rep stosd dword es:[edi], eax
lea eax, [esi + 0x38]
mov dword [ebp + 0x10], 8
jmp 0x434224
mov cl, byte [eax + edi]
mov byte [edx + edi], cl
inc edi
cmp edi, 0xa
jb 0x43420d
add edx, 0x10
add eax, 0xa
dec dword [ebp + 0x10]
je 0x434228
xor edi, edi
jmp 0x43420d
lea ecx, [ebx + 0x298]
and dword [ecx], 0xfffffff1
mov eax, dword fs:[0x124]
mov eax, dword [eax + 0x44]
cmp dword [eax + 0x158], 0
jne 0x446cd0
jmp 0x40f3e5
mov al, 1
mov ecx, edi
shl al, cl
or byte [ebp + 0x17], al
jmp 0x40f42b
call fcn.00405226
jmp 0x40f46f
cmp byte [0x47c114], 0
je 0x40f2c4
and eax, dword [0x479ce8]
or eax, dword [0x479cec]
jmp 0x40f2ce
mov dword [ebx + 0x6c], eax
jmp 0x40f311
mov dword [ebx + 0x6c], 0x1b
jmp 0x40f311
mov eax, dword [esi + 0x90]
mov dword [ebx + 0x84], eax
mov eax, dword [esi + 0x94]
mov dword [ebx + 0x7c], eax
mov eax, dword [esi + 0x98]
mov dword [ebx + 0x80], eax
mov eax, dword [esi + 0x8c]
mov dword [ebx + 0x88], eax
jmp 0x40f37d
or eax, 3
jmp 0x4200e2
mov eax, dword [esi + 0x8c]
mov dword [ebx + 0x30], eax
jmp 0x40f37d
mov eax, esi
mov eax, dword [eax + 0x88]
and eax, 6
or dword [ebx + 0x298], eax
jmp 0x40f3d3
xor edx, edx
shr ecx, 1
inc edx
shl edx, cl
or word [ebx + 0x90], dx
jmp 0x4341b7
mov eax, dword [esi + 0x1c]
mov dword [ebx + 0x8c], eax
mov eax, dword [esi + 0x20]
mov dword [ebx + 0x90], eax
mov eax, dword [esi + 0x24]
mov dword [ebx + 0x94], eax
mov eax, dword [esi + 0x28]
mov dword [ebx + 0x98], eax
mov eax, dword [esi + 0x2c]
mov dword [ebx + 0x9c], eax
mov eax, dword [esi + 0x30]
mov dword [ebx + 0xa0], eax
mov eax, dword [esi + 0x34]
mov dword [ebx + 0xa4], eax
xor eax, eax
mov cl, byte [esi + eax + 0x38]
mov byte [ebx + eax + 0xa8], cl
inc eax
cmp eax, 0x50
jb 0x446cba
jmp 0x434228
mov eax, dword [esi + 0x88]
and eax, 6
or dword [ecx], eax
jmp 0x40f3e5
mov eax, dword fs:[0x124]
mov eax, dword [eax + 0x44]
cmp dword [eax + 0x158], 0
je 0x446d0d
lea eax, [ebx + 0x298]
and dword [eax], 0xfffffff0
mov edx, dword [esi + 0x88]
and edx, 6
movzx edx, byte [edx + 0x584b08]
jmp 0x446d30
lea eax, [esi + 0x1c]
push eax
call fcn.0044195b
test al, al
je 0x40f3e5
lea eax, [ebx + 0x298]
and dword [eax], 0xfffffff5
mov edx, dword [esi + 0x88]
and edx, 2
mov ecx, dword [eax]
or edx, ecx
mov dword [eax], edx
jmp 0x40f3e5
or byte [ebp + 0x17], 0x40
jmp 0x40f442