Function at 0x14006af30
Capabilities:
Check os version

Disassembly:
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x260
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov rax, qword [0x14035c8c0]
xor rax, rsp
mov qword [rsp + 0x258], rax
mov rbx, r8
mov r10, rdx
mov rax, rcx
xor r13d, r13d
mov dword [rsp + 0x34], r13d
xor r12b, r12b
mov byte [rsp + 0x30], r12b
mov r14d, 2
mov r9d, r14d
xor r8d, r8d
xor edx, edx
mov rcx, r10
call qword [rax + 0x38]
mov qword [rbx], rax
cmp rax, 0xffffffffffffffff
jne 0x14006b52f
call fcn.1400224d0
cmp dword [rax + 8], r14d
jl 0x14006b537
call fcn.1400224d0
mov r15, rax
lea rcx, [rsp + 0xb0]
call fcn.14001b770
nop
lea rcx, [rsp + 0x230]
call fcn.140009e28
nop
lea r8d, [r13 + 4]
lea rdx, str.WARN
lea rcx, [rsp + 0x230]
call fcn.140009a80
lea rcx, [rsp + 0x1d0]
call fcn.140009e28
nop
mov esi, r13d
mov dword [rsp + 0x38], r13d
nop dword [rax]
cmp esi, dword [r15 + 0x10]
jge 0x14006b094
cmp esi, 0xa
jge 0x14006b094
mov rcx, qword [rsp + 0x1e0]
mov rdx, qword [rsp + 0x1e8]
mov rax, rdx
sub rax, rcx
cmp rax, 2
jb 0x14006b06d
lea rdi, [rcx + 2]
mov qword [rsp + 0x1e0], rdi
lea rbx, [rsp + 0x1d0]
cmp rdx, 8
cmovae rbx, qword [rsp + 0x1d0]
lea rcx, [rbx + rcx*2]
mov r8d, 4
lea rdx, [0x1402f1358]
call fcn.14022e750
mov word [rbx + rdi*2], r13w
jmp 0x14006b089
mov qword [rsp + 0x20], r14
lea r9, [0x1402f1358]
mov rdx, r14
lea rcx, [rsp + 0x1d0]
call fcn.140023320
inc esi
mov dword [rsp + 0x38], esi
jmp 0x14006b000
lea rcx, [rsp + 0x210]
call fcn.140009e28
nop
lea rcx, [rsp + 0x1f0]
call fcn.140009e28
nop
lea r8, [rsp + 0x1f0]
lea rdx, [rsp + 0x210]
mov rcx, r15
call fcn.140022600
lea rsi, [rsp + 0x1d0]
cmp qword [rsp + 0x1e8], 8
cmovae rsi, qword [rsp + 0x1d0]
mov edx, 0x2040
lea rcx, [rsp + 0x50]
call fcn.14022c844
mov r8, rax
mov rax, qword [rsp + 0xc0]
movsxd rcx, dword [rax + 4]
lea rax, [rsp + 0xc0]
add rcx, rax
mov edx, dword [r8 + 8]
call qword [r8]
lea rdx, [rsp + 0x210]
cmp qword [rsp + 0x228], 8
cmovae rdx, qword [rsp + 0x210]
mov r8, qword [rsp + 0x220]
lea rcx, [rsp + 0xc0]
call fcn.140018ee0
mov rbx, rax
mov edx, reloc.OLEAUT32.dll_SafeArrayGetDim
lea rcx, [rsp + 0x60]
call fcn.14022c844
mov rdi, rax
lea rdx, [0x1402f0eb0]
mov rcx, rbx
call fcn.140018b00
mov rbx, rax
mov rax, qword [rax]
movsxd rcx, dword [rax + 4]
add rcx, rbx
mov edx, dword [rdi + 8]
call qword [rdi]
mov edx, 6
lea rcx, [rsp + 0x70]
call fcn.14022c86c
mov r8, rax
mov rax, qword [rbx]
movsxd rcx, dword [rax + 4]
add rcx, rbx
mov rdx, qword [r8 + 8]
call qword [r8]
mov rax, qword [rbx]
movsxd rcx, dword [rax + 4]
mov eax, 0x30
mov word [rcx + rbx + 0x58], ax
lea edx, [rax - 0x2d]
lea rcx, [rsp + 0x80]
call fcn.14022c858
mov r8, rax
mov rax, qword [rbx]
movsxd rcx, dword [rax + 4]
add rcx, rbx
mov rdx, qword [r8 + 8]
call qword [r8]
lea rdx, [rsp + 0x1f0]
cmp qword [rsp + 0x208], 8
cmovae rdx, qword [rsp + 0x1f0]
mov r8, qword [rsp + 0x200]
mov rcx, rbx
call fcn.140018ee0
mov rbx, rax
mov edx, 5
lea rcx, [rsp + 0x90]
call fcn.14022c86c
mov rdi, rax
lea rdx, [0x1402f0eb0]
mov rcx, rbx
call fcn.140018b00
mov rbx, rax
mov rax, qword [rax]
movsxd rcx, dword [rax + 4]
add rcx, rbx
mov rdx, qword [rdi + 8]
call qword [rdi]
mov rax, qword [rbx]
movsxd rcx, dword [rax + 4]
mov eax, 0x20
mov word [rcx + rbx + 0x58], ax
lea edx, [rax + 0x20]
lea rcx, [rsp + 0xa0]
call fcn.14022c844
mov r8, rax
mov rax, qword [rbx]
movsxd rcx, dword [rax + 4]
add rcx, rbx
mov edx, dword [r8 + 8]
call qword [r8]
lea rdx, [rsp + 0x230]
cmp qword [rsp + 0x248], 8
cmovae rdx, qword [rsp + 0x230]
mov r8, qword [rsp + 0x240]
mov rcx, rbx
call fcn.140018ee0
lea rdx, [0x1402f13a8]
mov rcx, rax
call fcn.140018b00
mov rcx, rax
mov rdx, rsi
call fcn.140018b00
mov edx, 4
mov rax, qword gs:[0x58]
mov rcx, qword [rax]
mov eax, dword [rdx + rcx]
cmp dword [0x14036bfc0], eax
jg 0x14006b566
lea rbx, [0x14036bfc8]
lea rcx, [rsp + 0x1b0]
call fcn.140009a0c
mov qword [rsp + 0x1c0], r13
mov qword [rsp + 0x1c8], 7
mov word [rsp + 0x1b0], r13w
mov dword [rsp + 0x34], r14d
mov rdx, qword [rsp + 0x138]
test dl, 2
jne 0x14006b360
mov rax, qword [rsp + 0x108]
mov rcx, qword [rax]
test rcx, rcx
je 0x14006b360
mov rax, qword [rsp + 0xe8]
mov rdx, qword [rax]
mov qword [rsp + 0x40], rcx
lea r8, [rsp + 0x130]
lea rax, [rsp + 0x40]
cmp rcx, qword [rsp + 0x130]
cmovae r8, rax
mov r8, qword [r8]
sub r8, rdx
sar r8, 1
lea rcx, [rsp + 0x1b0]
call fcn.140009a80
jmp 0x14006b3a4
test dl, 4
jne 0x14006b3a4
mov rax, qword [rsp + 0x100]
mov rcx, qword [rax]
test rcx, rcx
je 0x14006b3a4
mov rax, qword [rsp + 0xe0]
mov rdx, qword [rax]
mov rax, qword [rsp + 0x118]
movsxd r8, dword [rax]
add r8, r8
sub r8, rdx
add r8, rcx
sar r8, 1
lea rcx, [rsp + 0x1b0]
call fcn.140009a80
and r14d, 0xfffffffd
mov dword [rsp + 0x34], r14d
mov edi, 1
mov dword [rsp + 0x34], edi
mov rdx, qword [0x14036bfe0]
cmp rdx, 8
jb 0x14006b40c
lea rdx, [rdx*2 + 2]
mov qword [rsp + 0x250], rdx
mov rcx, qword [0x14036bfc8]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14006b407
add rdx, 0x27
mov qword [rsp + 0x250], rdx
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14006b5ab
call fcn.140004518
mov qword [0x14036bfd8], r13
mov qword [0x14036bfe0], 7
mov word [0x14036bfc8], r13w
movups xmm0, xmmword [rsp + 0x1b0]
movups xmmword [0x14036bfc8], xmm0
movups xmm1, xmmword [rsp + 0x1c0]
movups xmmword [0x14036bfd8], xmm1
mov qword [rsp + 0x1c0], r13
mov qword [rsp + 0x1c8], 7
mov word [rsp + 0x1b0], r13w
and edi, 0xfffffffe
mov dword [rsp + 0x34], edi
lea rcx, [rsp + 0x1b0]
call fcn.140009824
nop
lea rcx, [rsp + 0x1f0]
call fcn.140009824
nop
lea rcx, [rsp + 0x210]
call fcn.140009824
nop
lea rcx, [rsp + 0x1d0]
call fcn.140009824
nop
lea rcx, [rsp + 0x230]
call fcn.140009824
nop
lea rcx, [rsp + 0xb0]
call fcn.14001b430
call fcn.1400224d0
cmp qword [0x14036bfe0], 8
cmovae rbx, qword [0x14036bfc8]
mov r8, qword [0x14036bfd8]
mov rdx, rbx
mov rcx, rax
call fcn.140018ee0
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
lea rdx, str.SetupDiGetClassDevs_failed_with_error:
mov rcx, rbx
call fcn.140018b00
mov rcx, rax
mov edx, edi
call fcn.14001b900
mov rbx, rax
mov rax, qword [rax]
movsxd rcx, dword [rax + 4]
add rcx, rbx
mov dl, 0xa
call fcn.1400193d0
movzx edx, ax
mov rcx, rbx
call fcn.140019210
mov rcx, rbx
call fcn.140019e90
jmp 0x14006b537
mov r12b, 1
mov byte [rsp + 0x30], r12b
jmp 0x14006b53f
movzx eax, r12b
mov rcx, qword [rsp + 0x258]
xor rcx, rsp
call fcn.140229da0
add rsp, 0x260
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret
lea rcx, [0x14036bfc0]
call fcn.14022a558
cmp dword [0x14036bfc0], 0xffffffff
jne 0x14006b2cc
lea rbx, [0x14036bfc8]
mov rcx, rbx
call fcn.140009e28
lea rcx, [0x14027d390]
call fcn.14022a060
lea rcx, [0x14036bfc0]
call fcn.14022a4f8
jmp 0x14006b2d3
call fcn.1402311b4
int3