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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x612358
mov eax, dword fs:[0]
push eax
sub esp, 0x184
mov eax, dword [0x6c6f60]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x148], 0
call fcn.004d9930
movzx eax, al
test eax, eax
je 0x4d6255
push str.Windows_11
mov ecx, dword [ebp + 8]
call fcn.0048bf00
mov ecx, dword [ebp - 0x148]
or ecx, 1
mov dword [ebp - 0x148], ecx
mov eax, dword [ebp + 8]
jmp 0x4d65a5
push 0x6764ef
lea ecx, [ebp - 0x28]
call fcn.0048bf00
mov dword [ebp - 4], 0
push str.ntdll.dll
call dword [sym.imp.KERNEL32.DLL_LoadLibraryW]
mov dword [ebp - 0x164], eax
push str.RtlGetNtVersionNumbers
mov edx, dword [ebp - 0x164]
push edx
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov dword [ebp - 0x168], eax
lea eax, [ebp - 0x16c]
push eax
lea ecx, [ebp - 0x160]
push ecx
lea edx, [ebp - 0x15c]
push edx
call dword [ebp - 0x168]
cmp dword [ebp - 0x15c], 6
jne 0x4d62fe
cmp dword [ebp - 0x160], 3
jne 0x4d62fe
push str.Windows_8.1
lea ecx, [ebp - 0x28]
call fcn.004a8ec0
lea eax, [ebp - 0x28]
push eax
mov ecx, dword [ebp + 8]
call fcn.0048be10
mov ecx, dword [ebp - 0x148]
or ecx, 1
mov dword [ebp - 0x148], ecx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.0048bcd0
mov eax, dword [ebp + 8]
jmp 0x4d65a5
cmp dword [ebp - 0x15c], 0xa
jne 0x4d634f
cmp dword [ebp - 0x160], 0
jne 0x4d634f
push str.Windows_10
lea ecx, [ebp - 0x28]
call fcn.004a8ec0
lea edx, [ebp - 0x28]
push edx
mov ecx, dword [ebp + 8]
call fcn.0048be10
mov eax, dword [ebp - 0x148]
or eax, 1
mov dword [ebp - 0x148], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.0048bcd0
mov eax, dword [ebp + 8]
jmp 0x4d65a5
lea ecx, [ebp - 0x190]
push ecx
call dword [sym.imp.KERNEL32.DLL_GetSystemInfo]
mov dword [ebp - 0x144], 0x11c
lea edx, [ebp - 0x144]
push edx
call dword [sym.imp.KERNEL32.DLL_GetVersionExW]
test eax, eax
je 0x4d6578
mov eax, dword [ebp - 0x140]
mov dword [ebp - 0x14c], eax
cmp dword [ebp - 0x14c], 4
je 0x4d63af
cmp dword [ebp - 0x14c], 5
je 0x4d6429
cmp dword [ebp - 0x14c], 6
je 0x4d64cd
jmp 0x4d656b
mov ecx, dword [ebp - 0x13c]
mov dword [ebp - 0x150], ecx
cmp dword [ebp - 0x150], 0
je 0x4d63d8
cmp dword [ebp - 0x150], 0xa
je 0x4d6408
cmp dword [ebp - 0x150], 0x5a
je 0x4d6417
jmp 0x4d6424
cmp dword [ebp - 0x134], 2
jne 0x4d63f0
push str.Windows_NT_4.0
lea ecx, [ebp - 0x28]
call fcn.004a8ec0
jmp 0x4d6406
cmp dword [ebp - 0x134], 1
jne 0x4d6406
push str.Windows_95
lea ecx, [ebp - 0x28]
call fcn.004a8ec0
jmp 0x4d6424
push str.Windows_98
lea ecx, [ebp - 0x28]
call fcn.004a8ec0
jmp 0x4d6424
push str.Microsoft_Windows_Me
lea ecx, [ebp - 0x28]
call fcn.004a8ec0
jmp 0x4d6578
mov edx, dword [ebp - 0x13c]
mov dword [ebp - 0x154], edx
cmp dword [ebp - 0x154], 0
je 0x4d6452
cmp dword [ebp - 0x154], 1
je 0x4d6461
cmp dword [ebp - 0x154], 2
je 0x4d6470
jmp 0x4d64c8
push str.Windows_2000
lea ecx, [ebp - 0x28]
call fcn.004a8ec0
jmp 0x4d64c8
push str.Windows_XP
lea ecx, [ebp - 0x28]
call fcn.004a8ec0
jmp 0x4d64c8
movzx eax, byte [ebp - 0x2a]
cmp eax, 1
jne 0x4d6494
movzx ecx, word [ebp - 0x190]
cmp ecx, 9
jne 0x4d6494
push str.Windows_XP_Professional_x64_Edition
lea ecx, [ebp - 0x28]
call fcn.004a8ec0
jmp 0x4d64c8
push 0x59
call dword [sym.imp.USER32.dll_GetSystemMetrics]
test eax, eax
jne 0x4d64af
push str.Windows_Server_2003
lea ecx, [ebp - 0x28]
call fcn.004a8ec0
jmp 0x4d64c8
push 0x59
call dword [sym.imp.USER32.dll_GetSystemMetrics]
test eax, eax
je 0x4d64c8
push str.Windows_Server_2003_R2
lea ecx, [ebp - 0x28]
call fcn.004a8ec0
jmp 0x4d6578
mov edx, dword [ebp - 0x13c]
mov dword [ebp - 0x158], edx
cmp dword [ebp - 0x158], 0
je 0x4d64f6
cmp dword [ebp - 0x158], 1
je 0x4d651d
cmp dword [ebp - 0x158], 2
je 0x4d6544
jmp 0x4d6569
movzx eax, byte [ebp - 0x2a]
cmp eax, 1
jne 0x4d650e
push str.Windows_Vista
lea ecx, [ebp - 0x28]
call fcn.004a8ec0
jmp 0x4d651b
push str.Windows_Server_2008
lea ecx, [ebp - 0x28]
call fcn.004a8ec0
jmp 0x4d6569
movzx ecx, byte [ebp - 0x2a]
cmp ecx, 1
jne 0x4d6535
push str.Windows_7
lea ecx, [ebp - 0x28]
call fcn.004a8ec0
jmp 0x4d6542
push str.Windows_Server_2008_R2
lea ecx, [ebp - 0x28]
call fcn.004a8ec0
jmp 0x4d6569
movzx edx, byte [ebp - 0x2a]
cmp edx, 1
jne 0x4d655c
push str.Windows_8
lea ecx, [ebp - 0x28]
call fcn.004a8ec0
jmp 0x4d6569
push str.Windows_Server_2012
lea ecx, [ebp - 0x28]
call fcn.004a8ec0
jmp 0x4d6578
push str.Error
lea ecx, [ebp - 0x28]
call fcn.004a8ec0
lea eax, [ebp - 0x28]
push eax
mov ecx, dword [ebp + 8]
call fcn.0048be10
mov ecx, dword [ebp - 0x148]
or ecx, 1
mov dword [ebp - 0x148], ecx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.0048bcd0
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.005c950e
mov esp, ebp
pop ebp
ret