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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
push edi
push esi
push ebx
sub esp, 0x74
mov edi, dword [ebp + 8]
mov eax, dword [ebp + 0x34]
mov edx, dword [ebp + 0x38]
mov edi, dword [edi]
movsd xmm2, qword [edx]
mov ecx, dword [ebp + 0x3c]
mov ebx, dword [ebp + 0x40]
mov edx, dword [ebp + 0x14]
movsd xmm0, qword [ebx]
movsd xmm1, qword [ecx]
movsd xmm3, qword [eax]
mov eax, dword [ebp + 0x2c]
mov ecx, dword [ebp + 0x10]
movsd xmm4, qword [eax]
mov eax, dword [edx]
mov ebx, dword [ecx]
movsd qword [esp + 0x58], xmm0
movsd qword [esp + 0x40], xmm1
movsd qword [esp + 0x50], xmm2
movsd qword [esp + 0x18], xmm3
movsd qword [esp + 0x48], xmm4
cmp eax, ebx
jge 0x5b186a
mov dword [esp + 0x28], 0
mov dword [esp + 0x20], eax
dec ebx
mov dword [esp + 0x24], ebx
lea ecx, [esp + 0x24]
lea edx, [esp + 0x2c]
mov eax, 1
mov dword [esp + 0x2c], eax
push eax
push eax
push edx
push ecx
lea eax, [esp + 0x30]
push eax
lea edx, [esp + 0x3c]
push edx
push 0x22
push edi
push 0xb90d6c
call fcn.00610460
add esp, 0x24
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
cmp eax, ebx
jg 0x5b185c
movsd xmm1, qword [esp + 0x18]
mov dword [esp + 0x10], edi
cmp ebx, edx
cmovl edx, ebx
mov dword [esp + 0x30], edx
pxor xmm0, xmm0
mov esi, dword [ebp + 0x18]
mov ebx, dword [ebp + 0x1c]
mov ecx, dword [esi]
mov edx, dword [ecx]
mov edi, dword [ecx + 8]
mov ebx, dword [ebx]
mov ecx, dword [ebx]
mov esi, dword [ecx + 4]
mov dword [esp + 0x34], edx
mov dword [esp + 0x6c], edi
mov edi, dword [ecx + 0x10]
imul edi, eax
mov ecx, dword [ebx + 4]
mov ebx, dword [ecx + 4]
shl edx, 4
add esi, edx
add esi, edi
mov edi, dword [ecx + 0x10]
imul edi, eax
add ebx, edx
add ebx, edi
mov ecx, dword [ebp + 0x20]
mov edi, dword [ecx]
test edi, edi
je 0x5b1758
mov ecx, edi
add edx, dword [ecx + 4]
mov edi, eax
imul edi, dword [ecx + 0x10]
add edx, edi
jmp 0x5b175a
mov edx, esi
mov ecx, dword [esp + 0x34]
cmp ecx, dword [esp + 0x6c]
jge 0x5b184d
mov edi, ecx
cvtsi2sd xmm0, eax
mov dword [esp + 0x68], edx
subsd xmm0, xmm1
mulsd xmm0, xmm0
movsd qword [esp + 0x60], xmm0
mov dword [esp + 0x14], eax
cvtsi2sd xmm0, edi
subsd xmm0, qword [esp + 0x48]
mulsd xmm0, qword [esp + 0x50]
mulsd xmm0, xmm0
pxor xmm2, xmm2
addsd xmm0, qword [esp + 0x60]
movsd qword [esp + 8], xmm2
sqrtsd xmm1, xmm0
subsd xmm1, qword [esp + 0x40]
mulsd xmm1, qword [esp + 0x58]
movsd qword [esp], xmm1
call fcn.00613b70
movsd xmm0, qword [0xb21af8]
fstp qword [esp]
movsd qword [esp + 8], xmm0
call fcn.00613ba0
fstp qword [esp + 0x38]
movsd xmm1, qword [esp + 0x38]
movsd xmm0, qword [0xb21af8]
subsd xmm0, xmm1
addsd xmm1, xmm1
call fcn.00611fc0
movsd xmm1, qword [0xb21af8]
mov ecx, dword [ebp + 0x28]
add esp, 0xfffffff0
mov eax, dword [esp + 0x78]
subsd xmm1, xmm0
cvtsd2ss xmm2, xmm1
movss dword [esp + 0xc], xmm2
mov dword [esp], esi
mov dword [esp + 4], ebx
mov dword [esp + 8], eax
call fcn.005a4ea0
mov eax, dword [esp + 0x68]
add esi, 0x10
add ebx, 0x10
add eax, 0x10
inc edi
cmp edi, dword [esp + 0x6c]
mov dword [esp + 0x68], eax
jl 0x5b1784
movsd xmm1, qword [esp + 0x18]
mov eax, dword [esp + 0x14]
inc eax
cmp eax, dword [esp + 0x30]
jle 0x5b1707
mov edi, dword [esp + 0x10]
push edi
push 0xb90d6c
call fcn.00610958
add esp, 8
add esp, 0x74
pop ebx
pop esi
pop edi
mov esp, ebp
pop ebp
ret