Function at 0x140014c60
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 [0x140260d50]
xor rax, rsp
mov qword [rbp + 0x90], rax
xor r8d, r8d
lea rdx, str.Tool_CheckCoreEdition
lea rcx, [rsp + 0x38]
call fcn.14000b870
nop
xor ebx, ebx
xor edx, edx
mov r8d, 0x11c
lea rcx, [rsp + 0x70]
call fcn.140193010
mov dword [rsp + 0x70], 0x11c
lea rcx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x140014cfd
xor r9d, r9d
lea r8, str.return___08x
lea edx, [rbx + 2]
lea rcx, [rsp + 0x38]
call fcn.14000ba50
nop
lea rcx, [rsp + 0x38]
call fcn.14000ba00
xor eax, eax
jmp 0x140014eef
call fcn.14000cc50
movzx ecx, byte [rbp + 0x8a]
mov edx, dword [rsp + 0x74]
cmp edx, 6
jne 0x140014d1e
cmp dword [rsp + 0x78], 2
jae 0x140014d24
jmp 0x140014dfc
jbe 0x140014dfc
cmp cl, 1
je 0x140014dfc
lea r8, str.Win2012_2016_Server
mov edx, 7
lea rcx, [rsp + 0x38]
call fcn.14000ba50
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.14000af00
mov rdi, qword [rsp + 0x48]
test eax, eax
jne 0x140014de5
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 0x140014da6
lea r8, str.Core_Edtion___
jmp 0x140014dd1
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 0x140014de5
lea r8, str.Nano_Server___
mov edx, 7
lea rcx, [rsp + 0x38]
call fcn.14000ba50
mov ebx, 1
test rdi, rdi
je 0x140014ec9
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x140014ec9
cmp eax, 0xa
jne 0x140014ec9
cmp cl, 1
je 0x140014ec9
lea r8, str.Win2008_Server
lea edx, [rax - 3]
lea rcx, [rsp + 0x38]
call fcn.14000ba50
mov dword [rsp + 0x30], ebx
lea rcx, str.kernel32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140014ec9
lea rdx, str.GetProductInfo
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140014ec9
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 0x140014ec9
mov eax, dword [rsp + 0x30]
cmp eax, 0xc
jb 0x140014eb3
cmp eax, 0xe
jbe 0x140014e96
cmp eax, 0x1d
je 0x140014e96
cmp eax, 0x26
jbe 0x140014eb3
cmp eax, 0x29
ja 0x140014eb3
lea r8, str.Core_Edtion___
mov edx, 7
lea rcx, [rsp + 0x38]
call fcn.14000ba50
mov ebx, 1
jmp 0x140014ec9
lea r8, str.NOT_Core_Edtion___
mov edx, 7
lea rcx, [rsp + 0x38]
call fcn.14000ba50
mov r9d, ebx
lea r8, str.return___08x
mov edx, 2
lea rcx, [rsp + 0x38]
call fcn.14000ba50
nop
lea rcx, [rsp + 0x38]
call fcn.14000ba00
mov eax, ebx
mov rcx, qword [rbp + 0x90]
xor rcx, rsp
call fcn.14018e5d0
lea r11, [rsp + 0x1a0]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret