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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x563c76
mov eax, dword fs:[0]
push eax
sub esp, 0x148
mov eax, dword [0x5c0490]
xor eax, esp
mov dword [esp + 0x140], eax
push ebx
push esi
push edi
mov eax, dword [0x5c0490]
xor eax, esp
push eax
lea eax, [esp + 0x158]
mov dword fs:[0], eax
xor ebx, ebx
push ebx
lea eax, [esp + 0x14]
push str.Tool_CheckCoreEdition
push eax
call fcn.00401190
add esp, 0xc
push 0x11c
lea ecx, [esp + 0x30]
push ebx
push ecx
mov dword [esp + 0x16c], ebx
mov dword [esp + 0x24], ebx
call fcn.00541d20
add esp, 0xc
lea edx, [esp + 0x2c]
push edx
mov dword [esp + 0x30], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x41af5a
push ebx
push str.return___08x
lea eax, [esp + 0x18]
push 2
push eax
call fcn.00401410
add esp, 0x10
lea ecx, [esp + 0x10]
mov dword [esp + 0x160], 0xffffffff
call fcn.00401370
xor eax, eax
jmp 0x41b132
call fcn.00414850
mov ecx, dword [esp + 0x30]
mov dl, byte [esp + 0x146]
cmp ecx, 6
jne 0x41b018
cmp dword [esp + 0x34], 2
jae 0x41b01e
cmp eax, 0xa
jne 0x41b103
cmp dl, 1
je 0x41b103
push str.Win2008_Server
lea ecx, [esp + 0x14]
push 7
push ecx
call fcn.00401410
add esp, 0xc
push str.kernel32.dll
mov dword [esp + 0x20], ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
cmp eax, ebx
je 0x41b103
push str.GetProductInfo
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x41b103
movzx ecx, word [esp + 0x142]
lea edx, [esp + 0x1c]
push edx
movzx edx, word [esp + 0x144]
push ecx
mov ecx, dword [esp + 0x3c]
push edx
mov edx, dword [esp + 0x3c]
push ecx
push edx
call eax
test eax, eax
je 0x41b103
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff4
cmp eax, 0x1d
ja case.0x41b011.15
movzx eax, byte [eax + 0x41b160]
jmp dword [eax*4 + 0x41b158]
jbe 0x41af7e
cmp dl, 1
je 0x41af7e
push str.Win2012_2016_Server
lea ecx, [esp + 0x14]
push 7
push ecx
call fcn.00401410
add esp, 0xc
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
push 0x20019
push str.SoftwareMicrosoftWindows_NTCurrentVersionServerServerLevels
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [esp + 0x2c]
mov byte [esp + 0x16c], 1
call fcn.004037f0
mov edi, dword [esp + 0x20]
test eax, eax
jne 0x41b0c0
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push ebx
push ebx
push ebx
push ebx
push str.ServerCoreExtended
push edi
call esi
cmp eax, 2
jne 0x41b094
push str.Core_Edtion___
push 7
lea edx, [esp + 0x18]
push edx
jmp 0x41b0b0
push ebx
push ebx
push ebx
push ebx
push 0x595224
push edi
call esi
test eax, eax
jne 0x41b0c0
push str.Nano_Server___
push 7
lea eax, [esp + 0x18]
push eax
call fcn.00401410
mov dword [esp + 0x24], 1
add esp, 0xc
mov byte [esp + 0x160], bl
cmp edi, ebx
je 0x41b103
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x41b103
push str.Core_Edtion___
lea ecx, [esp + 0x14]
push 7
push ecx
call fcn.00401410
mov dword [esp + 0x24], 1
jmp 0x41b100
push str.NOT_Core_Edtion___
lea edx, [esp + 0x14]
push 7
push edx
call fcn.00401410
add esp, 0xc
mov esi, dword [esp + 0x18]
push esi
push str.return___08x
lea eax, [esp + 0x18]
push 2
push eax
call fcn.00401410
add esp, 0x10
lea ecx, [esp + 0x10]
mov dword [esp + 0x160], 0xffffffff
call fcn.00401370
mov eax, esi
mov ecx, dword [esp + 0x158]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x140]
xor ecx, esp
call fcn.0053ca73
mov esp, ebp
pop ebp
ret