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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x111daa80
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x11279148]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
lea eax, [edi + 0x10]
push eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
xor esi, esi
test byte [ebp + 8], 8
mov dword [ebp - 4], esi
je 0x11033714
push edi
call fcn.11031dc0
push edi
call fcn.110323d0
add esp, 8
test byte [ebp + 8], 1
mov ebx, dword [edi + 0x84]
mov dword [ebp - 0x10], ebx
je 0x11033808
cmp ebx, esi
je 0x11033808
lea esi, [edi + 0x28]
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push ebx
mov dword [edi + 0x84], 0
call dword [sym.imp.WINMM.dll_waveInStop]
push ebx
call dword [sym.imp.WINMM.dll_waveInReset]
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [edi + 0x88]
xor ebx, ebx
push eax
mov dword [edi + 0x20c], ebx
call dword [sym.imp.KERNEL32.dll_SetEvent]
cmp dword [edi + 0x20c], ebx
jne 0x11033785
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [edi + 0x20c], ebx
je 0x11033775
lea eax, [edi + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea esi, [edi + 0x98]
cmp dword [edi + 0x208], ebx
jle 0x110337e8
lea ecx, [ecx]
test byte [esi + 0x10], 2
je 0x110337b3
mov ecx, dword [ebp - 0x10]
push 0x20
push esi
push ecx
call dword [sym.imp.WINMM.dll_waveInUnprepareHeader]
mov eax, dword [esi]
test eax, eax
je 0x110337c3
push eax
call dword [sym.imp.MSVCR100.dll_free]
add esp, 4
xor eax, eax
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], eax
inc ebx
add esi, 0x20
cmp ebx, dword [edi + 0x208]
jl 0x110337a0
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.WINMM.dll_waveInClose]
lea eax, [edi + 0x28]
push eax
mov dword [edi + 0x1d8], 0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor esi, esi
test byte [ebp + 8], 2
mov dword [ebp - 0x10], esi
je 0x11033980
lea eax, [edi + 0x40]
push eax
mov dword [ebp - 0x1c], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [edi + 4]
push esi
push esi
push str.DisableReset
push str.Audio
mov byte [ebp - 4], 1
call fcn.110bbc00
test eax, eax
jne 0x1103385e
mov eax, dword [edi + 0x1e0]
mov ebx, dword [sym.imp.WINMM.dll_waveOutReset]
cmp eax, esi
je 0x11033851
push eax
call ebx
mov eax, dword [edi + 0x1e4]
cmp eax, esi
je 0x1103385e
push eax
call ebx
mov eax, dword [edi + 0x404]
test eax, eax
je 0x110338c7
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
call ebx
mov ecx, dword [edi + 0x404]
mov esi, eax
test ecx, ecx
je 0x110338c3
lea esp, [esp]
mov ecx, dword [edi + 0x1e8]
call fcn.11171060
test eax, eax
je 0x11033893
push 1
jmp 0x110338a4
mov ecx, dword [edi + 0x1ec]
call fcn.11171060
test eax, eax
je 0x110338ae
push 2
push eax
push edi
call fcn.110329d0
add esp, 0xc
call ebx
sub eax, esi
cmp eax, 0x1f4
jae 0x110338c3
mov edx, dword [edi + 0x404]
test edx, edx
jne 0x11033880
call ebx
xor esi, esi
cmp byte [edi + 0x239], 6
mov ecx, dword [edi + 4]
sbb eax, eax
and eax, 0xffffff38
push esi
add eax, 0xc8
push eax
push str.SleepBeforeClose
push str.Audio
call fcn.110bbc00
mov ebx, eax
cmp ebx, esi
je 0x11033909
push ebx
push str.Sleep__d__n
call fcn.111bd7b0
add esp, 8
push ebx
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [edi + 0x1e0]
mov ebx, dword [sym.imp.WINMM.dll_waveOutClose]
cmp eax, esi
je 0x11033929
push eax
mov dword [edi + 0x1e0], esi
call ebx
mov dword [ebp - 0x10], 1
mov eax, dword [edi + 0x1e4]
cmp eax, esi
je 0x1103393f
push eax
mov dword [edi + 0x1e4], esi
call ebx
inc dword [ebp - 0x10]
lea eax, [edi + 0x40]
push eax
mov byte [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [ebp - 0x10], esi
je 0x11033980
mov eax, dword [edi + 0x88]
push eax
mov dword [edi + 0x20c], esi
call dword [sym.imp.KERNEL32.dll_SetEvent]
cmp dword [edi + 0x20c], esi
jne 0x11033980
lea ecx, [ecx]
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [edi + 0x20c], esi
je 0x11033970
test byte [ebp + 8], 4
je 0x110339cf
mov eax, dword [edi + 0x7c]
cmp eax, esi
je 0x1103399a
mov ecx, dword [edi + 0x21c]
push esi
push eax
call ecx
mov dword [edi + 0x7c], esi
mov eax, dword [edi + 0x80]
cmp eax, esi
je 0x110339b4
mov edx, dword [edi + 0x21c]
push esi
push eax
call edx
mov dword [edi + 0x80], esi
mov eax, dword [edi + 0x74]
mov byte [edi + 0x409], 0
cmp eax, esi
je 0x110339cf
push eax
call dword [sym.imp.MSVCR100.dll_free]
add esp, 4
mov dword [edi + 0x74], esi
cmp dword [ebp + 8], 0xf
jne 0x110339df
push esi
push esi
call fcn.11033540
add esp, 8
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret