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

Disassembly:
mov qword [rsp + 0x18], rbx
push rsi
push rdi
push r13
push r14
push r15
sub rsp, 0x430
mov rax, qword [0x14031a940]
xor rax, rsp
mov qword [rsp + 0x428], rax
mov r13, rdx
mov r15, rcx
xor edi, edi
xorps xmm0, xmm0
movups xmmword [rsp + 0x3c8], xmm0
movdqa xmm1, xmmword [0x1402d3570]
movdqu xmmword [rsp + 0x3d8], xmm1
mov word [rsp + 0x3c8], di
mov byte [rsp + 0x3c0], dil
lea rdx, str.srl::SetupLib::GetSoundInfo
lea rcx, [rsp + 0x3c8]
call fcn.140018440
nop
call fcn.1400210a0
cmp dword [rax + 8], 4
jl 0x14005df17
lea rcx, [rsp + 0x3c0]
call fcn.1400162a0
cmp byte [r15 + 0x28], 0
je 0x14005ea4d
mov qword [rsp + 0x38], rdi
lea r8, [rsp + 0x38]
lea rdx, [0x1402bb540]
mov rcx, r15
call fcn.14005ff70
test al, al
je 0x14005e358
xorps xmm0, xmm0
movups xmmword [rsp + 0x3a0], xmm0
movups xmmword [rsp + 0x3b0], xmm0
mov eax, 0x20
mov dword [rsp + 0x3a0], eax
nop dword [rax]
nop word [rax + rax]
lea r8, [rsp + 0x3a0]
mov edx, edi
mov r14, qword [rsp + 0x38]
mov rcx, r14
call qword [r15 + 0x40]
test eax, eax
je 0x14005e349
inc edi
lea rcx, [rsp + 0x50]
call fcn.140036490
nop
call fcn.140010254
mov rcx, rax
test rax, rax
je 0x14005ea84
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov r9d, reloc.OLEAUT32.dll_VariantTimeToDosDateTime
mov r8, r14
lea rdx, [rsp + 0x3a0]
mov rcx, r15
call fcn.14005f720
test al, al
je 0x14005dfed
mov rdx, qword [rsp + 0x30]
cmp dword [rdx - 0x10], 0
jne 0x14005e012
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov r8, r14
lea rdx, [rsp + 0x3a0]
mov rcx, r15
call fcn.14005f720
mov rdx, qword [rsp + 0x30]
lea rcx, [rdx - 0x18]
mov rbx, qword [rsp + 0x50]
add rbx, 0xffffffffffffffe8
cmp rcx, rbx
je 0x14005e074
cmp dword [rbx + 0x10], 0
jl 0x14005e066
mov rax, qword [rbx]
cmp qword [rcx], rax
jne 0x14005e066
call fcn.140002c5c
mov rsi, rax
mov ecx, 0xffffffff
lock xadd dword [rbx + 0x10], ecx
sub ecx, 1
jg 0x14005e056
mov rcx, qword [rbx]
mov r8, qword [rcx]
mov rdx, rbx
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
lea rax, [rsi + 0x18]
mov qword [rsp + 0x50], rax
mov r14, qword [rsp + 0x38]
jmp 0x14005e074
mov r8d, dword [rdx - 0x10]
lea rcx, [rsp + 0x50]
call fcn.140002a9c
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov r9d, 1
mov r8, r14
lea rdx, [rsp + 0x3a0]
mov rcx, r15
call fcn.14005f720
mov rbx, qword [rsp + 0x30]
test al, al
je 0x14005e10a
lea rcx, [rbx - 0x18]
mov rsi, qword [rsp + 0x58]
add rsi, 0xffffffffffffffe8
cmp rcx, rsi
je 0x14005e10a
cmp dword [rsi + 0x10], 0
jl 0x14005e0f9
mov rax, qword [rsi]
cmp qword [rcx], rax
jne 0x14005e0f9
call fcn.140002c5c
mov rbx, rax
mov ecx, 0xffffffff
lock xadd dword [rsi + 0x10], ecx
sub ecx, 1
jg 0x14005e0e4
mov rcx, qword [rsi]
mov r8, qword [rcx]
mov rdx, rsi
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
lea rax, [rbx + 0x18]
mov qword [rsp + 0x58], rax
mov r14, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x30]
jmp 0x14005e10a
mov r8d, dword [rbx - 0x10]
mov rdx, rbx
lea rcx, [rsp + 0x58]
call fcn.140002a9c
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0xa0]
mov r8, r14
lea rdx, [rsp + 0x3a0]
mov rcx, r15
call fcn.14005eb10
test al, al
je 0x14005e1e6
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
lea r9, str.DriverVersion
lea r8, [0x1402c7950]
mov r14, qword [rsp + 0x48]
mov rdx, r14
call fcn.14005ece0
mov rbx, qword [rsp + 0x30]
test al, al
je 0x14005e1cf
lea rcx, [rbx - 0x18]
mov rsi, qword [rsp + 0x60]
add rsi, 0xffffffffffffffe8
cmp rcx, rsi
je 0x14005e1cf
cmp dword [rsi + 0x10], 0
jl 0x14005e1be
mov rax, qword [rsi]
cmp qword [rcx], rax
jne 0x14005e1be
call fcn.140002c5c
mov rbx, rax
mov ecx, 0xffffffff
lock xadd dword [rsi + 0x10], ecx
sub ecx, 1
jg 0x14005e1a9
mov rcx, qword [rsi]
mov r8, qword [rcx]
mov rdx, rsi
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
lea rax, [rbx + 0x18]
mov qword [rsp + 0x60], rax
mov rbx, qword [rsp + 0x30]
mov r14, qword [rsp + 0x48]
jmp 0x14005e1cf
mov r8d, dword [rbx - 0x10]
mov rdx, rbx
lea rcx, [rsp + 0x60]
call fcn.140002a9c
mov rcx, qword [rsp + 0xa0]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rax, qword [r13 + 8]
cmp rax, qword [r13 + 0x10]
je 0x14005e204
lea rdx, [rsp + 0x50]
mov rcx, rax
call fcn.140035b20
add qword [r13 + 8], 0x48
jmp 0x14005e215
lea r8, [rsp + 0x50]
mov rdx, rax
mov rcx, r13
call fcn.140062150
nop
lea rdx, [rbx - 0x18]
mov eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14005e232
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0x90]
add rdx, 0xffffffffffffffe8
mov eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14005e256
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rdx, qword [rsp + 0x80]
add rdx, 0xffffffffffffffe8
mov eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14005e27a
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rdx, qword [rsp + 0x78]
add rdx, 0xffffffffffffffe8
mov eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14005e29b
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rdx, qword [rsp + 0x70]
add rdx, 0xffffffffffffffe8
mov eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14005e2bc
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rdx, qword [rsp + 0x68]
add rdx, 0xffffffffffffffe8
mov eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14005e2dd
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rdx, qword [rsp + 0x60]
add rdx, 0xffffffffffffffe8
mov eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14005e2fe
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rdx, qword [rsp + 0x58]
add rdx, 0xffffffffffffffe8
mov eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14005e31f
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rdx, qword [rsp + 0x50]
add rdx, 0xffffffffffffffe8
mov eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14005df70
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
jmp 0x14005df70
mov rcx, r14
call qword [r15 + 0x88]
jmp 0x14005ea4d
call fcn.1400210a0
cmp dword [rax + 8], 2
jl 0x14005ea4d
call fcn.1400210a0
mov rsi, rax
lea rcx, [rsp + 0x100]
call fcn.1400194c0
nop
xorps xmm0, xmm0
movups xmmword [rsp + 0x380], xmm0
mov qword [rsp + 0x390], rdi
mov qword [rsp + 0x398], 7
mov word [rsp + 0x380], di
lea rdx, str.WARN
lea rcx, [rsp + 0x380]
call fcn.140018440
xorps xmm0, xmm0
movups xmmword [rsp + 0x300], xmm0
mov rdx, rdi
mov qword [rsp + 0x310], rdx
mov r8d, 7
mov qword [rsp + 0x318], r8
mov word [rsp + 0x300], di
mov ebx, edi
cmp ebx, dword [rsi + 0x10]
jge 0x14005e478
cmp ebx, 0xa
jge 0x14005e478
mov rax, r8
sub rax, rdx
lea rcx, [rsp + 0x300]
cmp rax, 2
jb 0x14005e447
lea rax, [rdx + 2]
mov qword [rsp + 0x310], rax
cmp r8, 8
cmovae rcx, qword [rsp + 0x300]
mov eax, dword [0x1402cca30]
mov dword [rcx + rdx*2], eax
mov word [rcx + rdx*2 + 4], di
inc ebx
mov r8, qword [rsp + 0x318]
mov rdx, qword [rsp + 0x310]
jmp 0x14005e3e6
mov qword [rsp + 0x20], 2
lea r9, [0x1402cca30]
mov edx, 2
call fcn.140022090
inc ebx
mov r8, qword [rsp + 0x318]
mov rdx, qword [rsp + 0x310]
jmp 0x14005e3e6
xorps xmm0, xmm0
movups xmmword [rsp + 0x340], xmm0
mov qword [rsp + 0x350], rdi
mov qword [rsp + 0x358], 7
mov word [rsp + 0x340], di
movups xmmword [rsp + 0x320], xmm0
mov qword [rsp + 0x330], rdi
mov qword [rsp + 0x338], 7
mov word [rsp + 0x320], di
call fcn.140230f0c
mov edx, VariantTimeToDosDateTime
lea rcx, [rsp + 0x360]
call fcn.14023105c
lea rdx, [rsp + 0x360]
lea rcx, [rsp + 0x340]
call fcn.140018440
lea rcx, [rsp + 0x200]
call fcn.1400194c0
nop
cmp dword [rsi + 0x14], 0
jne 0x14005e51d
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [rsi + 0x14], eax
xor edx, edx
lea rcx, [rsp + 0x210]
call fcn.140012fa0
jmp 0x14005e543
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [rsi + 0x14]
xorps xmm1, xmm1
cvtsi2sd xmm1, rax
divsd xmm1, qword [0x1402d3520]
lea rcx, [rsp + 0x210]
call fcn.140021a80
lea rdx, [rsp + 0x3e8]
lea rcx, [rsp + 0x218]
call fcn.14001a0c0
nop
mov rdx, qword [rsp + 0x338]
cmp rdx, 8
jb 0x14005e5a1
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x320]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14005e59c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14005ea8f
call fcn.140004144
movups xmm0, xmmword [rsp + 0x3e8]
movups xmmword [rsp + 0x320], xmm0
movups xmm1, xmmword [rsp + 0x3f8]
movups xmmword [rsp + 0x330], xmm1
movdqa xmm0, xmmword [0x1402d3570]
movdqu xmmword [rsp + 0x3f8], xmm0
mov word [rsp + 0x3e8], di
lea rcx, [rsp + 0x200]
call fcn.1400193b0
mov edx, reloc.OLEAUT32.dll_SafeArrayGetDim
lea rcx, [rsp + 0x38]
call fcn.140222c18
mov rsi, rax
mov edx, 0x2040
lea rcx, [rsp + 0xa8]
call fcn.140222c18
mov rcx, qword [rsp + 0x110]
movsxd rdx, dword [rcx + 4]
lea rcx, [rsp + 0x110]
add rcx, rdx
mov edx, dword [rax + 8]
call qword [rax]
lea rdx, [rsp + 0x340]
cmp qword [rsp + 0x358], 8
cmovae rdx, qword [rsp + 0x340]
mov r8, qword [rsp + 0x350]
lea rcx, [rsp + 0x110]
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 [rsi + 8]
call qword [rsi]
mov edx, 6
lea rcx, [rsp + 0xb8]
call fcn.140222c40
mov rcx, qword [rbx]
movsxd rcx, dword [rcx + 4]
add rcx, rbx
mov rdx, qword [rax + 8]
call qword [rax]
mov rax, qword [rbx]
movsxd rcx, dword [rax + 4]
mov word [rcx + rbx + 0x58], 0x30
mov edx, 3
lea rcx, [rsp + 0xc8]
call fcn.140222c2c
mov rcx, qword [rbx]
movsxd rcx, dword [rcx + 4]
add rcx, rbx
mov rdx, qword [rax + 8]
call qword [rax]
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
mov rbx, rax
mov edx, 5
lea rcx, [rsp + 0xd8]
call fcn.140222c40
mov rsi, rax
lea rdx, [0x1402cc568]
mov rcx, rbx
call fcn.140016a20
mov rbx, rax
mov rcx, qword [rax]
movsxd rcx, dword [rcx + 4]
add rcx, rax
mov rdx, qword [rsi + 8]
call qword [rsi]
mov rax, qword [rbx]
movsxd rcx, dword [rax + 4]
mov word [rcx + rbx + 0x58], 0x20
mov edx, 0x40
lea rcx, [rsp + 0xe8]
call fcn.140222c18
mov rcx, qword [rbx]
movsxd rcx, dword [rcx + 4]
add rcx, rbx
mov edx, dword [rax + 8]
call qword [rax]
lea rdx, [rsp + 0x380]
cmp qword [rsp + 0x398], 8
cmovae rdx, qword [rsp + 0x380]
mov r8, qword [rsp + 0x390]
mov rcx, rbx
call fcn.140016ce0
lea rbx, [rsp + 0x300]
cmp qword [rsp + 0x318], 8
cmovae rbx, qword [rsp + 0x300]
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 0x14005ea95
lea rdx, [rsp + 0x408]
lea rcx, [rsp + 0x118]
call fcn.14001a0c0
nop
mov rdx, qword [reloc.OLEAUT32.dll_VariantInit]
cmp rdx, 8
jb 0x14005e836
lea rdx, [rdx*2 + 2]
mov rcx, qword [0x14031b5e0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14005e831
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14005eaed
call fcn.140004144
movups xmm0, xmmword [rsp + 0x408]
movups xmmword [0x14031b5e0], xmm0
movups xmm1, xmmword [rsp + 0x418]
movups xmmword [0x14031b5f0], xmm1
movdqa xmm0, xmmword [0x1402d3570]
movdqu xmmword [rsp + 0x418], xmm0
mov word [rsp + 0x408], di
mov rdx, qword [rsp + 0x338]
cmp rdx, 8
jb 0x14005e8b5
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x320]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14005e8b0
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14005eaf3
call fcn.140004144
mov qword [rsp + 0x330], rdi
mov qword [rsp + 0x338], 7
mov word [rsp + 0x320], di
mov rdx, qword [rsp + 0x358]
cmp rdx, 8
jb 0x14005e919
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x340]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14005e914
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14005eaf9
call fcn.140004144
mov qword [rsp + 0x350], rdi
mov qword [rsp + 0x358], 7
mov word [rsp + 0x340], di
mov rdx, qword [rsp + 0x318]
cmp rdx, 8
jb 0x14005e97d
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x300]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14005e978
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14005eaff
call fcn.140004144
mov qword [rsp + 0x310], rdi
mov qword [rsp + 0x318], 7
mov word [rsp + 0x300], di
mov rdx, qword [rsp + 0x398]
cmp rdx, 8
jb 0x14005e9e1
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x380]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14005e9dc
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14005eb05
call fcn.140004144
mov qword [rsp + 0x390], rdi
mov qword [rsp + 0x398], 7
mov word [rsp + 0x380], di
lea rcx, [rsp + 0x100]
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
lea rdx, str.Failed_call_to_GetDeviceSet_for_GetSoundInfo
mov rcx, rax
call fcn.140016a20
mov rcx, rax
call fcn.140017c00
nop
lea rcx, [rsp + 0x3c0]
call fcn.140017c90
xor al, al
mov rcx, qword [rsp + 0x428]
xor rcx, rsp
call fcn.1402202b0
mov rbx, qword [rsp + 0x470]
add rsp, 0x430
pop r15
pop r14
pop r13
pop rdi
pop rsi
ret
mov ecx, 0x80004005
call fcn.140002d6c
nop
call fcn.1402295a4
nop
lea rcx, [0x14032a09c]
call fcn.1402205f4
cmp dword [0x14032a09c], 0xffffffff
jne 0x14005e7da
xorps xmm0, xmm0
movups xmmword [0x14031b5e0], xmm0
movdqa xmm1, xmmword [0x1402d3570]
movdqu xmmword [0x14031b5f0], xmm1
mov word [0x14031b5e0], di
lea rcx, [0x14026e440]
call fcn.140220508
lea rcx, [0x14032a09c]
call fcn.140220588
nop
jmp 0x14005e7da
call fcn.1402295a4
nop
call fcn.1402295a4
nop
call fcn.1402295a4
nop
call fcn.1402295a4
nop
call fcn.1402295a4
int3