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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x514098
mov eax, dword fs:[0]
push eax
sub esp, 0x1ec
mov eax, dword [0x55d198]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, edx
mov esi, ecx
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
push 7
push str.Windows
mov ecx, esi
mov dword [ebp - 0x150], 0x11c
call fcn.00403800
mov edx, ebx
mov ecx, esi
call fcn.00421440
cmp dword [ebx + 0x10], 0
jne 0x421b67
lea eax, [ebp - 0x150]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x421b53
mov edx, dword [ebp - 0x144]
lea ecx, [ebp - 0x1f8]
call fcn.00420bd0
mov edi, eax
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x1e0]
mov edx, dword [ebp - 0x148]
call fcn.00420bd0
mov esi, eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1c8]
mov edx, dword [ebp - 0x14c]
call fcn.00420bd0
push 0x54516c
mov edx, eax
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x1b0]
call fcn.0040b670
push esi
mov edx, eax
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x198]
call fcn.00421d30
push 0x54516c
mov edx, eax
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x180]
call fcn.0040b670
push edi
mov edx, eax
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x168]
call fcn.00421d30
add esp, 0x10
mov esi, eax
cmp ebx, esi
je 0x421881
mov eax, dword [ebx + 0x14]
cmp eax, 8
jb 0x42185a
inc eax
mov ecx, ebx
push eax
push dword [ebx]
call fcn.00403a50
mov dword [ebx + 0x14], 7
cmp dword [ebx + 0x14], 8
mov dword [ebx + 0x10], 0
jb 0x421872
mov eax, dword [ebx]
jmp 0x421874
mov eax, ebx
xor ecx, ecx
mov word [eax], cx
mov ecx, ebx
push esi
call fcn.004032c0
mov eax, dword [ebp - 0x154]
cmp eax, 8
jb 0x42189f
inc eax
lea ecx, [ebp - 0x168]
push eax
push dword [ebp - 0x168]
call fcn.00403a50
xor eax, eax
mov dword [ebp - 0x154], 7
mov word [ebp - 0x168], ax
mov eax, dword [ebp - 0x16c]
mov dword [ebp - 0x158], 0
cmp eax, 8
jb 0x4218da
inc eax
lea ecx, [ebp - 0x180]
push eax
push dword [ebp - 0x180]
call fcn.00403a50
xor eax, eax
mov dword [ebp - 0x16c], 7
mov word [ebp - 0x180], ax
mov eax, dword [ebp - 0x184]
mov dword [ebp - 0x170], 0
cmp eax, 8
jb 0x421915
inc eax
lea ecx, [ebp - 0x198]
push eax
push dword [ebp - 0x198]
call fcn.00403a50
xor eax, eax
mov dword [ebp - 0x184], 7
mov word [ebp - 0x198], ax
mov eax, dword [ebp - 0x19c]
mov dword [ebp - 0x188], 0
cmp eax, 8
jb 0x421950
inc eax
lea ecx, [ebp - 0x1b0]
push eax
push dword [ebp - 0x1b0]
call fcn.00403a50
xor eax, eax
mov dword [ebp - 0x19c], 7
mov word [ebp - 0x1b0], ax
mov eax, dword [ebp - 0x1b4]
mov dword [ebp - 0x1a0], 0
cmp eax, 8
jb 0x42198b
inc eax
lea ecx, [ebp - 0x1c8]
push eax
push dword [ebp - 0x1c8]
call fcn.00403a50
xor eax, eax
mov dword [ebp - 0x1b4], 7
mov word [ebp - 0x1c8], ax
mov eax, dword [ebp - 0x1cc]
mov dword [ebp - 0x1b8], 0
cmp eax, 8
jb 0x4219c6
inc eax
lea ecx, [ebp - 0x1e0]
push eax
push dword [ebp - 0x1e0]
call fcn.00403a50
xor eax, eax
mov dword [ebp - 4], 0xffffffff
mov word [ebp - 0x1e0], ax
mov eax, dword [ebp - 0x1e4]
mov dword [ebp - 0x1cc], 7
mov dword [ebp - 0x1d0], 0
cmp eax, 8
jb 0x421a08
inc eax
lea ecx, [ebp - 0x1f8]
push eax
push dword [ebp - 0x1f8]
call fcn.00403a50
xor eax, eax
mov dword [ebp - 0x1e4], 7
mov word [ebp - 0x1f8], ax
mov eax, dword [ebp - 0x14c]
mov dword [ebp - 0x1e8], 0
sub eax, 4
je 0x421b0e
sub eax, 1
je 0x421aaf
sub eax, 1
jne 0x421b53
mov eax, dword [ebp - 0x148]
sub eax, 0
je 0x421a93
sub eax, 1
je 0x421a77
sub eax, 1
jne 0x421b53
cmp byte [ebp - 0x36], 1
mov ecx, ebx
jne 0x421a6d
push 0x547258
jmp 0x421b4e
push str.Server_2012
jmp 0x421b4e
cmp byte [ebp - 0x36], 1
mov ecx, ebx
jne 0x421a89
push 0x547234
jmp 0x421b4e
push 0x547238
jmp 0x421b4e
cmp byte [ebp - 0x36], 1
mov ecx, ebx
jne 0x421aa5
push str.Vista
jmp 0x421b4e
push str.Server_2008
jmp 0x421b4e
mov eax, dword [ebp - 0x148]
sub eax, 0
je 0x421b07
sub eax, 1
je 0x421b00
sub eax, 1
jne 0x421b53
cmp byte [ebp - 0x36], 1
jne 0x421adc
cmp word [ebp - 0x34], 9
jne 0x421adc
push str.XP64
jmp 0x421b4c
mov esi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0x59
call esi
test eax, eax
jne 0x421af1
push str.Server_2003
jmp 0x421b4c
push 0x59
call esi
test eax, eax
je 0x421b53
push str.Server_2003_R2
jmp 0x421b4c
push 0x5455e4
jmp 0x421b4c
push 0x5471c4
jmp 0x421b4c
mov eax, dword [ebp - 0x148]
test eax, eax
je 0x421b30
cmp eax, 0xa
je 0x421b29
cmp eax, 0x5a
jne 0x421b53
push str.WinMe
jmp 0x421b4c
push 0x5471b0
jmp 0x421b4c
mov eax, dword [ebp - 0x140]
cmp eax, 2
jne 0x421b42
push str.NT4.0
jmp 0x421b4c
cmp eax, 1
jne 0x421b53
push 0x5471a8
mov ecx, ebx
call fcn.004046e0
cmp dword [ebx + 0x10], 0
jne 0x421b67
push 0xf
push 0x54725c
mov ecx, ebx
call fcn.00403800
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004d1626
mov esp, ebp
pop ebp
ret