Function at 0x4a56a0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0xa8
mov eax, dword [0x8ebfd8]
test eax, eax
mov ecx, dword [0x8eaf10]
mov edx, dword [0x8eaf14]
push ebx
push ebp
push esi
mov esi, dword [0x8eaf18]
push edi
mov dword [esp + 0x48], ecx
mov dword [esp + 0x4c], edx
mov dword [esp + 0x50], esi
je 0x4a5a9b
mov bl, byte [0x85c164]
add eax, 0x5c
test bl, 0x40
je 0x4a5857
mov dword [esp + 0x1c], ecx
mov ecx, dword [eax]
mov dword [esp + 0x20], edx
mov edx, dword [eax + 4]
mov eax, dword [eax + 8]
mov dword [esp + 0x18], eax
mov dword [esp + 0x24], esi
fld dword [esp + 0x24]
fsub dword [esp + 0x18]
mov dword [esp + 0x14], edx
fld dword [esp + 0x20]
mov dword [esp + 0x10], ecx
fsub dword [esp + 0x14]
fld dword [esp + 0x1c]
fsub dword [esp + 0x10]
fstp dword [esp + 0x10]
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x30], ecx
fstp dword [esp + 0x14]
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x30]
fstp dword [esp + 0x18]
mov eax, dword [esp + 0x18]
mov dword [esp + 0x34], edx
mov dword [esp + 0x38], eax
call fcn.004915a0
fstp st(0)
mov dword [esp + 0x18], 0x3f800000
mov eax, dword [esp + 0x18]
mov dword [esp + 0x10], 0
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x44], eax
mov dword [esp + 0x14], 0
mov edx, dword [esp + 0x14]
mov dword [esp + 0x3c], ecx
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x40], edx
mov edx, dword [esp + 0x20]
mov eax, esi
mov dword [esp + 0x18], eax
mov eax, ecx
mov dword [esp + 0x10], ecx
mov ecx, edx
mov dword [esp + 0x14], edx
mov edx, esi
sub esp, 0x64
mov dword [esp + 0x80], eax
mov dword [esp + 0x100], eax
mov ebp, 0x8cccd0
lea eax, [esp + 0xb8]
mov ebx, esp
mov dword [esp + 0x84], ecx
mov dword [esp + 0x88], edx
mov dword [esp + 0x118], ebp
mov dword [esp + 0xb8], 1
mov dword [esp + 0x104], ecx
mov dword [esp + 0x108], edx
call fcn.00498530
mov edi, 0x8e87b4
call fcn.004a1410
fld dword [esp + 0x44]
fchs
sub esp, 0xc
fld dword [esp + 0x4c]
mov ecx, esp
fchs
sub esp, 0xc
fld dword [esp + 0x54]
fchs
fstp dword [esp + 0x28]
mov edx, dword [esp + 0x28]
mov dword [ecx], edx
fstp dword [esp + 0x2c]
mov eax, dword [esp + 0x2c]
mov dword [ecx + 4], eax
fstp dword [esp + 0x30]
mov edx, dword [esp + 0x30]
mov dword [ecx + 8], edx
mov ecx, dword [esp + 0x48]
mov eax, esp
mov dword [eax], ecx
mov edx, dword [esp + 0x4c]
mov ecx, dword [esp + 0x50]
mov dword [eax + 4], edx
mov dword [eax + 8], ecx
push 0x8e87b0
mov al, 1
call fcn.004986f0
jmp 0x4a5aa0
mov edx, dword [eax]
fld dword [0x8eaf18]
mov ecx, dword [eax + 4]
mov dword [esp + 0x1c], edx
mov edx, dword [eax + 8]
mov dword [esp + 0x24], edx
fsub dword [esp + 0x24]
fld dword [0x8eaf14]
mov dword [esp + 0x20], ecx
fsub dword [esp + 0x20]
lea eax, [esp + 0x10]
fld dword [0x8eaf10]
fsub dword [esp + 0x1c]
fstp dword [esp + 0x10]
fstp dword [esp + 0x14]
fstp dword [esp + 0x18]
call fcn.004a9590
fstp dword [esp + 0x2c]
lea eax, [esp + 0x10]
fld dword [0x8eaf24]
fsub dword [esp + 0x24]
fld dword [0x8eaf20]
fsub dword [esp + 0x20]
fld dword [0x8eaf1c]
fsub dword [esp + 0x1c]
fstp dword [esp + 0x10]
fstp dword [esp + 0x14]
fstp dword [esp + 0x18]
call fcn.004a9590
fld dword [esp + 0x2c]
mov dword [esp + 0x18], 0
fcomp st(1)
mov edx, dword [esp + 0x18]
mov dword [esp + 0x24], edx
mov dword [esp + 0x18], 0xbf800000
fstp st(0)
fld dword [0x8eaf14]
fadd dword [0x8eaf20]
fnstsw ax
fmul dword [0x70de8c]
fild dword [0x85c138]
test ah, 5
fstp dword [esp + 0x10]
mov eax, dword [esp + 0x10]
mov dword [esp + 0x1c], eax
mov eax, dword [0x8ebfd8]
fstp dword [esp + 0x14]
mov ecx, dword [esp + 0x14]
mov edx, dword [eax + 0x4c]
mov dword [esp + 0x14], 0
mov ebp, dword [esp + 0x14]
mov dword [esp + 0x20], ecx
mov ecx, dword [eax + 0x40]
mov eax, dword [eax + 0x58]
mov dword [esp + 0x30], ecx
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x40], ebp
fld dword [esp + 0x40]
fmul dword [esp + 0x30]
mov dword [esp + 0x34], edx
fld dword [esp + 0x34]
mov dword [esp + 0x10], 0
mov esi, dword [esp + 0x10]
mov dword [esp + 0x3c], esi
fmul dword [esp + 0x3c]
mov dword [esp + 0x38], eax
mov dword [esp + 0x44], ecx
fsubp st(1)
fld dword [esp + 0x38]
fmul dword [esp + 0x3c]
fld dword [esp + 0x44]
fmul dword [esp + 0x30]
fsubp st(1)
fld dword [esp + 0x44]
fmul dword [esp + 0x34]
fld dword [esp + 0x40]
fmul dword [esp + 0x38]
fsubp st(1)
fstp dword [esp + 0x30]
fstp dword [esp + 0x34]
lea eax, [esp + 0x3c]
fstp dword [esp + 0x38]
fld dword [0x8eaf18]
fsub dword [esp + 0x24]
fld dword [0x8eaf14]
fsub dword [esp + 0x20]
fld dword [0x8eaf10]
fsub dword [esp + 0x1c]
fstp dword [esp + 0x3c]
fstp dword [esp + 0x40]
fstp dword [esp + 0x44]
call fcn.004a9590
mov edx, dword [0x8eaf18]
fstp st(0)
mov eax, dword [0x8eaf10]
mov ecx, dword [0x8eaf14]
mov dword [esp + 0x24], edx
sub esp, 0x64
mov dword [esp + 0x88], 0x43480000
mov edx, dword [esp + 0x88]
mov dword [esp + 0xa0], eax
mov dword [esp + 0x100], eax
lea eax, [esp + 0xb8]
mov ebx, esp
mov dword [esp + 0xa4], ecx
mov dword [esp + 0xa8], edx
mov dword [esp + 0x118], 0x8cccd0
mov dword [esp + 0xb8], 1
mov dword [esp + 0x104], ecx
mov dword [esp + 0x108], edx
call fcn.00498530
mov edi, 0x8e87b4
call fcn.004a1410
mov ecx, dword [esp + 0x18]
sub esp, 0xc
mov eax, esp
mov dword [eax], esi
mov dword [eax + 4], ebp
mov dword [eax + 8], ecx
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x40]
sub esp, 0xc
mov edx, esp
mov dword [edx], eax
mov eax, dword [esp + 0x50]
mov dword [edx + 4], ecx
mov dword [edx + 8], eax
push 0x8e87b0
mov al, 1
call fcn.004986f0
mov ebp, 0x8cccd0
call fcn.004a6170
mov esi, 0x8bb9e0
lea ebx, [ebx]
mov eax, dword [esi + 0x34]
test eax, eax
lea edi, [esi + 0x34]
je 0x4a5bdc
mov ecx, dword [esi + 4]
mov eax, 0x51eb851f
imul ecx
sar edx, 5
mov ecx, edx
shr ecx, 0x1f
lea eax, [edx + ecx - 2]
mov ecx, dword [esi]
lea edx, [eax + eax*4]
shl edx, 1
mov dword [esp + 0x2c], edx
mov eax, 0x51eb851f
imul ecx
fild dword [esp + 0x2c]
fmul dword [0x715574]
mov ecx, dword [0x8bb9d0]
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
cdq
and edx, 3
add eax, edx
sar eax, 2
add eax, ecx
mov ecx, dword [esi - 4]
mov dword [esp + 0x2c], eax
mov eax, 0x51eb851f
imul ecx
fild dword [esp + 0x2c]
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
cdq
and edx, 3
add eax, edx
mov edx, dword [0x8bb9d4]
sar eax, 2
add eax, edx
mov dword [esp + 0x2c], eax
fild dword [esp + 0x2c]
fstp dword [esp + 0x10]
mov eax, dword [esp + 0x10]
mov dword [esp + 0x30], eax
mov eax, dword [0x8eed78]
fstp dword [esp + 0x14]
mov ecx, dword [esp + 0x14]
fstp dword [esp + 0x18]
mov edx, dword [esp + 0x18]
mov dword [esp + 0x34], ecx
mov ecx, 0x8eed78
mov dword [esp + 0x38], edx
call dword [eax + 0x18]
test al, al
je 0x4a5bdc
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x34]
sub esp, 0x64
mov dword [esp + 0x108], eax
lea eax, [esp + 0xb8]
mov ebx, esp
mov dword [esp + 0x118], ebp
mov dword [esp + 0xb8], 0x25
mov dword [esp + 0xf0], edi
mov dword [esp + 0xc0], 0x2d
mov dword [esp + 0x100], ecx
mov dword [esp + 0x104], edx
call fcn.00498530
mov edi, 0x8e87b4
call fcn.004a1410
mov dword [esp + 0xb4], ebp
add esi, 0x40
cmp esi, 0x8bc3e0
jl 0x4a5ab0
cmp dword [esp + 0xbc], 0xffffffff
je 0x4a5d45
fild dword [esp + 0xbc]
fmul dword [0x715610]
fst dword [esp + 0x28]
fcomp dword [0x715554]
fnstsw ax
test ah, 5
jp 0x4a5c21
mov dword [esp + 0x28], 0
jmp 0x4a5c3a
fld dword [esp + 0x28]
fcomp dword [0x70deb0]
fnstsw ax
test ah, 0x41
jne 0x4a5c3a
mov dword [esp + 0x28], 0x3f800000
fld dword [esp + 0x28]
fmul dword [0x7157a8]
call fcn.005f275c
mov edx, dword [0x8eed78]
mov esi, 0xffffd4ef
mov ecx, 0x8eed78
sub esi, eax
call dword [edx + 0x18]
test al, al
je 0x4a5cb7
mov eax, dword [esp + 0x28]
sub esp, 0x64
mov dword [esp + 0xe0], eax
lea eax, [esp + 0xb8]
mov ebx, esp
mov dword [esp + 0x118], ebp
mov dword [esp + 0xb8], 0x30
mov dword [esp + 0xf0], 0x8c93e8
mov dword [esp + 0xc0], 0x42
mov dword [esp + 0xc4], esi
call fcn.00498530
mov edi, 0x8e87b4
call fcn.004a1410
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x4c]
mov eax, dword [esp + 0x50]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], edx
mov edx, dword [0x8eed78]
mov ecx, 0x8eed78
mov dword [esp + 0x18], eax
call dword [edx + 0x18]
test al, al
je 0x4a5d45
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
sub esp, 0x64
mov dword [esp + 0x100], eax
lea eax, [esp + 0xb8]
mov ebx, esp
mov dword [esp + 0x118], ebp
mov dword [esp + 0xb8], 0x25
mov dword [esp + 0xf0], 0x8c93e8
mov dword [esp + 0xc0], 0x42
mov dword [esp + 0x104], ecx
mov dword [esp + 0x108], edx
call fcn.00498530
mov edi, 0x8e87b4
call fcn.004a1410
mov al, byte [0x8ca1f4]
test al, al
mov al, byte [0x8ca1f3]
je 0x4a5d93
test al, al
jne 0x4a5db4
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x4c]
push 0xffffffffffffffff
push 0x3f000000
push 0x8c93e4
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0xffffffffffffffff
sub esp, 0xc
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esp + 0x78]
mov dword [eax + 4], edx
push 0x37
mov dword [eax + 8], ecx
call fcn.004889e0
add esp, 0x2c
jmp 0x4a5e42
test al, al
je 0x4a5e42
push 0xbf800000
push 0x37
push 0x8c93e4
call fcn.00488fa0
add esp, 0xc
jmp 0x4a5e42
mov edx, dword [esp + 0x48]
mov ecx, dword [esp + 0x50]
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x10], edx
mov edx, dword [0x8eed78]
mov dword [esp + 0x18], ecx
mov ecx, 0x8eed78
mov dword [esp + 0x14], eax
call dword [edx + 0x18]
test al, al
je 0x4a5e42
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
sub esp, 0x64
mov dword [esp + 0x100], eax
lea eax, [esp + 0xb8]
mov ebx, esp
mov dword [esp + 0x118], ebp
mov dword [esp + 0xb8], 0x25
mov dword [esp + 0xf0], 0x8c93e4
mov dword [esp + 0xc0], 0x37
mov dword [esp + 0x104], ecx
mov dword [esp + 0x108], edx
call fcn.00498530
mov edi, 0x8e87b4
call fcn.004a1410
mov al, byte [0x8ca1f4]
mov byte [0x8ca1f3], al
mov dword [esp + 0x28], 0
mov esi, 0x8c9410
lea esp, [esp]
xor ebx, ebx
mov dword [esp + 0x2c], ebx
xor ebp, ebp
jmp 0x4a5e70
mov edi, dword [esi - 4]
cmp edi, 0xffffffff
je 0x4a5f2a
mov ecx, dword [esp + 0x28]
lea eax, [ecx + ebx]
lea edx, [eax + eax*2]
lea eax, [ebp + edx*8]
lea eax, [eax + eax*4]
mov eax, dword [eax*8 + 0x8bc674]
test eax, eax
jle 0x4a5f2a
cmp eax, 0x3e8
je 0x4a5f2a
mov ecx, dword [esi]
cmp eax, ecx
jge 0x4a5f23
mov edx, dword [0x8eed78]
mov ecx, 0x8eed78
call dword [edx + 0x18]
test al, al
je 0x4a5f1b
lea eax, [esi - 8]
sub esp, 0x64
mov dword [esp + 0xf0], eax
lea eax, [esp + 0xb8]
mov ebx, esp
mov dword [esp + 0x118], 0x8cccd0
mov dword [esp + 0xb8], 0x27
mov dword [esp + 0xc0], edi
mov dword [esp + 0xe0], 0x40400000
call fcn.00498530
mov edi, 0x8e87b4
call fcn.004a1410
mov ebx, dword [esp + 0x2c]
mov dword [esp + 0xb4], 0x8cccd0
mov dword [esi], 0xfffffffe
jmp 0x4a5f2a
cmp ecx, 0xfffffffe
je 0x4a5f2a
mov dword [esi], eax
inc ebp
add esi, 0xc
cmp ebp, 0x18
jl 0x4a5e70
inc ebx
cmp ebx, 2
mov dword [esp + 0x2c], ebx
jl 0x4a5e66
mov ecx, dword [esp + 0x28]
add ecx, 4
cmp esi, 0x8c9890
mov dword [esp + 0x28], ecx
jl 0x4a5e60
mov eax, dword [0x8c93c4]
or ebp, 0xffffffff
cmp eax, ebp
je 0x4a602b
test byte [0x8ef61c], 1
mov esi, dword [sym.imp.WINMM.dll_timeGetTime]
jne 0x4a5f89
or dword [0x8ef61c], 1
call esi
mov dword [0x8ef618], eax
call esi
mov esi, dword [0x8ef618]
mov ecx, dword [0x8c93c4]
sub eax, esi
add ecx, 0x1f4
cmp ecx, eax
jge 0x4a602b
mov eax, dword [esp + 0xc0]
mov dword [0x8c93c4], ebp
call fcn.004bb170
mov edx, dword [0x8eed78]
add eax, 0x90
mov esi, dword [eax]
mov edi, dword [eax + 4]
mov ebx, dword [eax + 8]
mov ecx, 0x8eed78
call dword [edx + 0x18]
test al, al
jne 0x4a5ff7
push 0
push str.The_audio_manager_has_not_been_properly_initialized_yet
mov eax, 1
call fcn.004887a0
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa8
ret
push 1
push ebp
push 0xbf800000
push 0x8c93e0
push ebp
push ebp
push ebp
sub esp, 0xc
mov eax, esp
mov dword [eax], esi
mov dword [eax + 4], edi
push ecx
mov dword [eax + 8], ebx
mov eax, esp
push 0x45
mov edx, ebp
push 0x8e87b0
mov dword [eax], 0
call fcn.0049f880
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa8
ret