Function at 0x418980
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
push esi
push 0x1000000
xor esi, esi
push 0x100000
push esi
mov dword [ebp - 8], esi
mov dword [ebp - 0xc], 0x417477
call dword [sym.imp.KERNEL32.dll_HeapCreate]
mov dword [ebp - 4], eax
push 0x1c
lea eax, [ebp - 0x50]
push eax
push 0x4184ed
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x4189c3
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov eax, dword [ebp + 0xc]
push str._ERROR__The_Roland_SoundCanvas_Sound_Set_is_licensed_under_Microsofts_End_User_License_Agreement_n
mov dword [ebp - 0x18], eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
cmp dword [ebp + 8], esi
je 0x4189f3
push str.__fast
push dword [ebp + 8]
call fcn.004193d0
test eax, eax
pop ecx
pop ecx
je 0x4189f3
mov dword [ebp - 8], 1
cmp dword [ebp - 4], esi
je 0x418bc0
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_HeapAlloc]
push edi
push 0xe4
push 8
push dword [ebp - 4]
mov edi, 0x471c60
mov dword [0x471c64], edi
mov dword [0x471c60], edi
mov byte [ebp - 0x10], 0
mov dword [ebp - 0x14], 0x41747a
call ebx
mov esi, eax
test esi, esi
je 0x418b40
push 0xc
lea eax, [esi + 0xd4]
push 8
push dword [ebp - 4]
mov dword [eax], eax
mov dword [esi + 0xd8], eax
lea eax, [esi + 0xdc]
mov dword [eax], eax
mov dword [esi + 0xe0], eax
call ebx
mov ebx, eax
test ebx, ebx
je 0x418b04
push ebx
call fcn.0041877b
mov eax, dword [ebp - 8]
mov dword [esi + 0x2c], eax
mov eax, dword [ebp - 4]
mov dword [esi + 0x18], eax
lea eax, [ebp - 0x20]
mov dword [esi + 0x58], eax
mov eax, dword [ebp + 0xc]
mov dword [esi + 0x40], 1
mov dword [esi], esi
mov dword [esi + 4], ebx
mov dword [esi + 8], 0x41880a
mov al, byte [eax]
lea edi, [ebx + 4]
mov byte [esi + 0x64], al
lea eax, [esi + 0x10]
cmp edi, eax
pop ecx
mov ecx, dword [edi]
mov dword [eax], ecx
mov dword [ecx + 4], eax
mov dword [esi + 0x14], edi
mov dword [edi], eax
je 0x418aec
mov eax, dword [ebx + 8]
mov edx, dword [eax]
lea ecx, [eax - 0x10]
mov dword [ebp + 8], ecx
mov ecx, dword [eax + 4]
mov dword [ecx], edx
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [ecx + 4], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0xc]
test ecx, ecx
jbe 0x418add
push ecx
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x418ae8
push eax
call ecx
pop ecx
cmp edi, dword [edi]
jne 0x418aaf
push ebx
call fcn.00418796
pop ecx
push ebx
push 0
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov edi, 0x471c60
cmp dword [esi + 0x5c], 0
je 0x418b34
mov eax, dword [esi + 0x50]
test eax, eax
je 0x418b34
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x28], ecx
mov ecx, dword [esi + 0x5c]
mov dword [ebp - 0x34], ecx
mov ecx, dword [esi + 0x60]
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x2c], 0x20
mov dword [ebp - 0x24], eax
mov dword [ebp - 0xc], 0x4184b2
push esi
push 0
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_HeapDestroy]
lea eax, [ebp - 0x34]
push eax
call dword [ebp - 0xc]
jmp 0x418bb5
mov ecx, dword [eax]
mov esi, eax
mov eax, dword [eax + 4]
mov dword [eax], ecx
mov dword [ecx + 4], eax
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x418b92
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 0x10]
push eax
push 0xcc
push ecx
mov dword [ebp + 8], eax
mov dword [ebp + 0xc], ecx
call fcn.00418f10
add esp, 0xc
lea eax, [ebp - 0xc]
push eax
push 4
lea eax, [ebp + 8]
push eax
lea eax, [ebp + 0xc]
push eax
push 0xffffffffffffffff
call ebx
mov eax, dword [esi + 8]
test eax, eax
je 0x418ba5
push 0x8000
push 0
push dword [esi + 0x10]
call eax
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [0x471c60]
cmp eax, edi
jne 0x418b52
pop edi
pop ebx
pop esi
leave
ret