Function at 0x14005ff70
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov qword [rsp + 0x20], rbx
push rsi
push rdi
push r14
sub rsp, 0x390
mov rax, qword [0x14031a940]
xor rax, rsp
mov qword [rsp + 0x380], rax
mov rbx, r8
mov r10, rdx
mov rax, rcx
xor r14d, r14d
xor sil, sil
mov byte [rsp + 0x30], sil
lea r9d, [r14 + 2]
xor r8d, r8d
xor edx, edx
mov rcx, r10
call qword [rax + 0x38]
mov qword [rbx], rax
cmp rax, 0xffffffffffffffff
jne 0x1400606df
call fcn.1400210a0
cmp dword [rax + 8], 2
jl 0x1400606e7
call fcn.1400210a0
mov rdi, rax
lea rcx, [rsp + 0xa0]
call fcn.1400194c0
nop
xorps xmm0, xmm0
movups xmmword [rsp + 0x320], xmm0
mov qword [rsp + 0x330], r14
mov qword [rsp + 0x338], 7
mov word [rsp + 0x320], r14w
lea rdx, str.WARN
lea rcx, [rsp + 0x320]
call fcn.140018440
xorps xmm0, xmm0
movups xmmword [rsp + 0x2a0], xmm0
mov edx, r14d
mov qword [rsp + 0x2b0], rdx
mov r8d, 7
mov qword [rsp + 0x2b8], r8
mov word [rsp + 0x2a0], r14w
mov ebx, r14d
cmp ebx, dword [rdi + 0x10]
jge 0x1400600e6
cmp ebx, 0xa
jge 0x1400600e6
mov rax, r8
sub rax, rdx
lea rcx, [rsp + 0x2a0]
cmp rax, 2
jb 0x1400600b5
lea rax, [rdx + 2]
mov qword [rsp + 0x2b0], rax
cmp r8, 8
cmovae rcx, qword [rsp + 0x2a0]
mov eax, dword [0x1402cca30]
mov dword [rcx + rdx*2], eax
mov word [rcx + rdx*2 + 4], r14w
inc ebx
mov r8, qword [rsp + 0x2b8]
mov rdx, qword [rsp + 0x2b0]
jmp 0x140060053
mov qword [rsp + 0x20], 2
lea r9, [0x1402cca30]
mov edx, 2
call fcn.140022090
inc ebx
mov r8, qword [rsp + 0x2b8]
mov rdx, qword [rsp + 0x2b0]
jmp 0x140060053
xorps xmm0, xmm0
movups xmmword [rsp + 0x2e0], xmm0
mov qword [rsp + 0x2f0], r14
mov qword [rsp + 0x2f8], 7
mov word [rsp + 0x2e0], r14w
movups xmmword [rsp + 0x2c0], xmm0
mov qword [rsp + 0x2d0], r14
mov qword [rsp + 0x2d8], 7
mov word [rsp + 0x2c0], r14w
call fcn.140230f0c
mov edx, VariantTimeToDosDateTime
lea rcx, [rsp + 0x300]
call fcn.14023105c
lea rdx, [rsp + 0x300]
lea rcx, [rsp + 0x2e0]
call fcn.140018440
lea rcx, [rsp + 0x1a0]
call fcn.1400194c0
nop
cmp dword [rdi + 0x14], 0
jne 0x14006018d
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [rdi + 0x14], eax
xor edx, edx
lea rcx, [rsp + 0x1b0]
call fcn.140012fa0
jmp 0x1400601b3
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [rdi + 0x14]
xorps xmm1, xmm1
cvtsi2sd xmm1, rax
divsd xmm1, qword [0x1402d3520]
lea rcx, [rsp + 0x1b0]
call fcn.140021a80
lea rdx, [rsp + 0x340]
lea rcx, [rsp + 0x1b8]
call fcn.14001a0c0
nop
mov rdx, qword [rsp + 0x2d8]
cmp rdx, 8
jb 0x140060211
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x2c0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14006020c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140060716
call fcn.140004144
movups xmm0, xmmword [rsp + 0x340]
movups xmmword [rsp + 0x2c0], xmm0
movups xmm1, xmmword [rsp + 0x350]
movups xmmword [rsp + 0x2d0], xmm1
movdqa xmm0, xmmword [0x1402d3570]
movdqu xmmword [rsp + 0x350], xmm0
mov word [rsp + 0x340], r14w
lea rcx, [rsp + 0x1a0]
call fcn.1400193b0
mov edx, reloc.OLEAUT32.dll_SafeArrayGetDim
lea rcx, [rsp + 0x38]
call fcn.140222c18
mov rdi, rax
mov edx, 0x2040
lea rcx, [rsp + 0x48]
call fcn.140222c18
mov r8, rax
mov rax, qword [rsp + 0xb0]
movsxd rcx, dword [rax + 4]
lea rax, [rsp + 0xb0]
add rcx, rax
mov edx, dword [r8 + 8]
call qword [r8]
lea rdx, [rsp + 0x2e0]
cmp qword [rsp + 0x2f8], 8
cmovae rdx, qword [rsp + 0x2e0]
mov r8, qword [rsp + 0x2f0]
lea rcx, [rsp + 0xb0]
call fcn.140016ce0
lea rdx, [0x1402cc568]
mov rcx, rax
call fcn.140016a20
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 + 0x58]
call fcn.140222c40
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 word [rcx + rbx + 0x58], 0x30
mov edx, 3
lea rcx, [rsp + 0x68]
call fcn.140222c2c
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 + 0x2c0]
cmp qword [rsp + 0x2d8], 8
cmovae rdx, qword [rsp + 0x2c0]
mov r8, qword [rsp + 0x2d0]
mov rcx, rbx
call fcn.140016ce0
mov rbx, rax
mov edx, 5
lea rcx, [rsp + 0x78]
call fcn.140222c40
mov rdi, rax
lea rdx, [0x1402cc568]
mov rcx, rbx
call fcn.140016a20
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 word [rcx + rbx + 0x58], 0x20
mov edx, 0x40
lea rcx, [rsp + 0x88]
call fcn.140222c18
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 + 0x320]
cmp qword [rsp + 0x338], 8
cmovae rdx, qword [rsp + 0x320]
mov r8, qword [rsp + 0x330]
mov rcx, rbx
call fcn.140016ce0
lea rbx, [rsp + 0x2a0]
cmp qword [rsp + 0x2b8], 8
cmovae rbx, qword [rsp + 0x2a0]
lea rdx, [0x1402cca80]
mov rcx, rax
call fcn.140016a20
mov rdx, rbx
mov rcx, rax
call fcn.140016a20
mov edx, 4
mov rax, qword gs:[0x58]
mov rcx, qword [rax]
mov eax, dword [rdx + rcx]
cmp dword [0x14032a09c], eax
jg 0x14006071c
lea rdx, [rsp + 0x360]
lea rcx, [rsp + 0xb8]
call fcn.14001a0c0
nop
mov rdx, qword [reloc.OLEAUT32.dll_VariantInit]
cmp rdx, 8
jb 0x1400604ad
lea rdx, [rdx*2 + 2]
mov rcx, qword [0x14031b5e0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400604a8
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140060775
call fcn.140004144
movups xmm0, xmmword [rsp + 0x360]
movups xmmword [0x14031b5e0], xmm0
movups xmm1, xmmword [rsp + 0x370]
movups xmmword [0x14031b5f0], xmm1
movdqa xmm0, xmmword [0x1402d3570]
movdqu xmmword [rsp + 0x370], xmm0
mov word [rsp + 0x360], r14w
mov rdx, qword [rsp + 0x2d8]
cmp rdx, 8
jb 0x14006052d
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x2c0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140060528
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14006077b
call fcn.140004144
mov qword [rsp + 0x2d0], r14
mov qword [rsp + 0x2d8], 7
mov word [rsp + 0x2c0], r14w
mov rdx, qword [rsp + 0x2f8]
cmp rdx, 8
jb 0x140060592
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x2e0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14006058d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140060781
call fcn.140004144
mov qword [rsp + 0x2f0], r14
mov qword [rsp + 0x2f8], 7
mov word [rsp + 0x2e0], r14w
mov rdx, qword [rsp + 0x2b8]
cmp rdx, 8
jb 0x1400605f7
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x2a0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400605f2
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140060787
call fcn.140004144
mov qword [rsp + 0x2b0], r14
mov qword [rsp + 0x2b8], 7
mov word [rsp + 0x2a0], r14w
mov rdx, qword [rsp + 0x338]
cmp rdx, 8
jb 0x14006065c
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x320]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140060657
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14006078d
call fcn.140004144
mov qword [rsp + 0x330], r14
mov qword [rsp + 0x338], 7
mov word [rsp + 0x320], r14w
lea rcx, [rsp + 0xa0]
call fcn.1400193b0
call fcn.1400210a0
lea rdx, [0x14031b5e0]
cmp qword [reloc.OLEAUT32.dll_VariantInit], 8
cmovae rdx, qword [0x14031b5e0]
mov r8, qword [0x14031b5f0]
mov rcx, rax
call fcn.140016ce0
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
lea rdx, str.SetupDiGetClassDevs_failed_with_error:
mov rcx, rdi
call fcn.140016a20
mov edx, ebx
mov rcx, rax
call fcn.1400196c0
mov rcx, rax
call fcn.140017c00
jmp 0x1400606e7
mov sil, 1
mov byte [rsp + 0x30], sil
jmp 0x1400606ee
movzx eax, sil
mov rcx, qword [rsp + 0x380]
xor rcx, rsp
call fcn.1402202b0
mov rbx, qword [rsp + 0x3c8]
add rsp, 0x390
pop r14
pop rdi
pop rsi
ret
call fcn.1402295a4
nop
lea rcx, [0x14032a09c]
call fcn.1402205f4
cmp dword [0x14032a09c], 0xffffffff
jne 0x140060451
xorps xmm0, xmm0
movups xmmword [0x14031b5e0], xmm0
movdqa xmm1, xmmword [0x1402d3570]
movdqu xmmword [0x14031b5f0], xmm1
mov word [0x14031b5e0], r14w
lea rcx, [0x14026e440]
call fcn.140220508
lea rcx, [0x14032a09c]
call fcn.140220588
nop
jmp 0x140060451
call fcn.1402295a4
nop
call fcn.1402295a4
nop
call fcn.1402295a4
nop
call fcn.1402295a4
nop
call fcn.1402295a4
int3