Function at 0x10036160
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1017eb38
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.10155de0
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.10155de0
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 0x1003623c
cmp dword [ebp - 0xbc], 1
jne 0x1003623c
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 0x100366d1
cmp dword [ebp - 0xc0], 5
jne 0x10036286
cmp dword [ebp - 0xbc], 0
jne 0x10036286
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 0x100366d1
cmp dword [ebp - 0xc0], 5
jne 0x100362dc
cmp dword [ebp - 0xbc], 2
jne 0x100362dc
push 0x59
call dword [sym.imp.USER32.dll_GetSystemMetrics]
test eax, eax
jne 0x100362dc
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 0x100366d1
cmp dword [ebp - 0xc0], 5
jne 0x10036332
cmp dword [ebp - 0xbc], 2
jne 0x10036332
push 0x59
call dword [sym.imp.USER32.dll_GetSystemMetrics]
test eax, eax
je 0x10036332
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 0x100366d1
cmp dword [ebp - 0xc0], 6
jne 0x10036385
cmp dword [ebp - 0xbc], 0
jne 0x10036385
movzx ecx, byte [ebp - 0x2a]
cmp ecx, 1
jne 0x10036385
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 0x100366d1
cmp dword [ebp - 0xc0], 6
jne 0x100363d8
cmp dword [ebp - 0xbc], 0
jne 0x100363d8
movzx eax, byte [ebp - 0x2a]
cmp eax, 1
je 0x100363d8
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 0x100366d1
cmp dword [ebp - 0xc0], 6
jne 0x1003642b
cmp dword [ebp - 0xbc], 1
jne 0x1003642b
movzx edx, byte [ebp - 0x2a]
cmp edx, 1
je 0x1003642b
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 0x100366d1
cmp dword [ebp - 0xc0], 6
jne 0x1003647e
cmp dword [ebp - 0xbc], 1
jne 0x1003647e
movzx ecx, byte [ebp - 0x2a]
cmp ecx, 1
jne 0x1003647e
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 0x100366d1
cmp dword [ebp - 0xc0], 6
jne 0x100364d1
cmp dword [ebp - 0xbc], 2
jne 0x100364d1
movzx eax, byte [ebp - 0x2a]
cmp eax, 1
je 0x100364d1
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 0x100366d1
cmp dword [ebp - 0xc0], 6
jne 0x10036524
cmp dword [ebp - 0xbc], 2
jne 0x10036524
movzx edx, byte [ebp - 0x2a]
cmp edx, 1
jne 0x10036524
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 0x100366d1
cmp dword [ebp - 0xc0], 6
jne 0x10036577
cmp dword [ebp - 0xbc], 3
jne 0x10036577
movzx ecx, byte [ebp - 0x2a]
cmp ecx, 1
je 0x10036577
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 0x100366d1
cmp dword [ebp - 0xc0], 6
jne 0x100365ca
cmp dword [ebp - 0xbc], 3
jne 0x100365ca
movzx eax, byte [ebp - 0x2a]
cmp eax, 1
jne 0x100365ca
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 0x100366d1
cmp dword [ebp - 0xc0], 0xa
jne 0x1003661d
cmp dword [ebp - 0xbc], 0
jne 0x1003661d
movzx edx, byte [ebp - 0x2a]
cmp edx, 1
je 0x1003661d
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 0x100366d1
cmp dword [ebp - 0xc0], 0xa
jne 0x1003666a
cmp dword [ebp - 0xbc], 0
jne 0x1003666a
movzx ecx, byte [ebp - 0x2a]
cmp ecx, 1
jne 0x1003666a
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 0x100366d1
cmp dword [ebp - 0xc0], 0xb
jne 0x100366a3
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 0x100366d1
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.10153588
mov esp, ebp
pop ebp
ret