Function at 0x45dda0
Capabilities:
Check os version
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d286b
mov eax, dword fs:[0]
push eax
sub esp, 0x34c
mov eax, dword [0x50e018]
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 eax, dword [ebp + 8]
push 0x11c
xor ebx, ebx
lea ecx, [ebp - 0x348]
push ebx
push ecx
mov dword [ebp - 0x354], eax
call sub.MSVCR100.dll_memset
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExW]
add esp, 0xc
lea edx, [ebp - 0x348]
push edx
mov dword [ebp - 0x348], 0x11c
call esi
mov edi, eax
cmp edi, ebx
jne 0x45de2c
lea eax, [ebp - 0x348]
push eax
mov dword [ebp - 0x348], 0x114
call esi
test eax, eax
jne 0x45de2c
or eax, 0xffffffff
jmp 0x45e30c
mov dword [ebp - 0x218], 0xf
mov dword [ebp - 0x21c], ebx
mov byte [ebp - 0x22c], bl
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 0x338]
sub eax, ebx
je 0x45e2bc
dec eax
je 0x45e213
dec eax
jne 0x45e2dd
lea ecx, [ebp - 0x34c]
push ecx
mov dword [ebp - 0x34c], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_IsWow64Process]
mov eax, dword [ebp - 0x344]
cmp eax, 4
ja 0x45de9d
push 0x15
push str.Microsoft_Windows_NT
lea ecx, [ebp - 0x22c]
call fcn.00405360
jmp 0x45e05c
cmp eax, 5
jne 0x45df58
mov eax, dword [ebp - 0x340]
cmp eax, ebx
jne 0x45dec1
lea edx, [ebp - 0x22c]
push edx
mov edx, str.Microsoft_Windows_2000
jmp 0x45e057
cmp eax, 1
jne 0x45ded7
lea eax, [ebp - 0x22c]
push eax
mov edx, str.Microsoft_Windows_XP
jmp 0x45e057
cmp eax, 2
jne 0x45e04b
cmp byte [ebp - 0x22e], 1
jne 0x45df02
cmp dword [ebp - 0x34c], ebx
je 0x45df02
lea ecx, [ebp - 0x22c]
push ecx
mov edx, str.Microsoft_Windows_XP_x64
jmp 0x45e057
mov esi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0x59
call esi
test eax, eax
jne 0x45df21
lea edx, [ebp - 0x22c]
push edx
mov edx, str.Microsoft_Windows_Server_2003
jmp 0x45e057
mov eax, dword [ebp - 0x344]
cmp eax, 5
jne 0x45df58
cmp dword [ebp - 0x340], 2
jne 0x45e04b
push 0x59
call esi
test eax, eax
je 0x45df52
lea eax, [ebp - 0x22c]
push eax
mov edx, str.Microsoft_Windows_Server_2003_R2
jmp 0x45e057
mov eax, dword [ebp - 0x344]
cmp eax, 6
jne 0x45e019
mov eax, dword [ebp - 0x340]
cmp eax, ebx
jne 0x45df96
cmp byte [ebp - 0x22e], 1
jne 0x45df85
lea ecx, [ebp - 0x22c]
push ecx
mov edx, str.Microsoft_Windows_Vista
jmp 0x45e057
lea edx, [ebp - 0x22c]
push edx
mov edx, str.Microsoft_Windows_Server_2008
jmp 0x45e057
cmp eax, 1
jne 0x45dfc5
cmp byte [ebp - 0x22e], al
jne 0x45dfb4
lea eax, [ebp - 0x22c]
push eax
mov edx, str.Microsoft_Windows_7
jmp 0x45e057
lea ecx, [ebp - 0x22c]
push ecx
mov edx, str.Microsoft_Windows_Server_2008_R2
jmp 0x45e057
cmp eax, 2
jne 0x45dfef
cmp byte [ebp - 0x22e], 1
jne 0x45dfe1
lea edx, [ebp - 0x22c]
push edx
mov edx, str.Microsoft_Windows_8
jmp 0x45e057
lea eax, [ebp - 0x22c]
push eax
mov edx, str.Microsoft_Windows_Server_2012
jmp 0x45e057
cmp eax, 3
jne 0x45e04b
cmp byte [ebp - 0x22e], 1
jne 0x45e00b
lea ecx, [ebp - 0x22c]
push ecx
mov edx, str.Microsoft_Windows_8.1
jmp 0x45e057
lea edx, [ebp - 0x22c]
push edx
mov edx, str.Microsoft_Windows_Server_2012_R2
jmp 0x45e057
cmp eax, 0xa
jne 0x45e04b
cmp dword [ebp - 0x340], ebx
jne 0x45e04b
cmp byte [ebp - 0x22e], 1
jne 0x45e03d
lea eax, [ebp - 0x22c]
push eax
mov edx, str.Microsoft_Windows_10_Insider_Preview
jmp 0x45e057
lea ecx, [ebp - 0x22c]
push ecx
mov edx, str.Microsoft_Windows_Server_Technical_Preview
jmp 0x45e057
lea edx, [ebp - 0x22c]
push edx
mov edx, str.Microsoft_Unknown_System
call fcn.00409f10
cmp edi, ebx
je 0x45e0bf
mov al, byte [ebp - 0x22e]
cmp al, 1
jne 0x45e094
test dword [ebp - 0x230], 0x200
lea ecx, [ebp - 0x22c]
je 0x45e088
push 9
push str.Personal
jmp 0x45e19a
push 0xd
push str.Professional
jmp 0x45e19a
cmp al, 3
jne 0x45e19f
mov al, byte [ebp - 0x230]
test al, al
jns 0x45e0b2
push 0x12
push str.DataCenter_Server
jmp 0x45e194
test al, 2
je 0x45e19f
jmp 0x45e18d
push 0xff
lea eax, [ebp - 0x10f]
push ebx
push eax
mov byte [ebp - 0x110], bl
call sub.MSVCR100.dll_memset
add esp, 0xc
lea ecx, [ebp - 0x350]
push ecx
push 1
push ebx
push str.SYSTEMCurrentControlSetControlProductOptions
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x358], 0x100
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov ecx, dword [ebp - 0x350]
lea edx, [ebp - 0x358]
push edx
lea eax, [ebp - 0x110]
push eax
push ebx
push ebx
push str.ProductType
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edx, dword [ebp - 0x350]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpiA]
lea eax, [ebp - 0x110]
push eax
push str.WINNT
call esi
test eax, eax
jne 0x45e157
push 0xd
push str.Professional
lea ecx, [ebp - 0x22c]
call fcn.0040e4c0
lea ecx, [ebp - 0x110]
push ecx
push str.LANMANNT
call esi
test eax, eax
jne 0x45e17b
push 7
push str.Server
lea ecx, [ebp - 0x22c]
call fcn.0040e4c0
lea edx, [ebp - 0x110]
push edx
push str.SERVERNT
call esi
test eax, eax
jne 0x45e19f
push 0x10
push str.Advanced_Server
lea ecx, [ebp - 0x22c]
call fcn.0040e4c0
push 0xff
lea eax, [ebp - 0x20f]
push ebx
push eax
mov byte [ebp - 0x210], bl
call sub.MSVCR100.dll_memset
movzx ecx, word [ebp - 0x33c]
mov edx, dword [ebp - 0x340]
mov eax, dword [ebp - 0x344]
push ecx
push edx
push eax
lea ecx, [ebp - 0x334]
push ecx
lea edx, [ebp - 0x210]
push str._s_version__d._d._d
push edx
call dword [sym.imp.MSVCR100.dll_sprintf]
lea eax, [ebp - 0x210]
add esp, 0x24
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x45e1f2
sub eax, edx
push eax
lea eax, [ebp - 0x210]
push eax
lea ecx, [ebp - 0x22c]
call fcn.0040e4c0
jmp 0x45e2ce
mov esi, 4
cmp dword [ebp - 0x344], esi
jne 0x45e2dd
cmp dword [ebp - 0x340], ebx
jne 0x45e26b
push 0x15
push str.Microsoft_Windows_95
lea ecx, [ebp - 0x22c]
call fcn.00405360
mov ax, word [ebp - 0x332]
cmp ax, 0x43
je 0x45e251
cmp ax, 0x42
jne 0x45e263
push 5
push str.OSR2
lea ecx, [ebp - 0x22c]
call fcn.0040e4c0
cmp dword [ebp - 0x344], esi
jne 0x45e2ce
cmp dword [ebp - 0x340], 0xa
jne 0x45e2aa
push 0x15
push str.Microsoft_Windows_98
lea ecx, [ebp - 0x22c]
call fcn.00405360
cmp word [ebp - 0x332], 0x41
jne 0x45e2a2
push 3
push 0x4ed694
lea ecx, [ebp - 0x22c]
call fcn.0040e4c0
cmp dword [ebp - 0x344], esi
jne 0x45e2ce
cmp dword [ebp - 0x340], 0x5a
jne 0x45e2ce
push 0x15
push str.Microsoft_Windows_Me
jmp 0x45e2c3
push 0x11
push str.Microsoft_Win32s
lea ecx, [ebp - 0x22c]
call fcn.00405360
cmp dword [ebp - 0x218], 0x10
mov eax, dword [ebp - 0x22c]
jae 0x45e2e3
lea eax, [ebp - 0x22c]
mov ecx, dword [ebp - 0x354]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
cmp dword [ebp - 0x218], 0x10
jb 0x45e30a
mov edx, dword [ebp - 0x22c]
push edx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
xor eax, eax
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.004a665a
mov esp, ebp
pop ebp
ret