Function at 0x14006aee0
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 [0x14035b8c0]
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 0x14006b4df
call fcn.140022280
cmp dword [rax + 8], r14d
jl 0x14006b4e7
call fcn.140022280
mov r15, rax
lea rcx, [rsp + 0xb0]
call fcn.14001b520
nop
lea rcx, [rsp + 0x230]
call fcn.140009d24
nop
lea r8d, [r13 + 4]
lea rdx, str.WARN
lea rcx, [rsp + 0x230]
call fcn.14000997c
lea rcx, [rsp + 0x1d0]
call fcn.140009d24
nop
mov esi, r13d
mov dword [rsp + 0x38], r13d
nop dword [rax]
cmp esi, dword [r15 + 0x10]
jge 0x14006b044
cmp esi, 0xa
jge 0x14006b044
mov rcx, qword [rsp + 0x1e0]
mov rdx, qword [rsp + 0x1e8]
mov rax, rdx
sub rax, rcx
cmp rax, 2
jb 0x14006b01d
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, [0x1402f0290]
call fcn.14022e100
mov word [rbx + rdi*2], r13w
jmp 0x14006b039
mov qword [rsp + 0x20], r14
lea r9, [0x1402f0290]
mov rdx, r14
lea rcx, [rsp + 0x1d0]
call fcn.1400230d0
inc esi
mov dword [rsp + 0x38], esi
jmp 0x14006afb0
lea rcx, [rsp + 0x210]
call fcn.140009d24
nop
lea rcx, [rsp + 0x1f0]
call fcn.140009d24
nop
lea r8, [rsp + 0x1f0]
lea rdx, [rsp + 0x210]
mov rcx, r15
call fcn.1400223b0
lea rsi, [rsp + 0x1d0]
cmp qword [rsp + 0x1e8], 8
cmovae rsi, qword [rsp + 0x1d0]
mov edx, 0x2040
lea rcx, [rsp + 0x50]
call fcn.14022c1f4
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.140018d10
mov rbx, rax
mov edx, reloc.OLEAUT32.dll_SafeArrayGetDim
lea rcx, [rsp + 0x60]
call fcn.14022c1f4
mov rdi, rax
lea rdx, [0x1402eff50]
mov rcx, rbx
call fcn.140018930
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.14022c21c
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.14022c208
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.140018d10
mov rbx, rax
mov edx, 5
lea rcx, [rsp + 0x90]
call fcn.14022c21c
mov rdi, rax
lea rdx, [0x1402eff50]
mov rcx, rbx
call fcn.140018930
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.14022c1f4
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.140018d10
lea rdx, [0x1402f02e0]
mov rcx, rax
call fcn.140018930
mov rcx, rax
mov rdx, rsi
call fcn.140018930
mov edx, 4
mov rax, qword gs:[0x58]
mov rcx, qword [rax]
mov eax, dword [rdx + rcx]
cmp dword [0x14036af98], eax
jg 0x14006b516
lea rbx, [0x14036afa0]
lea rcx, [rsp + 0x1b0]
call fcn.140006790
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 0x14006b310
mov rax, qword [rsp + 0x108]
mov rcx, qword [rax]
test rcx, rcx
je 0x14006b310
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.14000997c
jmp 0x14006b354
test dl, 4
jne 0x14006b354
mov rax, qword [rsp + 0x100]
mov rcx, qword [rax]
test rcx, rcx
je 0x14006b354
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.14000997c
and r14d, 0xfffffffd
mov dword [rsp + 0x34], r14d
mov edi, 1
mov dword [rsp + 0x34], edi
mov rdx, qword [0x14036afb8]
cmp rdx, 8
jb 0x14006b3bc
lea rdx, [rdx*2 + 2]
mov qword [rsp + 0x250], rdx
mov rcx, qword [0x14036afa0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14006b3b7
add rdx, 0x27
mov qword [rsp + 0x250], rdx
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14006b55b
call fcn.140004154
mov qword [0x14036afb0], r13
mov qword [0x14036afb8], 7
mov word [0x14036afa0], r13w
movups xmm0, xmmword [rsp + 0x1b0]
movups xmmword [0x14036afa0], xmm0
movups xmm1, xmmword [rsp + 0x1c0]
movups xmmword [0x14036afb0], 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.140009568
nop
lea rcx, [rsp + 0x1f0]
call fcn.140009568
nop
lea rcx, [rsp + 0x210]
call fcn.140009568
nop
lea rcx, [rsp + 0x1d0]
call fcn.140009568
nop
lea rcx, [rsp + 0x230]
call fcn.140009568
nop
lea rcx, [rsp + 0xb0]
call fcn.14001b1e0
call fcn.140022280
cmp qword [0x14036afb8], 8
cmovae rbx, qword [0x14036afa0]
mov r8, qword [0x14036afb0]
mov rdx, rbx
mov rcx, rax
call fcn.140018d10
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.140018930
mov rcx, rax
mov edx, edi
call fcn.14001b6b0
mov rbx, rax
mov rax, qword [rax]
movsxd rcx, dword [rax + 4]
add rcx, rbx
mov dl, 0xa
call fcn.140019200
movzx edx, ax
mov rcx, rbx
call fcn.140019040
mov rcx, rbx
call fcn.140019c40
jmp 0x14006b4e7
mov r12b, 1
mov byte [rsp + 0x30], r12b
jmp 0x14006b4ef
movzx eax, r12b
mov rcx, qword [rsp + 0x258]
xor rcx, rsp
call fcn.140229750
add rsp, 0x260
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret
lea rcx, [0x14036af98]
call fcn.140229c6c
cmp dword [0x14036af98], 0xffffffff
jne 0x14006b27c
lea rbx, [0x14036afa0]
mov rcx, rbx
call fcn.140009d24
lea rcx, [0x14027cd90]
call fcn.140229a10
lea rcx, [0x14036af98]
call fcn.140229c0c
jmp 0x14006b283
call fcn.140230b64
int3