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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5f3930
mov eax, dword fs:[0]
push eax
sub esp, 0x64
push ebx
push ebp
push esi
push edi
mov eax, dword [0x615cbc]
xor eax, esp
push eax
lea eax, [esp + 0x78]
mov dword fs:[0], eax
mov esi, ecx
mov ecx, dword [esi + 0x94]
cmp ecx, 3
jl 0x507469
mov eax, dword [esi + 0x98]
shr eax, 2
test al, 1
jne 0x507469
mov eax, dword [esi + 0x90]
lea edx, [ecx + ecx - 1]
cmp eax, edx
jl 0x507469
sub eax, ecx
xor ebx, ebx
mov ebp, 1
push eax
lea ecx, [esp + 0x54]
mov dword [esp + 0x58], ebp
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x54], ebx
call fcn.004587b0
mov eax, dword [esi + 0x94]
add eax, ebp
cmp eax, dword [esi + 0x90]
mov dword [esp + 0x80], ebx
mov ecx, ebp
jge 0x5073f1
mov edx, dword [esp + 0x50]
movsd xmm0, qword [0x5fa918]
mov edi, dword [esi + 0xb4]
movsd xmm1, qword [edi + eax*8]
subsd xmm1, qword [edi + eax*8 - 8]
comisd xmm1, xmm0
lea edi, [edi + eax*8]
jbe 0x5073e7
mov dword [edx], ecx
inc ebp
add edx, 4
xor ecx, ecx
inc eax
inc ecx
cmp eax, dword [esi + 0x90]
jl 0x5073c5
mov edx, dword [esp + 0x50]
xor eax, eax
cmp ebp, ebx
mov dword [edx + ebp*4 - 4], ecx
jle 0x507410
mov ecx, dword [esi + 0x94]
dec ecx
cmp dword [edx + eax*4], ecx
jl 0x50745b
inc eax
cmp eax, ebp
jl 0x507406
mov eax, dword [esi + 0x90]
mov edi, 1
push eax
lea ecx, [esp + 0x48]
mov dword [esp + 0x4c], edi
mov dword [esp + 0x50], ebx
mov dword [esp + 0x48], ebx
call fcn.00412880
xorps xmm0, xmm0
mov ecx, dword [esp + 0x44]
movsd qword [ecx], xmm0
cmp dword [esi + 0x90], edi
mov byte [esp + 0x80], 1
movsd qword [esp + 0x34], xmm0
jle 0x5074f3
lea ebx, [edi + 0x17]
jmp 0x507483
cmp edx, ebx
je 0x507469
push edx
call dword [sym.imp.MSVCR90.dll_free]
add esp, 4
xor al, al
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
xorps xmm0, xmm0
mov eax, dword [esi + 0x9c]
add eax, ebx
movsd qword [esp + 0x6c], xmm0
movsd qword [esp + 0x64], xmm0
movsd qword [esp + 0x5c], xmm0
movsd xmm0, qword [eax]
subsd xmm0, qword [eax - 0x18]
movsd qword [esp + 0x5c], xmm0
movsd xmm0, qword [eax + 8]
subsd xmm0, qword [eax - 0x10]
movsd qword [esp + 0x64], xmm0
movsd xmm0, qword [eax + 0x10]
subsd xmm0, qword [eax - 8]
lea ecx, [esp + 0x5c]
movsd qword [esp + 0x6c], xmm0
call fcn.004a88b0
fadd qword [esp + 0x34]
mov ecx, dword [esp + 0x44]
inc edi
fst qword [esp + 0x34]
add ebx, 0x18
fstp qword [ecx + edi*8 - 8]
cmp edi, dword [esi + 0x90]
jl 0x507480
xor ebx, ebx
mov edx, dword [esi + 0x90]
mov eax, dword [esi + 0xb4]
mov edi, dword [esi + 0x94]
movsd xmm1, qword [eax]
add edi, edx
movsd xmm0, qword [eax + edi*8 - 8]
xor eax, eax
cmp edx, ebx
subsd xmm0, xmm1
divsd xmm0, qword [esp + 0x34]
jle 0x50753c
movsd xmm2, qword [ecx + eax*8]
mulsd xmm2, xmm0
addsd xmm2, xmm1
movsd qword [ecx + eax*8], xmm2
inc eax
cmp eax, dword [esi + 0x90]
jl 0x507521
mov edx, dword [esi + 0x94]
add edx, dword [esi + 0x90]
lea ecx, [esp + 0x34]
push edx
mov dword [esp + 0x3c], 1
mov dword [esp + 0x40], ebx
mov dword [esp + 0x38], ebx
call fcn.00412880
mov ecx, dword [esi + 0x94]
add ecx, dword [esi + 0x90]
mov edi, dword [esp + 0x34]
xor eax, eax
test ecx, ecx
jle 0x50759e
jmp 0x507580
mov edx, dword [esi + 0xb4]
fld qword [edx + eax*8]
inc eax
fstp qword [edi + eax*8 - 8]
mov ecx, dword [esi + 0x94]
add ecx, dword [esi + 0x90]
cmp eax, ecx
jl 0x507580
mov edx, dword [esi + 0x94]
lea eax, [edx - 1]
mov ebx, eax
mov dword [esp + 0x20], edx
mov dword [esp + 0x2c], ebx
test ebp, ebp
jle 0x507780
mov ecx, dword [esp + 0x50]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x30], ebp
mov ecx, dword [esp + 0x18]
mov ebp, dword [esi + 0x94]
mov ecx, dword [ecx]
dec ebp
cmp ecx, ebp
jl 0x507764
add ecx, edx
cmp edx, ecx
mov dword [esp + 0x28], edx
jge 0x50760b
mov ecx, dword [esp + 0x44]
fld qword [ecx + ebx*8]
mov ecx, dword [esp + 0x28]
mov ebp, dword [esi + 0xb4]
fstp qword [ebp + ecx*8]
mov ebp, dword [esp + 0x18]
mov ebp, dword [ebp]
inc ecx
add ebp, edx
cmp ecx, ebp
mov dword [esp + 0x28], ecx
jl 0x5075e4
lea ebx, [eax + 1]
cmp ebx, edx
jge 0x507753
mov ecx, dword [esi + 0xb4]
movsd xmm0, qword [ecx + edx*8]
subsd xmm0, qword [ecx + eax*8]
movsd xmm1, qword [edi + edx*8]
subsd xmm1, qword [edi + eax*8]
mov ecx, edx
sub ecx, ebx
cmp ecx, 4
divsd xmm0, xmm1
jl 0x507721
sub edx, ebx
mov ebp, 8
sub ebp, edi
lea ecx, [ebx*8 + 0x10]
mov dword [esp + 0x28], ebp
sub edx, 4
mov ebp, 0xfffffff0
mov dword [esp + 0x1c], ecx
sub ebp, edi
shr edx, 2
add ecx, edi
inc edx
lea ebx, [ebx + edx*4]
mov dword [esp + 0x24], ebp
mov dword [esp + 0x34], ebx
jmp 0x507684
mov ebp, dword [esp + 0x24]
movsd xmm1, qword [ecx - 0x10]
subsd xmm1, qword [edi + eax*8]
mov ebx, dword [esi + 0xb4]
mulsd xmm1, xmm0
addsd xmm1, qword [ebx + eax*8]
add ebp, ecx
movsd qword [ebx + ebp], xmm1
movsd xmm1, qword [ecx - 8]
subsd xmm1, qword [edi + eax*8]
mov ebx, dword [esi + 0xb4]
mulsd xmm1, xmm0
addsd xmm1, qword [ebx + eax*8]
movsd qword [ebx + ebp + 8], xmm1
movsd xmm1, qword [ecx]
subsd xmm1, qword [edi + eax*8]
mov ebx, dword [esi + 0xb4]
mov ebp, dword [esp + 0x1c]
add dword [esp + 0x1c], 0x20
mulsd xmm1, xmm0
addsd xmm1, qword [ebx + eax*8]
movsd qword [ebx + ebp], xmm1
movsd xmm1, qword [ecx + 8]
mov ebx, dword [esi + 0xb4]
subsd xmm1, qword [edi + eax*8]
mov ebp, dword [esp + 0x28]
mulsd xmm1, xmm0
addsd xmm1, qword [ebx + eax*8]
add ebx, ebp
movsd qword [ebx + ecx], xmm1
add ecx, 0x20
sub edx, 1
jne 0x507680
mov ebx, dword [esp + 0x34]
mov edx, dword [esp + 0x20]
cmp ebx, edx
jge 0x507753
jmp 0x507730
movsd xmm1, qword [edi + ebx*8]
subsd xmm1, qword [edi + eax*8]
mov ecx, dword [esi + 0xb4]
mulsd xmm1, xmm0
addsd xmm1, qword [ecx + eax*8]
movsd qword [ecx + ebx*8], xmm1
inc ebx
cmp ebx, edx
jl 0x507730
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
mov ebx, dword [esp + 0x2c]
add edx, ecx
lea eax, [edx - 1]
jmp 0x507766
add edx, ecx
add dword [esp + 0x18], 4
add ebx, ecx
sub dword [esp + 0x30], 1
mov dword [esp + 0x20], edx
mov dword [esp + 0x2c], ebx
jne 0x5075c5
lea ebx, [eax + 1]
cmp ebx, edx
jge 0x5078c3
mov ecx, dword [esi + 0xb4]
movsd xmm0, qword [ecx + edx*8]
subsd xmm0, qword [ecx + eax*8]
movsd xmm1, qword [edi + edx*8]
subsd xmm1, qword [edi + eax*8]
mov ecx, edx
sub ecx, ebx
cmp ecx, 4
divsd xmm0, xmm1
jl 0x50788f
mov ebp, 8
sub ebp, edi
mov dword [esp + 0x28], ebp
mov ebp, 0xfffffff0
sub ebp, edi
mov dword [esp + 0x24], ebp
mov ebp, edx
sub ebp, ebx
lea ecx, [ebx*8 + 0x10]
sub ebp, 4
mov dword [esp + 0x20], ecx
shr ebp, 2
add ecx, edi
inc ebp
lea ebx, [ebx + ebp*4]
mov dword [esp + 0x30], ebp
mov dword [esp + 0x34], ebx
nop
movsd xmm1, qword [ecx - 0x10]
subsd xmm1, qword [edi + eax*8]
mov ebx, dword [esi + 0xb4]
mov ebp, dword [esp + 0x24]
mulsd xmm1, xmm0
addsd xmm1, qword [ebx + eax*8]
add ebp, ecx
movsd qword [ebx + ebp], xmm1
movsd xmm1, qword [ecx - 8]
subsd xmm1, qword [edi + eax*8]
mov ebx, dword [esi + 0xb4]
mulsd xmm1, xmm0
addsd xmm1, qword [ebx + eax*8]
movsd qword [ebx + ebp + 8], xmm1
movsd xmm1, qword [ecx]
subsd xmm1, qword [edi + eax*8]
mov ebx, dword [esi + 0xb4]
mov ebp, dword [esp + 0x20]
add dword [esp + 0x20], 0x20
mulsd xmm1, xmm0
addsd xmm1, qword [ebx + eax*8]
movsd qword [ebx + ebp], xmm1
movsd xmm1, qword [ecx + 8]
mov ebx, dword [esi + 0xb4]
subsd xmm1, qword [edi + eax*8]
mov ebp, dword [esp + 0x28]
mulsd xmm1, xmm0
addsd xmm1, qword [ebx + eax*8]
add ebx, ebp
movsd qword [ebx + ecx], xmm1
add ecx, 0x20
sub dword [esp + 0x30], 1
jne 0x5077f0
mov ebx, dword [esp + 0x34]
cmp ebx, edx
jge 0x5078c3
jmp 0x5078a0
movsd xmm1, qword [edi + ebx*8]
subsd xmm1, qword [edi + eax*8]
mov ecx, dword [esi + 0xb4]
mulsd xmm1, xmm0
addsd xmm1, qword [ecx + eax*8]
movsd qword [ecx + ebx*8], xmm1
inc ebx
cmp ebx, edx
jl 0x5078a0
mov edx, dword [esi + 0xbc]
mov eax, dword [esi + 0x94]
cmp edx, eax
jl 0x5078e1
mov ecx, dword [esi + 0xb4]
movsd xmm0, qword [ecx + eax*8 - 8]
jmp 0x5078e4
xorps xmm0, xmm0
mov ecx, dword [esi + 0x90]
add eax, ecx
cmp edx, eax
movsd qword [esi + 0x10], xmm0
jl 0x50791e
mov edx, dword [esi + 0x98]
shr edx, 2
test dl, 1
je 0x507911
mov ecx, dword [esi + 0xb4]
movsd xmm0, qword [ecx + eax*8 - 8]
jmp 0x507926
mov edx, dword [esi + 0xb4]
movsd xmm0, qword [edx + ecx*8]
jmp 0x507926
movsd xmm0, qword [0x5fb270]
mov ecx, esi
movsd qword [esi + 0x18], xmm0
call fcn.004ff230
mov eax, dword [esi + 0xc0]
mov ebx, dword [sym.imp.MSVCR90.dll_free]
xor ebp, ebp
cmp eax, ebp
je 0x50794a
push eax
call ebx
add esp, 4
mov dword [esi + 0xc0], ebp
mov dword [esi + 0xc8], ebp
mov eax, dword [esi + 0xcc]
cmp eax, ebp
je 0x507966
push eax
call ebx
add esp, 4
mov dword [esi + 0xcc], ebp
mov dword [esi + 0xd4], ebp
mov dword [esi + 0xd8], ebp
cmp edi, ebp
je 0x507982
push edi
call ebx
add esp, 4
mov eax, dword [esp + 0x44]
push eax
call ebx
mov eax, dword [esp + 0x54]
add esp, 4
cmp eax, ebp
je 0x50799a
push eax
call ebx
add esp, 4
mov al, 1
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret