Function at 0x4bcdd0
Capabilities:
Print debug messages

Disassembly:
mov eax, dword [0x55318c]
sub esp, 0x340
test eax, eax
push ebx
push ebp
push esi
push edi
je 0x4bcdeb
push 0x30
call dword [sym.imp.USER32.dll_MessageBeep]
mov eax, dword [0x553184]
test eax, eax
jne 0x4bce0a
mov eax, dword [0x553188]
test eax, eax
jne 0x4bce0a
mov eax, dword [0x553190]
test eax, eax
je 0x4bd100
mov ebx, dword [esp + 0x35c]
mov edi, str.Unknown_Error_Message
mov ebp, ebx
or ecx, 0xffffffff
xor eax, eax
and ebp, 0xffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x50]
mov eax, ecx
mov esi, edi
mov edi, edx
push str.Unknown_Error_Code
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.004ab350
mov edi, 0x545dfc
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, 0x80004005
rep movsb byte es:[edi], byte [esi]
jg 0x4bceac
je 0x4bce9e
cmp ebx, 0x80004001
jne 0x4bd023
lea edx, [esp + 0x10]
mov edi, str.DSERR_UNSUPPORTED
jmp 0x4bcfe0
lea edx, [esp + 0x10]
mov edi, str.DSERR_GENERIC
jmp 0x4bcfe0
cmp ebx, 0x8007000e
jg 0x4bcede
je 0x4bced0
cmp ebx, 0x80040110
jne 0x4bd023
lea edx, [esp + 0x10]
mov edi, str.DSERR_NOAGGREGATION
jmp 0x4bcfe0
lea edx, [esp + 0x10]
mov edi, str.DSERR_OUTOFMEMORY
jmp 0x4bcfe0
cmp ebx, 0x8878000a
jg 0x4bcf10
je 0x4bcf02
cmp ebx, 0x80070057
jne 0x4bd023
lea edx, [esp + 0x10]
mov edi, str.DSERR_INVALIDPARAM
jmp 0x4bcfe0
lea edx, [esp + 0x10]
mov edi, str.DSERR_ALLOCATED
jmp 0x4bcfe0
cmp ebx, 0x88780032
jg 0x4bcf42
je 0x4bcf34
cmp ebx, 0x8878001e
jne 0x4bd023
lea edx, [esp + 0x10]
mov edi, str.DSERR_CONTROLUNAVAIL
jmp 0x4bcfe0
lea edx, [esp + 0x10]
mov edi, str.DSERR_INVALIDCALL
jmp 0x4bcfe0
cmp ebx, 0x88780064
jg 0x4bcf6e
je 0x4bcf63
cmp ebx, 0x88780046
jne 0x4bd023
lea edx, [esp + 0x10]
mov edi, str.DSERR_PRIOLEVELNEEDED
jmp 0x4bcfe0
lea edx, [esp + 0x10]
mov edi, str.DSERR_BADFORMAT
jmp 0x4bcfe0
cmp ebx, 0x88780096
jg 0x4bcf9a
je 0x4bcf8f
cmp ebx, 0x88780078
jne 0x4bd023
lea edx, [esp + 0x10]
mov edi, str.DSERR_NODRIVER
jmp 0x4bcfe0
lea edx, [esp + 0x10]
mov edi, str.DSERR_BUFFERLOST
jmp 0x4bcfe0
cmp ebx, 0x887800a0
je 0x4bcfd7
test ebx, ebx
jne 0x4bd023
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 0x4bd006
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 [0x553184]
mov esi, dword [esp + 0x358]
mov edi, dword [esp + 0x354]
test eax, eax
je 0x4bd094
test edi, edi
je 0x4bd066
test esi, esi
jle 0x4bd066
lea ecx, [esp + 0x50]
lea edx, [esp + 0x10]
push ecx
push ebp
push edx
push esi
push edi
lea eax, [esp + 0x164]
push str._s__line__i:__s___i_____s_n
push eax
call fcn.004ab350
add esp, 0x1c
jmp 0x4bd086
lea ecx, [esp + 0x50]
lea edx, [esp + 0x10]
push ecx
push ebp
push edx
lea eax, [esp + 0x15c]
push str._s___i_____s_n
push eax
call fcn.004ab350
add esp, 0x14
lea ecx, [esp + 0x150]
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [0x553188]
test eax, eax
je 0x4bd100
test edi, edi
je 0x4bd0c9
test esi, esi
jle 0x4bd0c9
lea edx, [esp + 0x50]
lea eax, [esp + 0x10]
push edx
push ebp
push eax
push esi
push edi
lea ecx, [esp + 0x164]
push str._s__line__i_n_n_s___i__n_n_s
push ecx
call fcn.004ab350
add esp, 0x1c
jmp 0x4bd0e9
lea edx, [esp + 0x50]
lea eax, [esp + 0x10]
push edx
push ebp
push eax
lea ecx, [esp + 0x15c]
push str._s___i__n_n_s
push ecx
call fcn.004ab350
add esp, 0x14
push 0x30
lea edx, [esp + 0x154]
push str.DirectSoundMgr
push edx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x340
ret