Function at 0x1401488b0
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 0x140148902
nop
lea rcx, [rbp + 8]
call fcn.1401f8490
mov rcx, rax
test rax, rax
je 0x1401488fc
mov rax, qword [rax]
mov edx, 1
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
cmp qword [rbp + 0x20], r12
jne 0x1401488e0
lea rbx, [rbp + 0x40]
cmp qword [rbx], r12
jne 0x140148932
mov qword [rsp + 0x20], rbx
lea r9, [0x14026dec8]
xor edx, edx
lea r8d, [rdx + 0x17]
lea rcx, [0x14026de78]
call qword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x140148baf
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 0x140148baf
mov rcx, qword [rsp + 0x80]
mov rax, qword [rcx]
lea rdx, [rsp + 0x70]
call qword [rax + 0x18]
test eax, eax
js 0x140148baf
mov ecx, dword [rsp + 0x70]
test ecx, ecx
jne 0x140148994
mov rcx, qword [rsp + 0x80]
test rcx, rcx
je 0x14014898a
mov rdx, qword [rcx]
call qword [rdx + reloc.OLEAUT32.dll_SafeArrayGetDim]
mov eax, 1
jmp 0x140148bec
mov esi, r12d
test ecx, ecx
je 0x140148b56
nop
mov ecx, 0x2c0
call fcn.1401ebd7c
mov qword [rsp + 0x38], rax
test rax, rax
je 0x1401489c1
mov rcx, rax
call fcn.140010b00
mov rbx, rax
jmp 0x1401489c4
mov rbx, r12
test rbx, rbx
je 0x140148baf
mov rcx, qword [rsp + 0x80]
mov rax, qword [rcx]
lea r8, [rsp + 0x88]
mov edx, esi
call qword [rax + 0x20]
test eax, eax
js 0x140148baf
mov rax, qword [rbx]
mov r8, rdi
mov rdx, qword [rsp + 0x88]
mov rcx, rbx
call qword [rax + 0x18]
test eax, eax
jne 0x140148ac5
test rdi, rdi
je 0x140148aad
cmp dword [rbx + 0x4c], eax
jne 0x140148aad
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.1401ebd7c
mov qword [rsp + 0x38], rax
test rax, rax
je 0x140148a52
mov rcx, rax
call fcn.1401d7bd0
mov rbx, rax
jmp 0x140148a55
mov rbx, r12
test rbx, rbx
je 0x140148ac5
mov rcx, qword [rsp + 0x80]
mov rax, qword [rcx]
lea r8, [rsp + 0x88]
mov edx, esi
call qword [rax + 0x20]
test eax, eax
js 0x140148baf
mov rax, qword [rbx]
mov r8, rdi
mov rdx, qword [rsp + 0x88]
mov rcx, rbx
call qword [rax + 0x18]
test eax, eax
jne 0x140148ac5
mov rax, qword [rbx]
mov edx, 1
mov rcx, rbx
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov qword [rsp + 0x88], r12
jmp 0x140148b2f
mov rax, qword [rbx]
mov edx, 1
mov rcx, rbx
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov qword [rsp + 0x88], r12
jmp 0x140148b2f
mov eax, dword [0x140326104]
test eax, eax
jne 0x140148aec
mov dword [0x140326100], 0x114
lea rcx, [0x140326100]
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
mov eax, dword [0x140326104]
cmp eax, 6
jne 0x140148afc
cmp dword [0x140326108], 1
jae 0x140148b0b
jmp 0x140148b01
cmp eax, 6
ja 0x140148b0b
bt dword [rdi + 0x108], 0x12
jae 0x140148b13
mov rcx, rbx
call fcn.140045ed0
mov rax, qword [rbx]
mov rdx, rdi
mov rcx, rbx
call qword [rax + 0x20]
test eax, eax
je 0x140148b3e
lea rcx, [rbp + 8]
mov rdx, rbx
call fcn.1401f86a8
add esi, 1
cmp esi, dword [rsp + 0x70]
jb 0x1401489a0
jmp 0x140148b56
mov rax, qword [rbx]
mov edx, 1
mov rcx, rbx
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov qword [rsp + 0x88], r12
jmp 0x140148baf
mov rcx, qword [rsp + 0x80]
test rcx, rcx
je 0x140148b71
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
mov qword [rsp + 0x80], r12
test rdi, rdi
je 0x140148b9b
test byte [rdi + 0x10], 0x20
je 0x140148b84
mov rcx, rbp
call fcn.140148c40
mov eax, dword [rdi + 0x38]
bt eax, 0xc
jb 0x140148b93
bt eax, 0xd
jae 0x140148b9b
mov rcx, rbp
call fcn.140148e30
xor edx, edx
mov ecx, 0x2710
call qword [sym.imp.ole32.dll_CoFreeUnusedLibrariesEx]
mov eax, 1
jmp 0x140148bec
xor edx, edx
mov ecx, 0x2710
call qword [sym.imp.ole32.dll_CoFreeUnusedLibrariesEx]
mov rcx, qword [rsp + 0x80]
test rcx, rcx
je 0x140148bd7
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 0x140148bea
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