Function at 0x40e590
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x586efb
mov eax, dword fs:[0]
push eax
sub esp, 0xa0
mov eax, dword [0x5eae84]
xor eax, esp
mov dword [esp + 0x98], eax
push ebx
push esi
push edi
mov eax, dword [0x5eae84]
xor eax, esp
push eax
lea eax, [esp + 0xb0]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [edi + 0xac]
cmp eax, 1
je 0x40e5e6
cmp eax, 2
jne 0x40e9b9
mov eax, dword [edi]
call dword [eax + 8]
mov edx, eax
mov dword [esp + 0x1c], 0x2c0020
cmp dword [edx], 0x20424b41
mov eax, 0x44
mov dword [esp + 0x20], 0x440044
jne 0x40e622
movzx eax, word [edx + 4]
cmp eax, 4
jae 0x40e622
mov ecx, eax
mov ax, word [edx + 6]
cmp ax, word [esp + ecx*2 + 0x1c]
mov al, 1
je 0x40e625
mov al, byte [edx + 1]
mov dword [esp + 0x10], 0
test al, al
jne 0x40e66a
push str.empty___
lea eax, [esp + 0x28]
push 0x80
push eax
call dword [sym.imp.MSVCR110.dll_sprintf_s]
add esp, 0xc
mov word [esp + eax + 0x24], 0xa
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov dword [edi + 0xac], 5
jmp 0x40ec8d
mov ebx, 0x65
cmp al, 2
jne 0x40e88e
call dword [sym.imp.MSVCR110.dll_rand]
cdq
idiv ebx
xor ebx, ebx
mov dword [esp + 0x1c], 0x2c0020
mov dword [esp + 0x20], 0x440044
mov esi, edx
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 8]
cmp dword [eax], 0x20424b41
jne 0x40e6bd
movzx ecx, word [eax + 4]
cmp ecx, 4
jae 0x40e6bd
mov edx, ecx
mov cx, word [eax + 6]
cmp cx, word [esp + edx*2 + 0x1c]
jne 0x40e6bd
mov al, 1
jmp 0x40e6c0
mov al, byte [eax + 0xf]
movzx eax, al
cmp ebx, eax
jge 0x40e802
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 8]
mov edx, ebx
mov ecx, eax
call fcn.00405430
movzx eax, al
cmp esi, eax
jle 0x40e6e5
inc ebx
jmp 0x40e694
mov dword [esp + 0x10], ebx
test ebx, ebx
js 0x40e802
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 8]
mov edx, eax
mov dword [esp + 0x1c], 0x2c0020
cmp dword [edx], 0x20424b41
mov eax, 0x2c
mov dword [esp + 0x20], 0x440044
jne 0x40e731
movzx eax, word [edx + 4]
cmp eax, 4
jae 0x40e731
mov ecx, eax
mov ax, word [edx + 6]
cmp ax, word [esp + ecx*2 + 0x1c]
jne 0x40e731
or al, 0xff
jmp 0x40e734
mov al, byte [edx + 0x10]
movzx eax, al
cmp ebx, eax
jne 0x40e7bb
mov dword [esp + 0x1c], 0
xor esi, esi
mov dword [esp + 0x14], 0x2c0020
mov dword [esp + 0x18], 0x440044
lea esp, [esp]
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 8]
cmp dword [eax], 0x20424b41
jne 0x40e789
movzx ecx, word [eax + 4]
cmp ecx, 4
jae 0x40e789
mov edx, ecx
mov cx, word [eax + 6]
cmp cx, word [esp + edx*2 + 0x14]
jne 0x40e789
mov al, 1
jmp 0x40e78c
mov al, byte [eax + 0xf]
movzx eax, al
cmp esi, eax
jge 0x40e7bb
cmp ebx, esi
je 0x40e7b8
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 8]
mov edx, esi
mov ecx, eax
call fcn.00405430
movzx eax, al
cmp eax, dword [esp + 0x1c]
jle 0x40e7b8
mov dword [esp + 0x10], esi
mov dword [esp + 0x1c], eax
inc esi
jmp 0x40e760
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 8]
mov edx, eax
mov dword [esp + 0x14], 0x2c0020
cmp dword [edx], 0x20424b41
mov dword [esp + 0x18], 0x440044
jne 0x40e7f6
movzx eax, word [edx + 4]
cmp eax, 4
jae 0x40e7f6
mov ecx, eax
mov ax, word [edx + 6]
cmp ax, word [esp + ecx*2 + 0x14]
je 0x40e8e9
mov eax, dword [esp + 0x10]
mov byte [edx + 0x10], al
jmp 0x40e8e9
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 8]
mov edx, eax
mov dword [esp + 0x14], 0x2c0020
cmp dword [edx], 0x20424b41
mov dword [esp + 0x18], 0x440044
jne 0x40e839
movzx eax, word [edx + 4]
cmp eax, 4
jae 0x40e839
mov ecx, eax
mov ax, word [edx + 6]
cmp ax, word [esp + ecx*2 + 0x14]
je 0x40e83d
mov byte [edx + 0x10], 0xff
mov eax, dword [edi + 0xac]
cmp eax, 5
je 0x40ec8d
test eax, eax
je 0x40e65b
cmp eax, 1
je 0x40e65b
cmp eax, 2
je 0x40e65b
push 0
lea ecx, [edi + 0x20]
xorps xmm1, xmm1
call fcn.0040cbf0
mov ecx, dword [edi + 4]
test ecx, ecx
je 0x40e87f
mov eax, dword [ecx]
call dword [eax + 0xc]
mov dword [edi + 0xac], 4
jmp 0x40ec8d
cmp al, 3
jne 0x40e8de
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 8]
mov ecx, eax
call fcn.00405310
mov bl, al
cmp bl, 0xff
jne 0x40e8ab
xor bl, bl
jmp 0x40e8c5
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 8]
mov ecx, eax
call fcn.004053d0
movzx ecx, al
movzx eax, bl
inc eax
cdq
idiv ecx
mov bl, dl
movzx eax, bl
mov dword [esp + 0x10], eax
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 8]
mov dl, bl
mov ecx, eax
call fcn.00405370
jmp 0x40e8e9
cmp al, 4
jne 0x40e8e9
mov byte [edi + 0xf8], 1
mov ecx, edi
call fcn.00411ed0
test al, al
je 0x40e83d
push 0x1c
call dword [sym.imp.MSVCR110.dll_malloc]
mov ebx, eax
add esp, 4
mov dword [esp + 0x1c], ebx
mov dword [esp + 0xb8], 0
test ebx, ebx
je 0x40e95c
mov esi, dword [edi]
mov ecx, edi
call dword [esi + 8]
mov edx, dword [esp + 0x10]
mov esi, eax
mov ecx, esi
call fcn.00405510
add eax, esi
mov dword [ebx + 4], edi
mov dword [ebx + 8], eax
mov dword [ebx + 0xc], vtable.SQEX::ICoreSourceCallback.0
mov dword [ebx], vtable.SQEX::Voice.0
mov dword [ebx + 0xc], vtable.SQEX::Voice.1.0
mov dword [ebx + 0x10], 0
mov dword [ebx + 0x14], 0
mov byte [ebx + 0x18], 0
jmp 0x40e95e
xor ebx, ebx
mov dword [esp + 0xb8], 0xffffffff
mov dword [edi + 4], ebx
test ebx, ebx
jne 0x40e9c0
push str._warn_
lea eax, [esp + 0x28]
push 0x80
push eax
call dword [sym.imp.MSVCR110.dll_strcpy_s]
add esp, 0xc
lea eax, [esp + 0x2a]
push str._SoundImpl::Play__create_voice_failed___heap_memory_insufficient
push 0x7a
push eax
call dword [sym.imp.MSVCR110.dll_sprintf_s]
add esp, 0xc
mov word [esp + eax + 0x2a], 0xa
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov dword [edi + 0xac], 5
or al, 0xff
jmp 0x40ec8f
push dword [edi + 0xc8]
mov eax, dword [edi]
mov esi, dword [ebx]
mov ecx, edi
call dword [eax + 4]
mov ecx, dword [edi + 4]
cmp eax, 1
sete al
movzx eax, al
push eax
mov eax, dword [esi + 4]
call eax
cmp al, 0xff
jne 0x40ea35
push str._warn_
lea eax, [esp + 0x28]
push 0x80
push eax
call dword [sym.imp.MSVCR110.dll_strcpy_s]
add esp, 0xc
lea eax, [esp + 0x2a]
push str._SoundImpl::Play_voice_create_failed
push 0x7a
push eax
call dword [sym.imp.MSVCR110.dll_sprintf_s]
add esp, 0xc
mov word [esp + eax + 0x2a], 0xa
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov dword [edi + 0xac], 5
or al, 0xff
jmp 0x40ec8f
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 8]
cmp byte [eax], 1
jae 0x40ea45
xor eax, eax
jmp 0x40ea48
mov eax, dword [eax + 0x14]
mov ecx, dword [0x6410a0]
test ecx, ecx
je 0x40ea6c
dec eax
cmp dword [0x6410a4], eax
jbe 0x40ea6c
mov ecx, dword [ecx + eax*4]
test ecx, ecx
je 0x40ea6c
push dword [edi + 8]
call fcn.00408600
jmp 0x40eac8
cmp byte [0x64106b], 0
je 0x40eac8
push str._warn_
lea eax, [esp + 0x28]
push 0x80
push eax
call dword [sym.imp.MSVCR110.dll_strcpy_s]
mov eax, dword [edi]
add esp, 0xc
mov ecx, edi
call dword [eax + 8]
cmp byte [eax], 1
jae 0x40ea9d
xor eax, eax
jmp 0x40eaa0
mov eax, dword [eax + 0x14]
push eax
push str.SoundManager::CreateSound_System_created_a_data_that_has_not_been_registered_category____category___d_
lea eax, [esp + 0x32]
push 0x7a
push eax
call dword [sym.imp.MSVCR110.dll_sprintf_s]
add esp, 0x10
mov word [esp + eax + 0x2a], 0xa
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 8]
mov ecx, eax
call fcn.004059b0
cmp al, 1
jne 0x40eb2f
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 8]
mov ecx, eax
call fcn.00405ad0
mov esi, dword [sym.imp.MSVCR110.dll_rand]
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], edx
call esi
cdq
mov ebx, 0x65
idiv ebx
movss xmm0, dword [esp + 0x14]
subss xmm0, dword [esp + 0x18]
movd xmm2, edx
cvtdq2ps xmm2, xmm2
mulss xmm2, dword [0x5c69a4]
mulss xmm2, xmm0
addss xmm2, dword [esp + 0x18]
movss dword [edi + 0xbc], xmm2
jmp 0x40eb3a
mov esi, dword [sym.imp.MSVCR110.dll_rand]
mov ebx, 0x65
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 8]
mov ecx, eax
call fcn.00405a40
cmp al, 1
jne 0x40eb94
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 8]
mov ecx, eax
call fcn.00405b70
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], edx
call esi
cdq
idiv ebx
movss xmm0, dword [esp + 0x14]
subss xmm0, dword [esp + 0x18]
movd xmm2, edx
cvtdq2ps xmm2, xmm2
mulss xmm2, dword [0x5c69a4]
mulss xmm2, xmm0
addss xmm2, dword [esp + 0x18]
movss dword [edi + 0xc0], xmm2
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 8]
cmp byte [eax], 1
jae 0x40eba5
xorps xmm0, xmm0
jmp 0x40ebaa
movss xmm0, dword [eax + 0x18]
mov eax, dword [edi]
mov ecx, edi
movss dword [edi + 0xe4], xmm0
call dword [eax + 8]
cmp byte [eax], 1
jae 0x40ebc3
xorps xmm0, xmm0
jmp 0x40ebc8
movss xmm0, dword [eax + 0x1c]
mov eax, dword [edi]
mov ecx, edi
movss dword [edi + 0xe8], xmm0
call dword [eax + 8]
cmp byte [eax], 1
jae 0x40ebe1
xorps xmm0, xmm0
jmp 0x40ebe6
movss xmm0, dword [eax + 0x20]
mov ecx, edi
movss dword [edi + 0xf4], xmm0
call fcn.0040ee00
mov esi, dword [edi + 4]
test esi, esi
je 0x40ec11
mov esi, dword [esi]
mov ecx, edi
call fcn.00409150
push ecx
mov ecx, dword [edi + 4]
movss dword [esp], xmm0
call dword [esi + 0x10]
mov ecx, edi
call fcn.0040ecf0
mov ecx, dword [edi + 4]
test ecx, ecx
je 0x40ec6a
mov eax, dword [edi + 0x7c]
test eax, eax
jne 0x40ec2d
movss xmm2, dword [edi + 0x74]
jmp 0x40ec53
movd xmm2, dword [edi + 0x78]
cvtdq2ps xmm2, xmm2
movd xmm0, eax
cvtdq2ps xmm0, xmm0
divss xmm2, xmm0
movss xmm0, dword [edi + 0x74]
subss xmm0, dword [edi + 0x70]
mulss xmm2, xmm0
addss xmm2, dword [edi + 0x70]
movss xmm0, dword [edi + 0xf0]
mov eax, dword [ecx]
addss xmm0, xmm2
push ecx
movss dword [esp], xmm0
call dword [eax + 0x18]
mov ecx, dword [edi + 4]
mov eax, dword [ecx]
call dword [eax + 8]
cmp dword [edi + 0xb0], 2
mov dword [edi + 0xac], 3
jne 0x40ec8d
mov ecx, dword [edi + 4]
mov eax, dword [ecx]
call dword [eax + 0x1c]
xor al, al
mov ecx, dword [esp + 0xb0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x98]
xor ecx, esp
call fcn.0057d22e
mov esp, ebp
pop ebp
ret