Function at 0x14009214c
Capabilities:
Check os version

Disassembly:
mov rax, rsp
push rbp
lea rbp, [rsp - 0x80]
sub rsp, 0x180
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rdi
mov rax, qword [0x1400c5a08]
xor rax, rsp
mov qword [rbp + 0x70], rax
mov rbx, rcx
and qword [rsp + 0x38], 0
and dword [rsp + 0x30], 0
test rcx, rcx
jne 0x14009219f
mov edi, 0x80070057
mov ecx, edi
call fcn.140025d30
jmp 0x14009230e
xor edx, edx
mov r8d, 0x118
lea rcx, [rsp + 0x54]
call sub.msvcrt.dll_memset
mov dword [rsp + 0x50], 0x11c
lea rcx, [rsp + 0x50]
call qword [sym.imp.ntdll.dll_RtlGetVersion]
nop dword [rax + rax]
test eax, eax
je 0x1400921e4
lea rdx, [rsp + 0x30]
mov ecx, eax
call fcn.140025c40
test eax, eax
jne 0x1400921e4
mov edi, dword [rsp + 0x30]
jmp 0x140092193
cmp dword [rsp + 0x54], 6
ja 0x1400923c4
jne 0x140092397
mov eax, dword [rsp + 0x58]
cmp eax, 1
jae 0x1400923c4
test eax, eax
jne 0x140092397
cmp byte [rbp + 0x6a], 1
je 0x14009239d
lea rcx, str.kernel32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
nop dword [rax + rax]
mov rcx, rax
lea rdx, [0x1400b3498]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
nop dword [rax + rax]
test rax, rax
jne 0x14009226f
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
test eax, eax
jne 0x14009225c
mov edi, 0x80004005
jmp 0x140092193
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
jmp 0x140092193
movzx r9d, word [rbp + 0x66]
movzx r8d, word [rbp + 0x64]
lea rcx, [rsp + 0x48]
mov qword [rsp + 0x20], rcx
mov edx, dword [rsp + 0x58]
mov ecx, dword [rsp + 0x54]
call qword [str.PN_t_]
test eax, eax
je 0x140092242
mov eax, dword [rsp + 0x48]
cmp eax, 0xc
jb 0x140092370
cmp eax, 0xe
jbe 0x1400922b8
cmp eax, 0x1d
je 0x1400922b8
add eax, 0xffffffd9
cmp eax, 7
ja 0x140092370
lea rdx, [rsp + 0x30]
lea rcx, str.Server_Core
call fcn.140029fcc
mov edi, eax
test eax, eax
js 0x1400922ea
lea rcx, str.Server_Core
mov edx, dword [rsp + 0x30]
lea r8, [rsp + 0x38]
call fcn.140028308
test eax, eax
mov edi, eax
jns 0x1400922f1
mov ecx, eax
call fcn.140025d30
mov ecx, edi
call fcn.140025d50
test edi, edi
js 0x140092193
mov rax, qword [rsp + 0x38]
and qword [rsp + 0x38], 0
mov qword [rbx], rax
mov ecx, edi
call fcn.140025d50
nop
mov rax, qword [rsp + 0x38]
test rax, rax
je 0x14009234c
lea rbx, [rax - 4]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
nop dword [rax + rax]
mov rcx, rax
mov r8, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
nop dword [rax + rax]
xor ecx, ecx
call fcn.140025d50
nop
mov eax, edi
mov rcx, qword [rbp + 0x70]
xor rcx, rsp
call fcn.140094220
lea r11, [rsp + 0x180]
mov rbx, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
lea rdx, [rsp + 0x30]
lea rcx, str.Server
call fcn.140029fcc
mov edi, eax
test eax, eax
js 0x1400922ea
lea rcx, str.Server
jmp 0x1400922d6
cmp byte [rbp + 0x6a], 1
jne 0x140092370
lea rdx, [rsp + 0x30]
lea rcx, str.Client
call fcn.140029fcc
mov edi, eax
test eax, eax
js 0x1400922ea
lea rcx, str.Client
jmp 0x1400922d6
lea r9, [rsp + 0x38]
lea r8, str.InstallationType
lea rdx, str.SoftwareMicrosoftWindows_NTCurrentVersion
call fcn.140023a00
mov edi, eax
test eax, eax
jns 0x140092300
mov ecx, eax
jmp 0x140092195