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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51e4f5
mov eax, dword fs:[0]
push eax
sub esp, 0x1a0
mov eax, dword [0x55e904]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x11c
push 0
lea eax, [ebp - 0x15c]
push eax
call fcn.004f05a0
add esp, 0xc
mov dword [ebp - 0x15c], 0x11c
lea ecx, [ebp - 0x15c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x431403
mov dword [ebp - 0x15c], 0x114
lea edx, [ebp - 0x15c]
push edx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
lea eax, [ebp - 0x1ac]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
lea ecx, [ebp - 0x28]
call fcn.00405f60
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x158]
mov dword [ebp - 0x164], ecx
cmp dword [ebp - 0x164], 4
je 0x43144f
cmp dword [ebp - 0x164], 5
je 0x43146b
cmp dword [ebp - 0x164], 6
je 0x431547
jmp 0x431602
push str.Microsoft_windows_XP_Older
lea ecx, [ebp - 0x28]
call fcn.004037a0
mov dword [ebp - 0x160], 1
jmp 0x431619
mov edx, dword [ebp - 0x154]
mov dword [ebp - 0x168], edx
cmp dword [ebp - 0x168], 0
je 0x431497
cmp dword [ebp - 0x168], 1
je 0x4314b3
cmp dword [ebp - 0x168], 2
je 0x4314cc
jmp 0x431542
push str.Microsoft_Windows_2000
lea ecx, [ebp - 0x28]
call fcn.004037a0
mov dword [ebp - 0x160], 2
jmp 0x431542
push str.Microsoft_Windows_XP
lea ecx, [ebp - 0x28]
call fcn.004037a0
mov dword [ebp - 0x160], 3
jmp 0x431542
movzx eax, byte [ebp - 0x42]
cmp eax, 1
jne 0x4314fa
movzx ecx, word [ebp - 0x1ac]
cmp ecx, 9
jne 0x4314fa
push str.Microsoft_Windows_XP_Professional_x64_Edition
lea ecx, [ebp - 0x28]
call fcn.004037a0
mov dword [ebp - 0x160], 4
jmp 0x431542
push 0x59
call dword [sym.imp.USER32.dll_GetSystemMetrics]
test eax, eax
jne 0x43151f
push str.Microsoft_Windows_Server_2003
lea ecx, [ebp - 0x28]
call fcn.004037a0
mov dword [ebp - 0x160], 5
jmp 0x431542
push 0x59
call dword [sym.imp.USER32.dll_GetSystemMetrics]
test eax, eax
je 0x431542
push str.Microsoft_Windows_Server_2003_R2
lea ecx, [ebp - 0x28]
call fcn.004037a0
mov dword [ebp - 0x160], 6
jmp 0x431619
mov edx, dword [ebp - 0x154]
mov dword [ebp - 0x16c], edx
cmp dword [ebp - 0x16c], 0
je 0x431573
cmp dword [ebp - 0x16c], 1
je 0x4315ae
cmp dword [ebp - 0x16c], 2
je 0x4315e9
jmp 0x431600
movzx eax, byte [ebp - 0x42]
cmp eax, 1
jne 0x431595
push str.Microsoft_Windows_Vista
lea ecx, [ebp - 0x28]
call fcn.004037a0
mov dword [ebp - 0x160], 7
jmp 0x4315ac
push str.Microsoft_Windows_Server_2008
lea ecx, [ebp - 0x28]
call fcn.004037a0
mov dword [ebp - 0x160], 8
jmp 0x431600
movzx ecx, byte [ebp - 0x42]
cmp ecx, 1
jne 0x4315d0
push str.Microsoft_Windows_7
lea ecx, [ebp - 0x28]
call fcn.004037a0
mov dword [ebp - 0x160], 0xa
jmp 0x4315e7
push str.Microsoft_Windows_Server_2008_R2
lea ecx, [ebp - 0x28]
call fcn.004037a0
mov dword [ebp - 0x160], 9
jmp 0x431600
push str.Microsoft_Windows_10
lea ecx, [ebp - 0x28]
call fcn.004037a0
mov dword [ebp - 0x160], 0x12
jmp 0x431619
push 0x546cb4
lea ecx, [ebp - 0x28]
call fcn.004037a0
mov dword [ebp - 0x160], 0
mov edx, 0x546c44
lea ecx, [ebp - 0x28]
call fcn.00403d70
movzx edx, al
test edx, edx
je 0x43175d
push 0x546da4
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebp - 0x174], eax
cmp dword [ebp - 0x174], 0
je 0x43175d
mov dword [ebp - 0x180], 0
push str.RtlGetNtVersionNumbers
mov eax, dword [ebp - 0x174]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x178], eax
cmp dword [ebp - 0x178], 0
je 0x43175d
lea ecx, [ebp - 0x180]
push ecx
lea edx, [ebp - 0x17c]
push edx
lea eax, [ebp - 0x170]
push eax
call dword [ebp - 0x178]
cmp dword [ebp - 0x170], 6
jne 0x4316c7
cmp dword [ebp - 0x17c], 3
jne 0x4316c7
push str.Microsoft_Windows_8.1
lea ecx, [ebp - 0x28]
call fcn.004037a0
mov dword [ebp - 0x160], 0xe
jmp 0x43175d
cmp dword [ebp - 0x170], 6
jne 0x4316f2
cmp dword [ebp - 0x17c], 2
jne 0x4316f2
push str.Microsoft_Windows_8.0
lea ecx, [ebp - 0x28]
call fcn.004037a0
mov dword [ebp - 0x160], 0xc
jmp 0x43175d
cmp dword [ebp - 0x170], 0xa
jne 0x43175d
lea ecx, [ebp - 0x40]
push ecx
call fcn.00431ac0
add esp, 4
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x40]
call fcn.00403730
test eax, eax
jbe 0x431751
lea ecx, [ebp - 0x40]
call fcn.00403740
push eax
call fcn.004fbd46
add esp, 4
mov dword [ebp - 0x184], eax
cmp dword [ebp - 0x184], 0x55f0
jl 0x431751
push str.Microsoft_Windows_11
lea ecx, [ebp - 0x28]
call fcn.004037a0
mov dword [ebp - 0x160], 0x13
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x40]
call fcn.00403800
lea edx, [ebp - 0x28]
push edx
mov ecx, dword [ebp + 8]
call fcn.004037d0
mov eax, dword [ebp - 0x160]
mov dword [ebp - 0x188], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00403800
mov eax, dword [ebp - 0x188]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004ee450
mov esp, ebp
pop ebp
ret