Function at 0x4c23b0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x59e822
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x60aecc]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov esi, ecx
xor ebp, ebp
mov dword [esp + 0x14], ebp
cmp dword [esi + 0xc], ebp
jne 0x4c23ff
push str.Play_of_uninitialized_sound
call fcn.004dfae0
mov eax, dword [esp + 0x44]
mov dword [eax], ebp
add esp, 4
mov dword [eax + 4], ebp
jmp 0x4c268d
call fcn.004988c0
mov ecx, eax
call fcn.00498890
test eax, eax
jne 0x4c242a
push str.No_Sound_Manager
call fcn.004dfae0
mov eax, dword [esp + 0x44]
mov dword [eax], ebp
add esp, 4
mov dword [eax + 4], ebp
jmp 0x4c268d
push 0x10
call fcn.0055d3fe
add esp, 4
mov dword [esp + 0x18], eax
cmp eax, ebp
mov ecx, 1
mov dword [esp + 0x38], ecx
je 0x4c246e
mov edx, dword [esi + 0xc]
mov ebx, dword [edx + 0x10]
sub esp, 8
mov edi, esp
mov dword [edi], ebx
mov edx, dword [edx + 0x14]
cmp edx, ebp
mov dword [esp + 0x2c], esp
mov dword [edi + 4], edx
je 0x4c2463
add dword [edx + 4], ecx
mov ecx, eax
call fcn.004c0e50
mov ebx, eax
jmp 0x4c2470
xor ebx, ebx
push 0x7c
mov byte [esp + 0x3c], 0
call fcn.0055d3fe
mov edi, eax
add esp, 4
mov dword [esp + 0x24], edi
cmp edi, ebp
mov dword [esp + 0x38], 2
je 0x4c24d5
mov eax, dword [esi + 0xc]
sub esp, 8
mov ecx, esp
mov dword [ecx], eax
mov eax, dword [esi + 0x10]
cmp eax, ebp
mov dword [esp + 0x20], esp
mov dword [ecx + 4], eax
je 0x4c24ad
add dword [eax + 4], 1
mov eax, dword [esi + 0xc]
mov ecx, dword [eax + 0x18]
mov edx, dword [esp + 0x4c]
push ecx
push edx
push ebx
mov byte [esp + 0x4c], 3
call fcn.004988c0
push eax
mov ecx, edi
mov byte [esp + 0x50], 2
call fcn.00503330
mov ebx, eax
jmp 0x4c24d7
xor ebx, ebx
push 0x24
mov byte [esp + 0x3c], 0
call fcn.0055d3fe
add esp, 4
mov dword [esp + 0x24], eax
cmp eax, ebp
mov dword [esp + 0x38], 4
je 0x4c2500
push ebx
mov ecx, eax
call fcn.004d9980
jmp 0x4c2502
xor eax, eax
push eax
lea ecx, [esp + 0x2c]
mov byte [esp + 0x3c], 0
call fcn.004c1260
lea eax, [esp + 0x18]
push eax
mov ecx, esi
mov dword [esp + 0x3c], 5
call fcn.004c1360
mov edi, dword [esp + 0x28]
mov ecx, dword [eax]
add edi, 0x10
mov dword [edi], ecx
mov ebp, dword [eax + 4]
test ebp, ebp
mov byte [esp + 0x38], 6
je 0x4c2540
add dword [ebp + 8], 1
mov ecx, dword [edi + 4]
test ecx, ecx
je 0x4c2558
add dword [ecx + 8], 0xffffffff
cmp dword [ecx + 8], 0
jne 0x4c2558
mov edx, dword [ecx]
mov eax, dword [edx + 8]
call eax
mov dword [edi + 4], ebp
mov edi, dword [esp + 0x1c]
test edi, edi
mov byte [esp + 0x38], 5
je 0x4c258d
add dword [edi + 4], 0xffffffff
lea eax, [edi + 4]
jne 0x4c258d
mov edx, dword [edi]
mov eax, dword [edx + 4]
mov ecx, edi
call eax
add dword [edi + 8], 0xffffffff
cmp dword [edi + 8], 0
jne 0x4c258d
mov edx, dword [edi]
mov eax, dword [edx + 8]
mov ecx, edi
call eax
mov eax, dword [esi + 0xc]
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x1c]
push edx
lea ecx, [eax + 4]
call fcn.004c2150
fld dword [0x5a8734]
mov eax, dword [esi + 0xc]
mov ecx, dword [eax + 0x10]
mov eax, dword [ecx]
mov edx, dword [eax + 0x10]
push ecx
fstp dword [esp]
push 0x10
mov edi, ecx
call edx
push eax
mov eax, dword [edi]
mov edx, dword [eax + 0xc]
mov ecx, edi
call edx
push eax
mov ecx, ebx
call fcn.00503f60
cmp byte [esp + 0x44], 0
jne 0x4c2606
mov esi, dword [esi + 0xc]
fld dword [ebx + 0x44]
mov ecx, dword [esi + 0x10]
fstp dword [esp + 0x44]
mov eax, dword [ecx]
mov edx, dword [eax + 0x14]
call edx
fld dword [esp + 0x44]
fcompp
fnstsw ax
test ah, 0x41
jne 0x4c2606
mov esi, 1
push esi
mov ecx, ebx
call fcn.005030d0
jmp 0x4c2614
push 0
mov ecx, ebx
call fcn.005030d0
mov esi, 1
mov ecx, dword [esp + 0x28]
sub esp, 8
mov eax, esp
mov dword [eax], ecx
mov edx, dword [esp + 0x34]
mov dword [eax + 4], edx
mov eax, dword [esp + 0x34]
test eax, eax
mov dword [esp + 0x4c], esp
je 0x4c2635
add dword [eax + 4], esi
mov ecx, ebx
call fcn.004c0db0
mov edi, dword [esp + 0x40]
mov eax, dword [esp + 0x28]
mov dword [edi], eax
mov eax, dword [esp + 0x2c]
test eax, eax
mov dword [edi + 4], eax
je 0x4c2658
add dword [eax + 4], esi
mov eax, dword [esp + 0x2c]
test eax, eax
mov dword [esp + 0x14], esi
mov byte [esp + 0x38], 0
je 0x4c268b
add dword [eax + 4], 0xffffffff
mov esi, eax
add eax, 4
cmp dword [eax], 0
jne 0x4c268b
mov edx, dword [esi]
mov eax, dword [edx + 4]
mov ecx, esi
call eax
add dword [esi + 8], 0xffffffff
jne 0x4c268b
mov edx, dword [esi]
mov eax, dword [edx + 8]
mov ecx, esi
call eax
mov eax, edi
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret 8