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

Disassembly:
push rbp
lea rbp, [rsp - 0x2a0]
sub rsp, 0x3a0
mov qword [rsp + 0x58], 0xfffffffffffffffe
mov qword [rsp + 0x3b0], rbx
mov rax, qword [0x14027bbd0]
xor rax, rsp
mov qword [rbp + 0x290], rax
xor r8d, r8d
lea rdx, str.Tool_CheckCoreEdition
lea rcx, [rsp + 0x38]
call fcn.140017fc0
nop
xor ebx, ebx
xor edx, edx
mov r8d, 0x11c
lea rcx, [rsp + 0x60]
call fcn.140192cb0
mov dword [rsp + 0x60], 0x11c
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x14000de9c
xor r9d, r9d
lea r8, str.return___08x
lea edx, [rbx + 2]
lea rcx, [rsp + 0x38]
call fcn.140017c80
nop
lea rcx, [rsp + 0x38]
call fcn.140018150
xor eax, eax
jmp 0x14000e09b
call fcn.14000c310
movzx ecx, byte [rbp + 0x7a]
cmp dword [rsp + 0x64], 6
jne 0x14000dfae
cmp dword [rsp + 0x68], 2
jne 0x14000dfae
cmp cl, 1
je 0x14000dfae
lea r8, str.WinV6.2_Server
mov edx, 7
lea rcx, [rsp + 0x38]
call fcn.140017c80
mov qword [rsp + 0x48], rbx
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, str.SoftwareMicrosoftWindows_NTCurrentVersion
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14000e075
mov word [rbp + 0x80], bx
xor edx, edx
mov r8d, 0x206
lea rcx, [rbp + 0x82]
call fcn.140192cb0
mov dword [rsp + 0x54], 0x208
mov dword [rsp + 0x50], 1
lea rax, [rsp + 0x54]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x80]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x50]
xor r8d, r8d
lea rdx, str.InstallationType
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14000df9e
lea rdx, [rbp + 0x80]
lea rcx, str.Server_Core
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x14000df9e
lea r8, str.Core_Edtion___
lea edx, [rax + 7]
lea rcx, [rsp + 0x38]
call fcn.140017c80
mov ebx, 1
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x14000e075
cmp eax, 0xa
jne 0x14000e075
cmp cl, 1
je 0x14000e075
lea r8, str.WinV6.x_Server
lea edx, [rax - 3]
lea rcx, [rsp + 0x38]
call fcn.140017c80
mov dword [rsp + 0x30], ebx
lea rcx, str.kernel32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000e075
lea rdx, str.GetProductInfo
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14000e075
movzx r9d, word [rbp + 0x76]
movzx r8d, word [rbp + 0x74]
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x20], rcx
mov edx, dword [rsp + 0x68]
mov ecx, dword [rsp + 0x64]
call rax
test eax, eax
je 0x14000e075
mov eax, dword [rsp + 0x30]
cmp eax, 0xc
jb 0x14000e05f
cmp eax, 0xe
jbe 0x14000e042
cmp eax, 0x1d
je 0x14000e042
cmp eax, 0x26
jbe 0x14000e05f
cmp eax, 0x29
ja 0x14000e05f
lea r8, str.Core_Edtion___
mov edx, 7
lea rcx, [rsp + 0x38]
call fcn.140017c80
mov ebx, 1
jmp 0x14000e075
lea r8, str.NOT_Core_Edtion___
mov edx, 7
lea rcx, [rsp + 0x38]
call fcn.140017c80
mov r9d, ebx
lea r8, str.return___08x
mov edx, 2
lea rcx, [rsp + 0x38]
call fcn.140017c80
nop
lea rcx, [rsp + 0x38]
call fcn.140018150
mov eax, ebx
mov rcx, qword [rbp + 0x290]
xor rcx, rsp
call fcn.1401945b0
mov rbx, qword [rsp + 0x3b0]
add rsp, 0x3a0
pop rbp
ret