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

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5f002e
mov eax, dword fs:[0]
push eax
push ecx
push ebx
sub esp, 0x2d0
mov eax, dword [0x677010]
xor eax, ebp
mov dword [ebp - 0x1c], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov dword [ebp - 0x10c], esi
mov eax, dword [ebx + 8]
mov dword [ebp - 0x108], eax
mov dword [ebp - 0x118], 0
lea ecx, [ebp - 0xf8]
call fcn.00407a4a
mov dword [ebp - 4], 0
mov byte [ebp - 0xfc], 0
push str.srl::SetupLib::GetSoundInfo
lea ecx, [ebp - 0xf8]
call fcn.00414ef0
mov dword [ebp - 4], 1
call fcn.0041db40
cmp dword [eax + 4], 4
jl 0x458b17
push ecx
lea ecx, [ebp - 0xfc]
call fcn.00412cf0
cmp byte [esi + 0x1c], 0
je 0x4594a2
mov byte [ebp - 4], 2
mov dword [ebp - 0x104], 0
lea eax, [ebp - 0x104]
push eax
push 0x601e60
mov ecx, esi
call fcn.0045a1f0
test al, al
je 0x458e9a
xor eax, eax
mov dword [ebp - 0x110], eax
xorps xmm0, xmm0
movups xmmword [ebp - 0x80], xmm0
movq qword [ebp - 0x70], xmm0
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x80], 0x1c
mov edi, dword [ebp - 0x104]
nop
lea ecx, [ebp - 0x80]
push ecx
push eax
push edi
mov eax, dword [esi + 0x28]
call eax
test eax, eax
je 0x458e8f
inc dword [ebp - 0x110]
lea ecx, [ebp - 0x14c]
call fcn.0042f900
mov byte [ebp - 4], 3
call fcn.0040cc25
mov ecx, eax
test ecx, ecx
jne 0x458bad
push 0x80004005
call fcn.004022e2
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x458bc2
lock inc dword [ecx + 0x14]
lea eax, [ecx + 8]
jmp 0x458bc4
call edx
add eax, 0x10
mov dword [ebp - 0x100], eax
mov byte [ebp - 4], 4
lea eax, [ebp - 0x100]
push eax
push 0xc
push edi
lea eax, [ebp - 0x80]
push eax
mov ecx, esi
call fcn.00459a50
test al, al
je 0x458bf6
mov eax, dword [ebp - 0x100]
cmp dword [eax - 0xc], 0
jne 0x458c11
lea eax, [ebp - 0x100]
push eax
push 0
push edi
lea eax, [ebp - 0x80]
push eax
mov ecx, esi
call fcn.00459a50
mov eax, dword [ebp - 0x100]
lea edx, [eax - 0x10]
mov esi, dword [ebp - 0x14c]
add esi, 0xfffffff0
cmp edx, esi
je 0x458cc9
cmp dword [esi + 0xc], 0
jl 0x458cba
mov ecx, dword [edx]
cmp ecx, dword [esi]
jne 0x458cba
push edx
call fcn.00402231
add esp, 4
mov dword [ebp - 0x11c], eax
or ecx, 0xffffffff
lea edx, [esi + 0xc]
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x458ca9
mov edx, dword [esi]
mov ecx, dword [edx]
mov eax, dword [ecx + 4]
push esi
cmp ecx, vtable.ATL::CAtlStringMgr.0
jne 0x458ca5
mov ecx, dword [edx + 4]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x458c92
push 0
push dword [ecx + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [ebp - 0x11c]
add eax, 0x10
mov dword [ebp - 0x14c], eax
jmp 0x458cc9
call edx
mov eax, dword [ebp - 0x11c]
add eax, 0x10
mov dword [ebp - 0x14c], eax
jmp 0x458cc9
mov ecx, edx
call eax
mov eax, dword [ebp - 0x11c]
add eax, 0x10
mov dword [ebp - 0x14c], eax
jmp 0x458cc9
push dword [eax - 0xc]
push eax
lea ecx, [ebp - 0x14c]
call fcn.004020e3
lea eax, [ebp - 0x100]
push eax
push 1
push edi
lea eax, [ebp - 0x80]
push eax
mov ecx, dword [ebp - 0x10c]
call fcn.00459a50
mov esi, dword [ebp - 0x100]
test al, al
je 0x458dae
lea ecx, [esi - 0x10]
mov edi, dword [ebp - 0x148]
add edi, 0xfffffff0
cmp ecx, edi
je 0x458da8
cmp dword [edi + 0xc], 0
jl 0x458d99
mov eax, dword [ecx]
cmp eax, dword [edi]
jne 0x458d99
push ecx
call fcn.00402231
add esp, 4
mov dword [ebp - 0x11c], eax
or ecx, 0xffffffff
lea edx, [edi + 0xc]
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x458d88
mov edx, dword [edi]
mov ecx, dword [edx]
mov eax, dword [ecx + 4]
push edi
cmp ecx, vtable.ATL::CAtlStringMgr.0
jne 0x458d84
mov ecx, dword [edx + 4]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x458d71
push 0
push dword [ecx + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [ebp - 0x11c]
add eax, 0x10
mov dword [ebp - 0x148], eax
jmp 0x458da8
call edx
mov eax, dword [ebp - 0x11c]
add eax, 0x10
mov dword [ebp - 0x148], eax
jmp 0x458da8
mov ecx, edx
call eax
mov eax, dword [ebp - 0x11c]
add eax, 0x10
mov dword [ebp - 0x148], eax
jmp 0x458da8
push dword [esi - 0xc]
push esi
lea ecx, [ebp - 0x148]
call fcn.004020e3
mov edi, dword [ebp - 0x104]
lea eax, [ebp - 0x12c]
push eax
lea eax, [ebp - 0x124]
push eax
push edi
lea eax, [ebp - 0x80]
push eax
mov ecx, dword [ebp - 0x10c]
call fcn.004594e0
test al, al
je 0x458e1c
lea eax, [ebp - 0x100]
push eax
push str.DriverVersion
push 0x63abd4
mov esi, dword [ebp - 0x12c]
push esi
call fcn.004596a0
test al, al
je 0x458e03
lea eax, [ebp - 0x100]
push eax
lea ecx, [ebp - 0x144]
call fcn.00410610
push dword [ebp - 0x124]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [ebp - 0x100]
lea eax, [ebp - 0x14c]
push eax
mov ecx, dword [ebp - 0x108]
call fcn.0045c770
mov byte [ebp - 4], 3
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x458e6f
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x458e6d
mov ecx, dword [ecx + 4]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x458e6d
push 0
push dword [ecx + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x458e6f
call edx
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x14c]
call fcn.0042f660
mov esi, dword [ebp - 0x10c]
mov eax, dword [ebp - 0x110]
jmp 0x458b70
push edi
mov eax, dword [esi + 0x4c]
call eax
jmp 0x45949b
call fcn.0041db40
cmp dword [eax + 4], 2
jl 0x45949b
call fcn.0041db40
mov edi, eax
mov dword [ebp - 0x108], edi
sub esp, 8
lea ecx, [ebp - 0x230]
call fcn.00415be0
mov byte [ebp - 4], 5
lea ecx, [ebp - 0xe0]
call fcn.00407a4a
mov byte [ebp - 4], 6
push str.WARN
lea ecx, [ebp - 0xe0]
call fcn.00414ef0
lea ecx, [ebp - 0x64]
call fcn.00407a4a
mov byte [ebp - 4], 7
xor esi, esi
mov dword [ebp - 0x114], esi
cmp esi, dword [edi + 0xc]
jge 0x458f6d
cmp esi, 0xa
jge 0x458f6d
mov ecx, dword [ebp - 0x54]
mov edx, dword [ebp - 0x50]
mov eax, edx
sub eax, ecx
cmp eax, 2
jb 0x458f4c
lea edi, [ecx + 2]
mov dword [ebp - 0x54], edi
lea esi, [ebp - 0x64]
cmp edx, 8
cmovae esi, dword [ebp - 0x64]
push 4
push 0x63e4c4
lea eax, [esi + ecx*2]
push eax
call fcn.005bfc60
add esp, 0xc
xor eax, eax
mov word [esi + edi*2], ax
mov esi, dword [ebp - 0x114]
mov edi, dword [ebp - 0x108]
inc esi
jmp 0x458ef5
mov byte [ebp - 0x124], 0
push 2
push 0x63e4c4
push dword [ebp - 0x124]
push 2
lea ecx, [ebp - 0x64]
call fcn.0041ea00
inc esi
jmp 0x458ef5
lea ecx, [ebp - 0xc8]
call fcn.00407a4a
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x4c]
call fcn.00407a4a
mov byte [ebp - 4], 9
call fcn.005c8926
push 0xb
lea eax, [ebp - 0x34]
push eax
call fcn.005c8a22
add esp, 8
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0xc8]
call fcn.00414ef0
sub esp, 8
lea ecx, [ebp - 0x2e0]
call fcn.00415be0
mov byte [ebp - 4], 0xa
cmp dword [edi + 0x10], 0
jne 0x458fda
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [edi + 0x10], eax
push 0
lea ecx, [ebp - 0x2d0]
call fcn.004101b0
jmp 0x45900a
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [edi + 0x10]
movd xmm0, eax
cvtdq2pd xmm1, xmm0
shr eax, 0x1f
addsd xmm1, qword [eax*8 + 0x644390]
divsd xmm1, qword [0x644330]
lea ecx, [ebp - 0x2d0]
call fcn.0041e250
lea eax, [ebp - 0x98]
push eax
lea ecx, [ebp - 0x2c8]
call fcn.00416830
mov dword [ebp - 0x118], 1
mov byte [ebp - 4], 0xb
mov eax, dword [ebp - 0x38]
cmp eax, 8
jb 0x45907d
inc eax
mov ecx, dword [ebp - 0x4c]
cmp eax, 0x7fffffff
ja 0x459178
add eax, eax
cmp eax, 0x1000
jb 0x459074
test cl, 0x1f
jne 0x459178
mov eax, dword [ecx - 4]
cmp eax, ecx
jae 0x459178
sub ecx, eax
cmp ecx, 4
jb 0x459178
cmp ecx, 0x23
ja 0x459178
mov ecx, eax
push ecx
call fcn.00476ee1
add esp, 4
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 7
xor eax, eax
mov word [ebp - 0x4c], ax
movups xmm0, xmmword [ebp - 0x98]
movups xmmword [ebp - 0x4c], xmm0
movq xmm0, qword [ebp - 0x88]
movq qword [ebp - 0x3c], xmm0
mov dword [ebp - 0x88], eax
mov dword [ebp - 0x84], 7
mov word [ebp - 0x98], ax
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x98]
call fcn.004075ab
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x2e0]
call fcn.00415840
lea eax, [ebp - 0x64]
cmp dword [ebp - 0x50], 8
cmovae eax, dword [ebp - 0x64]
mov dword [ebp - 0x108], eax
push 0x2040
lea eax, [ebp - 0x128]
push eax
call fcn.005be8d1
mov ecx, dword [ebp - 0x220]
mov ecx, dword [ecx + 4]
lea edx, [ebp - 0x220]
add ecx, edx
push dword [eax + 4]
push ecx
mov eax, dword [eax]
call eax
add esp, 0x10
mov eax, dword [ebp - 0xb8]
mov byte [ebp - 4], 0xc
lea edx, [ebp - 0xc8]
cmp dword [ebp - 0xb4], 8
cmovae edx, dword [ebp - 0xc8]
mov byte [ebp - 4], 9
push eax
lea ecx, [ebp - 0x220]
call fcn.004137f0
add esp, 4
mov esi, eax
push 0x10
lea eax, [ebp - 0x130]
push eax
call fcn.005be8d1
add esp, 8
mov edi, eax
mov edx, 0x63e114
mov ecx, esi
call fcn.00413320
mov esi, eax
test esi, esi
jne 0x45917d
xor ecx, ecx
jmp 0x459184
call fcn.005c3f14
mov eax, dword [esi]
mov ecx, dword [eax + 4]
add ecx, esi
push dword [edi + 4]
push ecx
mov eax, dword [edi]
call eax
push 0
push 6
lea eax, [ebp - 0x160]
push eax
call fcn.005be8ff
add esp, 0x14
mov edx, eax
mov ecx, esi
call fcn.0041e9d0
mov esi, eax
mov ecx, dword [esi]
mov ecx, dword [ecx + 4]
mov eax, 0x30
mov word [ecx + esi + 0x40], ax
push 0
push 3
lea eax, [ebp - 0x170]
push eax
call fcn.005be8e5
add esp, 0xc
mov edx, eax
mov ecx, esi
call fcn.0041e9d0
mov ecx, dword [ebp - 0x3c]
mov byte [ebp - 4], 0xd
lea edx, [ebp - 0x4c]
cmp dword [ebp - 0x38], 8
cmovae edx, dword [ebp - 0x4c]
mov byte [ebp - 4], 9
push ecx
mov ecx, eax
call fcn.004137f0
add esp, 4
mov edi, eax
push 0
push 5
lea eax, [ebp - 0x180]
push eax
call fcn.005be8ff
add esp, 0xc
mov esi, eax
mov edx, 0x63e114
mov ecx, edi
call fcn.00413320
mov edx, esi
mov ecx, eax
call fcn.0041e9d0
mov esi, eax
mov ecx, dword [esi]
mov ecx, dword [ecx + 4]
mov eax, 0x20
mov word [ecx + esi + 0x40], ax
push 0x40
lea eax, [ebp - 0x120]
push eax
call fcn.005be8d1
mov ecx, dword [esi]
mov ecx, dword [ecx + 4]
add ecx, esi
push dword [eax + 4]
push ecx
mov eax, dword [eax]
call eax
add esp, 0x10
mov eax, dword [ebp - 0xd0]
mov byte [ebp - 4], 0xe
lea edx, [ebp - 0xe0]
cmp dword [ebp - 0xcc], 8
cmovae edx, dword [ebp - 0xe0]
mov byte [ebp - 4], 9
push eax
mov ecx, esi
call fcn.004137f0
add esp, 4
mov edx, 0x63e504
mov ecx, eax
call fcn.00413320
mov edx, dword [ebp - 0x108]
mov ecx, eax
call fcn.00413320
mov eax, dword fs:[0x2c]
mov ecx, dword [eax]
mov eax, dword [0x6835d0]
cmp eax, dword [ecx + 4]
jle 0x4592e8
push 0x6835d0
call fcn.005bcd79
add esp, 4
cmp dword [0x6835d0], 0xffffffff
jne 0x4592e8
mov ecx, 0x6835d4
call fcn.00407a4a
push 0x5ff870
call fcn.005bc9d9
add esp, 4
push 0x6835d0
call fcn.005bcd3a
add esp, 4
lea eax, [ebp - 0xb0]
push eax
lea ecx, [ebp - 0x218]
call fcn.00416830
mov dword [ebp - 0x118], 3
mov byte [ebp - 4], 0xf
mov eax, dword [0x6835e8]
cmp eax, 8
jb 0x459360
inc eax
mov ecx, dword [0x6835d4]
cmp eax, 0x7fffffff
ja 0x459178
add eax, eax
cmp eax, 0x1000
jb 0x459357
test cl, 0x1f
jne 0x459178
mov eax, dword [ecx - 4]
cmp eax, ecx
jae 0x459178
sub ecx, eax
cmp ecx, 4
jb 0x459178
cmp ecx, 0x23
ja 0x459178
mov ecx, eax
push ecx
call fcn.00476ee1
add esp, 4
mov dword [0x6835e4], 0
mov dword [0x6835e8], 7
xor eax, eax
mov word [0x6835d4], ax
movups xmm0, xmmword [ebp - 0xb0]
movups xmmword [0x6835d4], xmm0
movq xmm0, qword [ebp - 0xa0]
movq qword [0x6835e4], xmm0
mov dword [ebp - 0xa0], eax
mov dword [ebp - 0x9c], 7
mov word [ebp - 0xb0], ax
mov byte [ebp - 4], 9
lea ecx, [ebp - 0xb0]
call fcn.004075ab
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x4c]
call fcn.004075ab
mov byte [ebp - 4], 7
lea ecx, [ebp - 0xc8]
call fcn.004075ab
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x64]
call fcn.004075ab
mov byte [ebp - 4], 5
lea ecx, [ebp - 0xe0]
call fcn.004075ab
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x230]
call fcn.00415840
call fcn.0041db40
mov ecx, dword [0x6835e4]
mov byte [ebp - 4], 0x10
mov edx, 0x6835d4
cmp dword [0x6835e8], 8
cmovae edx, dword [0x6835d4]
mov byte [ebp - 4], 2
push ecx
mov ecx, eax
call fcn.004137f0
add esp, 4
mov edx, str.Failed_call_to_GetDeviceSet_for_GetSoundInfo
mov ecx, eax
call fcn.00413320
push eax
call fcn.00414850
add esp, 4
jmp 0x45949b
mov dword [ebp - 4], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xfc]
call fcn.00414900
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.005bc745
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 4