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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ba810
mov eax, dword fs:[0]
push eax
sub esp, 0x17c
mov eax, dword [0x4e4260]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x178], 0
lea eax, [ebp - 0x50]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
push 0x11c
push 0
lea ecx, [ebp - 0x174]
push ecx
call fcn.0046f350
add esp, 0xc
mov dword [ebp - 0x174], 0x11c
lea edx, [ebp - 0x174]
push edx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
push 0x4c3e2c
lea ecx, [ebp - 0x2c]
call fcn.00401600
mov dword [ebp - 4], 1
mov eax, dword [ebp - 0x170]
mov dword [ebp - 0x17c], eax
mov ecx, dword [ebp - 0x17c]
sub ecx, 4
mov dword [ebp - 0x17c], ecx
cmp dword [ebp - 0x17c], 6
ja case.0x41a80e.3
mov edx, dword [ebp - 0x17c]
jmp dword [edx*4 + 0x41aa6c]
mov eax, dword [ebp - 0x16c]
mov dword [ebp - 0x180], eax
cmp dword [ebp - 0x180], 0
je 0x41a83e
cmp dword [ebp - 0x180], 0xa
je 0x41a86e
cmp dword [ebp - 0x180], 0x5a
je 0x41a87d
jmp 0x41a88a
cmp dword [ebp - 0x164], 2
jne 0x41a856
push str.Microsoft_Windows_NT_4.0
lea ecx, [ebp - 0x2c]
call fcn.00403490
jmp 0x41a86c
cmp dword [ebp - 0x164], 1
jne 0x41a86c
push str.Microsoft_Windows_95
lea ecx, [ebp - 0x2c]
call fcn.00403490
jmp 0x41a88a
push str.Microsoft_Windows_98
lea ecx, [ebp - 0x2c]
call fcn.00403490
jmp 0x41a88a
push str.Microsoft_Windows_Me
lea ecx, [ebp - 0x2c]
call fcn.00403490
jmp 0x41aa27
mov ecx, dword [ebp - 0x16c]
mov dword [ebp - 0x184], ecx
cmp dword [ebp - 0x184], 0
je 0x41a8b8
cmp dword [ebp - 0x184], 1
je 0x41a8c7
cmp dword [ebp - 0x184], 2
je 0x41a8d6
jmp 0x41a904
push str.Microsoft_Windows_2000
lea ecx, [ebp - 0x2c]
call fcn.00403490
jmp 0x41a904
push str.Microsoft_Windows_XP
lea ecx, [ebp - 0x2c]
call fcn.00403490
jmp 0x41a904
movzx edx, byte [ebp - 0x5a]
cmp edx, 1
jne 0x41a8f7
movzx eax, word [ebp - 0x50]
cmp eax, 9
jne 0x41a8f7
push str.Microsoft_Windows_XP_Professional_x64_Edition
lea ecx, [ebp - 0x2c]
call fcn.00403490
jmp 0x41a904
push str.Microsoft_Windows_Server_2003
lea ecx, [ebp - 0x2c]
call fcn.00403490
jmp 0x41aa27
mov ecx, dword [ebp - 0x16c]
mov dword [ebp - 0x188], ecx
cmp dword [ebp - 0x188], 0
je 0x41a935
cmp dword [ebp - 0x188], 1
je 0x41a95f
cmp dword [ebp - 0x188], 2
je 0x41a986
jmp 0x41a9cc
movzx edx, byte [ebp - 0x5a]
cmp edx, 1
jne 0x41a94d
push str.Microsoft_Windows_Vista
lea ecx, [ebp - 0x2c]
call fcn.00403490
jmp 0x41a95a
push str.Microsoft_Windows_Server_2008
lea ecx, [ebp - 0x2c]
call fcn.00403490
jmp 0x41a9f1
movzx eax, byte [ebp - 0x5a]
cmp eax, 1
jne 0x41a977
push str.Microsoft_Windows_7
lea ecx, [ebp - 0x2c]
call fcn.00403490
jmp 0x41a984
push str.Microsoft_Windows_Server_2008_R2
lea ecx, [ebp - 0x2c]
call fcn.00403490
jmp 0x41a9f1
movzx ecx, byte [ebp - 0x5a]
cmp ecx, 1
jne 0x41a9bd
push 4
push 6
call fcn.0041aa90
add esp, 8
test eax, eax
je 0x41a9ae
push str.Microsoft_Windows_10
lea ecx, [ebp - 0x2c]
call fcn.00403490
jmp 0x41a9bb
push str.Microsoft_Windows_8
lea ecx, [ebp - 0x2c]
call fcn.00403490
jmp 0x41a9ca
push str.Microsoft_Windows_Server_2012
lea ecx, [ebp - 0x2c]
call fcn.00403490
jmp 0x41a9f1
movzx edx, byte [ebp - 0x5a]
cmp edx, 1
jne 0x41a9e4
push str.Microsoft_Windows_8.1
lea ecx, [ebp - 0x2c]
call fcn.00403490
jmp 0x41a9f1
push str.Microsoft_Windows_Server_2012_R2
lea ecx, [ebp - 0x2c]
call fcn.00403490
jmp 0x41aa27
movzx eax, byte [ebp - 0x5a]
cmp eax, 1
jne 0x41aa0b
push str.Microsoft_Windows_10_Insider_Preview
lea ecx, [ebp - 0x2c]
call fcn.00403490
jmp 0x41aa18
push str.Microsoft_Windows_Server_Technical_Preview
lea ecx, [ebp - 0x2c]
call fcn.00403490
jmp 0x41aa27
push str.Unknown_Operating_System
lea ecx, [ebp - 0x2c]
call fcn.00403490
lea ecx, [ebp - 0x2c]
push ecx
mov ecx, dword [ebp + 8]
call fcn.00403440
mov edx, dword [ebp - 0x178]
or edx, 1
mov dword [ebp - 0x178], edx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.00401640
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.0046f960
mov esp, ebp
pop ebp
ret