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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x17c
mov eax, dword [0x442730]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov dword [ebp - 0x168], 0x11c
push str.unknown_OperatingSystem.
lea ecx, [ebp - 0x20]
call fcn.00420880
lea ecx, [ebp - 0x168]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je case.0x420ec7.3
mov edx, dword [ebp - 0x164]
mov dword [ebp - 0x16c], edx
mov eax, dword [ebp - 0x16c]
sub eax, 4
mov dword [ebp - 0x16c], eax
cmp dword [ebp - 0x16c], 6
ja case.0x420ec7.3
mov ecx, dword [ebp - 0x16c]
jmp dword [ecx*4 + 0x42110c]
mov edx, dword [ebp - 0x160]
mov dword [ebp - 0x170], edx
cmp dword [ebp - 0x170], 0
je 0x420ef7
cmp dword [ebp - 0x170], 0xa
je 0x420f27
cmp dword [ebp - 0x170], 0x5a
je 0x420f36
jmp 0x420f43
cmp dword [ebp - 0x158], 2
jne 0x420f0f
push str.Microsoft_Windows_NT_4.0
lea ecx, [ebp - 0x20]
call fcn.0041f5e0
jmp 0x420f25
cmp dword [ebp - 0x158], 1
jne 0x420f25
push str.Microsoft_Windows_95
lea ecx, [ebp - 0x20]
call fcn.0041f5e0
jmp 0x420f43
push str.Microsoft_Windows_98
lea ecx, [ebp - 0x20]
call fcn.0041f5e0
jmp 0x420f43
push str.Microsoft_Windows_Me
lea ecx, [ebp - 0x20]
call fcn.0041f5e0
jmp case.0x420ec7.3
mov eax, dword [ebp - 0x160]
mov dword [ebp - 0x174], eax
cmp dword [ebp - 0x174], 0
je 0x420f71
cmp dword [ebp - 0x174], 1
je 0x420f80
cmp dword [ebp - 0x174], 2
je 0x420f8f
jmp 0x420fe4
push str.Microsoft_Windows_2000
lea ecx, [ebp - 0x20]
call fcn.0041f5e0
jmp 0x420fe4
push str.Microsoft_Windows_XP
lea ecx, [ebp - 0x20]
call fcn.0041f5e0
jmp 0x420fe4
movzx ecx, byte [ebp - 0x4e]
cmp ecx, 1
jne 0x420fb0
movzx edx, word [ebp - 0x44]
cmp edx, 9
jne 0x420fb0
push str.Microsoft_Windows_XP_Professional_x64_Edition
lea ecx, [ebp - 0x20]
call fcn.0041f5e0
jmp 0x420fe4
push 0x59
call dword [sym.imp.USER32.dll_GetSystemMetrics]
test eax, eax
jne 0x420fcb
push str.Microsoft_Windows_Server_2003
lea ecx, [ebp - 0x20]
call fcn.0041f5e0
jmp 0x420fe4
push 0x59
call dword [sym.imp.USER32.dll_GetSystemMetrics]
test eax, eax
je 0x420fe4
push str.Microsoft_Windows_Server_2003_R2
lea ecx, [ebp - 0x20]
call fcn.0041f5e0
jmp case.0x420ec7.3
mov eax, dword [ebp - 0x160]
mov dword [ebp - 0x178], eax
cmp dword [ebp - 0x178], 3
ja case.default.0x421008
mov ecx, dword [ebp - 0x178]
jmp dword [ecx*4 + 0x421128]
movzx edx, byte [ebp - 0x4e]
cmp edx, 1
jne 0x421027
push str.Microsoft_Windows_Vista
lea ecx, [ebp - 0x20]
call fcn.0041f5e0
jmp 0x421034
push str.Microsoft_Windows_Server_2008
lea ecx, [ebp - 0x20]
call fcn.0041f5e0
jmp case.default.0x421008
movzx eax, byte [ebp - 0x4e]
cmp eax, 1
jne 0x42104e
push str.Microsoft_Windows_7
lea ecx, [ebp - 0x20]
call fcn.0041f5e0
jmp 0x42105b
push str.Microsoft_Windows_Server_2008_R2
lea ecx, [ebp - 0x20]
call fcn.0041f5e0
jmp case.default.0x421008
movzx ecx, byte [ebp - 0x4e]
cmp ecx, 1
jne 0x421075
push str.Microsoft_Windows_8
lea ecx, [ebp - 0x20]
call fcn.0041f5e0
jmp 0x421082
push str.Microsoft_Windows_Server_2012
lea ecx, [ebp - 0x20]
call fcn.0041f5e0
jmp case.default.0x421008
movzx edx, byte [ebp - 0x4e]
cmp edx, 1
jne 0x42109c
push str.Microsoft_Windows_8.1
lea ecx, [ebp - 0x20]
call fcn.0041f5e0
jmp case.default.0x421008
push str.Microsoft_Windows_Server_2012_R2
lea ecx, [ebp - 0x20]
call fcn.0041f5e0
jmp case.0x420ec7.3
mov eax, dword [ebp - 0x160]
mov dword [ebp - 0x17c], eax
cmp dword [ebp - 0x17c], 0
je 0x4210c2
jmp case.0x420ec7.3
movzx ecx, byte [ebp - 0x4e]
cmp ecx, 1
jne 0x4210da
push str.Microsoft_Windows_10
lea ecx, [ebp - 0x20]
call fcn.0041f5e0
jmp case.0x420ec7.3
push str.Microsoft_Windows_Server_2016_Technical_Preview
lea ecx, [ebp - 0x20]
call fcn.0041f5e0
lea edx, [ebp - 0x20]
push edx
mov ecx, dword [ebp + 8]
call fcn.004205c0
lea ecx, [ebp - 0x20]
call fcn.0041f5a0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00425ae5
mov esp, ebp
pop ebp
ret