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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f3700
mov eax, dword fs:[0]
push eax
sub esp, 0x210
mov eax, dword [0x52e474]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x130], 0
mov dword [ebp - 0x12c], 0x11c
lea eax, [ebp - 0x12c]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je case.0x42a0af.3
lea ecx, [ebp - 0x16c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov edx, dword [ebp - 0x128]
mov dword [ebp - 0x134], edx
mov eax, dword [ebp - 0x134]
sub eax, 4
mov dword [ebp - 0x134], eax
cmp dword [ebp - 0x134], 6
ja case.0x42a0af.3
mov ecx, dword [ebp - 0x134]
jmp dword [ecx*4 + 0x42a554]
mov edx, dword [ebp - 0x124]
mov dword [ebp - 0x138], edx
cmp dword [ebp - 0x138], 0
je 0x42a0e6
cmp dword [ebp - 0x138], 0xa
je 0x42a144
cmp dword [ebp - 0x138], 0x5a
je 0x42a16a
jmp 0x42a18e
cmp dword [ebp - 0x11c], 2
jne 0x42a115
push str.Windows_NT_4.0
mov ecx, dword [ebp + 8]
call fcn.00405480
mov eax, dword [ebp - 0x130]
or eax, 1
mov dword [ebp - 0x130], eax
mov eax, dword [ebp + 8]
jmp 0x42a539
cmp dword [ebp - 0x11c], 1
jne 0x42a142
push str.Windows_95
mov ecx, dword [ebp + 8]
call fcn.00405480
mov ecx, dword [ebp - 0x130]
or ecx, 1
mov dword [ebp - 0x130], ecx
mov eax, dword [ebp + 8]
jmp 0x42a539
jmp 0x42a18e
push str.Windows_98
mov ecx, dword [ebp + 8]
call fcn.00405480
mov edx, dword [ebp - 0x130]
or edx, 1
mov dword [ebp - 0x130], edx
mov eax, dword [ebp + 8]
jmp 0x42a539
push str.Windows_Me
mov ecx, dword [ebp + 8]
call fcn.00405480
mov eax, dword [ebp - 0x130]
or eax, 1
mov dword [ebp - 0x130], eax
mov eax, dword [ebp + 8]
jmp 0x42a539
jmp case.0x42a0af.3
mov ecx, dword [ebp - 0x124]
mov dword [ebp - 0x13c], ecx
cmp dword [ebp - 0x13c], 0
je 0x42a1bf
cmp dword [ebp - 0x13c], 1
je 0x42a1e8
cmp dword [ebp - 0x13c], 2
je 0x42a20e
jmp 0x42a276
push str.Windows_2000
mov ecx, dword [ebp + 8]
call fcn.00405480
mov edx, dword [ebp - 0x130]
or edx, 1
mov dword [ebp - 0x130], edx
mov eax, dword [ebp + 8]
jmp 0x42a539
push str.Windows_XP
mov ecx, dword [ebp + 8]
call fcn.00405480
mov eax, dword [ebp - 0x130]
or eax, 1
mov dword [ebp - 0x130], eax
mov eax, dword [ebp + 8]
jmp 0x42a539
movzx ecx, byte [ebp - 0x12]
cmp ecx, 1
jne 0x42a249
movzx edx, word [ebp - 0x16c]
cmp edx, 9
jne 0x42a249
push str.Windows_XP_Professional_x64_Edition
mov ecx, dword [ebp + 8]
call fcn.00405480
mov eax, dword [ebp - 0x130]
or eax, 1
mov dword [ebp - 0x130], eax
mov eax, dword [ebp + 8]
jmp 0x42a539
movzx ecx, byte [ebp - 0x12]
cmp ecx, 3
jne 0x42a276
push str.Windows_Server_2003
mov ecx, dword [ebp + 8]
call fcn.00405480
mov edx, dword [ebp - 0x130]
or edx, 1
mov dword [ebp - 0x130], edx
mov eax, dword [ebp + 8]
jmp 0x42a539
jmp case.0x42a0af.3
mov eax, dword [ebp - 0x124]
mov dword [ebp - 0x140], eax
cmp dword [ebp - 0x140], 3
ja case.default.0x42a29a
mov ecx, dword [ebp - 0x140]
jmp dword [ecx*4 + 0x42a570]
movzx edx, byte [ebp - 0x12]
cmp edx, 1
jne 0x42a2d0
push str.Windows_Vista
mov ecx, dword [ebp + 8]
call fcn.00405480
mov eax, dword [ebp - 0x130]
or eax, 1
mov dword [ebp - 0x130], eax
mov eax, dword [ebp + 8]
jmp 0x42a539
push str.Windows_Server_2008
mov ecx, dword [ebp + 8]
call fcn.00405480
mov ecx, dword [ebp - 0x130]
or ecx, 1
mov dword [ebp - 0x130], ecx
mov eax, dword [ebp + 8]
jmp 0x42a539
movzx edx, byte [ebp - 0x12]
cmp edx, 1
jne 0x42a328
push 0x4fade0
mov ecx, dword [ebp + 8]
call fcn.00405480
mov eax, dword [ebp - 0x130]
or eax, 1
mov dword [ebp - 0x130], eax
mov eax, dword [ebp + 8]
jmp 0x42a539
push str.Windows_Server_2008_R2
mov ecx, dword [ebp + 8]
call fcn.00405480
mov ecx, dword [ebp - 0x130]
or ecx, 1
mov dword [ebp - 0x130], ecx
mov eax, dword [ebp + 8]
jmp 0x42a539
movzx edx, byte [ebp - 0x12]
cmp edx, 1
jne 0x42a380
push 0x4fae04
mov ecx, dword [ebp + 8]
call fcn.00405480
mov eax, dword [ebp - 0x130]
or eax, 1
mov dword [ebp - 0x130], eax
mov eax, dword [ebp + 8]
jmp 0x42a539
push 0x4fae10
mov ecx, dword [ebp + 8]
call fcn.00405480
mov ecx, dword [ebp - 0x130]
or ecx, 1
mov dword [ebp - 0x130], ecx
mov eax, dword [ebp + 8]
jmp 0x42a539
movzx edx, byte [ebp - 0x12]
cmp edx, 1
jne 0x42a3d5
push 0x4fae24
mov ecx, dword [ebp + 8]
call fcn.00405480
mov eax, dword [ebp - 0x130]
or eax, 1
mov dword [ebp - 0x130], eax
mov eax, dword [ebp + 8]
jmp 0x42a539
push 0x4fae30
mov ecx, dword [ebp + 8]
call fcn.00405480
mov ecx, dword [ebp - 0x130]
or ecx, 1
mov dword [ebp - 0x130], ecx
mov eax, dword [ebp + 8]
jmp 0x42a539
jmp case.0x42a0af.3
mov edx, dword [ebp - 0x124]
mov dword [ebp - 0x148], edx
cmp dword [ebp - 0x148], 0
je 0x42a412
jmp case.0x42a0af.3
movzx eax, byte [ebp - 0x12]
cmp eax, 1
jne 0x42a441
push 0x4fae48
mov ecx, dword [ebp + 8]
call fcn.00405480
mov ecx, dword [ebp - 0x130]
or ecx, 1
mov dword [ebp - 0x130], ecx
mov eax, dword [ebp + 8]
jmp 0x42a539
push str.Windows_Server_2016_Techical_Preview
mov ecx, dword [ebp + 8]
call fcn.00405480
mov edx, dword [ebp - 0x130]
or edx, 1
mov dword [ebp - 0x130], edx
mov eax, dword [ebp + 8]
jmp 0x42a539
push 1
push 3
lea ecx, [ebp - 0x21c]
call fcn.0042aed0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x21c]
test eax, eax
je 0x42a496
lea ecx, [ebp - 0x21c]
add ecx, 0x10
mov dword [ebp - 0x144], ecx
jmp 0x42a4a0
mov dword [ebp - 0x144], 0
push str.Windows_NT
mov edx, dword [ebp - 0x144]
push edx
call fcn.0040ba60
add esp, 8
push 0x4faeac
mov eax, dword [ebp - 0x128]
push eax
lea ecx, [ebp - 0x20c]
call fcn.0042b310
push eax
call fcn.0040ba60
add esp, 8
push 0x4faeb0
mov ecx, dword [ebp - 0x124]
push ecx
lea ecx, [ebp - 0x20c]
call fcn.0042b310
push eax
call fcn.0040ba60
add esp, 8
mov edx, dword [ebp - 0x120]
push edx
lea ecx, [ebp - 0x20c]
call fcn.0042b310
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x21c]
call fcn.0042e220
mov ecx, dword [ebp - 0x130]
or ecx, 1
mov dword [ebp - 0x130], ecx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x21c]
call fcn.0042b730
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.00491b3a
mov esp, ebp
pop ebp
ret