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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4324b8
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.00403be0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0xf4]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x4122c1
mov edx, dword [ebp - 0xf0]
mov dword [ebp - 0xfc], edx
cmp dword [ebp - 0xfc], 4
je 0x412122
cmp dword [ebp - 0xfc], 5
je 0x41219c
cmp dword [ebp - 0xfc], 6
je 0x41223d
jmp 0x4122c1
mov eax, dword [ebp - 0xec]
mov dword [ebp - 0x100], eax
cmp dword [ebp - 0x100], 0
je 0x41214b
cmp dword [ebp - 0x100], 0xa
je 0x41217b
cmp dword [ebp - 0x100], 0x5a
je 0x41218a
jmp 0x412197
cmp dword [ebp - 0xe4], 2
jne 0x412163
push str.Microsoft_Windows_NT_4.0
lea ecx, [ebp - 0x2c]
call fcn.00403390
jmp 0x412179
cmp dword [ebp - 0xe4], 1
jne 0x412179
push str.Microsoft_Windows_95
lea ecx, [ebp - 0x2c]
call fcn.00403390
jmp 0x412197
push str.Microsoft_Windows_98
lea ecx, [ebp - 0x2c]
call fcn.00403390
jmp 0x412197
push str.Microsoft_Windows_Me
lea ecx, [ebp - 0x2c]
call fcn.00403390
jmp 0x4122c1
mov ecx, dword [ebp - 0xec]
mov dword [ebp - 0x104], ecx
cmp dword [ebp - 0x104], 0
je 0x4121c5
cmp dword [ebp - 0x104], 1
je 0x4121d4
cmp dword [ebp - 0x104], 2
je 0x4121e3
jmp 0x412238
push str.Microsoft_Windows_2000
lea ecx, [ebp - 0x2c]
call fcn.00403390
jmp 0x412238
push str.Microsoft_Windows_XP
lea ecx, [ebp - 0x2c]
call fcn.00403390
jmp 0x412238
movzx edx, byte [ebp - 0x5a]
cmp edx, 1
jne 0x412204
movzx eax, word [ebp - 0x50]
cmp eax, 9
jne 0x412204
push str.Microsoft_Windows_XP_Professional_x64_Edition
lea ecx, [ebp - 0x2c]
call fcn.00403390
jmp 0x412238
push 0x59
call dword [sym.imp.USER32.dll_GetSystemMetrics]
test eax, eax
jne 0x41221f
push str.Microsoft_Windows_Server_2003
lea ecx, [ebp - 0x2c]
call fcn.00403390
jmp 0x412238
push 0x59
call dword [sym.imp.USER32.dll_GetSystemMetrics]
test eax, eax
je 0x412238
push str.Microsoft_Windows_Server_2003_R2
lea ecx, [ebp - 0x2c]
call fcn.00403390
jmp 0x4122c1
mov ecx, dword [ebp - 0xec]
mov dword [ebp - 0x108], ecx
cmp dword [ebp - 0x108], 0
je 0x412266
cmp dword [ebp - 0x108], 1
je 0x41228d
cmp dword [ebp - 0x108], 2
je 0x4122b4
jmp 0x4122c1
movzx edx, byte [ebp - 0x5a]
cmp edx, 1
jne 0x41227e
push str.Microsoft_Windows_Vista
lea ecx, [ebp - 0x2c]
call fcn.00403390
jmp 0x41228b
push str.Microsoft_Windows_Server_2008
lea ecx, [ebp - 0x2c]
call fcn.00403390
jmp 0x4122c1
movzx eax, byte [ebp - 0x5a]
cmp eax, 1
jne 0x4122a5
push str.Microsoft_Windows_7
lea ecx, [ebp - 0x2c]
call fcn.00403390
jmp 0x4122b2
push str.Microsoft_Windows_Server_2008_R2
lea ecx, [ebp - 0x2c]
call fcn.00403390
jmp 0x4122c1
push str.Microsoft_Windows_8
lea ecx, [ebp - 0x2c]
call fcn.00403390
mov ecx, dword [ebp + 0xc]
push ecx
lea ecx, [ebp - 0x2c]
call fcn.004124b0
push eax
mov edx, dword [ebp + 8]
push edx
call fcn.0041e420
add esp, 0xc
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.00403c20
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041d976
mov esp, ebp
pop ebp
ret 8