Function at 0x408600
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xac
mov eax, dword [0x5eae84]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, ecx
mov dword [ebp - 0xa8], eax
push edi
mov dword [ebp - 0xa4], ebx
and eax, 0xffff
jl 0x4089c9
cmp dword [0x641154], eax
jle 0x4089c9
mov ecx, dword [0x64115c]
test ecx, ecx
je 0x4089c9
lea eax, [eax + eax*2]
lea eax, [ecx + eax*8]
test eax, eax
je 0x4089c9
test byte [eax + 0x10], 1
je 0x4089c9
mov edi, dword [eax + 0x14]
mov eax, dword [ebp - 0xa8]
mov dword [ebp - 0xac], edi
cmp eax, dword [edi + 8]
jne 0x4089c9
mov eax, dword [ebx + 8]
push esi
mov esi, dword [sym.imp.MSVCR110.dll_strcpy_s]
cmp eax, dword [ebx + 0x34]
jl 0x4088a1
mov esi, dword [ebx + 0x14]
xor edi, edi
mov dword [ebp - 0x9c], edi
test esi, esi
je 0x40888a
mov edx, dword [esi + 0x14]
mov eax, edx
and eax, 0xffff
jl 0x408882
cmp dword [0x641154], eax
jle 0x408882
test ecx, ecx
je 0x408882
lea eax, [eax + eax*2]
lea eax, [ecx + eax*8]
test eax, eax
je 0x408882
test byte [eax + 0x10], 1
je 0x408882
mov ebx, dword [eax + 0x14]
mov dword [ebp - 0xa0], ebx
cmp edx, dword [ebx + 8]
jne 0x408882
cmp dword [ebx + 0xac], 5
je 0x408882
cmp dword [ebp - 0x9c], 0
je 0x4087d1
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 8]
mov ebx, eax
mov dword [ebp - 0x14], 0x2c0020
cmp dword [ebx], 0x20424b41
mov dword [ebp - 0x10], 0x440044
jne 0x408759
movzx eax, word [ebx + 4]
cmp eax, 4
jae 0x408759
mov ecx, eax
mov ax, word [ebx + 6]
cmp ax, word [ebp + ecx*2 - 0x14]
jne 0x408759
mov ecx, ebx
call fcn.00404dd0
cmp ax, 1
jae 0x408754
mov byte [ebp - 0x95], 0
jmp 0x408762
mov al, byte [ebx + 0x2a]
jmp 0x40875c
mov al, byte [ebx + 0xe]
mov byte [ebp - 0x95], al
mov ecx, dword [ebp - 0x9c]
mov eax, dword [ecx]
call dword [eax + 8]
mov ebx, eax
mov dword [ebp - 0xc], 0x2c0020
cmp dword [ebx], 0x20424b41
mov eax, 0x44
mov dword [ebp - 8], 0x440044
jne 0x4087b6
movzx eax, word [ebx + 4]
cmp eax, 4
jae 0x4087b6
mov ecx, eax
mov ax, word [ebx + 6]
cmp ax, word [ebp + ecx*2 - 0xc]
jne 0x4087b6
mov ecx, ebx
call fcn.00404dd0
cmp ax, 1
jb 0x408871
mov al, byte [ebx + 0x2a]
jmp 0x4087b9
mov al, byte [ebx + 0xe]
cmp byte [ebp - 0x95], al
jae 0x408871
mov ecx, dword [0x64115c]
mov ebx, dword [ebp - 0xa0]
mov eax, ebx
mov edi, esi
mov dword [ebp - 0x9c], eax
test byte [esi + 0x10], 1
je 0x4087ec
mov esi, dword [esi + 4]
test esi, esi
jne 0x4086a1
test eax, eax
je 0x408884
mov edi, dword [ebp - 0xac]
mov ecx, edi
call fcn.0040d860
mov esi, dword [ebp - 0x9c]
mov ecx, esi
mov bl, al
call fcn.0040d860
push 0
mov ecx, edi
cmp bl, al
jb 0x40881a
mov ecx, esi
call fcn.0040db80
mov esi, dword [sym.imp.MSVCR110.dll_strcpy_s]
push str._warn_
lea eax, [ebp - 0x94]
push 0x80
push eax
call esi
mov ebx, dword [ebp - 0xa4]
lea eax, [ebp - 0x8e]
push dword [ebx + 0x30]
push str.CategoryImpl::AddSound_category_over_maxsounds___System_stopped_a_low_priority_sound.__d_
push 0x7a
push eax
call dword [sym.imp.MSVCR110.dll_sprintf_s]
add esp, 0x1c
mov word [ebp + eax - 0x8e], 0xa
lea eax, [ebp - 0x94]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
jmp 0x4088a1
mov ecx, dword [0x64115c]
mov eax, dword [ebp - 0x9c]
jmp 0x4087db
mov edi, esi
mov ebx, dword [ebp - 0xa4]
push dword [edi + 0xc]
lea ecx, [ebx + 4]
call fcn.00408c50
mov edi, dword [ebp - 0xac]
mov esi, dword [sym.imp.MSVCR110.dll_strcpy_s]
push dword [ebp - 0xa8]
lea eax, [ebp - 0xa0]
push eax
lea ecx, [ebx + 4]
call fcn.00408b20
test al, al
jns 0x408910
push str._warn_
lea eax, [ebp - 0x94]
push 0x80
push eax
call esi
push str.CategoryImpl::AddSound_category_list_append_failed__
lea eax, [ebp - 0x8e]
push 0x7a
push eax
call dword [sym.imp.MSVCR110.dll_sprintf_s]
add esp, 0x18
mov word [ebp + eax - 0x8e], 0xa
lea eax, [ebp - 0x94]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
pop esi
pop edi
or al, 0xff
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0057d22e
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebx + 0x28]
test eax, eax
jne 0x40891e
movss xmm2, dword [ebx + 0x20]
jmp 0x408944
movd xmm2, dword [ebx + 0x24]
cvtdq2ps xmm2, xmm2
movd xmm0, eax
cvtdq2ps xmm0, xmm0
divss xmm2, xmm0
movss xmm0, dword [ebx + 0x20]
subss xmm0, dword [ebx + 0x1c]
mulss xmm2, xmm0
addss xmm2, dword [ebx + 0x1c]
movss xmm0, dword [edi + 0xcc]
ucomiss xmm0, xmm2
lahf
test ah, 0x44
jnp 0x408979
mov esi, dword [edi + 4]
movss dword [edi + 0xcc], xmm2
test esi, esi
je 0x408979
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]
cmp dword [ebx + 0x38], 0
jle 0x4089b4
fld dword [ebx + 0x3c]
mov ecx, edi
fnstcw word [ebp - 0x96]
movzx eax, word [ebp - 0x96]
or eax, 0xc00
mov dword [ebp - 0xa0], eax
fldcw word [ebp - 0xa0]
fistp qword [ebp - 0xc]
mov eax, dword [ebp - 0xc]
push eax
fldcw word [ebp - 0x96]
call fcn.0040dc00
pop esi
pop edi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0057d22e
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
or al, 0xff
pop ebx
call fcn.0057d22e
mov esp, ebp
pop ebp
ret 4