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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push esi
push edi
push ebx
sub esp, 0xdc
mov edx, dword [ebp + 0x1c]
pxor xmm2, xmm2
mov esi, dword [ebp + 0x20]
pxor xmm1, xmm1
mov eax, dword [ebp + 0xc]
mov ecx, dword [edx]
mov edx, dword [esi]
mov dword [esp + 0x88], ecx
movsd xmm4, qword [eax]
movaps xmm7, xmm4
lea ecx, [eax + edx*8]
movsd xmm0, qword [ecx + 8]
movaps xmm5, xmm4
mulsd xmm7, xmm0
movaps xmm3, xmm4
mulsd xmm5, qword [ecx + 0x10]
subsd xmm2, xmm7
pxor xmm7, xmm7
movsd xmm6, qword [ecx]
subsd xmm7, xmm5
mulsd xmm3, xmm6
movsd qword [esp + 0x30], xmm2
movaps xmm2, xmm4
mulsd xmm2, qword [ecx + 0x18]
subsd xmm1, xmm3
movsd qword [esp + 0x28], xmm7
movaps xmm7, xmm4
mulsd xmm7, qword [ecx + 0x20]
pxor xmm3, xmm3
subsd xmm3, xmm2
mulsd xmm4, qword [ecx + 0x28]
mulsd xmm6, xmm1
mov ebx, dword [ebp + 0x28]
pxor xmm2, xmm2
pxor xmm5, xmm5
subsd xmm2, xmm7
subsd xmm5, xmm4
mov ebx, dword [ebx]
add edx, ebx
movsd qword [esp + 0x58], xmm2
movsd xmm2, qword [eax + ebx*8]
movsd qword [esp + 0x48], xmm5
movaps xmm4, xmm2
movsd xmm5, qword [eax + edx*8 - 8]
movaps xmm7, xmm2
mulsd xmm4, xmm5
mulsd xmm7, qword [eax + edx*8]
movsd qword [esp + 0x20], xmm3
pxor xmm3, xmm3
mov edi, dword [ebp + 0x2c]
subsd xmm3, xmm4
pxor xmm4, xmm4
mov edi, dword [edi]
subsd xmm4, xmm7
mulsd xmm5, xmm3
movaps xmm7, xmm2
lea esi, [edi + edi - 3]
mulsd xmm7, qword [eax + edx*8 + 8]
movsd qword [esp + 0x78], xmm4
pxor xmm4, xmm4
mov dword [esp], ebx
lea ebx, [edi + esi - 3]
mov dword [esp + 0xc], ebx
lea ebx, [edi + ebx - 4]
mov dword [esp + 0x10], ebx
subsd xmm4, xmm7
movaps xmm7, xmm2
mulsd xmm7, qword [eax + edx*8 + 0x10]
movsd qword [esp + 0x70], xmm4
pxor xmm4, xmm4
mov ebx, dword [ebp + 0x10]
subsd xmm4, xmm7
addsd xmm6, qword [ebx]
movaps xmm7, xmm2
addsd xmm6, xmm5
mulsd xmm7, qword [eax + edx*8 + 0x18]
mulsd xmm2, qword [eax + edx*8 + 0x20]
movsd qword [esp + 0x68], xmm4
pxor xmm4, xmm4
movsd qword [ebx], xmm6
subsd xmm4, xmm7
pxor xmm7, xmm7
movsd qword [esp + 0x60], xmm4
subsd xmm7, xmm2
movsd qword [esp + 0x50], xmm7
movaps xmm7, xmm0
mulsd xmm7, xmm1
movsd xmm2, qword [eax + edx*8]
movaps xmm6, xmm2
addsd xmm7, qword [ebx + 8]
mulsd xmm6, xmm3
movsd xmm4, qword [esp + 0x30]
addsd xmm7, xmm6
mulsd xmm0, xmm4
movsd xmm5, qword [esp + 0x78]
mulsd xmm2, xmm5
movsd qword [ebx + 8], xmm7
addsd xmm0, xmm2
movsd xmm6, qword [ecx + 0x10]
movaps xmm2, xmm6
addsd xmm0, qword [ebx + edi*8]
mulsd xmm2, xmm1
movsd qword [ebx + edi*8], xmm0
movsd xmm0, qword [eax + edx*8 + 8]
movaps xmm7, xmm0
addsd xmm2, qword [ebx + 0x10]
mulsd xmm7, xmm3
movsd qword [esp + 0x18], xmm1
addsd xmm2, xmm7
movsd qword [ebx + 0x10], xmm2
movaps xmm2, xmm6
movaps xmm7, xmm0
mulsd xmm2, xmm4
mulsd xmm7, xmm5
mulsd xmm0, qword [esp + 0x70]
addsd xmm2, xmm7
movsd xmm7, qword [ecx + 0x18]
mov dword [esp + 8], esi
mov dword [esp + 4], edi
movsd qword [esp + 0x80], xmm3
mov dword [esp + 0x14], ecx
addsd xmm2, qword [ebx + edi*8 + 8]
movsd qword [ebx + edi*8 + 8], xmm2
movsd xmm2, qword [esp + 0x28]
mulsd xmm6, xmm2
addsd xmm6, xmm0
movsd xmm0, qword [eax + edx*8 + 0x10]
addsd xmm6, qword [ebx + esi*8 + 0x10]
movsd qword [ebx + esi*8 + 0x10], xmm6
movaps xmm6, xmm7
mulsd xmm6, xmm1
movaps xmm1, xmm0
mulsd xmm1, xmm3
addsd xmm6, qword [ebx + 0x18]
addsd xmm6, xmm1
movaps xmm1, xmm7
mulsd xmm1, xmm4
movsd qword [ebx + 0x18], xmm6
movaps xmm6, xmm0
mulsd xmm6, xmm5
addsd xmm1, xmm6
movaps xmm6, xmm0
mulsd xmm6, qword [esp + 0x70]
mulsd xmm0, qword [esp + 0x68]
addsd xmm1, qword [ebx + edi*8 + 0x10]
movsd qword [ebx + edi*8 + 0x10], xmm1
movaps xmm1, xmm7
mulsd xmm1, xmm2
mulsd xmm7, qword [esp + 0x20]
addsd xmm1, xmm6
addsd xmm7, xmm0
addsd xmm1, qword [ebx + esi*8 + 0x18]
movsd qword [ebx + esi*8 + 0x18], xmm1
mov esi, dword [esp + 0xc]
movsd xmm6, qword [ecx + 0x20]
movsd xmm1, qword [eax + edx*8 + 0x18]
movaps xmm0, xmm1
addsd xmm7, qword [ebx + esi*8 + 0x18]
mulsd xmm0, xmm3
movsd qword [ebx + esi*8 + 0x18], xmm7
movaps xmm7, xmm6
mulsd xmm7, qword [esp + 0x18]
addsd xmm7, qword [ebx + 0x20]
addsd xmm7, xmm0
movaps xmm0, xmm1
mulsd xmm0, xmm5
movsd qword [ebx + 0x20], xmm7
movaps xmm7, xmm6
mulsd xmm7, xmm4
addsd xmm7, xmm0
movaps xmm0, xmm1
mulsd xmm0, qword [esp + 0x70]
addsd xmm7, qword [ebx + edi*8 + 0x18]
movsd qword [ebx + edi*8 + 0x18], xmm7
movaps xmm7, xmm6
mulsd xmm7, xmm2
mov edi, dword [esp + 8]
addsd xmm7, xmm0
movaps xmm0, xmm1
addsd xmm7, qword [ebx + edi*8 + 0x20]
mulsd xmm0, qword [esp + 0x68]
mulsd xmm1, qword [esp + 0x60]
movsd qword [ebx + edi*8 + 0x20], xmm7
movaps xmm7, xmm6
mulsd xmm7, qword [esp + 0x20]
mulsd xmm6, qword [esp + 0x58]
addsd xmm7, xmm0
addsd xmm6, xmm1
addsd xmm7, qword [ebx + esi*8 + 0x20]
movsd qword [ebx + esi*8 + 0x20], xmm7
mov esi, dword [esp + 0x10]
movsd xmm7, qword [eax + edx*8 + 0x20]
movaps xmm1, xmm7
mulsd xmm1, xmm3
addsd xmm6, qword [ebx + esi*8 + 0x20]
movsd qword [ebx + esi*8 + 0x20], xmm6
movsd xmm6, qword [ecx + 0x28]
movaps xmm0, xmm6
movaps xmm3, xmm6
mulsd xmm0, qword [esp + 0x18]
mulsd xmm3, xmm4
addsd xmm0, qword [ebx + 0x28]
movaps xmm4, xmm7
addsd xmm0, xmm1
mulsd xmm4, xmm5
movaps xmm5, xmm6
movaps xmm1, xmm6
mulsd xmm5, xmm2
movaps xmm2, xmm7
addsd xmm3, xmm4
mulsd xmm2, qword [esp + 0x70]
mulsd xmm1, qword [esp + 0x20]
addsd xmm5, xmm2
mov eax, dword [esp + 4]
movaps xmm2, xmm7
movsd qword [ebx + 0x28], xmm0
movaps xmm0, xmm7
mulsd xmm0, qword [esp + 0x68]
addsd xmm3, qword [ebx + eax*8 + 0x20]
mulsd xmm2, qword [esp + 0x60]
mulsd xmm7, qword [esp + 0x50]
addsd xmm1, xmm0
movsd qword [ebx + eax*8 + 0x20], xmm3
movaps xmm3, xmm6
mulsd xmm3, qword [esp + 0x58]
addsd xmm5, qword [ebx + edi*8 + 0x28]
mulsd xmm6, qword [esp + 0x48]
addsd xmm3, xmm2
addsd xmm6, xmm7
movsd qword [ebx + edi*8 + 0x28], xmm5
mov edi, dword [esp + 0xc]
mov edx, dword [ebp + 0x24]
movsd xmm0, qword [esp + 0x18]
addsd xmm1, qword [ebx + edi*8 + 0x28]
movsd qword [ebx + edi*8 + 0x28], xmm1
mov edi, dword [esp + 0x88]
inc edi
addsd xmm3, qword [ebx + esi*8 + 0x28]
movsd qword [ebx + esi*8 + 0x28], xmm3
add esi, eax
mov ecx, dword [edx]
cmp edi, ecx
mov dword [esp + 0x8c], ecx
mov edx, dword [esp]
addsd xmm6, qword [ebx + esi*8]
movsd qword [ebx + esi*8], xmm6
jg 0x522462
mov ebx, dword [esp + 0x14]
mov esi, dword [ebp + 0x10]
mov dword [esp + 0x10], 6
movsd qword [esp + 0x18], xmm0
lea edx, [ebx + edx*8]
mov dword [esp + 0x40], edx
lea edx, [eax + eax*2]
mov ebx, eax
lea ecx, [esi + eax*8]
mov dword [esp + 0x44], ecx
lea ecx, [esi + edx*8]
mov edx, eax
lea eax, [eax + eax*4]
shl ebx, 4
lea eax, [esi + eax*8]
shl edx, 5
add ebx, esi
add edx, esi
mov dword [esp + 4], ecx
mov dword [esp + 0xc], eax
mov dword [esp + 8], edx
mov dword [esp], ebx
mov dword [esp + 0x88], edi
mov ecx, dword [esp + 0x10]
mov esi, dword [ebp + 8]
mov edi, dword [esp + 0x88]
mov eax, dword [ebp + 0x18]
mov ebx, dword [esi + edi*8 - 8]
mov edx, dword [eax + ebx*4 - 4]
mov eax, dword [esi + edi*8 - 4]
sub edx, ecx
mov esi, dword [ebp + 0x14]
mov dword [esp + 0x98], edx
mov dword [esp + 0x90], eax
lea edx, [eax + ebx]
mov eax, dword [esi + edx*4]
sub eax, dword [esi + ebx*4 - 4]
lea ebx, [ecx + 1]
add eax, ecx
mov dword [esp + 0x94], eax
cmp eax, ecx
jle 0x522435
neg ebx
mov eax, 0x55555556
add ebx, dword [esp + 0x94]
inc ebx
imul ebx
mov esi, ebx
sar esi, 0x1f
sub edx, esi
mov dword [esp + 0xbc], edx
je 0x522471
mov edi, dword [esp + 0x14]
lea edx, [ecx*8 + 8]
mov dword [esp + 0xc4], ebx
xor esi, esi
mov dword [esp + 0x10], ecx
lea eax, [edi + edx]
mov edi, dword [esp + 0x40]
mov dword [esp + 0xa8], eax
lea eax, [edi + edx]
mov dword [esp + 0xa4], eax
mov edi, dword [ebp + 0x10]
mov eax, dword [esp + 0x98]
lea edi, [edi + eax*8]
add edi, edx
lea eax, [edx + eax*8]
mov edx, dword [esp + 0x44]
mov dword [esp + 0xac], edi
mov edi, dword [esp]
add edx, eax
mov dword [esp + 0xb0], edx
lea edx, [edi + eax]
mov edi, dword [esp + 4]
mov dword [esp + 0xb4], edx
lea edx, [edi + eax]
mov dword [esp + 0xb8], edx
mov edi, dword [esp + 8]
lea edx, [edi + eax]
add eax, dword [esp + 0xc]
mov dword [esp + 0x9c], eax
mov dword [esp + 0xa0], edx
mov edx, dword [esp + 0xa8]
lea eax, [esi + esi*2]
movsd xmm0, qword [esp + 0x18]
movaps xmm5, xmm0
movsd xmm6, qword [edx + eax*8 - 8]
mulsd xmm5, xmm6
mov ebx, dword [esp + 0xa4]
mov ecx, dword [esp + 0xac]
movsd xmm1, qword [esp + 0x80]
movsd xmm7, qword [ebx + eax*8 - 0x10]
movaps xmm2, xmm1
mulsd xmm2, xmm7
addsd xmm5, qword [ecx + eax*8 - 8]
mov edi, dword [esp + 0xb0]
addsd xmm5, xmm2
movsd qword [ecx + eax*8 - 8], xmm5
movsd xmm5, qword [esp + 0x30]
movaps xmm3, xmm5
mulsd xmm3, xmm6
movsd xmm2, qword [esp + 0x78]
movaps xmm4, xmm2
addsd xmm3, qword [edi + eax*8 - 0x10]
mulsd xmm4, xmm7
mov dword [esp + 0xc0], esi
addsd xmm3, xmm4
movsd qword [edi + eax*8 - 0x10], xmm3
movsd xmm3, qword [esp + 0x28]
mulsd xmm3, xmm6
mov esi, dword [esp + 0xb4]
movsd xmm4, qword [esp + 0x70]
mulsd xmm4, xmm7
addsd xmm3, qword [esi + eax*8 - 0x20]
addsd xmm3, xmm4
movsd xmm4, qword [esp + 0x20]
mulsd xmm4, xmm6
movsd qword [esi + eax*8 - 0x20], xmm3
mov esi, dword [esp + 0xb8]
movsd xmm3, qword [esp + 0x68]
mulsd xmm3, xmm7
addsd xmm4, qword [esi + eax*8 - 0x38]
addsd xmm4, xmm3
movsd xmm3, qword [esp + 0x58]
mulsd xmm3, xmm6
movsd qword [esi + eax*8 - 0x38], xmm4
mov esi, dword [esp + 0xa0]
movsd xmm4, qword [esp + 0x60]
mulsd xmm4, xmm7
addsd xmm3, qword [esi + eax*8 - 0x58]
addsd xmm3, xmm4
movsd xmm4, qword [esp + 0x50]
mulsd xmm7, xmm4
movsd qword [esi + eax*8 - 0x58], xmm3
movsd xmm3, qword [esp + 0x48]
mulsd xmm6, xmm3
mov esi, dword [esp + 0x9c]
addsd xmm6, qword [esi + eax*8 - 0x80]
addsd xmm6, xmm7
movsd xmm7, qword [edx + eax*8]
mulsd xmm0, xmm7
movsd qword [esi + eax*8 - 0x80], xmm6
movsd xmm6, qword [ebx + eax*8 - 8]
mulsd xmm1, xmm6
addsd xmm0, qword [ecx + eax*8]
addsd xmm0, xmm1
movaps xmm1, xmm5
mulsd xmm1, xmm7
movsd qword [ecx + eax*8], xmm0
movaps xmm0, xmm2
mulsd xmm0, xmm6
addsd xmm1, qword [edi + eax*8 - 8]
addsd xmm1, xmm0
mov esi, esi
movsd xmm0, qword [esp + 0x70]
mulsd xmm0, xmm6
movsd qword [edi + eax*8 - 8], xmm1
movsd xmm1, qword [esp + 0x28]
mulsd xmm1, xmm7
mov edi, dword [esp + 0xb4]
addsd xmm1, qword [edi + eax*8 - 0x18]
addsd xmm1, xmm0
movsd xmm0, qword [esp + 0x20]
mulsd xmm0, xmm7
movsd qword [edi + eax*8 - 0x18], xmm1
mov edi, dword [esp + 0xb8]
movsd xmm1, qword [esp + 0x68]
mulsd xmm1, xmm6
addsd xmm0, qword [edi + eax*8 - 0x30]
addsd xmm0, xmm1
movsd xmm1, qword [esp + 0x58]
mulsd xmm1, xmm7
mulsd xmm7, xmm3
movsd qword [edi + eax*8 - 0x30], xmm0
mov edi, dword [esp + 0xa0]
movsd xmm0, qword [esp + 0x60]
mulsd xmm0, xmm6
addsd xmm1, qword [edi + eax*8 - 0x50]
mulsd xmm6, xmm4
addsd xmm1, xmm0
movsd qword [edi + eax*8 - 0x50], xmm1
movsd xmm0, qword [edx + eax*8 + 8]
movsd xmm1, qword [esp + 0x18]
mulsd xmm1, xmm0
addsd xmm7, qword [esi + eax*8 - 0x78]
mulsd xmm5, xmm0
addsd xmm7, xmm6
movsd qword [esi + eax*8 - 0x78], xmm7
movsd xmm6, qword [ebx + eax*8]
movsd xmm7, qword [esp + 0x80]
mulsd xmm7, xmm6
addsd xmm1, qword [ecx + eax*8 + 8]
mulsd xmm2, xmm6
addsd xmm1, xmm7
mov edx, dword [esp + 0xb0]
movsd qword [ecx + eax*8 + 8], xmm1
movsd xmm1, qword [esp + 0x28]
mulsd xmm1, xmm0
addsd xmm5, qword [edx + eax*8]
mov ecx, dword [esp + 0xb4]
addsd xmm5, xmm2
movsd xmm2, qword [esp + 0x70]
movsd qword [edx + eax*8], xmm5
mulsd xmm2, xmm6
addsd xmm1, qword [ecx + eax*8 - 0x10]
movsd xmm5, qword [esp + 0x20]
addsd xmm1, xmm2
mulsd xmm5, xmm0
mov ebx, dword [esp + 0xb8]
movsd xmm7, qword [esp + 0x68]
movsd qword [ecx + eax*8 - 0x10], xmm1
mulsd xmm7, xmm6
lea esi, [esi]
addsd xmm5, qword [ebx + eax*8 - 0x28]
movsd xmm1, qword [esp + 0x58]
addsd xmm5, xmm7
mulsd xmm1, xmm0
mulsd xmm0, xmm3
movsd xmm2, qword [esp + 0x60]
movsd qword [ebx + eax*8 - 0x28], xmm5
mulsd xmm2, xmm6
addsd xmm1, qword [edi + eax*8 - 0x48]
mulsd xmm6, xmm4
addsd xmm1, xmm2
movsd qword [edi + eax*8 - 0x48], xmm1
addsd xmm0, qword [esi + eax*8 - 0x70]
addsd xmm0, xmm6
movsd qword [esi + eax*8 - 0x70], xmm0
mov esi, dword [esp + 0xc0]
inc esi
cmp esi, dword [esp + 0xbc]
jb 0x521f88
mov ebx, dword [esp + 0xc4]
lea edx, [esi + esi*2]
mov ecx, dword [esp + 0x10]
inc edx
dec edx
cmp edx, ebx
jae 0x522435
mov esi, dword [esp + 0x14]
lea ecx, [ecx*8 + 8]
mov edi, dword [esp + 0x40]
mov dword [esp + 0xc4], ebx
movsd xmm0, qword [esp + 0x20]
lea eax, [esi + ecx]
mov dword [esp + 0xd4], eax
lea esi, [edi + ecx]
mov eax, dword [ebp + 0x10]
mov edi, dword [esp + 0x98]
mov dword [esp + 0xd0], esi
movsd xmm3, qword [esp + 0x28]
movsd xmm4, qword [esp + 0x30]
lea esi, [eax + edi*8]
add esi, ecx
lea ecx, [ecx + edi*8]
mov edi, dword [esp]
mov eax, dword [esp + 0x44]
mov dword [esp + 0xcc], esi
movsd xmm5, qword [esp + 0x18]
add edi, ecx
mov dword [esp + 0x3c], edi
add eax, ecx
mov edi, dword [esp + 4]
add edi, ecx
mov dword [esp + 0x38], edi
mov edi, dword [esp + 8]
mov ebx, dword [esp + 0x38]
add edi, ecx
add ecx, dword [esp + 0xc]
mov dword [esp + 0xc8], ecx
mov esi, edi
mov ecx, dword [esp + 0x3c]
mov edi, dword [esp + 0xd4]
movaps xmm6, xmm5
movsd xmm7, qword [esp + 0x80]
movsd xmm2, qword [edi + edx*8 - 8]
mov edi, dword [esp + 0xd0]
mulsd xmm6, xmm2
movsd xmm1, qword [edi + edx*8 - 0x10]
mov edi, dword [esp + 0xcc]
mulsd xmm7, xmm1
addsd xmm6, qword [edi + edx*8 - 8]
addsd xmm6, xmm7
movaps xmm7, xmm4
mulsd xmm7, xmm2
movsd qword [edi + edx*8 - 8], xmm6
movsd xmm6, qword [esp + 0x78]
mulsd xmm6, xmm1
addsd xmm7, qword [eax + edx*8 - 0x10]
mov edi, dword [esp + 0xc8]
addsd xmm7, xmm6
movaps xmm6, xmm3
mulsd xmm6, xmm2
movsd qword [eax + edx*8 - 0x10], xmm7
movsd xmm7, qword [esp + 0x70]
mulsd xmm7, xmm1
addsd xmm6, qword [ecx + edx*8 - 0x20]
addsd xmm6, xmm7
movaps xmm7, xmm0
mulsd xmm7, xmm2
movsd qword [ecx + edx*8 - 0x20], xmm6
movsd xmm6, qword [esp + 0x68]
mulsd xmm6, xmm1
addsd xmm7, qword [ebx + edx*8 - 0x38]
addsd xmm7, xmm6
movsd xmm6, qword [esp + 0x58]
mulsd xmm6, xmm2
mulsd xmm2, qword [esp + 0x48]
movsd qword [ebx + edx*8 - 0x38], xmm7
movsd xmm7, qword [esp + 0x60]
mulsd xmm7, xmm1
addsd xmm6, qword [esi + edx*8 - 0x58]
mulsd xmm1, qword [esp + 0x50]
addsd xmm6, xmm7
movsd qword [esi + edx*8 - 0x58], xmm6
addsd xmm2, qword [edi + edx*8 - 0x80]
addsd xmm2, xmm1
movsd qword [edi + edx*8 - 0x80], xmm2
inc edx
cmp edx, dword [esp + 0xc4]
jb 0x522338
mov eax, dword [esp + 0x90]
mov ecx, dword [esp + 0x88]
lea edx, [ecx + eax + 1]
mov ecx, dword [esp + 0x94]
mov dword [esp + 0x88], edx
cmp edx, dword [esp + 0x8c]
jle 0x521e8f
add esp, 0xdc
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x28
mov edx, 1
jmp 0x5222a0