Function at 0x41d1f0
Capabilities:
Print debug messages

Disassembly:
sub esp, 0x208
push ebx
mov ebx, dword [esp + 0x210]
mov eax, ebx
push ebp
shr eax, 0x1c
push esi
cmp eax, 8
push edi
ja case.0x41d20f.3
jmp dword [eax*4 + 0x41d53c]
test ebx, ebx
je case.0x41d20f.3
cmp ebx, 0x100a0
je 0x41d34b
mov eax, dword [0x583598]
xor ecx, ecx
cmp eax, 0xffff
je case.0x41d20f.3
mov edx, 0x583598
cmp eax, ebx
je 0x41d25e
mov eax, dword [edx + 0x34]
add edx, 0x34
inc ecx
cmp eax, 0xffff
jne 0x41d241
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x208
ret
mov eax, dword [str.SoundSE_]
mov edx, dword [0x587b20]
mov dword [esp + 0x114], eax
mov ax, word [0x587b24]
mov dword [esp + 0x118], edx
lea edx, [ecx + ecx*2]
mov word [esp + 0x11c], ax
lea eax, [ecx + edx*4]
or ecx, 0xffffffff
lea edx, [esp + 0x114]
lea edi, [eax*4 + str.ETC_vo_title_16k.wav]
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
xor esi, esi
cmp ebx, 0x21a9
je 0x41d32a
cmp ebx, 0x121a9
je 0x41d32a
mov eax, dword [0x58779c]
cmp eax, 0xffffffff
je 0x41d304
xor ecx, ecx
cmp ebx, eax
je 0x41d2f8
cmp ebx, dword [ecx + 0x587850]
je 0x41d2ff
mov eax, dword [ecx + 0x5877a0]
add ecx, 4
cmp eax, 0xffffffff
jne 0x41d2dc
jmp 0x41d304
mov esi, 1
jmp 0x41d304
call fcn.004a80d0
xor eax, eax
push ebx
test esi, esi
setne al
push 0xffffffffffffffff
lea ecx, [esp + 0x11c]
push eax
push ecx
call fcn.004a7ed0
add esp, 0x10
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x208
ret
push 0xffffffffffffffff
push 0x11
lea edx, [esp + 0x11c]
push 0
push edx
call fcn.004a7ed0
add esp, 0x10
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x208
ret
push 0
push 0x100a0
push 0
call fcn.004a7e30
add esp, 0xc
push str.SS_SND_ALL_SOUND_OFF_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x208
ret
cmp dword [0x9c8cb8], 6
je 0x41d38b
mov eax, ebx
and eax, 0xfff
mov edx, dword [eax*4 + 0x57f2f0]
jmp 0x41d3b4
mov eax, dword [0x9c9e94]
test eax, eax
je 0x41d3a5
mov ecx, ebx
and ecx, 0xfff
mov edx, dword [ecx*4 + 0x57f2f0]
jmp 0x41d3b4
mov edx, ebx
and edx, 0xfff
mov edx, dword [edx*4 + 0x57f394]
test edx, edx
je case.0x41d20f.3
mov eax, dword [str.SoundBGM_]
mov ecx, dword [0x587afc]
mov dword [esp + 0x10], eax
mov ax, word [0x587b00]
mov dword [esp + 0x14], ecx
mov cl, byte [0x587b02]
mov word [esp + 0x18], ax
mov byte [esp + 0x1a], cl
mov ecx, 0x3e
xor eax, eax
lea edi, [esp + 0x1b]
lea ebp, [esp + 0x10]
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, ebp
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
cmp ebx, 0x10000009
rep movsb byte es:[edi], byte [esi]
je 0x41d451
cmp ebx, 0x10000025
je 0x41d451
push 0xffffffffffffffff
push 0xf
lea eax, [esp + 0x18]
push 1
push eax
call fcn.004a7ed0
add esp, 0x10
mov dword [0x9c8dd8], ebx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x208
ret
push 0xffffffffffffffff
push 0xf
lea ecx, [esp + 0x18]
push 0
push ecx
call fcn.004a7ed0
add esp, 0x10
mov dword [0x9c8dd8], ebx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x208
ret
and ebx, 0xfff
lea edx, [ebx + ebx*8]
cmp word [edx*4 + 0x57f3ea], 0xffff
lea edx, [edx*4 + 0x57f3e8]
je case.0x41d20f.3
mov eax, dword [str.SoundVoice_]
mov ecx, dword [0x587aec]
mov dword [esp + 0x10], eax
mov eax, dword [0x587af0]
mov dword [esp + 0x14], ecx
mov cl, byte [0x587af4]
mov dword [esp + 0x18], eax
mov byte [esp + 0x1c], cl
mov ecx, 0x3d
xor eax, eax
lea edi, [esp + 0x1d]
push 0xffffffffffffffff
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea edi, [edx + 4]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x14]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x10
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
push eax
and ecx, 3
lea eax, [esp + 0x1c]
rep movsb byte es:[edi], byte [esi]
push eax
call fcn.004a7ed0
add esp, 0x10
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x208
ret
push ebx
call fcn.0041d5f0
add esp, 4
cmp ebx, 0x80000000
jne case.0x41d20f.3
mov dword [0x9c8dd8], 0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x208
ret