Function at 0x14006c430
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 [0x14035d8c0]
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 0x14006ca2f
call fcn.140022850
cmp dword [rax + 8], r14d
jl 0x14006ca37
call fcn.140022850
mov r15, rax
lea rcx, [rsp + 0xb0]
call fcn.14001bb00
nop
lea rcx, [rsp + 0x230]
call fcn.14000a1bc
nop
lea r8d, [r13 + 4]
lea rdx, str.WARN
lea rcx, [rsp + 0x230]
call fcn.140009e14
lea rcx, [rsp + 0x1d0]
call fcn.14000a1bc
nop
mov esi, r13d
mov dword [rsp + 0x38], r13d
nop dword [rax]
cmp esi, dword [r15 + 0x10]
jge 0x14006c594
cmp esi, 0xa
jge 0x14006c594
mov rcx, qword [rsp + 0x1e0]
mov rdx, qword [rsp + 0x1e8]
mov rax, rdx
sub rax, rcx
cmp rax, 2
jb 0x14006c56d
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, [0x1402f2538]
call fcn.14022fad0
mov word [rbx + rdi*2], r13w
jmp 0x14006c589
mov qword [rsp + 0x20], r14
lea r9, [0x1402f2538]
mov rdx, r14
lea rcx, [rsp + 0x1d0]
call fcn.1400236a0
inc esi
mov dword [rsp + 0x38], esi
jmp 0x14006c500
lea rcx, [rsp + 0x210]
call fcn.14000a1bc
nop
lea rcx, [rsp + 0x1f0]
call fcn.14000a1bc
nop
lea r8, [rsp + 0x1f0]
lea rdx, [rsp + 0x210]
mov rcx, r15
call fcn.140022980
lea rsi, [rsp + 0x1d0]
cmp qword [rsp + 0x1e8], 8
cmovae rsi, qword [rsp + 0x1d0]
mov edx, 0x2040
lea rcx, [rsp + 0x50]
call fcn.14022dbc4
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.140019270
mov rbx, rax
mov edx, reloc.OLEAUT32.dll_SafeArrayGetDim
lea rcx, [rsp + 0x60]
call fcn.14022dbc4
mov rdi, rax
lea rdx, [0x1402f2090]
mov rcx, rbx
call fcn.140018e90
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.14022dbec
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.14022dbd8
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.140019270
mov rbx, rax
mov edx, 5
lea rcx, [rsp + 0x90]
call fcn.14022dbec
mov rdi, rax
lea rdx, [0x1402f2090]
mov rcx, rbx
call fcn.140018e90
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.14022dbc4
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.140019270
lea rdx, [0x1402f2588]
mov rcx, rax
call fcn.140018e90
mov rcx, rax
mov rdx, rsi
call fcn.140018e90
mov edx, 4
mov rax, qword gs:[0x58]
mov rcx, qword [rax]
mov eax, dword [rdx + rcx]
cmp dword [0x14036cfc0], eax
jg 0x14006ca66
lea rbx, [0x14036cfc8]
lea rcx, [rsp + 0x1b0]
call fcn.140009da0
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 0x14006c860
mov rax, qword [rsp + 0x108]
mov rcx, qword [rax]
test rcx, rcx
je 0x14006c860
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.140009e14
jmp 0x14006c8a4
test dl, 4
jne 0x14006c8a4
mov rax, qword [rsp + 0x100]
mov rcx, qword [rax]
test rcx, rcx
je 0x14006c8a4
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.140009e14
and r14d, 0xfffffffd
mov dword [rsp + 0x34], r14d
mov edi, 1
mov dword [rsp + 0x34], edi
mov rdx, qword [0x14036cfe0]
cmp rdx, 8
jb 0x14006c90c
lea rdx, [rdx*2 + 2]
mov qword [rsp + 0x250], rdx
mov rcx, qword [0x14036cfc8]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14006c907
add rdx, 0x27
mov qword [rsp + 0x250], rdx
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14006caab
call fcn.1400045a8
mov qword [0x14036cfd8], r13
mov qword [0x14036cfe0], 7
mov word [0x14036cfc8], r13w
movups xmm0, xmmword [rsp + 0x1b0]
movups xmmword [0x14036cfc8], xmm0
movups xmm1, xmmword [rsp + 0x1c0]
movups xmmword [0x14036cfd8], 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.140009bb8
nop
lea rcx, [rsp + 0x1f0]
call fcn.140009bb8
nop
lea rcx, [rsp + 0x210]
call fcn.140009bb8
nop
lea rcx, [rsp + 0x1d0]
call fcn.140009bb8
nop
lea rcx, [rsp + 0x230]
call fcn.140009bb8
nop
lea rcx, [rsp + 0xb0]
call fcn.14001b7c0
call fcn.140022850
cmp qword [0x14036cfe0], 8
cmovae rbx, qword [0x14036cfc8]
mov r8, qword [0x14036cfd8]
mov rdx, rbx
mov rcx, rax
call fcn.140019270
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.140018e90
mov rcx, rax
mov edx, edi
call fcn.14001bc90
mov rbx, rax
mov rax, qword [rax]
movsxd rcx, dword [rax + 4]
add rcx, rbx
mov dl, 0xa
call fcn.140019760
movzx edx, ax
mov rcx, rbx
call fcn.1400195a0
mov rcx, rbx
call fcn.14001a220
jmp 0x14006ca37
mov r12b, 1
mov byte [rsp + 0x30], r12b
jmp 0x14006ca3f
movzx eax, r12b
mov rcx, qword [rsp + 0x258]
xor rcx, rsp
call fcn.14022b120
add rsp, 0x260
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret
lea rcx, [0x14036cfc0]
call fcn.14022b8d8
cmp dword [0x14036cfc0], 0xffffffff
jne 0x14006c7cc
lea rbx, [0x14036cfc8]
mov rcx, rbx
call fcn.14000a1bc
lea rcx, [0x14027e720]
call fcn.14022b3e0
lea rcx, [0x14036cfc0]
call fcn.14022b878
jmp 0x14006c7d3
call fcn.140232534
int3