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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x430679
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x48
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esi
call ebx
add esi, 0x2cc
mov edi, eax
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebp - 0x10]
push esi
mov dword [eax + 0x2c8], edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call ebx
mov ebx, dword [ebp - 0x10]
mov edi, dword [ebp + 0xc]
cmp byte [ebx + 0x368], 0
mov dword [ebx + 0x2e4], eax
jne 0x42d82e
push dword [ebx + 0x90]
lea eax, [ebp - 0x50]
mov byte [ebx + 0x368], 1
push edi
push str.extern_audio_decoder_i_buffer_d_pid:_d
push eax
call fcn.00402000
push dword [ebx + 0x90]
lea ecx, [ebp - 0x50]
call fcn.00402690
add esp, 0x14
cmp edi, 0xfa0
ja 0x42dabc
cmp dword [ebx + 0x3bc], 1
je 0x42dabc
cmp dword [ebx + 0x84], 0
jne 0x42d8db
push 0x6c
call fcn.0040a4c0
add esp, 4
mov dword [ebp + 0xc], eax
mov dword [ebp - 4], 0
mov ecx, dword [ebx + 0x90]
mov edx, dword [ebx + 0x210]
mov dword [eax + 0x10], 0
mov dword [eax + 0xc], ecx
mov dword [eax], 0x3000
mov dword [eax + 4], 0x5000
mov dword [eax + 8], edx
mov dword [eax + 0x2c], 0
mov dword [ebp - 4], 0xffffffff
mov ecx, eax
mov dword [ebx + 0x84], eax
call fcn.00425290
cmp eax, 0xffffffff
jne 0x42d8db
push dword [ebx + 0x90]
lea eax, [ebp - 0x50]
push str.DreDec_Init_pid_d__faield
push eax
call fcn.00402000
add esp, 0xc
lea ecx, [ebp - 0x50]
push dword [ebx + 0x90]
call fcn.00402690
add esp, 4
jmp 0x42dacf
cmp dword [ebx + 0x88], 0
jne 0x42d8f7
push 0x20000
call fcn.0040e384
add esp, 4
mov dword [ebx + 0x88], eax
mov ecx, dword [ebx + 0x84]
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp + 0xc]
mov dword [ebp + 0xc], 0
push eax
push dword [ebx + 0x88]
mov dword [ebp - 0x10], 0
push edi
push dword [ebp + 8]
call fcn.004251e0
mov esi, eax
test esi, esi
jle 0x42daaf
cmp dword [ebp + 0x28], 0
je 0x42d98c
cmp dword [ebp + 0x2c], 0
je 0x42d98c
movsx eax, word [ebp + 0xc]
movd xmm0, eax
cvtdq2pd xmm0, xmm0
mulsd xmm0, qword [0x455230]
call fcn.0042f730
mulsd xmm0, qword [0x455238]
mov ecx, dword [ebp + 0x28]
cvttsd2si eax, xmm0
mov dword [ecx], eax
movsx eax, word [ebp - 0x10]
movd xmm0, eax
cvtdq2pd xmm0, xmm0
mulsd xmm0, qword [0x455230]
call fcn.0042f730
mulsd xmm0, qword [0x455238]
mov ecx, dword [ebp + 0x2c]
cvttsd2si eax, xmm0
mov dword [ecx], eax
mov eax, dword [ebp + 0x24]
test eax, eax
je 0x42d995
mov dword [eax], esi
mov eax, dword [ebp + 0x20]
test eax, eax
je 0x42d9ac
push esi
push dword [ebx + 0x88]
push eax
call fcn.0040bf00
add esp, 0xc
cmp byte [ebx + 0x20a], 0
je 0x42da97
cmp dword [ebx + 0x74], 0
jne 0x42da26
push 0x28
call fcn.0040a4c0
mov dword [ebp + 0x28], eax
mov dword [ebp - 4], 1
mov ecx, eax
call fcn.0042f320
mov dword [ebp - 4], 0xffffffff
mov ecx, str.extern_audio_decoder_wave_render_create
push dword [ebx + 0x90]
mov dword [ebx + 0x74], eax
call fcn.00402690
mov ecx, dword [ebx + 0x74]
add esp, 4
mov eax, dword [ecx]
push 0x1000
push 0xbb80
push 0x10
mov eax, dword [eax + 4]
push 2
push 0
call eax
test al, al
jne 0x42da26
mov ecx, dword [ebx + 0x74]
test ecx, ecx
je 0x42da1f
mov eax, dword [ecx]
push 1
call dword [eax]
mov dword [ebx + 0x74], 0
cmp esi, 0x1000
jl 0x42da76
mov eax, esi
and eax, 0x80000fff
jns 0x42da3e
dec eax
or eax, 0xfffff000
inc eax
jne 0x42da76
mov ecx, dword [ebx + 0x74]
test ecx, ecx
je 0x42da97
lea edx, [ebp + 0x28]
mov dword [ebp + 0x28], 0
mov eax, dword [ecx]
push edx
push esi
push dword [ebx + 0x88]
call dword [eax + 8]
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x28
push esi
push edi
lea eax, [ebp - 0x50]
push str.dradec:__d__d
push eax
call fcn.00402000
push dword [ebx + 0x90]
lea ecx, [ebp - 0x50]
call fcn.00402690
add esp, 0x14
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x28
mov ecx, dword [ebx + 0x84]
call fcn.004252f0
jmp 0x42dacf
cmp dword [ebx + 0x3b8], 0
jne 0x42dacf
mov dword [ebx + 0x3b8], 1
mov ecx, dword [ebp - 0xc]
xor eax, eax
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0x28