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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x612638
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.004d9c20
movzx eax, al
test eax, eax
je 0x4d6465
push str.Windows_11
mov ecx, dword [ebp + 8]
call fcn.0047c100
mov ecx, dword [ebp - 0x148]
or ecx, 1
mov dword [ebp - 0x148], ecx
mov eax, dword [ebp + 8]
jmp 0x4d67b5
push 0x6764f6
lea ecx, [ebp - 0x28]
call fcn.0047c100
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 0x4d650e
cmp dword [ebp - 0x160], 3
jne 0x4d650e
push str.Windows_8.1
lea ecx, [ebp - 0x28]
call fcn.004a9090
lea eax, [ebp - 0x28]
push eax
mov ecx, dword [ebp + 8]
call fcn.0047c080
mov ecx, dword [ebp - 0x148]
or ecx, 1
mov dword [ebp - 0x148], ecx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.0047c030
mov eax, dword [ebp + 8]
jmp 0x4d67b5
cmp dword [ebp - 0x15c], 0xa
jne 0x4d655f
cmp dword [ebp - 0x160], 0
jne 0x4d655f
push str.Windows_10
lea ecx, [ebp - 0x28]
call fcn.004a9090
lea edx, [ebp - 0x28]
push edx
mov ecx, dword [ebp + 8]
call fcn.0047c080
mov eax, dword [ebp - 0x148]
or eax, 1
mov dword [ebp - 0x148], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.0047c030
mov eax, dword [ebp + 8]
jmp 0x4d67b5
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 0x4d6788
mov eax, dword [ebp - 0x140]
mov dword [ebp - 0x14c], eax
cmp dword [ebp - 0x14c], 4
je 0x4d65bf
cmp dword [ebp - 0x14c], 5
je 0x4d6639
cmp dword [ebp - 0x14c], 6
je 0x4d66dd
jmp 0x4d677b
mov ecx, dword [ebp - 0x13c]
mov dword [ebp - 0x150], ecx
cmp dword [ebp - 0x150], 0
je 0x4d65e8
cmp dword [ebp - 0x150], 0xa
je 0x4d6618
cmp dword [ebp - 0x150], 0x5a
je 0x4d6627
jmp 0x4d6634
cmp dword [ebp - 0x134], 2
jne 0x4d6600
push str.Windows_NT_4.0
lea ecx, [ebp - 0x28]
call fcn.004a9090
jmp 0x4d6616
cmp dword [ebp - 0x134], 1
jne 0x4d6616
push str.Windows_95
lea ecx, [ebp - 0x28]
call fcn.004a9090
jmp 0x4d6634
push str.Windows_98
lea ecx, [ebp - 0x28]
call fcn.004a9090
jmp 0x4d6634
push str.Microsoft_Windows_Me
lea ecx, [ebp - 0x28]
call fcn.004a9090
jmp 0x4d6788
mov edx, dword [ebp - 0x13c]
mov dword [ebp - 0x154], edx
cmp dword [ebp - 0x154], 0
je 0x4d6662
cmp dword [ebp - 0x154], 1
je 0x4d6671
cmp dword [ebp - 0x154], 2
je 0x4d6680
jmp 0x4d66d8
push str.Windows_2000
lea ecx, [ebp - 0x28]
call fcn.004a9090
jmp 0x4d66d8
push str.Windows_XP
lea ecx, [ebp - 0x28]
call fcn.004a9090
jmp 0x4d66d8
movzx eax, byte [ebp - 0x2a]
cmp eax, 1
jne 0x4d66a4
movzx ecx, word [ebp - 0x190]
cmp ecx, 9
jne 0x4d66a4
push str.Windows_XP_Professional_x64_Edition
lea ecx, [ebp - 0x28]
call fcn.004a9090
jmp 0x4d66d8
push 0x59
call dword [sym.imp.USER32.dll_GetSystemMetrics]
test eax, eax
jne 0x4d66bf
push str.Windows_Server_2003
lea ecx, [ebp - 0x28]
call fcn.004a9090
jmp 0x4d66d8
push 0x59
call dword [sym.imp.USER32.dll_GetSystemMetrics]
test eax, eax
je 0x4d66d8
push str.Windows_Server_2003_R2
lea ecx, [ebp - 0x28]
call fcn.004a9090
jmp 0x4d6788
mov edx, dword [ebp - 0x13c]
mov dword [ebp - 0x158], edx
cmp dword [ebp - 0x158], 0
je 0x4d6706
cmp dword [ebp - 0x158], 1
je 0x4d672d
cmp dword [ebp - 0x158], 2
je 0x4d6754
jmp 0x4d6779
movzx eax, byte [ebp - 0x2a]
cmp eax, 1
jne 0x4d671e
push str.Windows_Vista
lea ecx, [ebp - 0x28]
call fcn.004a9090
jmp 0x4d672b
push str.Windows_Server_2008
lea ecx, [ebp - 0x28]
call fcn.004a9090
jmp 0x4d6779
movzx ecx, byte [ebp - 0x2a]
cmp ecx, 1
jne 0x4d6745
push str.Windows_7
lea ecx, [ebp - 0x28]
call fcn.004a9090
jmp 0x4d6752
push str.Windows_Server_2008_R2
lea ecx, [ebp - 0x28]
call fcn.004a9090
jmp 0x4d6779
movzx edx, byte [ebp - 0x2a]
cmp edx, 1
jne 0x4d676c
push str.Windows_8
lea ecx, [ebp - 0x28]
call fcn.004a9090
jmp 0x4d6779
push str.Windows_Server_2012
lea ecx, [ebp - 0x28]
call fcn.004a9090
jmp 0x4d6788
push str.Error
lea ecx, [ebp - 0x28]
call fcn.004a9090
lea eax, [ebp - 0x28]
push eax
mov ecx, dword [ebp + 8]
call fcn.0047c080
mov ecx, dword [ebp - 0x148]
or ecx, 1
mov dword [ebp - 0x148], ecx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.0047c030
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.005c978e
mov esp, ebp
pop ebp
ret