Function at 0x10036140
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1017ea58
mov eax, dword fs:[0]
push eax
sub esp, 0xc0
mov eax, dword [0x101fd398]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0xc8], 0
push 0x9c
push 0
lea eax, [ebp - 0xc4]
push eax
call fcn.10155d20
add esp, 0xc
push str.Unknown
lea ecx, [ebp - 0x28]
call fcn.10004f90
mov dword [ebp - 4], 0
push 0x9c
push 0
lea ecx, [ebp - 0xc4]
push ecx
call fcn.10155d20
add esp, 0xc
mov dword [ebp - 0xc4], 0x9c
lea edx, [ebp - 0xc4]
push edx
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov dword [ebp - 0xcc], eax
cmp dword [ebp - 0xc0], 5
jne 0x1003621c
cmp dword [ebp - 0xbc], 1
jne 0x1003621c
push str.WindowsXP
mov ecx, dword [ebp + 8]
call fcn.10004f90
mov eax, dword [ebp - 0xc8]
or eax, 1
mov dword [ebp - 0xc8], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.10004780
mov eax, dword [ebp + 8]
jmp 0x100366b1
cmp dword [ebp - 0xc0], 5
jne 0x10036266
cmp dword [ebp - 0xbc], 0
jne 0x10036266
push str.Windows2000
mov ecx, dword [ebp + 8]
call fcn.10004f90
mov ecx, dword [ebp - 0xc8]
or ecx, 1
mov dword [ebp - 0xc8], ecx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.10004780
mov eax, dword [ebp + 8]
jmp 0x100366b1
cmp dword [ebp - 0xc0], 5
jne 0x100362bc
cmp dword [ebp - 0xbc], 2
jne 0x100362bc
push 0x59
call dword [sym.imp.USER32.dll_GetSystemMetrics]
test eax, eax
jne 0x100362bc
push str.Window2003
mov ecx, dword [ebp + 8]
call fcn.10004f90
mov edx, dword [ebp - 0xc8]
or edx, 1
mov dword [ebp - 0xc8], edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.10004780
mov eax, dword [ebp + 8]
jmp 0x100366b1
cmp dword [ebp - 0xc0], 5
jne 0x10036312
cmp dword [ebp - 0xbc], 2
jne 0x10036312
push 0x59
call dword [sym.imp.USER32.dll_GetSystemMetrics]
test eax, eax
je 0x10036312
push str.Windows2003R2
mov ecx, dword [ebp + 8]
call fcn.10004f90
mov eax, dword [ebp - 0xc8]
or eax, 1
mov dword [ebp - 0xc8], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.10004780
mov eax, dword [ebp + 8]
jmp 0x100366b1
cmp dword [ebp - 0xc0], 6
jne 0x10036365
cmp dword [ebp - 0xbc], 0
jne 0x10036365
movzx ecx, byte [ebp - 0x2a]
cmp ecx, 1
jne 0x10036365
push 0x101df0fd
mov ecx, dword [ebp + 8]
call fcn.10004f90
mov edx, dword [ebp - 0xc8]
or edx, 1
mov dword [ebp - 0xc8], edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.10004780
mov eax, dword [ebp + 8]
jmp 0x100366b1
cmp dword [ebp - 0xc0], 6
jne 0x100363b8
cmp dword [ebp - 0xbc], 0
jne 0x100363b8
movzx eax, byte [ebp - 0x2a]
cmp eax, 1
je 0x100363b8
push str.Windows2008
mov ecx, dword [ebp + 8]
call fcn.10004f90
mov ecx, dword [ebp - 0xc8]
or ecx, 1
mov dword [ebp - 0xc8], ecx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.10004780
mov eax, dword [ebp + 8]
jmp 0x100366b1
cmp dword [ebp - 0xc0], 6
jne 0x1003640b
cmp dword [ebp - 0xbc], 1
jne 0x1003640b
movzx edx, byte [ebp - 0x2a]
cmp edx, 1
je 0x1003640b
push str.Windows2008R2
mov ecx, dword [ebp + 8]
call fcn.10004f90
mov eax, dword [ebp - 0xc8]
or eax, 1
mov dword [ebp - 0xc8], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.10004780
mov eax, dword [ebp + 8]
jmp 0x100366b1
cmp dword [ebp - 0xc0], 6
jne 0x1003645e
cmp dword [ebp - 0xbc], 1
jne 0x1003645e
movzx ecx, byte [ebp - 0x2a]
cmp ecx, 1
jne 0x1003645e
push str.Windows7
mov ecx, dword [ebp + 8]
call fcn.10004f90
mov edx, dword [ebp - 0xc8]
or edx, 1
mov dword [ebp - 0xc8], edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.10004780
mov eax, dword [ebp + 8]
jmp 0x100366b1
cmp dword [ebp - 0xc0], 6
jne 0x100364b1
cmp dword [ebp - 0xbc], 2
jne 0x100364b1
movzx eax, byte [ebp - 0x2a]
cmp eax, 1
je 0x100364b1
push str.Windows2012
mov ecx, dword [ebp + 8]
call fcn.10004f90
mov ecx, dword [ebp - 0xc8]
or ecx, 1
mov dword [ebp - 0xc8], ecx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.10004780
mov eax, dword [ebp + 8]
jmp 0x100366b1
cmp dword [ebp - 0xc0], 6
jne 0x10036504
cmp dword [ebp - 0xbc], 2
jne 0x10036504
movzx edx, byte [ebp - 0x2a]
cmp edx, 1
jne 0x10036504
push str.Windows8
mov ecx, dword [ebp + 8]
call fcn.10004f90
mov eax, dword [ebp - 0xc8]
or eax, 1
mov dword [ebp - 0xc8], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.10004780
mov eax, dword [ebp + 8]
jmp 0x100366b1
cmp dword [ebp - 0xc0], 6
jne 0x10036557
cmp dword [ebp - 0xbc], 3
jne 0x10036557
movzx ecx, byte [ebp - 0x2a]
cmp ecx, 1
je 0x10036557
push str.Windows2012R2
mov ecx, dword [ebp + 8]
call fcn.10004f90
mov edx, dword [ebp - 0xc8]
or edx, 1
mov dword [ebp - 0xc8], edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.10004780
mov eax, dword [ebp + 8]
jmp 0x100366b1
cmp dword [ebp - 0xc0], 6
jne 0x100365aa
cmp dword [ebp - 0xbc], 3
jne 0x100365aa
movzx eax, byte [ebp - 0x2a]
cmp eax, 1
jne 0x100365aa
push str.Windows8R1
mov ecx, dword [ebp + 8]
call fcn.10004f90
mov ecx, dword [ebp - 0xc8]
or ecx, 1
mov dword [ebp - 0xc8], ecx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.10004780
mov eax, dword [ebp + 8]
jmp 0x100366b1
cmp dword [ebp - 0xc0], 0xa
jne 0x100365fd
cmp dword [ebp - 0xbc], 0
jne 0x100365fd
movzx edx, byte [ebp - 0x2a]
cmp edx, 1
je 0x100365fd
push str.Windows2016
mov ecx, dword [ebp + 8]
call fcn.10004f90
mov eax, dword [ebp - 0xc8]
or eax, 1
mov dword [ebp - 0xc8], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.10004780
mov eax, dword [ebp + 8]
jmp 0x100366b1
cmp dword [ebp - 0xc0], 0xa
jne 0x1003664a
cmp dword [ebp - 0xbc], 0
jne 0x1003664a
movzx ecx, byte [ebp - 0x2a]
cmp ecx, 1
jne 0x1003664a
push str.Windows10
mov ecx, dword [ebp + 8]
call fcn.10004f90
mov edx, dword [ebp - 0xc8]
or edx, 1
mov dword [ebp - 0xc8], edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.10004780
mov eax, dword [ebp + 8]
jmp 0x100366b1
cmp dword [ebp - 0xc0], 0xb
jne 0x10036683
push str.Windows11
mov ecx, dword [ebp + 8]
call fcn.10004f90
mov eax, dword [ebp - 0xc8]
or eax, 1
mov dword [ebp - 0xc8], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.10004780
mov eax, dword [ebp + 8]
jmp 0x100366b1
push str.Windows
mov ecx, dword [ebp + 8]
call fcn.10004f90
mov ecx, dword [ebp - 0xc8]
or ecx, 1
mov dword [ebp - 0xc8], ecx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.10004780
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.101534c8
mov esp, ebp
pop ebp
ret