Function at 0x58ed80
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0xa541e0
mov eax, dword fs:[0]
push eax
sub esp, 0x68
push ebx
push ebp
push esi
push edi
mov eax, dword [0xcdc190]
xor eax, esp
push eax
lea eax, [esp + 0x7c]
mov dword fs:[0], eax
mov esi, ecx
lea ebp, [esi + 0x214]
lea eax, [esp + 0x44]
xor ebx, ebx
push eax
mov ecx, ebp
mov byte [esi + 0x8c], bl
mov dword [esp + 0x1c], ebp
call fcn.0058e1d0
lea ecx, [esp + 0x24]
push ecx
mov ecx, ebp
mov dword [esp + 0x88], ebx
call fcn.0058e200
mov edi, dword [esp + 0x50]
cmp edi, dword [eax + 0xc]
mov dword [esp + 0x24], vtable.dlListSpace::_dlListIterator_class_AmbientSound_.0
setne al
mov dword [esp + 0x30], 0xd824b8
cmp al, bl
je 0x58ee42
jmp 0x58ee00
cmp dword [edi + 0x2c], 1
lea ecx, [edi + 8]
jne 0x58ee15
push 0x3e8
push 1
call fcn.0058c380
mov edi, dword [edi + 0x78]
lea edx, [esp + 0x24]
push edx
mov ecx, ebp
mov dword [esp + 0x54], edi
call fcn.0058e200
cmp edi, dword [eax + 0xc]
mov dword [esp + 0x24], vtable.dlListSpace::_dlListIterator_class_AmbientSound_.0
setne al
mov dword [esp + 0x30], 0xd824b8
cmp al, bl
jne 0x58ee00
mov eax, dword [esi + 0x320]
imul eax, eax, 0x54
lea ecx, [esp + 0x44]
lea edi, [eax + esi + 0xc4]
push ecx
mov ecx, edi
mov byte [esp + 0x1b], bl
call fcn.0058e190
lea edx, [esp + 0x24]
push edx
mov ecx, edi
mov dword [esp + 0x88], 1
call fcn.0058e1b0
mov ecx, dword [esp + 0x50]
cmp ecx, dword [eax + 0xc]
mov dword [esp + 0x24], vtable.dlListSpace::_dlListIterator_class_INI_TYPE::Row_const__.0
setne al
mov dword [esp + 0x30], 0xbd5a5c
cmp al, bl
je 0x58f028
mov edx, dword [esp + 0x50]
mov ebp, dword [edx + 8]
push str.FileName
mov ecx, ebp
call fcn.008dcf70
push str.Kind
mov ecx, ebp
mov dword [esp + 0x24], eax
call fcn.008dcf70
mov edi, eax
cmp edi, 1
jne 0x58ef0b
push 0xb4a0db
push 0xab6408
push str.OPTION_UI
push eax
mov ecx, 0xdaf9b8
mov byte [esp + 0x27], al
call fcn.008f0a60
mov ecx, eax
lea edx, [ecx + 1]
mov dword [esp + 0x1c], edx
lea esp, [esp]
mov dl, byte [ecx]
inc ecx
cmp dl, bl
jne 0x58eef0
sub ecx, dword [esp + 0x1c]
je 0x58ef0b
push 1
push eax
mov ecx, esi
call fcn.0058d210
cmp eax, ebx
jne 0x58ef18
mov eax, dword [esp + 0x20]
push edi
push eax
mov ecx, esi
call fcn.0058d210
fld1
lea ecx, [esp + 0x34]
push ecx
fstp dword [esp + 0x44]
push edi
push eax
lea edx, [esp + 0x70]
push edx
mov ecx, esi
mov dword [esp + 0x44], 0x190
mov dword [esp + 0x48], ebx
mov byte [esp + 0x4c], bl
call fcn.0058db30
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x54]
push eax
mov byte [esp + 0x88], 2
call fcn.0058e890
fld dword [0xa9685c]
mov edi, dword [eax + 0xc]
push ecx
mov ecx, dword [esi + 0x320]
fstp dword [esp]
push ecx
push ebp
sub esp, 0x18
mov eax, esp
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov dword [eax], vtable.RefT_class_snd::SoundObject_.0
mov edx, dword [esp + 0x9c]
mov dword [eax + 0x14], edx
mov ecx, dword [esp + 0x9c]
add edi, 8
mov dword [esp + 0x78], vtable.dlListSpace::_dlListIterator_class_AmbientSound_.0
mov dword [esp + 0x84], 0xd824b8
mov dword [esp + 0x44], esp
cmp ecx, ebx
je 0x58efb8
push eax
call fcn.00625810
mov ecx, edi
call fcn.0058c6b0
mov ecx, dword [esp + 0x78]
mov byte [esp + 0x84], 1
mov dword [esp + 0x64], vtable.RefT_class_snd::SoundObject_.0
cmp ecx, ebx
je 0x58efe1
lea eax, [esp + 0x64]
push eax
call fcn.00625840
mov eax, dword [esi + 0x320]
mov ecx, dword [esp + 0x50]
imul eax, eax, 0x54
mov edi, dword [ecx + 0x1c]
lea edx, [esp + 0x24]
push edx
lea ecx, [eax + esi + 0xc4]
mov dword [esp + 0x54], edi
call fcn.0058e1b0
cmp edi, dword [eax + 0xc]
mov dword [esp + 0x24], vtable.dlListSpace::_dlListIterator_class_INI_TYPE::Row_const__.0
setne al
mov dword [esp + 0x30], 0xbd5a5c
cmp al, bl
jne 0x58ee9b
mov ebp, dword [esp + 0x18]
mov dword [esp + 0x84], 0xffffffff
cmp byte [esp + 0x17], bl
jne 0x58f149
push 0xb4a0db
push 0xab6408
push str.OPTION_UI
push 1
mov ecx, 0xdaf9b8
call fcn.008f0a60
mov edi, eax
mov ecx, edi
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
cmp al, bl
jne 0x58f060
sub ecx, edx
je 0x58f149
push 1
push edi
mov ecx, esi
call fcn.0058d210
cmp eax, ebx
je 0x58f149
fld1
lea ecx, [esp + 0x44]
push ecx
fstp dword [esp + 0x54]
push 1
push eax
lea edx, [esp + 0x70]
push edx
mov ecx, esi
mov dword [esp + 0x54], 0x190
mov dword [esp + 0x58], ebx
mov byte [esp + 0x5c], bl
call fcn.0058db30
lea eax, [esp + 0x54]
push eax
mov ecx, ebp
mov dword [esp + 0x88], 3
call fcn.0058e890
fld dword [0xab6404]
mov esi, dword [eax + 0xc]
push ecx
fstp dword [esp]
push 1
sub esp, 0x18
mov eax, esp
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov dword [eax], vtable.RefT_class_snd::SoundObject_.0
mov ecx, dword [esp + 0x98]
mov dword [eax + 0x14], ecx
mov ecx, dword [esp + 0x98]
add esi, 8
mov dword [esp + 0x74], vtable.dlListSpace::_dlListIterator_class_AmbientSound_.0
mov dword [esp + 0x80], 0xd824b8
mov dword [esp + 0x40], esp
cmp ecx, ebx
je 0x58f11d
push eax
call fcn.00625810
mov ecx, esi
call fcn.0058c5b0
mov ecx, dword [esp + 0x78]
mov dword [esp + 0x84], 0xffffffff
mov dword [esp + 0x64], vtable.RefT_class_snd::SoundObject_.0
cmp ecx, ebx
je 0x58f149
lea edx, [esp + 0x64]
push edx
call fcn.00625840
mov ecx, dword [esp + 0x7c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x74
ret