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

Disassembly:
mov rax, rsp
push rbp
lea rbp, [rax - 0xa8]
sub rsp, 0x1a0
mov qword [rsp + 0x60], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rdi
mov rax, qword [0x14026fdb0]
xor rax, rsp
mov qword [rbp + 0x90], rax
xor r8d, r8d
lea rdx, str.Tool_CheckCoreEdition
lea rcx, [rsp + 0x38]
call fcn.140001190
nop
xor ebx, ebx
xor edx, edx
mov r8d, 0x11c
lea rcx, [rsp + 0x70]
call fcn.14019d7c0
mov dword [rsp + 0x70], 0x11c
lea rcx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x14001ea7d
xor r9d, r9d
lea r8, str.return___08x
lea edx, [rbx + 2]
lea rcx, [rsp + 0x38]
call fcn.140001370
nop
lea rcx, [rsp + 0x38]
call fcn.140001320
xor eax, eax
jmp 0x14001ec6f
call fcn.1400166e0
movzx ecx, byte [rbp + 0x8a]
mov edx, dword [rsp + 0x74]
cmp edx, 6
jne 0x14001ea9e
cmp dword [rsp + 0x78], 2
jae 0x14001eaa4
jmp 0x14001eb7c
jbe 0x14001eb7c
cmp cl, 1
je 0x14001eb7c
lea r8, str.Win2012_2016_Server
mov edx, 7
lea rcx, [rsp + 0x38]
call fcn.140001370
mov qword [rsp + 0x48], rbx
mov dword [rsp + 0x50], ebx
mov qword [rsp + 0x58], rbx
mov r9d, 0x20019
lea r8, str.SoftwareMicrosoftWindows_NTCurrentVersionServerServerLevels
mov rdx, 0xffffffff80000002
lea rcx, [rsp + 0x48]
call fcn.140003af0
mov rdi, qword [rsp + 0x48]
test eax, eax
jne 0x14001eb65
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rbx
xor r9d, r9d
xor r8d, r8d
lea rdx, str.ServerCoreExtended
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, 2
jne 0x14001eb26
lea r8, str.Core_Edtion___
jmp 0x14001eb51
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rbx
xor r9d, r9d
xor r8d, r8d
lea rdx, str.NanoServer
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14001eb65
lea r8, str.Nano_Server___
mov edx, 7
lea rcx, [rsp + 0x38]
call fcn.140001370
mov ebx, 1
test rdi, rdi
je 0x14001ec49
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x14001ec49
cmp eax, 0xa
jne 0x14001ec49
cmp cl, 1
je 0x14001ec49
lea r8, str.Win2008_Server
lea edx, [rax - 3]
lea rcx, [rsp + 0x38]
call fcn.140001370
mov dword [rsp + 0x30], ebx
lea rcx, str.kernel32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14001ec49
lea rdx, str.GetProductInfo
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14001ec49
movzx r9d, word [rbp + 0x86]
movzx r8d, word [rbp + 0x84]
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x20], rcx
mov edx, dword [rsp + 0x78]
mov ecx, dword [rsp + 0x74]
call rax
test eax, eax
je 0x14001ec49
mov eax, dword [rsp + 0x30]
cmp eax, 0xc
jb 0x14001ec33
cmp eax, 0xe
jbe 0x14001ec16
cmp eax, 0x1d
je 0x14001ec16
cmp eax, 0x26
jbe 0x14001ec33
cmp eax, 0x29
ja 0x14001ec33
lea r8, str.Core_Edtion___
mov edx, 7
lea rcx, [rsp + 0x38]
call fcn.140001370
mov ebx, 1
jmp 0x14001ec49
lea r8, str.NOT_Core_Edtion___
mov edx, 7
lea rcx, [rsp + 0x38]
call fcn.140001370
mov r9d, ebx
lea r8, str.return___08x
mov edx, 2
lea rcx, [rsp + 0x38]
call fcn.140001370
nop
lea rcx, [rsp + 0x38]
call fcn.140001320
mov eax, ebx
mov rcx, qword [rbp + 0x90]
xor rcx, rsp
call fcn.140198b40
lea r11, [rsp + 0x1a0]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret