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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push esi
mov eax, dword [ebp + 8]
cmp dword [eax + 8], 0xa
jge 0x5a5086
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 8]
movss xmm0, dword [edx*4 + 0x6b6dfc]
movss dword [ebp - 0x10], xmm0
jmp 0x5a508e
xorps xmm0, xmm0
movss dword [ebp - 0x10], xmm0
mov eax, 4
imul ecx, eax, 0
mov edx, dword [ebp + 8]
mov eax, 4
shl eax, 0
mov esi, dword [ebp + 8]
movss xmm0, dword [esi + eax + 0x68]
comiss xmm0, dword [edx + ecx + 0x68]
jbe 0x5a5157
mov ecx, 4
shl ecx, 0
mov edx, dword [ebp + 8]
mov eax, 4
shl eax, 1
mov esi, dword [ebp + 8]
movss xmm0, dword [esi + eax + 0x68]
comiss xmm0, dword [edx + ecx + 0x68]
jbe 0x5a50ef
mov ecx, 4
shl ecx, 0
mov edx, dword [ebp + 8]
movss xmm0, dword [edx + ecx + 0x68]
movss dword [ebp - 0x18], xmm0
jmp 0x5a5148
mov eax, 4
imul ecx, eax, 0
mov edx, dword [ebp + 8]
mov eax, 4
shl eax, 1
mov esi, dword [ebp + 8]
movss xmm0, dword [esi + eax + 0x68]
comiss xmm0, dword [edx + ecx + 0x68]
jbe 0x5a5128
mov ecx, 4
shl ecx, 1
mov edx, dword [ebp + 8]
movss xmm0, dword [edx + ecx + 0x68]
movss dword [ebp - 0x14], xmm0
jmp 0x5a513e
mov eax, 4
imul ecx, eax, 0
mov edx, dword [ebp + 8]
movss xmm0, dword [edx + ecx + 0x68]
movss dword [ebp - 0x14], xmm0
movss xmm0, dword [ebp - 0x14]
movss dword [ebp - 0x18], xmm0
movss xmm0, dword [ebp - 0x18]
movss dword [ebp - 0x24], xmm0
jmp 0x5a51f4
mov eax, 4
shl eax, 1
mov ecx, dword [ebp + 8]
mov edx, 4
shl edx, 0
mov esi, dword [ebp + 8]
movss xmm0, dword [esi + edx + 0x68]
comiss xmm0, dword [ecx + eax + 0x68]
jbe 0x5a5191
mov eax, 4
shl eax, 0
mov ecx, dword [ebp + 8]
movss xmm0, dword [ecx + eax + 0x68]
movss dword [ebp - 0x20], xmm0
jmp 0x5a51ea
mov edx, 4
shl edx, 1
mov eax, dword [ebp + 8]
mov ecx, 4
imul ecx, ecx, 0
mov esi, dword [ebp + 8]
movss xmm0, dword [esi + ecx + 0x68]
comiss xmm0, dword [eax + edx + 0x68]
jbe 0x5a51ca
mov edx, 4
shl edx, 1
mov eax, dword [ebp + 8]
movss xmm0, dword [eax + edx + 0x68]
movss dword [ebp - 0x1c], xmm0
jmp 0x5a51e0
mov ecx, 4
imul edx, ecx, 0
mov eax, dword [ebp + 8]
movss xmm0, dword [eax + edx + 0x68]
movss dword [ebp - 0x1c], xmm0
movss xmm0, dword [ebp - 0x1c]
movss dword [ebp - 0x20], xmm0
movss xmm0, dword [ebp - 0x20]
movss dword [ebp - 0x24], xmm0
movss xmm0, dword [ebp - 0x24]
movss dword [ebp - 0x28], xmm0
mov ecx, dword [ebp + 8]
movss xmm0, dword [ecx + 0x64]
comiss xmm0, dword [ebp - 0x28]
jbe 0x5a5219
mov edx, dword [ebp + 8]
movss xmm0, dword [ebp - 0x28]
movss dword [edx + 0x64], xmm0
mov eax, dword [ebp + 8]
movss xmm0, dword [0x699e60]
mulss xmm0, dword [eax + 0x64]
movss dword [ebp - 4], xmm0
cvtss2sd xmm0, dword [ebp - 4]
comisd xmm0, xmmword [0x6b6ec8]
jbe 0x5a524a
movss xmm0, dword [0x6b6058]
movss dword [ebp - 4], xmm0
movss xmm0, dword [ebp - 0x10]
mulss xmm0, dword [ebp - 4]
addss xmm0, dword [0x6b61bc]
movss dword [ebp - 4], xmm0
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0xc]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x34]
push ecx
call fcn.0040656e
add esp, 8
fstp dword [ebp - 0x2c]
movss xmm0, dword [ebp - 4]
mulss xmm0, dword [ebp - 4]
movss xmm1, dword [0x699e60]
subss xmm1, xmm0
mulss xmm1, dword [ebp - 0x10]
mulss xmm1, dword [ebp - 0x2c]
movss dword [ebp - 0x34], xmm1
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x20]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x10]
lea eax, [edx + eax*2]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0xc]
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx + 0x30]
lea edx, [ecx + edx*4]
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx + 0x30]
sub ecx, edx
sar ecx, 2
imul edx, ecx, 0
lea eax, [edx + eax*4 + 0x30]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0xc]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x30]
lea edx, [ecx + edx*4]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x30]
push ecx
call fcn.004068ed
add esp, 0xc
mov edx, dword [ebp + 8]
add edx, 0x78
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
add ecx, 1
cvtsi2ss xmm0, ecx
push ecx
movss dword [esp], xmm0
call fcn.005a69c0
add esp, 8
fstp dword [ebp - 0x30]
movss xmm0, dword [ebp - 0x30]
cvttss2si edx, xmm0
mov eax, dword [ebp + 8]
add edx, dword [eax + 0x60]
mov dword [ebp - 8], edx
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 8]
cmp edx, dword [ecx + 0x20]
jle 0x5a533a
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x20]
mov dword [ebp - 8], ecx
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 8]
cmp eax, dword [edx + 0x1c]
jge 0x5a534e
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x1c]
mov dword [ebp - 8], edx
mov dword [ebp - 0xc], 0
jmp 0x5a5360
mov eax, dword [ebp - 0xc]
add eax, 1
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0xc]
cmp edx, dword [ecx + 0xc]
jge 0x5a53c5
mov eax, dword [ebp - 0xc]
sub eax, dword [ebp - 8]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x34]
movss xmm0, dword [edx + eax*4]
addss xmm0, dword [0x6b61bc]
mulss xmm0, dword [ebp - 4]
mov eax, dword [ebp + 8]
add eax, 0x78
push eax
push ecx
movss xmm1, dword [ebp - 0x34]
movss dword [esp], xmm1
movss dword [ebp - 0x38], xmm0
call fcn.005a69c0
add esp, 8
fstp dword [ebp - 0x3c]
movss xmm0, dword [ebp - 0x38]
addss xmm0, dword [ebp - 0x3c]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x34]
mov eax, dword [ebp - 0xc]
movss dword [edx + eax*4], xmm0
jmp 0x5a5357
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x18]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x3c]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x3c]
push eax
push ecx
movss xmm0, dword [0x6b6e6c]
movss dword [esp], xmm0
call fcn.00401e2e
add esp, 0x10
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x40]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x18]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0xc]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x3c]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x10]
neg eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x34]
lea eax, [edx + eax*4]
push eax
call fcn.004021e4
add esp, 0x1c
mov ecx, dword [ebp + 8]
add ecx, 0x44
push ecx
push 1
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0xc]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call fcn.004030d0
add esp, 0x14
mov eax, dword [ebp + 8]
mov dword [eax + 4], 0
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 8]
add edx, 1
mov eax, dword [ebp + 8]
mov dword [eax + 8], edx
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x74]
mov eax, dword [ebp + 8]
movss xmm0, dword [ebp - 4]
movss dword [eax + edx*4 + 0x68], xmm0
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x74]
add edx, 1
mov eax, dword [ebp + 8]
mov dword [eax + 0x74], edx
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x74], 2
jle 0x5a549d
mov edx, dword [ebp + 8]
mov dword [edx + 0x74], 0
pop esi
mov esp, ebp
pop ebp
ret