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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0xb4
push ebx
mov ebx, dword [ebp + 8]
push esi
xor esi, esi
cmp dword [ebx + 0x554], esi
push edi
je 0x586981
mov eax, dword [ebx + 4]
mov ecx, dword [eax]
lea edx, [esp + 0x80]
push edx
mov edx, dword [ebx]
movzx edx, word [edx + 8]
push edx
push eax
call dword [ecx + 0xc]
mov eax, dword [ebx + 0x554]
lea edi, [ebx + 0x514]
lea ecx, [ebx + eax*4 + 0x514]
add esp, 0xc
cmp edi, ecx
mov dword [esp + 0x24], edi
je 0x586981
lea ebx, [ebx]
mov eax, dword [edi]
lea edx, [esp + 0x80]
push edx
push eax
call fcn.00581250
mov ecx, dword [edi]
push ecx
call fcn.00581290
mov eax, dword [ebx + 0x10]
mov ecx, dword [edi]
lea edx, [esp + 0x8c]
push edx
push eax
push 1
push ecx
call fcn.00581560
mov edx, dword [edi]
push edx
call fcn.00581680
add esp, 0x20
cmp word [ebx + 0x28], si
je 0x58695a
mov ecx, dword [ebx + 0x554]
cmp ecx, esi
je 0x58695a
lea eax, [ebx + 0x514]
lea ecx, [ebx + ecx*4 + 0x514]
cmp eax, ecx
je 0x58695a
mov edx, dword [eax]
cmp word [edx + 0x5a], si
jne 0x5864da
add eax, 4
cmp eax, ecx
jne 0x5864c6
jmp 0x58695a
mov eax, dword [ebx]
cmp dword [eax + 0x10], esi
mov dword [esp + 0x44], esi
jbe 0x58695a
lea ecx, [esp + 0x14]
mov dword [esp + 0x48], ecx
mov dword [esp + 0x28], esi
mov edx, dword [eax + 0x28]
mov eax, dword [esp + 0x28]
mov ecx, dword [eax + edx]
add eax, edx
lea esi, [ecx + ecx*4]
mov ecx, dword [eax + 4]
shl esi, 5
add esi, dword [ebx + 0xf0]
lea edx, [ecx + ecx*4]
shl edx, 5
add ecx, 0xffffffff
movss xmm0, dword [edx + esi - 0x50]
lea eax, [edx + esi]
mov eax, dword [eax - 0x20]
movss xmm1, dword [eax]
mulss xmm1, xmm0
addss xmm1, dword [eax + 0x30]
movss dword [esp + 0x34], xmm1
movss xmm1, dword [eax + 4]
mulss xmm1, xmm0
addss xmm1, dword [eax + 0x34]
movss dword [esp + 0x38], xmm1
movss xmm1, dword [eax + 8]
mulss xmm1, xmm0
addss xmm1, dword [eax + 0x38]
movss dword [esp + 0x3c], xmm1
movss xmm0, dword [eax + 0x3c]
movss dword [esp + 0x40], xmm0
je 0x586762
lea eax, [esp + 0x14]
mov dword [esp + 0x30], eax
mov ebx, ecx
jmp 0x586580
mov eax, dword [esi + 0x120]
mov edx, dword [edi]
lea ecx, [eax + 0x10]
push ecx
add eax, 0x30
push eax
push edx
call fcn.00584500
mov ecx, dword [esi + 0x120]
mov eax, dword [esi + 0x80]
fld dword [ecx + 0x30]
fsub dword [eax + 0x30]
add ecx, 0x30
add eax, 0x30
add esp, 0xc
fstp dword [esp + 0x14]
fld dword [ecx + 4]
fsub dword [eax + 4]
fstp dword [esp + 0x18]
fld dword [ecx + 8]
fsub dword [eax + 8]
fstp dword [esp + 0x1c]
movss xmm0, dword [ecx + 0xc]
fld dword [esp + 0x1c]
subss xmm0, dword [eax + 0xc]
fmul dword [esp + 0x1c]
movss dword [esp + 0x20], xmm0
fld dword [esp + 0x18]
mov eax, dword [esi + 0x80]
fmul dword [esp + 0x18]
mov dword [esp + 0x58], eax
faddp st(1)
fld dword [esp + 0x14]
fmul dword [esp + 0x14]
faddp st(1)
fsqrt
fst dword [esi + 0x90]
fstp dword [esp + 0x2c]
mov edx, dword [esp + 0x30]
movups xmm0, xmmword [edx]
movss xmm1, dword [esp + 0x2c]
shufps xmm1, xmm1, 0
divps xmm0, xmm1
mov eax, dword [esp + 0x58]
movups xmmword [eax], xmm0
mov eax, dword [esi + 0x80]
movss xmm0, dword [eax + 8]
mulss xmm0, dword [eax + 0x24]
movss xmm1, dword [eax + 0x28]
mulss xmm1, dword [eax + 4]
subss xmm0, xmm1
movss xmm1, dword [eax + 8]
mulss xmm1, dword [eax + 0x20]
movss dword [esp + 0x68], xmm0
movss xmm0, dword [eax + 0x28]
mulss xmm0, dword [eax]
mov edi, dword [esp + 0x68]
subss xmm0, xmm1
movss xmm1, dword [eax]
mulss xmm1, dword [eax + 0x24]
lea ecx, [eax + 0x10]
movss dword [esp + 0x6c], xmm0
movss xmm0, dword [eax + 4]
mulss xmm0, dword [eax + 0x20]
mov edx, ecx
mov dword [edx], edi
mov edi, dword [esp + 0x6c]
mov dword [edx + 4], edi
subss xmm0, xmm1
movss dword [esp + 0x70], xmm0
mov edi, dword [esp + 0x70]
mov dword [edx + 8], edi
mov eax, dword [eax + 0x2c]
mov dword [ecx + 0xc], eax
mov eax, dword [esi + 0x80]
lea edi, [eax + 0x10]
push edi
push edi
call fcn.00591360
mov ecx, dword [edi + 0xc]
mov dword [edi + 0xc], ecx
mov eax, dword [esi + 0x80]
movss xmm0, dword [eax + 4]
mulss xmm0, dword [eax + 0x18]
movss xmm1, dword [eax + 0x14]
lea ecx, [eax + 0x20]
mulss xmm1, dword [eax + 8]
subss xmm0, xmm1
movss xmm1, dword [eax]
mulss xmm1, dword [eax + 0x18]
movss dword [esp + 0x74], xmm0
movss xmm0, dword [eax + 8]
mulss xmm0, dword [eax + 0x10]
mov edi, dword [esp + 0x74]
subss xmm0, xmm1
movss xmm1, dword [eax + 4]
mulss xmm1, dword [eax + 0x10]
movss dword [esp + 0x78], xmm0
movss xmm0, dword [eax + 0x14]
mulss xmm0, dword [eax]
mov edx, ecx
mov dword [edx], edi
mov edi, dword [esp + 0x78]
mov dword [edx + 4], edi
subss xmm0, xmm1
movss dword [esp + 0x7c], xmm0
mov edi, dword [esp + 0x7c]
mov dword [edx + 8], edi
mov eax, dword [eax + 0xc]
mov dword [ecx + 0xc], eax
mov ecx, dword [esi + 0x80]
push ecx
push esi
call fcn.00555cf0
mov edi, dword [esp + 0x2c]
add esp, 8
add esi, 0xa0
sub ebx, 1
jne 0x586580
movss xmm0, dword [esp + 0x40]
mov ebx, dword [ebp + 8]
mov edx, dword [ebx]
mov eax, dword [edx + 0x28]
mov ecx, dword [esp + 0x28]
cmp dword [eax + ecx + 8], 0
jne 0x586792
mov edx, dword [esi + 0x80]
mov ecx, dword [edi]
add edx, 0x10
push edx
lea eax, [esp + 0x38]
push eax
push ecx
call fcn.00584500
movss xmm0, dword [esp + 0x4c]
add esp, 0xc
mov eax, dword [esi + 0x80]
fld dword [esp + 0x34]
fsub dword [eax + 0x30]
add eax, 0x30
fstp dword [esp + 0x14]
fld dword [esp + 0x38]
fsub dword [eax + 4]
fstp dword [esp + 0x18]
fld dword [esp + 0x3c]
fsub dword [eax + 8]
fstp dword [esp + 0x1c]
subss xmm0, dword [eax + 0xc]
fld dword [esp + 0x1c]
movss dword [esp + 0x20], xmm0
fmul dword [esp + 0x1c]
mov edx, dword [esi + 0x80]
fld dword [esp + 0x18]
mov dword [esp + 0x30], edx
fmul dword [esp + 0x18]
faddp st(1)
fld dword [esp + 0x14]
fmul dword [esp + 0x14]
faddp st(1)
fsqrt
fst dword [esi + 0x90]
fstp dword [esp + 0x2c]
mov edx, dword [esp + 0x48]
movups xmm0, xmmword [edx]
movss xmm1, dword [esp + 0x2c]
shufps xmm1, xmm1, 0
divps xmm0, xmm1
mov eax, dword [esp + 0x30]
movups xmmword [eax], xmm0
mov eax, dword [esi + 0x80]
movss xmm0, dword [eax + 0x24]
mulss xmm0, dword [eax + 8]
movss xmm1, dword [eax + 4]
mulss xmm1, dword [eax + 0x28]
subss xmm0, xmm1
movss xmm1, dword [eax + 0x20]
mulss xmm1, dword [eax + 8]
movss dword [esp + 0x5c], xmm0
movss xmm0, dword [eax]
mulss xmm0, dword [eax + 0x28]
mov edi, dword [esp + 0x5c]
subss xmm0, xmm1
movss xmm1, dword [eax + 0x24]
mulss xmm1, dword [eax]
lea ecx, [eax + 0x10]
movss dword [esp + 0x60], xmm0
movss xmm0, dword [eax + 4]
mulss xmm0, dword [eax + 0x20]
mov edx, ecx
mov dword [edx], edi
mov edi, dword [esp + 0x60]
mov dword [edx + 4], edi
subss xmm0, xmm1
movss dword [esp + 0x64], xmm0
mov edi, dword [esp + 0x64]
mov dword [edx + 8], edi
mov eax, dword [eax + 0x2c]
mov dword [ecx + 0xc], eax
mov edi, dword [esi + 0x80]
add edi, 0x10
push edi
push edi
call fcn.00591360
mov ecx, dword [edi + 0xc]
mov dword [edi + 0xc], ecx
mov eax, dword [esi + 0x80]
movss xmm0, dword [eax + 4]
mulss xmm0, dword [eax + 0x18]
movss xmm1, dword [eax + 0x14]
mulss xmm1, dword [eax + 8]
subss xmm0, xmm1
movss xmm1, dword [eax]
mulss xmm1, dword [eax + 0x18]
movss dword [esp + 0x4c], xmm0
movss xmm0, dword [eax + 8]
mulss xmm0, dword [eax + 0x10]
subss xmm0, xmm1
movss xmm1, dword [eax + 4]
movss dword [esp + 0x50], xmm0
movss xmm0, dword [eax + 0x14]
mulss xmm0, dword [eax]
lea ecx, [eax + 0x20]
mulss xmm1, dword [eax + 0x10]
mov edi, dword [esp + 0x4c]
mov edx, ecx
mov dword [edx], edi
mov edi, dword [esp + 0x50]
mov dword [edx + 4], edi
subss xmm0, xmm1
movss dword [esp + 0x54], xmm0
mov edi, dword [esp + 0x54]
mov dword [edx + 8], edi
mov eax, dword [eax + 0xc]
mov dword [ecx + 0xc], eax
mov ecx, dword [esi + 0x80]
push ecx
push esi
call fcn.00555cf0
mov ecx, dword [esp + 0x4c]
mov edx, dword [ebp + 8]
mov eax, dword [edx]
add dword [esp + 0x30], 0x10
mov edi, dword [esp + 0x2c]
add ecx, 1
add esp, 8
cmp ecx, dword [eax + 0x10]
mov dword [esp + 0x44], ecx
mov ebx, edx
jb 0x5864f5
xor esi, esi
mov eax, dword [edi]
push eax
call fcn.00581340
mov ecx, dword [ebx + 0x554]
add edi, 4
lea edx, [ebx + ecx*4 + 0x514]
add esp, 4
cmp edi, edx
mov dword [esp + 0x24], edi
jne 0x586460
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret