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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5686e2
mov eax, dword fs:[0]
push eax
sub esp, 0x158
mov eax, dword [0x5d86f0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor eax, eax
mov dword [ebp - 4], 0
mov ecx, esi
mov dword [ebp - 0x160], 0
push 0x18
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
push 0x5c0970
mov dword [ebp - 0x164], esi
mov word [esi], ax
call fcn.004e8990
lea eax, [ebp - 0x40]
mov dword [ebp - 4], 0
push eax
mov dword [ebp - 0x160], 1
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
push 0x11c
lea eax, [ebp - 0x15c]
push 0
push eax
call fcn.005443d0
add esp, 0xc
mov dword [ebp - 0x15c], 0x11c
lea eax, [ebp - 0x15c]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je case.default.0x4e6a52
mov eax, dword [ebp - 0x158]
add eax, 0xfffffffc
cmp eax, 6
ja case.default.0x4e6a52
jmp dword [eax*4 + 0x4e6b50]
mov eax, dword [ebp - 0x154]
test eax, eax
je 0x4e69ad
cmp eax, 0xa
je 0x4e69a3
cmp eax, 0x5a
jne case.default.0x4e6a52
push str.Microsoft_Windows_Me
jmp 0x4e6b29
push str.Microsoft_Windows_98
jmp 0x4e6b29
mov eax, dword [ebp - 0x14c]
cmp eax, 2
jne 0x4e69c2
push str.Microsoft_Windows_NT_4.0
jmp 0x4e6b29
cmp eax, 1
jne case.default.0x4e6a52
push str.Microsoft_Windows_95
jmp 0x4e6b29
mov eax, dword [ebp - 0x154]
sub eax, 0
je 0x4e6a39
dec eax
je 0x4e6a2f
dec eax
jne case.default.0x4e6a52
cmp byte [ebp - 0x42], 1
jne 0x4e6a01
cmp word [ebp - 0x40], 9
jne 0x4e6a01
push str.Microsoft_Windows_XP_Professional_x64_Edition
jmp 0x4e6b29
mov edi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0x59
call edi
test eax, eax
jne 0x4e6a19
push str.Microsoft_Windows_Server_2003
jmp 0x4e6b29
push 0x59
call edi
test eax, eax
je case.default.0x4e6a52
push str.Microsoft_Windows_Server_2003_R2
jmp 0x4e6b29
push str.Microsoft_Windows_XP
jmp 0x4e6b29
push str.Microsoft_Windows_2000
jmp 0x4e6b29
mov eax, dword [ebp - 0x154]
cmp eax, 3
ja case.default.0x4e6a52
jmp dword [eax*4 + 0x4e6b6c]
cmp byte [ebp - 0x42], 1
mov ecx, esi
jne 0x4e6a6b
push str.Microsoft_Windows_Vista
jmp 0x4e6b2b
push str.Microsoft_Windows_Server_2008
jmp 0x4e6b2b
cmp byte [ebp - 0x42], 1
mov ecx, esi
jne 0x4e6a87
push str.Microsoft_Windows_7
jmp 0x4e6b2b
push str.Microsoft_Windows_Server_2008_R2
jmp 0x4e6b2b
push str.ntdll.dll
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
test edi, edi
je 0x4e6adc
push str.RtlGetNtVersionNumbers
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4e6ad5
lea ecx, [ebp - 0x1c]
push ecx
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [ebp - 0x14]
push ecx
call eax
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp dword [ebp - 0x14], 0xa
jne 0x4e6ae9
push str.Microsoft_Windows_10
jmp 0x4e6b29
cmp byte [ebp - 0x42], 1
mov ecx, esi
jne 0x4e6af8
push str.Microsoft_Windows_8
jmp 0x4e6b2b
push str.Microsoft_Windows_Server_2012
jmp 0x4e6b2b
cmp byte [ebp - 0x42], 1
mov ecx, esi
jne 0x4e6b0e
push str.Microsoft_Windows_8.1
jmp 0x4e6b2b
push str.Microsoft_Windows_Server_2012_R2
jmp 0x4e6b2b
cmp dword [ebp - 0x154], 0
jne case.default.0x4e6a52
cmp byte [ebp - 0x42], 1
je 0x4e6ae2
push str.Microsoft_Windows_Server_2016
mov ecx, esi
call fcn.004e88d0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0054546b
mov esp, ebp
pop ebp
ret