Function at 0x411e20
Capabilities:
Check os version
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x431ed8
mov eax, dword fs:[0]
push eax
sub esp, 0xfc
mov eax, dword [0x43c2d0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0xf8], ecx
lea eax, [ebp - 0x50]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov dword [ebp - 0xf4], 0x9c
push str.unknown
lea ecx, [ebp - 0x2c]
call fcn.00403d10
mov dword [ebp - 4], 0
lea ecx, [ebp - 0xf4]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x412061
mov edx, dword [ebp - 0xf0]
mov dword [ebp - 0xfc], edx
cmp dword [ebp - 0xfc], 4
je 0x411ec2
cmp dword [ebp - 0xfc], 5
je 0x411f3c
cmp dword [ebp - 0xfc], 6
je 0x411fdd
jmp 0x412061
mov eax, dword [ebp - 0xec]
mov dword [ebp - 0x100], eax
cmp dword [ebp - 0x100], 0
je 0x411eeb
cmp dword [ebp - 0x100], 0xa
je 0x411f1b
cmp dword [ebp - 0x100], 0x5a
je 0x411f2a
jmp 0x411f37
cmp dword [ebp - 0xe4], 2
jne 0x411f03
push str.Microsoft_Windows_NT_4.0
lea ecx, [ebp - 0x2c]
call fcn.004034d0
jmp 0x411f19
cmp dword [ebp - 0xe4], 1
jne 0x411f19
push str.Microsoft_Windows_95
lea ecx, [ebp - 0x2c]
call fcn.004034d0
jmp 0x411f37
push str.Microsoft_Windows_98
lea ecx, [ebp - 0x2c]
call fcn.004034d0
jmp 0x411f37
push str.Microsoft_Windows_Me
lea ecx, [ebp - 0x2c]
call fcn.004034d0
jmp 0x412061
mov ecx, dword [ebp - 0xec]
mov dword [ebp - 0x104], ecx
cmp dword [ebp - 0x104], 0
je 0x411f65
cmp dword [ebp - 0x104], 1
je 0x411f74
cmp dword [ebp - 0x104], 2
je 0x411f83
jmp 0x411fd8
push str.Microsoft_Windows_2000
lea ecx, [ebp - 0x2c]
call fcn.004034d0
jmp 0x411fd8
push str.Microsoft_Windows_XP
lea ecx, [ebp - 0x2c]
call fcn.004034d0
jmp 0x411fd8
movzx edx, byte [ebp - 0x5a]
cmp edx, 1
jne 0x411fa4
movzx eax, word [ebp - 0x50]
cmp eax, 9
jne 0x411fa4
push str.Microsoft_Windows_XP_Professional_x64_Edition
lea ecx, [ebp - 0x2c]
call fcn.004034d0
jmp 0x411fd8
push 0x59
call dword [sym.imp.USER32.dll_GetSystemMetrics]
test eax, eax
jne 0x411fbf
push str.Microsoft_Windows_Server_2003
lea ecx, [ebp - 0x2c]
call fcn.004034d0
jmp 0x411fd8
push 0x59
call dword [sym.imp.USER32.dll_GetSystemMetrics]
test eax, eax
je 0x411fd8
push str.Microsoft_Windows_Server_2003_R2
lea ecx, [ebp - 0x2c]
call fcn.004034d0
jmp 0x412061
mov ecx, dword [ebp - 0xec]
mov dword [ebp - 0x108], ecx
cmp dword [ebp - 0x108], 0
je 0x412006
cmp dword [ebp - 0x108], 1
je 0x41202d
cmp dword [ebp - 0x108], 2
je 0x412054
jmp 0x412061
movzx edx, byte [ebp - 0x5a]
cmp edx, 1
jne 0x41201e
push str.Microsoft_Windows_Vista
lea ecx, [ebp - 0x2c]
call fcn.004034d0
jmp 0x41202b
push str.Microsoft_Windows_Server_2008
lea ecx, [ebp - 0x2c]
call fcn.004034d0
jmp 0x412061
movzx eax, byte [ebp - 0x5a]
cmp eax, 1
jne 0x412045
push str.Microsoft_Windows_7
lea ecx, [ebp - 0x2c]
call fcn.004034d0
jmp 0x412052
push str.Microsoft_Windows_Server_2008_R2
lea ecx, [ebp - 0x2c]
call fcn.004034d0
jmp 0x412061
push str.Microsoft_Windows_8
lea ecx, [ebp - 0x2c]
call fcn.004034d0
mov ecx, dword [ebp + 0xc]
push ecx
lea ecx, [ebp - 0x2c]
call fcn.00412250
push eax
mov edx, dword [ebp + 8]
push edx
call fcn.0041dea0
add esp, 0xc
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.00403d50
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041d3f6
mov esp, ebp
pop ebp
ret 8