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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
sub esp, 0xc0
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x18], edi
mov dword [esp + 0x14], esi
mov edi, dword [ebp + 8]
mov eax, dword [ebp + 0x18]
mov edx, dword [ebp + 0x2c]
mov esi, dword [ebp + 0x38]
mov ecx, dword [ebp + 0x44]
mov edi, dword [edi]
movzx ecx, byte [ecx]
mov ebx, dword [ebp + 0x48]
mov ebx, dword [ebx]
movsd xmm2, qword [esi]
mov esi, dword [ebp + 0x34]
movsd xmm3, qword [esi]
movsd qword [esp + 0x68], xmm2
movsd qword [esp + 0x60], xmm3
mov dword [esp + 0x40], eax
mov eax, dword [ebp + 0x3c]
movsd xmm1, qword [eax]
mov eax, dword [ebp + 0x1c]
mov esi, dword [eax]
movsd qword [esp + 0x70], xmm1
mov dword [esp + 0x88], edx
mov edx, dword [ebp + 0x40]
movsd xmm0, qword [edx]
mov edx, dword [ebp + 0x14]
mov eax, dword [edx]
movsd qword [esp + 0x58], xmm0
mov dword [esp + 0x24], ebx
mov dword [esp + 0x8c], ecx
mov ecx, dword [ebp + 0x10]
mov ebx, dword [ecx]
cmp eax, ebx
jge 0x5a6d2a
mov dword [esp + 0x30], 0
mov dword [esp + 0x28], eax
dec ebx
mov dword [esp + 0x2c], ebx
lea ecx, [esp + 0x2c]
lea edx, [esp + 0x34]
mov eax, 1
mov dword [esp + 0x34], eax
push eax
push eax
push edx
push ecx
lea eax, [esp + 0x38]
push eax
lea edx, [esp + 0x44]
push edx
push 0x22
push edi
push 0xb8f33c
call fcn.00610460
add esp, 0x24
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x2c]
cmp eax, ebx
jg 0x5a6d1c
movsd xmm0, qword [0xb21a48]
mov dword [esp + 0x38], esi
cmp ebx, edx
cmovl edx, ebx
mov dword [esp + 0x10], edi
mov dword [esp + 0x3c], edx
pxor xmm1, xmm1
mov esi, dword [esp + 0x40]
mov ebx, dword [esp + 0x38]
mov edx, dword [esi]
mov esi, dword [edx]
mov edx, dword [edx + 8]
mov ecx, dword [ebx + 4]
mov ebx, esi
shl ebx, 4
add ebx, dword [ecx + 4]
mov edi, eax
imul edi, dword [ecx + 0x10]
add ebx, edi
cmp esi, edx
jge 0x5a6d0d
mov edi, dword [esp + 0x24]
cvtsi2sd xmm0, eax
movsd qword [esp + 0x48], xmm0
mov dword [esp + 0x44], edx
mov dword [esp + 0x20], eax
cvtsi2sd xmm2, esi
mov eax, dword [esp + 0x88]
movsd xmm4, qword [eax + 0x20]
movsd xmm0, qword [eax]
mulsd xmm0, xmm2
movsd xmm1, qword [esp + 0x48]
mulsd xmm4, xmm1
addsd xmm4, qword [eax + 0x60]
movsd xmm3, qword [eax + 8]
mulsd xmm3, xmm2
addsd xmm4, xmm0
andps xmm4, xmmword [0xb21790]
subsd xmm4, qword [esp + 0x60]
movsd xmm0, qword [eax + 0x28]
movsd qword [esp], xmm4
mulsd xmm0, xmm1
addsd xmm0, qword [eax + 0x68]
addsd xmm0, xmm3
pxor xmm5, xmm5
andps xmm0, xmmword [0xb21790]
subsd xmm0, qword [esp + 0x68]
movsd qword [esp + 0x78], xmm0
movsd qword [esp + 8], xmm5
call fcn.00613b70
movsd xmm0, qword [esp + 0x78]
fstp qword [esp + 0x50]
movsd qword [esp], xmm0
pxor xmm0, xmm0
movsd qword [esp + 8], xmm0
call fcn.00613b70
fstp qword [esp + 0x80]
movsd xmm1, qword [esp + 0x80]
mulsd xmm1, qword [esp + 0x58]
mulsd xmm1, xmm1
movsd xmm0, qword [esp + 0x50]
mulsd xmm0, qword [esp + 0x70]
mulsd xmm0, xmm0
addsd xmm0, xmm1
sqrtsd xmm1, xmm0
movsd qword [esp], xmm1
pxor xmm2, xmm2
movsd qword [esp + 8], xmm2
call fcn.00613b70
movsd xmm0, qword [0xb21a48]
fstp qword [esp]
movsd qword [esp + 8], xmm0
call fcn.00613ba0
fstp qword [esp + 0x80]
movsd xmm2, qword [esp + 0x80]
cmp dword [esp + 0x8c], 0
movsd xmm0, qword [0xb21a48]
movaps xmm1, xmm0
subsd xmm1, xmm2
jne 0x5a6cb7
movaps xmm1, xmm2
subsd xmm0, xmm1
addsd xmm1, xmm1
call fcn.00611fc0
test edi, edi
je 0x5a6d3a
cmp edi, 1
je 0x5a6ced
cmp edi, 2
jne 0x5a6cdd
cvtsd2ss xmm0, xmm0
movss dword [ebx + 8], xmm0
jmp 0x5a6cf6
cmp edi, 3
jne 0x5a6cf6
cvtsd2ss xmm0, xmm0
movss dword [ebx + 0xc], xmm0
jmp 0x5a6cf6
cvtsd2ss xmm0, xmm0
movss dword [ebx + 4], xmm0
add ebx, 0x10
inc esi
cmp esi, dword [esp + 0x44]
jl 0x5a6b97
nop
lea esi, [esi]
mov eax, dword [esp + 0x20]
inc eax
cmp eax, dword [esp + 0x3c]
jle 0x5a6b57
mov edi, dword [esp + 0x10]
push edi
push 0xb8f33c
call fcn.00610958
add esp, 8
mov ebx, dword [esp + 0x1c]
mov esi, dword [esp + 0x14]
mov edi, dword [esp + 0x18]
mov esp, ebp
pop ebp
ret
cvtsd2ss xmm0, xmm0
movss dword [ebx], xmm0
jmp 0x5a6cf6