Function at 0x10036170
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 0x1003624c
cmp dword [ebp - 0xbc], 1
jne 0x1003624c
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 0x100366e1
cmp dword [ebp - 0xc0], 5
jne 0x10036296
cmp dword [ebp - 0xbc], 0
jne 0x10036296
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 0x100366e1
cmp dword [ebp - 0xc0], 5
jne 0x100362ec
cmp dword [ebp - 0xbc], 2
jne 0x100362ec
push 0x59
call dword [sym.imp.USER32.dll_GetSystemMetrics]
test eax, eax
jne 0x100362ec
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 0x100366e1
cmp dword [ebp - 0xc0], 5
jne 0x10036342
cmp dword [ebp - 0xbc], 2
jne 0x10036342
push 0x59
call dword [sym.imp.USER32.dll_GetSystemMetrics]
test eax, eax
je 0x10036342
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 0x100366e1
cmp dword [ebp - 0xc0], 6
jne 0x10036395
cmp dword [ebp - 0xbc], 0
jne 0x10036395
movzx ecx, byte [ebp - 0x2a]
cmp ecx, 1
jne 0x10036395
push 0x101df0fe
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 0x100366e1
cmp dword [ebp - 0xc0], 6
jne 0x100363e8
cmp dword [ebp - 0xbc], 0
jne 0x100363e8
movzx eax, byte [ebp - 0x2a]
cmp eax, 1
je 0x100363e8
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 0x100366e1
cmp dword [ebp - 0xc0], 6
jne 0x1003643b
cmp dword [ebp - 0xbc], 1
jne 0x1003643b
movzx edx, byte [ebp - 0x2a]
cmp edx, 1
je 0x1003643b
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 0x100366e1
cmp dword [ebp - 0xc0], 6
jne 0x1003648e
cmp dword [ebp - 0xbc], 1
jne 0x1003648e
movzx ecx, byte [ebp - 0x2a]
cmp ecx, 1
jne 0x1003648e
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 0x100366e1
cmp dword [ebp - 0xc0], 6
jne 0x100364e1
cmp dword [ebp - 0xbc], 2
jne 0x100364e1
movzx eax, byte [ebp - 0x2a]
cmp eax, 1
je 0x100364e1
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 0x100366e1
cmp dword [ebp - 0xc0], 6
jne 0x10036534
cmp dword [ebp - 0xbc], 2
jne 0x10036534
movzx edx, byte [ebp - 0x2a]
cmp edx, 1
jne 0x10036534
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 0x100366e1
cmp dword [ebp - 0xc0], 6
jne 0x10036587
cmp dword [ebp - 0xbc], 3
jne 0x10036587
movzx ecx, byte [ebp - 0x2a]
cmp ecx, 1
je 0x10036587
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 0x100366e1
cmp dword [ebp - 0xc0], 6
jne 0x100365da
cmp dword [ebp - 0xbc], 3
jne 0x100365da
movzx eax, byte [ebp - 0x2a]
cmp eax, 1
jne 0x100365da
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 0x100366e1
cmp dword [ebp - 0xc0], 0xa
jne 0x1003662d
cmp dword [ebp - 0xbc], 0
jne 0x1003662d
movzx edx, byte [ebp - 0x2a]
cmp edx, 1
je 0x1003662d
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 0x100366e1
cmp dword [ebp - 0xc0], 0xa
jne 0x1003667a
cmp dword [ebp - 0xbc], 0
jne 0x1003667a
movzx ecx, byte [ebp - 0x2a]
cmp ecx, 1
jne 0x1003667a
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 0x100366e1
cmp dword [ebp - 0xc0], 0xb
jne 0x100366b3
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 0x100366e1
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