Function at 0x401cf0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x3c
mov eax, dword [0x419008]
xor eax, esp
mov dword [esp + 0x38], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
mov dword [esp + 0x18], eax
mov eax, dword [edx]
lea ecx, [esp + 0x20]
push ecx
push 0
push 0x17
push 0x415e70
push edx
mov dword [esp + 0x34], 0
mov dword [esp + 0x38], 0
mov dword [esp + 0x3c], 0
mov dword [esp + 0x4c], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x44], 0
call dword [eax + 0xc]
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
js 0x401f3b
mov eax, dword [esp + 0x20]
lea edx, [esp + 0x24]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x20]
test eax, eax
js 0x401f3b
push esi
call dword [sym.imp.KERNEL32.dll_SetEvent]
push dword [esp + 0x24]
push 0
push 0x465
push edi
call ebx
mov eax, dword [esp + 0x20]
push 0
push dword [esp + 0x28]
mov ecx, dword [eax]
push 0
push 0
push 0
push 0
push 0x40000
push 0
push eax
call dword [ecx + 0xc]
test eax, eax
js 0x401f3b
mov eax, dword [esp + 0x20]
lea edx, [esp + 0x30]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x10]
test eax, eax
js 0x401f3b
mov eax, dword [esp + 0x20]
lea edx, [esp + 0x28]
push edx
push 0x415e60
push eax
mov ecx, dword [eax]
call dword [ecx + 0x38]
test eax, eax
js 0x401f3b
lea eax, [esp + 0x38]
push eax
push str.Playback
call dword [sym.imp.AVRT.dll_AvSetMmThreadCharacteristicsW]
mov dword [esp + 0x1c], eax
test eax, eax
je 0x401f3b
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov esi, eax
mov dword [esp + 0x10], esi
test esi, esi
je 0x401f31
mov ecx, dword [esp + 0x20]
push esi
push ecx
mov edx, dword [ecx]
call dword [edx + 0x34]
test eax, eax
js 0x401f2a
mov eax, dword [esp + 0x20]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x28]
test eax, eax
js 0x401f2a
push 0
push 0
push 0x464
push edi
call ebx
mov eax, dword [esp + 0x18]
push 0xffffffffffffffff
mov dword [esp + 0x40], eax
lea eax, [esp + 0x40]
push 0
push eax
push 2
mov dword [esp + 0x24], 1
mov dword [esp + 0x50], esi
mov dword [esp + 0x3c], 0
mov dword [esp + 0x44], 0
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
test eax, eax
je 0x401f2a
cmp eax, 1
jne 0x401f1a
mov eax, dword [esp + 0x20]
lea edx, [esp + 0x34]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x18]
test eax, eax
js 0x401f26
mov esi, dword [esp + 0x30]
mov eax, dword [esp + 0x34]
cmp esi, eax
je 0x401eff
sub esi, eax
lea edx, [esp + 0x2c]
mov eax, dword [esp + 0x28]
push edx
push esi
push eax
mov ecx, dword [eax]
call dword [ecx + 0xc]
test eax, eax
js 0x401f26
mov eax, dword [esp + 0x24]
push dword [esp + 0x2c]
movzx eax, word [eax + 0xc]
imul eax, esi
push eax
push 0x466
push edi
call ebx
push str.12312412412
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov eax, dword [esp + 0x28]
push 0
push esi
push eax
mov ecx, dword [eax]
call dword [ecx + 0x10]
push 0xffffffffffffffff
push 0
lea eax, [esp + 0x44]
push eax
push 2
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
test eax, eax
jne 0x401e91
jmp 0x401f26
push 0
push 2
push 0x464
push edi
call ebx
mov esi, dword [esp + 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [esp + 0x1c]
call dword [sym.imp.AVRT.dll_AvRevertMmThreadCharacteristics]
mov ecx, dword [esp + 0x28]
test ecx, ecx
je 0x401f51
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [esp + 0x28], 0
mov eax, dword [esp + 0x24]
test eax, eax
je 0x401f68
push eax
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov dword [esp + 0x24], 0
mov ecx, dword [esp + 0x20]
test ecx, ecx
je 0x401f93
cmp dword [esp + 0x14], 0
je 0x401f8d
mov eax, dword [ecx]
push ecx
call dword [eax + 0x2c]
push 0
push 1
push 0x464
push edi
call ebx
mov ecx, dword [esp + 0x20]
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov ecx, dword [esp + 0x44]
xor eax, eax
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004043cd
mov esp, ebp
pop ebp
ret