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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x430651
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x88
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 + 0x10]
mov esi, dword [ebp + 0xc]
cmp byte [ebx + 0x369], 0
mov dword [ebx + 0x2e4], eax
jne 0x42d4f1
push dword [ebp + 0x1c]
lea eax, [ebp - 0x90]
mov byte [ebx + 0x369], 1
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push edi
push esi
push str.sample_output_i_buffer:_d_sample_rate:_d_bitspersample:_d_pts:_lld
push eax
call fcn.00402000
add esp, 0x1c
lea ecx, [ebp - 0x90]
push dword [ebx + 0x90]
call fcn.00402690
add esp, 4
mov eax, dword [ebx + 0x360]
mov byte [ebp - 0x10], 0
test eax, eax
je 0x42d520
push str.renderer
push eax
call fcn.00411991
mov ecx, dword [ebp - 0x10]
add esp, 8
test eax, eax
movzx ecx, cl
mov edx, 1
cmove ecx, edx
mov dword [ebp - 0x10], ecx
cmp byte [ebx + 0x20b], 0
je 0x42d5fe
mov eax, dword [ebx + 0x200]
test eax, eax
je 0x42d56e
mov ecx, dword [ebx + 0x3a4]
cmp dword [ebx + 0x3a8], ecx
je 0x42d56e
push eax
mov dword [ebx + 0x3a8], ecx
call dword [sym.imp.dAVEncoder.dll_dEnc_Close]
add esp, 4
push dword [ebx + 0x200]
call dword [sym.imp.dAVEncoder.dll_dEnc_ReleaseObject]
add esp, 4
mov dword [ebx + 0x200], 0
mov eax, dword [ebx + 0x8c]
cmp eax, 6
je 0x42d5c9
cmp dword [ebx + 0x200], 0
jne 0x42d5c2
push str.datetime
push eax
push dword [ebx + 0x90]
push dword [ebx + 0x1bc]
call dword [sym.imp.dAVEncoder.dll_dEnc_CreateObject]
push edi
push 0x120
push 0x168
push 0
push 0
push eax
mov dword [ebx + 0x200], eax
call dword [sym.imp.dAVEncoder.dll_dEnc_SetParameter]
add esp, 0x28
cmp dword [ebx + 0x200], 0
je 0x42d5c9
mov ecx, ebx
call fcn.0042c800
mov eax, dword [ebx + 0x200]
test eax, eax
je 0x42d642
push eax
call dword [sym.imp.dAVEncoder.dll_dEnc_GetState]
add esp, 4
test eax, eax
je 0x42d642
push 1
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push esi
push dword [ebp + 8]
push dword [ebx + 0x200]
call dword [sym.imp.dAVEncoder.dll_dEnc_PutAVPacket]
add esp, 0x18
jmp 0x42d642
cmp dword [ebx + 0x200], 0
je 0x42d642
push dword [ebx + 0x90]
mov ecx, str.ffmpeg_encoder_close
call fcn.00402690
add esp, 4
push dword [ebx + 0x200]
call dword [sym.imp.dAVEncoder.dll_dEnc_Close]
add esp, 4
push dword [ebx + 0x200]
call dword [sym.imp.dAVEncoder.dll_dEnc_ReleaseObject]
add esp, 4
mov dword [ebx + 0x200], 0
cmp byte [ebp - 0x10], 0
jne 0x42d78a
cmp dword [ebx + 0x84], 0
jne 0x42d78a
cmp byte [ebx + 0x20a], 0
je 0x42d78a
mov eax, dword [ebp + 0x14]
mov edi, 0x10
test eax, eax
mov esi, 0xbb80
cmovne edi, eax
mov eax, dword [ebp + 0x10]
test eax, eax
cmovne esi, eax
cmp dword [ebx + 0x74], 0
jne 0x42d70b
push 0x28
call fcn.0040a4c0
mov dword [ebp + 0x14], eax
mov dword [ebp - 4], 0
mov ecx, eax
call fcn.0042f320
mov dword [ebp - 4], 0xffffffff
mov ecx, str.sample_output_wave_render_create
push dword [ebx + 0x90]
mov dword [ebx + 0x74], eax
call fcn.00402690
mov ecx, dword [ebx + 0x74]
add esp, 4
cmp dword [ebx + 0x3b8], 0
mov edx, dword [ebp + 0xc]
mov eax, dword [ecx]
push edx
push esi
mov eax, dword [eax + 4]
je 0x42d6d9
push 0x10
jmp 0x42d6da
push edi
push 2
push 0
call eax
test al, al
jne 0x42d70b
mov ecx, dword [ebx + 0x74]
test ecx, ecx
je 0x42d6f1
mov eax, dword [ecx]
push 1
call dword [eax]
push dword [ebx + 0x90]
mov ecx, str.wave_render_init_audio_failed
mov dword [ebx + 0x74], 0
call fcn.00402690
add esp, 4
mov ecx, dword [ebx + 0x74]
test ecx, ecx
je 0x42d746
cmp dword [ecx + 0x14], 0
je 0x42d746
cmp dword [ebx + 0x3b8], 0
jne 0x42d746
movzx eax, word [ecx + 0xc]
cmp edi, eax
jne 0x42d72e
cmp esi, dword [ecx + 8]
je 0x42d746
mov eax, dword [ecx]
call dword [eax + 0x10]
push dword [ebx + 0x90]
mov ecx, str.wave_render_destory_audio
call fcn.00402690
add esp, 4
mov ecx, dword [ebx + 0x74]
test ecx, ecx
je 0x42d78a
cmp dword [ecx + 0x14], 0
jne 0x42d774
push dword [ebp + 0xc]
mov eax, dword [ecx]
push esi
push edi
push 2
push 0
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
lea edx, [ebp + 0x14]
mov dword [ebp + 0x14], 0
mov eax, dword [ecx]
push edx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [eax + 8]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0x18