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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x108
cmp byte [0x102b1b35], 0
push esi
push edi
je 0x10089a9a
cmp dword [0x102a5680], 0
je 0x10089a9a
mov eax, dword [0x1029a3c4]
test eax, eax
je 0x10089a9a
cmp dword [eax], 0
je 0x10089a9a
mov eax, dword fs:[0x2c]
mov ecx, dword [0x102999e4]
mov edi, dword [eax + ecx*4]
mov eax, dword [0x102ba23c]
mov dword [esp + 0x20], edi
cmp eax, dword [edi + 4]
jle 0x10089702
push 0x102ba23c
call fcn.101e23b9
add esp, 4
cmp dword [0x102ba23c], 0xffffffff
jne 0x10089702
xorps xmm0, xmm0
mov dword [0x102ba250], 0
push 0x1020f460
movups xmmword [0x102ba240], xmm0
call fcn.101e2242
add esp, 4
push 0x102ba23c
call fcn.101e236f
add esp, 4
mov eax, dword [0x102b3340]
mov esi, dword [0x1029a450]
mov dword [0x102ba24c], 0
cmp eax, dword [edi + 4]
jle 0x10089768
push 0x102b3340
call fcn.101e23b9
add esp, 4
cmp dword [0x102b3340], 0xffffffff
jne 0x10089768
lea eax, [esp + 0x18]
mov dword [esp + 0x18], str.GetActiveSounds
push eax
lea eax, [esp + 0x34]
mov ecx, 0x102a5794
push eax
call fcn.10006340
push 0x102b3340
mov eax, dword [eax]
mov eax, dword [eax + 0xc]
mov dword [0x102b333c], eax
call fcn.101e236f
add esp, 4
mov edx, dword [esi]
mov ecx, esi
mov eax, dword [0x102b333c]
push 0x102ba240
mov eax, dword [edx + eax*4]
call eax
cmp dword [0x102ba24c], 0
je 0x10089a9a
call fcn.10034f70
cmp dword [0x102ba24c], 0
mov edi, eax
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], 0
jle 0x10089a90
xor esi, esi
nop word [eax + eax]
mov ecx, dword [0x102ba240]
mov dword [esp + 0x1c], ecx
mov edx, dword [esi + ecx + 8]
lea eax, [edx - 1]
cmp eax, 0x3f
ja 0x10089a78
mov eax, dword [esi + ecx]
cmp eax, dword [0x102b3338]
jle 0x10089a78
mov ecx, dword [esi + ecx + 0x24]
test ecx, ecx
je 0x10089a78
xorps xmm0, xmm0
ucomiss xmm0, dword [ecx]
lahf
test ah, 0x44
jp 0x10089809
ucomiss xmm0, dword [ecx + 4]
lahf
test ah, 0x44
jp 0x10089809
ucomiss xmm0, dword [ecx + 8]
lahf
test ah, 0x44
jnp 0x10089a78
cmp edx, edi
je 0x10089a78
push edx
call fcn.100042a0
mov edi, eax
test edi, edi
je 0x10089a74
mov ecx, edi
call fcn.101758d0
test al, al
je 0x10089a74
mov eax, dword [edi + 8]
lea ecx, [edi + 8]
mov eax, dword [eax + 0x24]
call eax
test al, al
je 0x10089a74
push dword [0x102a5680]
mov ecx, edi
call fcn.10178a30
test al, al
je 0x10089a74
mov ecx, edi
call fcn.10176800
test al, al
je 0x10089a74
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0xc0]
xorps xmm3, xmm3
mov eax, dword [esi + eax + 0x24]
movss xmm2, dword [eax]
movss xmm1, dword [eax + 4]
addss xmm2, xmm3
movss xmm0, dword [eax + 8]
addss xmm1, xmm3
addss xmm0, dword [0x1026bac0]
mov dword [esp + 0x68], 0x7f800000
mov dword [esp + 0x64], 0x7f800000
movss dword [esp + 0x44], xmm2
subss xmm2, xmm3
movss dword [esp + 0x48], xmm1
subss xmm1, xmm3
movss dword [esp + 0x4c], xmm0
subss xmm0, dword [0x1026bcac]
mov dword [esp + 0x60], 0x7f800000
movss dword [esp + 0x38], xmm2
movss dword [esp + 0x3c], xmm1
mov dword [esp + 0x74], 0x7f800000
movss dword [esp + 0x40], xmm0
mov dword [esp + 0x70], 0x7f800000
mov dword [esp + 0x6c], 0x7f800000
mov dword [esp + 0x80], 0x7f800000
mov dword [esp + 0x7c], 0x7f800000
mov dword [esp + 0x78], 0x7f800000
call fcn.100070f0
lea eax, [esp + 0x38]
push eax
lea eax, [esp + 0x48]
push eax
call fcn.10007150
mov ecx, dword [0x1029a49c]
lea edx, [esp + 0x60]
push edx
lea edx, [esp + 0x54]
mov dword [esp + 0x54], 0x10238480
push edx
mov dword [esp + 0x5c], edi
lea edx, [esp + 0xc8]
mov dword [esp + 0x60], 0
mov dword [esp + 0x64], 0
mov eax, dword [ecx]
push 0x201400b
push edx
call dword [eax + 0x14]
cmp byte [esp + 0x96], 0
jne 0x10089a74
movss xmm0, dword [0x1026bab4]
comiss xmm0, dword [esp + 0x8c]
jbe 0x1008998e
lea eax, [esp + 0x6c]
jmp 0x10089996
mov eax, dword [esp + 0x1c]
mov eax, dword [esi + eax + 0x24]
movq xmm0, qword [eax]
mov ecx, dword [esp + 0x20]
movq qword [esp + 0x24], xmm0
mov eax, dword [eax + 8]
mov dword [esp + 0x2c], eax
mov eax, dword [0x102bbb68]
cmp eax, dword [ecx + 4]
jle 0x10089a04
push 0x102bbb68
call fcn.101e23b9
add esp, 4
cmp dword [0x102bbb68], 0xffffffff
jne 0x10089a04
lea eax, [esp + 0x30]
mov dword [esp + 0x30], str.SetAbsOrigin
push eax
lea eax, [esp + 0xbc]
mov ecx, 0x102a57d4
push eax
call fcn.10006340
push 0x102bbb68
mov eax, dword [eax]
mov eax, dword [eax + 0xc]
mov dword [0x102bbb6c], eax
call fcn.101e236f
add esp, 4
lea eax, [esp + 0x24]
mov ecx, edi
push eax
call dword [0x102bbb6c]
mov ecx, edi
call fcn.10034cc0
movss xmm0, dword [esp + 0x24]
mov edi, dword [esp + 0x1c]
movss dword [eax], xmm0
movss xmm0, dword [esp + 0x28]
movss dword [eax + 4], xmm0
movss xmm0, dword [esp + 0x2c]
movss dword [eax + 8], xmm0
mov ecx, dword [esi + edi + 8]
mov eax, dword [0x1029a3c4]
push ecx
mov byte [ecx + 0x102b1c70], 1
mov ecx, dword [eax]
call fcn.10088c20
mov ecx, dword [esi + edi + 8]
mov eax, dword [eax]
mov dword [ecx*4 + 0x102b1cb0], eax
mov dword [ecx*4 + 0x102b1b70], 0x43700000
mov eax, dword [esi + edi]
mov dword [0x102b3338], eax
mov edi, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
add esi, 0x34
inc eax
mov dword [esp + 0x18], eax
cmp eax, dword [0x102ba24c]
jl 0x100897b0
mov dword [0x102ba24c], 0
pop edi
pop esi
mov esp, ebp
pop ebp
ret