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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0xf4
xorps xmm0, xmm0
movss xmm1, dword [0x7389bc]
mov edx, dword [ebp + 0x14]
cmp edx, 0xffffffff
push ebx
push esi
push edi
movss dword [esp + 0x50], xmm0
movss dword [esp + 0x40], xmm0
movss dword [esp + 0x30], xmm0
movss dword [esp + 0x54], xmm0
movss dword [esp + 0x44], xmm0
movss dword [esp + 0x24], xmm0
movss dword [esp + 0x58], xmm0
movss dword [esp + 0x38], xmm0
movss dword [esp + 0x28], xmm0
movss dword [esp + 0x4c], xmm0
movss dword [esp + 0x3c], xmm0
movss dword [esp + 0x2c], xmm0
movss dword [esp + 0x20], xmm1
movss dword [esp + 0x34], xmm1
movss dword [esp + 0x48], xmm1
movss dword [esp + 0x5c], xmm1
mov ebx, edx
je 0x5186ee
movss dword [esp + 0x8c], xmm0
movss dword [esp + 0x9c], xmm0
movss dword [esp + 0xac], xmm0
movss dword [esp + 0xbc], xmm1
lea esp, [esp]
mov esi, dword [ebp + 0x10]
movsx ecx, word [esi + 0x70]
xor eax, eax
cdq
idiv ecx
mov ecx, dword [esi + 0x30]
mov eax, edx
and edx, 0x1f
mov edi, edx
movsx edx, word [esi + 0x8e]
sar eax, 5
cmp eax, edx
jne 0x51851e
test edi, edi
jne 0x51851e
dec eax
mov edi, 0x20
movsx esi, word [esi + 0x90]
add esi, eax
mov eax, dword [ecx + 0x94]
imul esi, esi, 0x1c
add esi, eax
push ecx
push esi
call fcn.0059c610
lea ecx, [esp + 0x60]
push ecx
movsx ecx, byte [esi + 0x18]
push edi
push eax
lea eax, [eax + ebx*4]
call fcn.0059c4d0
movss xmm2, dword [esp + 0x60]
movss xmm5, dword [0x7389e8]
movss xmm4, dword [esp + 0x64]
movss xmm0, dword [esp + 0x68]
mulss xmm0, xmm5
movaps xmm1, xmm2
mulss xmm1, xmm5
movaps xmm3, xmm4
mulss xmm3, xmm5
movss xmm5, dword [esp + 0x6c]
movaps xmm6, xmm5
mulss xmm6, xmm1
movaps xmm7, xmm5
mulss xmm5, xmm0
movss dword [esp + 0x14], xmm5
movaps xmm5, xmm2
mulss xmm5, xmm1
movaps xmm1, xmm2
mulss xmm2, xmm0
mulss xmm1, xmm3
mulss xmm7, xmm3
movss dword [esp + 0x18], xmm2
movaps xmm2, xmm4
mulss xmm4, xmm0
mulss xmm2, xmm3
movss xmm3, dword [esp + 0x68]
mulss xmm3, xmm0
movss xmm0, dword [0x7389bc]
movss dword [esp + 0x1c], xmm3
addss xmm3, xmm2
subss xmm0, xmm3
movss dword [esp + 0x80], xmm0
movaps xmm0, xmm1
addss xmm0, dword [esp + 0x14]
subss xmm1, dword [esp + 0x14]
movss dword [esp + 0x84], xmm0
movss xmm0, dword [esp + 0x18]
movaps xmm3, xmm0
addss xmm0, xmm7
movss dword [esp + 0xa0], xmm0
movss xmm0, dword [0x7389bc]
movss dword [esp + 0x90], xmm1
movss xmm1, dword [esp + 0x1c]
subss xmm3, xmm7
addss xmm2, xmm5
subss xmm0, xmm2
movss dword [esp + 0xa8], xmm0
movss xmm0, dword [esp + 0x70]
movss dword [esp + 0x88], xmm3
movss xmm3, dword [0x7389bc]
addss xmm1, xmm5
subss xmm3, xmm1
movss dword [esp + 0xb0], xmm0
movss xmm0, dword [esp + 0x74]
movaps xmm1, xmm4
movss dword [esp + 0xb4], xmm0
movss xmm0, dword [esp + 0x78]
lea edx, [esp + 0x20]
addss xmm1, xmm6
subss xmm4, xmm6
movss dword [esp + 0x94], xmm3
movss dword [esp + 0x98], xmm1
movss dword [esp + 0xa4], xmm4
movss dword [esp + 0xb8], xmm0
push edx
lea eax, [esp + 0xc4]
push eax
lea edx, [esp + 0x88]
call fcn.0062a240
mov edx, dword [ebp + 0xc]
mov esi, eax
mov eax, dword [edx + 0x70]
mov ecx, 0x10
lea edi, [esp + 0x28]
rep movsd dword es:[edi], dword [esi]
lea ecx, [ebx + ebx*8]
shl ecx, 4
movsx ebx, word [ecx + eax + 0x62]
add esp, 8
cmp ebx, 0xffffffff
jne 0x5184f0
mov edx, dword [ebp + 0x14]
mov ebx, dword [ebp + 0x18]
test ebx, ebx
je 0x518726
lea ecx, [edx + edx*8]
mov edx, dword [ebp + 0xc]
mov edi, dword [edx + 0x70]
shl ecx, 4
add ecx, edi
push ecx
lea eax, [esp + 0xc4]
push eax
lea edx, [esp + 0x28]
call fcn.0062a240
mov edi, edx
mov edx, dword [ebp + 0x14]
mov ecx, 0x10
mov esi, eax
add esp, 8
rep movsd dword es:[edi], dword [esi]
mov esi, dword [ebp + 0x1c]
xor eax, eax
test esi, esi
jle 0x51876c
mov ecx, ebx
cmp dword [ecx], edx
je 0x518742
inc eax
add ecx, 0x90
cmp eax, esi
jl 0x518731
jmp 0x51876c
lea ecx, [eax + eax*8]
shl ecx, 4
lea edx, [ecx + ebx + 0x10]
push edx
lea eax, [esp + 0xc4]
push eax
lea edx, [esp + 0x28]
call fcn.0062a240
mov ecx, 0x10
mov esi, eax
mov edi, edx
add esp, 8
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebp + 8]
mov ecx, 0x10
lea esi, [esp + 0x20]
mov edi, eax
rep movsd dword es:[edi], dword [esi]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret