Function at 0x41d0a0
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.0x41d0bf.3
jmp dword [eax*4 + 0x41d3f4]
test ebx, ebx
je case.0x41d0bf.3
cmp ebx, 0x100a0
je 0x41d1fb
mov eax, dword [0x583608]
xor ecx, ecx
cmp eax, 0xffff
je case.0x41d0bf.3
mov edx, 0x583608
cmp eax, ebx
je 0x41d10e
mov eax, dword [edx + 0x34]
add edx, 0x34
inc ecx
cmp eax, 0xffff
jne 0x41d0f1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x208
ret
mov eax, dword [str.SoundSE_]
mov edx, dword [0x587b90]
mov dword [esp + 0x114], eax
mov ax, word [0x587b94]
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 0x41d1da
cmp ebx, 0x121a9
je 0x41d1da
mov eax, dword [0x58780c]
cmp eax, 0xffffffff
je 0x41d1b4
xor ecx, ecx
cmp ebx, eax
je 0x41d1a8
cmp ebx, dword [ecx + 0x5878c0]
je 0x41d1af
mov eax, dword [ecx + 0x587810]
add ecx, 4
cmp eax, 0xffffffff
jne 0x41d18c
jmp 0x41d1b4
mov esi, 1
jmp 0x41d1b4
call fcn.004ab640
xor eax, eax
push ebx
test esi, esi
setne al
push 0xffffffffffffffff
lea ecx, [esp + 0x11c]
push eax
push ecx
call fcn.004ab440
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.004ab440
add esp, 0x10
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x208
ret
push 0
push 0x100a0
push 0
call fcn.004ab3a0
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 [0x9c7118], 6
je 0x41d23b
mov eax, ebx
and eax, 0xfff
mov edx, dword [eax*4 + 0x57f360]
jmp 0x41d264
mov eax, dword [0x9c830c]
test eax, eax
je 0x41d255
mov ecx, ebx
and ecx, 0xfff
mov edx, dword [ecx*4 + 0x57f360]
jmp 0x41d264
mov edx, ebx
and edx, 0xfff
mov edx, dword [edx*4 + 0x57f404]
test edx, edx
je case.0x41d0bf.3
mov eax, dword [str.SoundBGM_]
mov ecx, dword [0x587b6c]
mov dword [esp + 0x10], eax
mov ax, word [0x587b70]
mov dword [esp + 0x14], ecx
mov cl, byte [0x587b72]
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 0x41d309
cmp ebx, 0x10000025
je 0x41d309
cmp ebx, 0x10000014
je 0x41d309
push 0xffffffffffffffff
push 0xf
lea eax, [esp + 0x18]
push 1
push eax
call fcn.004ab440
add esp, 0x10
mov dword [0x9c7238], 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.004ab440
add esp, 0x10
mov dword [0x9c7238], 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 + 0x57f45a], 0xffff
lea edx, [edx*4 + 0x57f458]
je case.0x41d0bf.3
mov eax, dword [str.SoundVoice_]
mov ecx, dword [0x587b5c]
mov dword [esp + 0x10], eax
mov eax, dword [0x587b60]
mov dword [esp + 0x14], ecx
mov cl, byte [0x587b64]
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.004ab440
add esp, 0x10
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x208
ret
push ebx
call fcn.0041d4b0
add esp, 4
cmp ebx, 0x80000000
jne case.0x41d0bf.3
mov dword [0x9c7238], 0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x208
ret