Function at 0x4b4900
Capabilities:
Print debug messages

Disassembly:
mov eax, dword [0x53f960]
sub esp, 0x340
test eax, eax
je 0x4b4917
push 0x30
call dword [sym.imp.USER32.dll_MessageBeep]
mov eax, dword [0x53f958]
push ebp
push esi
push edi
test eax, eax
jne 0x4b4939
mov eax, dword [0x53f95c]
test eax, eax
jne 0x4b4939
mov eax, dword [0x53f964]
test eax, eax
je 0x4b4c27
push ebx
mov ebx, dword [esp + 0x35c]
mov ebp, ebx
mov edi, str.Unknown_Error_Message
or ecx, 0xffffffff
xor eax, eax
and ebp, 0xffff
lea edx, [esp + 0x50]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push str.Unknown_Error_Code
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x14]
push ecx
call fcn.004a5b6e
mov edi, 0x5326cc
or ecx, 0xffffffff
xor eax, eax
add esp, 8
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x150]
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
cmp ebx, 0x88780032
rep movsb byte es:[edi], byte [esi]
jg 0x4b4a6e
je 0x4b4a60
cmp ebx, 0x8007000e
jg 0x4b4a1a
je 0x4b4a0c
cmp ebx, 0x80004001
je 0x4b49fe
cmp ebx, 0x80004005
je 0x4b49f0
cmp ebx, 0x80040110
jne 0x4b4b49
lea edx, [esp + 0x10]
mov edi, str.DSERR_NOAGGREGATION
jmp 0x4b4b06
lea edx, [esp + 0x10]
mov edi, str.DSERR_GENERIC
jmp 0x4b4b06
lea edx, [esp + 0x10]
mov edi, str.DSERR_UNSUPPORTED
jmp 0x4b4b06
lea edx, [esp + 0x10]
mov edi, str.DSERR_OUTOFMEMORY
jmp 0x4b4b06
cmp ebx, 0x80070057
je 0x4b4a52
cmp ebx, 0x8878000a
je 0x4b4a44
cmp ebx, 0x8878001e
jne 0x4b4b49
lea edx, [esp + 0x10]
mov edi, str.DSERR_CONTROLUNAVAIL
jmp 0x4b4b06
lea edx, [esp + 0x10]
mov edi, str.DSERR_ALLOCATED
jmp 0x4b4b06
lea edx, [esp + 0x10]
mov edi, str.DSERR_INVALIDPARAM
jmp 0x4b4b06
lea edx, [esp + 0x10]
mov edi, str.DSERR_INVALIDCALL
jmp 0x4b4b06
cmp ebx, 0x88780096
jg 0x4b4ac0
je 0x4b4ab5
cmp ebx, 0x88780046
je 0x4b4aaa
cmp ebx, 0x88780064
je 0x4b4a9f
cmp ebx, 0x88780078
jne 0x4b4b49
lea edx, [esp + 0x10]
mov edi, str.DSERR_NODRIVER
jmp 0x4b4b06
lea edx, [esp + 0x10]
mov edi, str.DSERR_BADFORMAT
jmp 0x4b4b06
lea edx, [esp + 0x10]
mov edi, str.DSERR_PRIOLEVELNEEDED
jmp 0x4b4b06
lea edx, [esp + 0x10]
mov edi, str.DSERR_BUFFERLOST
jmp 0x4b4b06
cmp ebx, 0x887800a0
je 0x4b4afd
test ebx, ebx
jne 0x4b4b49
mov edi, str.DS_OK
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x10]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x50]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.No_error
jmp 0x4b4b2c
lea edx, [esp + 0x10]
mov edi, str.DSERR_OTHERAPPHASPRIO
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x50]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.No_message
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [0x53f958]
mov esi, dword [esp + 0x358]
mov edi, dword [esp + 0x354]
pop ebx
test eax, eax
je 0x4b4bbb
test edi, edi
je 0x4b4b8d
test esi, esi
jle 0x4b4b8d
lea ecx, [esp + 0x4c]
lea edx, [esp + 0xc]
push ecx
push ebp
push edx
push esi
push edi
lea eax, [esp + 0x160]
push str._s__line__i:__s___i_____s_n
push eax
call fcn.004a5b6e
add esp, 0x1c
jmp 0x4b4bad
lea ecx, [esp + 0x4c]
lea edx, [esp + 0xc]
push ecx
push ebp
push edx
lea eax, [esp + 0x158]
push str._s___i_____s_n
push eax
call fcn.004a5b6e
add esp, 0x14
lea ecx, [esp + 0x14c]
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [0x53f95c]
test eax, eax
je 0x4b4c27
test edi, edi
je 0x4b4bf0
test esi, esi
jle 0x4b4bf0
lea edx, [esp + 0x4c]
lea eax, [esp + 0xc]
push edx
push ebp
push eax
push esi
push edi
lea ecx, [esp + 0x160]
push str._s__line__i_n_n_s___i__n_n_s
push ecx
call fcn.004a5b6e
add esp, 0x1c
jmp 0x4b4c10
lea edx, [esp + 0x4c]
lea eax, [esp + 0xc]
push edx
push ebp
push eax
lea ecx, [esp + 0x158]
push str._s___i__n_n_s
push ecx
call fcn.004a5b6e
add esp, 0x14
push 0x30
lea edx, [esp + 0x150]
push str.DirectSoundMgr
push edx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
pop edi
pop esi
pop ebp
add esp, 0x340
ret