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

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x190
mov rax, qword [0x140126108]
xor rax, rsp
mov qword [rsp + 0x180], rax
mov r8d, 0xaf
lea rdi, str.IsServerCoreOS
lea r9, [0x1400f0978]
lea rdx, str..uiMainConsole.cpp
lea ecx, [r8 - 0x6b]
xor bl, bl
mov qword [rsp + 0x20], rdi
call fcn.1400580a0
lea rcx, [rsp + 0x60]
xor edx, edx
mov r8d, 0x11c
call fcn.1400a0a70
lea rcx, [rsp + 0x60]
mov dword [rsp + 0x60], 0x11c
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
lea rdx, str..uiMainConsole.cpp
test eax, eax
jne 0x14002bbcb
lea r9, str._s___Cant_get_Windows_Info.
lea ecx, [rax + 0x45]
mov r8d, UnRegisterTypeLib
mov qword [rsp + 0x20], rdi
call fcn.1400580a0
xor al, al
jmp 0x14002be39
mov eax, dword [rsp + 0x68]
mov r8d, 0xbb
lea r9, str._s___version___d___d
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x64]
lea ecx, [r8 - 0x77]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rdi
call fcn.1400580a0
cmp dword [rsp + 0x64], 6
jne 0x14002bd77
cmp dword [rsp + 0x68], 2
jb 0x14002bd77
mov r8d, 0xbe
lea r9, str._s___This_could_be_Server_2012_core
lea rdx, str..uiMainConsole.cpp
lea ecx, [r8 - 0x7a]
mov qword [rsp + 0x20], rdi
call fcn.1400580a0
xor r11d, r11d
lea rax, [rsp + 0x50]
lea rdx, str.SoftwareMicrosoftWindows_NTCurrentVersionServerServerLevels
mov r9d, 0x20019
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x50], r11
mov dword [rsp + 0x40], r11d
mov dword [rsp + 0x4c], r11d
mov dword [rsp + 0x48], r11d
mov dword [rsp + 0x44], 4
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14002be0d
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x44]
lea rdx, str.ServerCore
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp dword [rsp + 0x40], 1
jne 0x14002bd67
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x44]
lea rdx, str.Server_Gui_Mgmt
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x4c]
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x44], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x44]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x48]
lea rdx, str.Server_Gui_Shell
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x44], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov r11d, dword [rsp + 0x48]
mov eax, dword [rsp + 0x4c]
mov dword [rsp + 0x30], r11d
lea r9, str._s___GUI_mgmt___d__shell___d
mov dword [rsp + 0x28], eax
lea rdx, str..uiMainConsole.cpp
mov r8d, 0xcf
mov ecx, 0x49
mov qword [rsp + 0x20], rdi
call fcn.1400580a0
cmp dword [rsp + 0x4c], 0
jne 0x14002bd67
cmp dword [rsp + 0x48], 0
movzx ebx, bl
mov eax, 1
cmove ebx, eax
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x14002be0d
lea r9, str._s___This_could_be_Server_2008_core
lea rdx, str..uiMainConsole.cpp
mov r8d, 0xd8
mov ecx, 0x44
mov qword [rsp + 0x20], rdi
call fcn.1400580a0
xor r11d, r11d
lea rcx, str.kernel32.dll
mov dword [rsp + 0x40], r11d
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rdx, str.GetProductInfo
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14002be0d
movzx r9d, word [rsp + 0x176]
movzx r8d, word [rsp + 0x174]
mov edx, dword [rsp + 0x68]
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x20], rcx
mov ecx, dword [rsp + 0x64]
call rax
test eax, eax
je 0x14002be0d
mov eax, dword [rsp + 0x40]
cmp eax, 0xc
jb 0x14002be0d
cmp eax, 0xe
jbe 0x14002be0b
cmp eax, 0x1d
je 0x14002be0b
cmp eax, 0x26
jbe 0x14002be0d
cmp eax, 0x29
ja 0x14002be0d
mov bl, 1
movzx edx, bl
lea r9, str._s_______server_core__d_
mov r8d, 0xfa
mov dword [rsp + 0x28], edx
lea rdx, str..uiMainConsole.cpp
mov ecx, 0x44
mov qword [rsp + 0x20], rdi
call fcn.1400580a0
mov al, bl
mov rcx, qword [rsp + 0x180]
xor rcx, rsp
call fcn.14009cca0
mov rbx, qword [rsp + 0x1a0]
add rsp, 0x190
pop rdi
ret