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

Disassembly:
sub esp, 0x58
movsd xmm2, qword [0x4d3690]
push ebp
push esi
mov esi, dword [esp + 0x6c]
movss xmm0, dword [esi]
cvtps2pd xmm0, xmm0
mulsd xmm0, xmm2
cvtpd2ps xmm0, xmm0
movss dword [esp + 0x38], xmm0
fld dword [esp + 0x38]
fistp dword [esp + 0x24]
movss xmm0, dword [esi + 0xc]
mov eax, dword [esp + 0x24]
cvtps2pd xmm0, xmm0
mulsd xmm0, xmm2
cvtpd2ps xmm0, xmm0
mov dword [esp + 0x44], eax
movss dword [esp + 0x38], xmm0
fld dword [esp + 0x38]
fistp dword [esp + 0x28]
mov ecx, dword [esp + 0x28]
mov ebp, dword [esp + 0x68]
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x4c], ecx
mov ecx, dword [esp + 0x70]
mov dword [esp + 0x38], edx
mov edx, dword [ecx + 0xc]
dec edx
cmp edx, dword [ecx + 4]
mov dword [esp + 0x14], eax
mov dword [esp + 0x20], edx
jl 0x48a164
push ebx
push edi
jmp 0x489f10
movsd xmm2, qword [0x4d3690]
mov ebp, dword [esp + 0x70]
mov edx, dword [esp + 0x28]
movsd xmm3, qword [0x4c88e8]
mov eax, dword [ecx]
movss xmm4, dword [esi + 0xc]
mov edi, dword [esp + 0x6c]
mov ebx, dword [edi + 4]
mov edi, dword [edi + 0x10]
imul ebx, edx
cvtps2pd xmm4, xmm4
cvtsi2sd xmm0, eax
addsd xmm0, xmm3
mulsd xmm4, xmm0
cvtsi2sd xmm1, edx
addsd xmm1, xmm3
movss xmm3, dword [esi + 0x10]
cvtps2pd xmm3, xmm3
mulsd xmm3, xmm1
addsd xmm3, xmm4
movss xmm4, dword [esi + 0x14]
cvtps2pd xmm4, xmm4
addsd xmm3, xmm4
movss xmm4, dword [esi + 4]
cvtps2pd xmm4, xmm4
mulsd xmm4, xmm1
movss xmm1, dword [esi]
cvtps2pd xmm1, xmm1
mulsd xmm1, xmm0
movss xmm0, dword [esi + 8]
cvtps2pd xmm0, xmm0
addsd xmm4, xmm1
addsd xmm4, xmm0
cvtpd2ps xmm0, xmm4
cvtss2sd xmm0, xmm0
add ebx, eax
mulsd xmm0, xmm2
cvtpd2ps xmm0, xmm0
lea ebx, [edi + ebx*4]
cvtpd2ps xmm3, xmm3
movss dword [esp + 0x44], xmm0
fld dword [esp + 0x44]
fistp dword [esp + 0x34]
mov edi, dword [esp + 0x34]
cvtss2sd xmm0, xmm3
mulsd xmm0, xmm2
cvtpd2ps xmm0, xmm0
add edi, 0xffff8001
movss dword [esp + 0x48], xmm0
fld dword [esp + 0x48]
fistp dword [esp + 0x38]
mov edx, dword [esp + 0x38]
mov eax, dword [ebp + 0x10]
add edx, 0xffff8001
mov dword [esp + 0x14], edx
mov edx, dword [ebp + 8]
mov ebp, dword [ecx + 8]
sub ebp, dword [ecx]
sub ebx, 4
mov dword [esp + 0x3c], eax
mov dword [esp + 0x18], edx
call fcn.00472bc0
test ebp, ebp
je 0x48a14a
jmp 0x48a008
mov edi, dword [esp + 0x50]
mov esi, dword [esp + 0x14]
mov eax, edi
mov edx, edi
add edi, dword [esp + 0x4c]
dec ebp
mov dword [esp + 0x50], edi
mov edi, dword [esp + 0x54]
add dword [esp + 0x14], edi
mov ecx, esi
mov dword [esp + 0x64], ebp
mov ebp, dword [esp + 0x40]
sar edx, 8
sar esi, 8
sar eax, 0x10
lea edi, [ebp - 1]
add ebx, 4
sar ecx, 0x10
and edx, 0xff
and esi, 0xff
cmp eax, edi
jae 0x48a07c
mov edi, dword [esp + 0x1c]
dec edi
cmp ecx, edi
jae 0x48a07c
push esi
push edx
mov edx, dword [esp + 0x20]
imul ecx, edx
add ecx, eax
mov eax, dword [esp + 0x44]
lea esi, [edx*4]
push esi
lea ecx, [eax + ecx*4]
push ecx
push ebx
call fcn.00489010
jmp 0x48a137
lea edi, [eax + 1]
mov dword [esp + 0x58], edi
cmp edi, ebp
ja 0x48a13a
lea edi, [ecx + 1]
mov dword [esp + 0x60], edi
cmp edi, dword [esp + 0x1c]
ja 0x48a13a
mov ebp, dword [esp + 0x3c]
mov edi, ecx
imul edi, dword [esp + 0x18]
add edi, eax
lea edi, [ebp + edi*4]
mov ebp, dword [esp + 0x18]
lea ebp, [edi + ebp*4]
mov dword [esp + 0x20], ebp
lea ebp, [edi + 4]
mov dword [esp + 0x24], ebp
mov ebp, dword [esp + 0x20]
add ebp, 4
mov dword [esp + 0x5c], ebp
mov ebp, dword [esp + 0x40]
dec ebp
mov dword [esp + 0x10], 0
cmp eax, ebp
jbe 0x48a0e5
lea edi, [esp + 0x10]
mov eax, edi
mov dword [esp + 0x20], eax
cmp dword [esp + 0x58], ebp
jbe 0x48a0f7
lea eax, [esp + 0x10]
mov dword [esp + 0x24], eax
mov ebp, eax
jmp 0x48a0fb
mov ebp, dword [esp + 0x5c]
mov eax, dword [esp + 0x1c]
dec eax
cmp ecx, eax
jbe 0x48a10e
lea edi, [esp + 0x10]
mov ecx, edi
mov dword [esp + 0x24], ecx
cmp dword [esp + 0x60], eax
jbe 0x48a11c
lea eax, [esp + 0x10]
mov ebp, eax
jmp 0x48a120
mov eax, dword [esp + 0x20]
mov ecx, dword [ebp]
push esi
push edx
mov edx, dword [eax]
mov eax, dword [edi]
push edx
mov edx, dword [esp + 0x30]
push eax
mov eax, dword [edx]
push ebx
call fcn.00488e50
add esp, 0x14
mov ebp, dword [esp + 0x64]
test ebp, ebp
jne 0x48a004
mov esi, dword [esp + 0x74]
emms
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x78]
dec eax
cmp eax, dword [ecx + 4]
mov dword [esp + 0x28], eax
jge 0x489f00
pop edi
pop ebx
pop esi
xor eax, eax
pop ebp
add esp, 0x58
ret 0x10