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

Disassembly:
sub esp, 0x80
mov edx, dword [0x9eae74]
push ebp
mov ebp, dword [edx + 0x58a0]
cmp ebp, 3
push edi
lea edi, [edx + 0x40e0]
mov dword [esp + 0x1c], edi
je 0x508dc4
mov eax, dword [0x705898]
mov eax, dword [eax + 0x3c4]
mov ecx, eax
imul eax, eax, 0xbe0
shl ecx, 5
add ecx, 0x8e89b0
and ecx, 0xfffffff
push ebx
add eax, edi
test ebp, ebp
push esi
mov dword [esp + 0x30], ecx
mov ecx, dword [edi + 0x17cc]
mov ebx, dword [edx + ecx*4 + 0x16cc8]
mov esi, eax
mov dword [esp + 0x34], esi
jne 0x508a8e
mov edx, dword [edi + 0x17c4]
push 0x10
push edx
push ebp
push 0xc0
call fcn.00449ca0
mov ebp, eax
mov eax, dword [edi + 0x17c4]
push 0x10
push eax
push 0
push 0x80
call fcn.00449ca0
mov edx, dword [0x9eae74]
add esp, 0x20
jmp 0x508a93
mov ebp, 0xc0
mov ecx, dword [edx + 0x16d20]
push 0x20
push ecx
push 0x217
push 0
call fcn.00449ca0
push 0x3c
push 0x3c
push 0x8a
add eax, ebp
push eax
push 3
push 0x107
lea edx, [esi + 0x10]
push 0x32
push edx
call fcn.00522050
mov ecx, dword [0x9eae74]
mov eax, ebx
shl eax, 4
sub eax, ebx
shl eax, 5
lea edx, [eax + ecx + 0x10ae8]
push 0
push edx
mov dword [esp + 0x64], eax
call fcn.005282d0
movss xmm1, dword [edi + 0x17d8]
movss xmm0, dword [edi + 0x17d0]
movss dword [esp + 0x98], xmm1
movss xmm1, dword [edi + 0x17dc]
movss dword [esp + 0x9c], xmm1
movss xmm1, dword [edi + 0x17e0]
movss dword [esp + 0xa8], xmm1
movss xmm1, dword [edi + 0x17e4]
movss dword [esp + 0x88], xmm0
movss xmm0, dword [edi + 0x17d4]
movss dword [esp + 0xac], xmm1
movss xmm1, dword [0x652888]
mov dword [esp + 0x74], edx
xor edx, edx
movss dword [esp + 0x8c], xmm0
xorps xmm0, xmm0
movss dword [esp + 0xb8], xmm1
movss xmm1, dword [0x64eac0]
mov ebp, 0x20
add esp, 0x38
mov dword [esp + 0x38], eax
movss dword [esp + 0x58], xmm0
movss dword [esp + 0x5c], xmm0
movss dword [esp + 0x68], xmm0
movss dword [esp + 0x6c], xmm0
movss dword [esp + 0x78], xmm0
movss dword [esp + 0x7c], xmm0
movss dword [esp + 0x84], xmm1
movss dword [esp + 0x88], xmm0
movss dword [esp + 0x8c], xmm0
mov dword [esp + 0x1c], edx
mov dword [esp + 0x20], ebp
add esi, 0x7d8
jmp 0x508bd0
mov edi, dword [esp + 0x24]
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x3c]
mov dword [esi - 0x20], eax
mov dword [esi - 0x1c], ecx
mov eax, edx
sub eax, dword [edi + 0x17c8]
xor ecx, ecx
add eax, 0x19
test eax, eax
setle cl
sub ecx, 1
and ecx, eax
mov edi, ecx
cmp edi, 0x18
jl 0x508c29
xor ecx, ecx
cmp edx, 7
setne cl
mov dword [esp + 0x14], 0x92
mov dword [esp + 0x10], 0x14c
mov ebx, 0x60
mov edi, 0x40
sub ecx, 1
and ecx, 0x80
jmp 0x508c9c
push ecx
cvtsi2ss xmm0, edi
mulss xmm0, dword [0x64f68c]
movss dword [esp], xmm0
lea edx, [esp + 0x54]
push edx
lea eax, [esp + 0x48]
push eax
call fcn.00449c10
cvttss2si ecx, dword [esp + 0x4c]
cvttss2si edx, dword [esp + 0x50]
mov dword [esp + 0x20], ecx
lea ecx, [edi + edi*2]
mov dword [esp + 0x1c], edx
shl ecx, 5
mov eax, 0x2aaaaaab
imul ecx
sar edx, 2
mov ebx, edx
shl edi, 6
shr ebx, 0x1f
add ebx, edx
mov eax, 0x2aaaaaab
imul edi
sar edx, 2
mov edi, edx
shr edi, 0x1f
add edi, edx
mov eax, ebp
cdq
and edx, 7
add eax, edx
mov ecx, eax
sar ecx, 3
add esp, 0xc
add ecx, 0x20
mov eax, dword [esp + 0x10]
sub eax, edi
cvtsi2ss xmm0, eax
mov dword [esp + 0x18], edi
mov edi, dword [0x705898]
mulss xmm0, dword [edi + 0x3b8]
cvttss2si eax, xmm0
and eax, 0xffff
or eax, 0x50000
cdq
shld edx, eax, 0x10
shl eax, 0x10
mov ebp, eax
mov eax, edx
mov edx, dword [esp + 0x14]
mov dword [esp + 0x28], eax
sub edx, ebx
cvtsi2ss xmm0, edx
mulss xmm0, dword [edi + 0x3b4]
cvttss2si eax, xmm0
and eax, 0xffff
cdq
or ebp, eax
mov eax, dword [esp + 0x28]
or eax, edx
mov edx, dword [esp + 0x10]
mov dword [esi + 4], eax
mov eax, dword [esp + 0x18]
add eax, edx
cvtsi2ss xmm0, eax
mov dword [esi], ebp
mov edi, dword [0x705898]
mulss xmm0, dword [edi + 0x3b8]
cvttss2si eax, xmm0
and eax, 0xffff
or eax, 0x50000
cdq
shld edx, eax, 0x10
shl eax, 0x10
mov ebp, eax
mov eax, edx
mov edx, dword [esp + 0x14]
add ebx, edx
mov dword [esp + 0x28], eax
cvtsi2ss xmm0, ebx
mulss xmm0, dword [edi + 0x3b4]
cvttss2si eax, xmm0
and eax, 0xffff
cdq
or ebp, eax
mov eax, dword [esp + 0x28]
or eax, edx
mov edx, dword [esp + 0x1c]
mov dword [esi + 0x10], ebp
mov ebp, dword [esp + 0x20]
add ebp, 0x20
mov dword [esi + 0x14], eax
mov byte [esi - 0xd], cl
add edx, 1
add esi, 0x90
cmp ebp, 0x120
mov dword [esp + 0x1c], edx
mov dword [esp + 0x20], ebp
jl 0x508bcc
mov eax, dword [0x9eae74]
mov ecx, dword [esp + 0x2c]
mov esi, dword [esp + 0x30]
lea edx, [ecx + eax + 0x10ae8]
push edx
push esi
call fcn.00528260
mov eax, dword [esp + 0x3c]
push 0
push 0
push 0
push 0xbe
push eax
push esi
call fcn.00550200
add esp, 0x20
pop esi
pop ebx
pop edi
pop ebp
add esp, 0x80
ret