Function at 0x14014e3f0
Capabilities:
Check os version

Disassembly:
mov rax, rsp
push rbx
push rbp
push rsi
push rdi
push r12
sub rsp, 0x40
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov rdi, rdx
mov rbp, rcx
xor r12d, r12d
mov qword [rax + 0x18], r12
mov qword [rax + 0x20], r12
cmp qword [rcx + 0x20], r12
je 0x14014e442
nop
lea rcx, [rbp + 8]
call fcn.1401fd2a0
mov rcx, rax
test rax, rax
je 0x14014e43c
mov rax, qword [rax]
mov edx, 1
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
cmp qword [rbp + 0x20], r12
jne 0x14014e420
lea rbx, [rbp + 0x40]
cmp qword [rbx], r12
jne 0x14014e472
mov qword [rsp + 0x20], rbx
lea r9, [0x1402743e8]
xor edx, edx
lea r8d, [rdx + 0x17]
lea rcx, [0x140274398]
call qword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x14014e709
mov rcx, qword [rbx]
mov rax, qword [rcx]
lea r9, [rsp + 0x80]
mov edx, 2
lea r8d, [rdx + 7]
call qword [rax + 0x18]
test eax, eax
js 0x14014e709
mov rcx, qword [rsp + 0x80]
mov rax, qword [rcx]
lea rdx, [rsp + 0x70]
call qword [rax + 0x18]
test eax, eax
js 0x14014e709
mov ecx, dword [rsp + 0x70]
test ecx, ecx
jne 0x14014e4d4
mov rcx, qword [rsp + 0x80]
test rcx, rcx
je 0x14014e4ca
mov rdx, qword [rcx]
call qword [rdx + reloc.OLEAUT32.dll_SafeArrayGetDim]
mov eax, 1
jmp 0x14014e746
mov esi, r12d
test ecx, ecx
je 0x14014e696
nop
mov ecx, 0x310
call fcn.1401f0b44
mov qword [rsp + 0x38], rax
test rax, rax
je 0x14014e501
mov rcx, rax
call fcn.1400152b0
mov rbx, rax
jmp 0x14014e504
mov rbx, r12
test rbx, rbx
je 0x14014e709
mov rcx, qword [rsp + 0x80]
mov rax, qword [rcx]
lea r8, [rsp + 0x88]
mov edx, esi
call qword [rax + 0x20]
test eax, eax
js 0x14014e709
mov rax, qword [rbx]
mov r8, rdi
mov rdx, qword [rsp + 0x88]
mov rcx, rbx
call qword [rax + 0x18]
test eax, eax
jne 0x14014e605
test rdi, rdi
je 0x14014e5ed
cmp dword [rbx + 0x54], eax
jne 0x14014e5ed
mov rax, qword [rbx]
mov edx, 1
mov rcx, rbx
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov qword [rsp + 0x88], r12
mov ecx, 0x318
call fcn.1401f0b44
mov qword [rsp + 0x38], rax
test rax, rax
je 0x14014e592
mov rcx, rax
call fcn.1401ddd20
mov rbx, rax
jmp 0x14014e595
mov rbx, r12
test rbx, rbx
je 0x14014e605
mov rcx, qword [rsp + 0x80]
mov rax, qword [rcx]
lea r8, [rsp + 0x88]
mov edx, esi
call qword [rax + 0x20]
test eax, eax
js 0x14014e709
mov rax, qword [rbx]
mov r8, rdi
mov rdx, qword [rsp + 0x88]
mov rcx, rbx
call qword [rax + 0x18]
test eax, eax
jne 0x14014e605
mov rax, qword [rbx]
mov edx, 1
mov rcx, rbx
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov qword [rsp + 0x88], r12
jmp 0x14014e66f
mov rax, qword [rbx]
mov edx, 1
mov rcx, rbx
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov qword [rsp + 0x88], r12
jmp 0x14014e66f
mov eax, dword [0x14032f0e4]
test eax, eax
jne 0x14014e62c
mov dword [0x14032f0e0], 0x114
lea rcx, [0x14032f0e0]
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
mov eax, dword [0x14032f0e4]
cmp eax, 6
jne 0x14014e63c
cmp dword [0x14032f0e8], 1
jae 0x14014e64b
jmp 0x14014e641
cmp eax, 6
ja 0x14014e64b
bt dword [rdi + 0x108], 0x12
jae 0x14014e653
mov rcx, rbx
call fcn.140048a50
mov rax, qword [rbx]
mov rdx, rdi
mov rcx, rbx
call qword [rax + 0x20]
test eax, eax
je 0x14014e67e
lea rcx, [rbp + 8]
mov rdx, rbx
call fcn.1401fd498
add esi, 1
cmp esi, dword [rsp + 0x70]
jb 0x14014e4e0
jmp 0x14014e696
mov rax, qword [rbx]
mov edx, 1
mov rcx, rbx
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov qword [rsp + 0x88], r12
jmp 0x14014e709
mov rcx, qword [rsp + 0x80]
test rcx, rcx
je 0x14014e6b1
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
mov qword [rsp + 0x80], r12
test rdi, rdi
je 0x14014e6db
test byte [rdi + 0x10], 0x20
je 0x14014e6c4
mov rcx, rbp
call fcn.14014e7a0
mov eax, dword [rdi + 0x38]
bt eax, 0xc
jb 0x14014e6d3
bt eax, 0xd
jae 0x14014e6db
mov rcx, rbp
call fcn.14014e990
bt dword [rdi + 0x1b8], 0x1c
jb 0x14014e6eb
test byte [rdi + 0x5c], 1
je 0x14014e6f5
mov dword [0x14032f07c], 1
xor edx, edx
mov ecx, 0x2710
call qword [sym.imp.ole32.dll_CoFreeUnusedLibrariesEx]
mov eax, 1
jmp 0x14014e746
xor edx, edx
mov ecx, 0x2710
call qword [sym.imp.ole32.dll_CoFreeUnusedLibrariesEx]
mov rcx, qword [rsp + 0x80]
test rcx, rcx
je 0x14014e731
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
mov qword [rsp + 0x80], r12
mov rcx, qword [rsp + 0x88]
test rcx, rcx
je 0x14014e744
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
xor eax, eax
add rsp, 0x40
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret