Function at 0x140137a90
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 0x140137ae2
nop
lea rcx, [rbp + 8]
call fcn.1401e73a8
mov rcx, rax
test rax, rax
je 0x140137adc
mov rax, qword [rax]
mov edx, 1
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
cmp qword [rbp + 0x20], r12
jne 0x140137ac0
lea rbx, [rbp + 0x40]
cmp qword [rbx], r12
jne 0x140137b12
mov qword [rsp + 0x20], rbx
lea r9, [0x14025bb58]
xor edx, edx
lea r8d, [rdx + 0x17]
lea rcx, [0x14025bb08]
call qword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x140137d8f
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 0x140137d8f
mov rcx, qword [rsp + 0x80]
mov rax, qword [rcx]
lea rdx, [rsp + 0x70]
call qword [rax + 0x18]
test eax, eax
js 0x140137d8f
mov ecx, dword [rsp + 0x70]
test ecx, ecx
jne 0x140137b74
mov rcx, qword [rsp + 0x80]
test rcx, rcx
je 0x140137b6a
mov rdx, qword [rcx]
call qword [rdx + reloc.OLEAUT32.dll_SafeArrayGetDim]
mov eax, 1
jmp 0x140137dcc
mov esi, r12d
test ecx, ecx
je 0x140137d36
nop
mov ecx, 0x2c0
call fcn.1401dac8c
mov qword [rsp + 0x38], rax
test rax, rax
je 0x140137ba1
mov rcx, rax
call fcn.1400109a0
mov rbx, rax
jmp 0x140137ba4
mov rbx, r12
test rbx, rbx
je 0x140137d8f
mov rcx, qword [rsp + 0x80]
mov rax, qword [rcx]
lea r8, [rsp + 0x88]
mov edx, esi
call qword [rax + 0x20]
test eax, eax
js 0x140137d8f
mov rax, qword [rbx]
mov r8, rdi
mov rdx, qword [rsp + 0x88]
mov rcx, rbx
call qword [rax + 0x18]
test eax, eax
jne 0x140137ca5
test rdi, rdi
je 0x140137c8d
cmp dword [rbx + 0x4c], eax
jne 0x140137c8d
mov rax, qword [rbx]
mov edx, 1
mov rcx, rbx
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov qword [rsp + 0x88], r12
mov ecx, 0x2c8
call fcn.1401dac8c
mov qword [rsp + 0x38], rax
test rax, rax
je 0x140137c32
mov rcx, rax
call fcn.1401c6af0
mov rbx, rax
jmp 0x140137c35
mov rbx, r12
test rbx, rbx
je 0x140137ca5
mov rcx, qword [rsp + 0x80]
mov rax, qword [rcx]
lea r8, [rsp + 0x88]
mov edx, esi
call qword [rax + 0x20]
test eax, eax
js 0x140137d8f
mov rax, qword [rbx]
mov r8, rdi
mov rdx, qword [rsp + 0x88]
mov rcx, rbx
call qword [rax + 0x18]
test eax, eax
jne 0x140137ca5
mov rax, qword [rbx]
mov edx, 1
mov rcx, rbx
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov qword [rsp + 0x88], r12
jmp 0x140137d0f
mov rax, qword [rbx]
mov edx, 1
mov rcx, rbx
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov qword [rsp + 0x88], r12
jmp 0x140137d0f
mov eax, dword [0x140311024]
test eax, eax
jne 0x140137ccc
mov dword [0x140311020], 0x114
lea rcx, [0x140311020]
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
mov eax, dword [0x140311024]
cmp eax, 6
jne 0x140137cdc
cmp dword [0x140311028], 1
jae 0x140137ceb
jmp 0x140137ce1
cmp eax, 6
ja 0x140137ceb
bt dword [rdi + 0x108], 0x12
jae 0x140137cf3
mov rcx, rbx
call fcn.140045ab0
mov rax, qword [rbx]
mov rdx, rdi
mov rcx, rbx
call qword [rax + 0x20]
test eax, eax
je 0x140137d1e
lea rcx, [rbp + 8]
mov rdx, rbx
call fcn.1401e75c0
add esi, 1
cmp esi, dword [rsp + 0x70]
jb 0x140137b80
jmp 0x140137d36
mov rax, qword [rbx]
mov edx, 1
mov rcx, rbx
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov qword [rsp + 0x88], r12
jmp 0x140137d8f
mov rcx, qword [rsp + 0x80]
test rcx, rcx
je 0x140137d51
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
mov qword [rsp + 0x80], r12
test rdi, rdi
je 0x140137d7b
test byte [rdi + 0x10], 0x20
je 0x140137d64
mov rcx, rbp
call fcn.140137e20
mov eax, dword [rdi + 0x38]
bt eax, 0xc
jb 0x140137d73
bt eax, 0xd
jae 0x140137d7b
mov rcx, rbp
call fcn.140138010
xor edx, edx
mov ecx, 0x2710
call qword [sym.imp.ole32.dll_CoFreeUnusedLibrariesEx]
mov eax, 1
jmp 0x140137dcc
xor edx, edx
mov ecx, 0x2710
call qword [sym.imp.ole32.dll_CoFreeUnusedLibrariesEx]
mov rcx, qword [rsp + 0x80]
test rcx, rcx
je 0x140137db7
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 0x140137dca
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