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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5f71f6
mov eax, dword fs:[0]
push eax
sub esp, 0x68
push ebx
push esi
push edi
mov eax, dword [0x615cbc]
xor eax, esp
push eax
lea eax, [esp + 0x78]
mov dword fs:[0], eax
mov dword [esp + 0x1c], ecx
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
shr eax, 2
and al, 1
mov byte [esp + 0x18], al
cmp edi, 2
je 0x598fa9
cmp ebx, 0x32
jg 0x598fa9
xorps xmm0, xmm0
mov esi, 1
cmp ebx, esi
jle 0x598aa5
mov edi, 0x10
mov ecx, dword [ebp + 0x1c]
mov edx, dword [ecx]
lea eax, [edx + edi]
movsd qword [esp + 0x4c], xmm0
movsd qword [esp + 0x44], xmm0
movsd xmm0, qword [eax]
subsd xmm0, qword [eax - 0x10]
movsd qword [esp + 0x44], xmm0
movsd xmm0, qword [eax + 8]
subsd xmm0, qword [eax - 8]
lea ecx, [esp + 0x44]
movsd qword [esp + 0x4c], xmm0
call fcn.004a7500
fld qword [0x5ff758]
fcompi st(1)
fstp st(0)
ja 0x598bb5
xorps xmm0, xmm0
inc esi
add edi, 0x10
cmp esi, ebx
jl 0x598a47
mov edi, dword [ebp + 0xc]
mov al, byte [esp + 0x18]
test al, al
je 0x598afc
mov eax, dword [ebp + 0x1c]
mov eax, dword [eax]
movsd qword [esp + 0x5c], xmm0
movsd qword [esp + 0x54], xmm0
movsd xmm0, qword [eax]
mov ecx, ebx
shl ecx, 4
subsd xmm0, qword [ecx + eax - 0x10]
lea ecx, [ecx + eax - 0x10]
movsd qword [esp + 0x54], xmm0
movsd xmm0, qword [eax + 8]
subsd xmm0, qword [ecx + 8]
lea ecx, [esp + 0x54]
movsd qword [esp + 0x5c], xmm0
call fcn.004a7500
fld qword [0x5ff758]
fcompi st(1)
fstp st(0)
ja 0x598bb5
mov edx, dword [ebp + 0x10]
mov eax, dword [edx]
mov esi, dword [ebp + 0x14]
shr eax, 3
and al, 1
cmp byte [ebp + 0x24], 0
mov byte [esp + 0x34], al
push 0xa0
je 0x598b5b
call sub.MSVCR90.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [esp + 0x34], eax
mov dword [esp + 0x80], 0
test eax, eax
je 0x598b51
mov ecx, dword [ebp + 0x20]
mov edx, dword [ebp + 0x1c]
push ecx
mov ecx, dword [esp + 0x1c]
push edx
push ecx
push edi
push ebx
mov ecx, eax
call fcn.004d1260
mov ecx, eax
mov dword [esp + 0x20], ecx
jmp 0x598b9c
xor eax, eax
mov ecx, eax
mov dword [esp + 0x20], ecx
jmp 0x598b9c
call sub.MSVCR90.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [esp + 0x2c], eax
mov dword [esp + 0x80], 1
test eax, eax
je 0x598b94
mov edx, dword [ebp + 0x20]
mov ecx, dword [ebp + 0x1c]
push esi
push edx
mov edx, dword [esp + 0x3c]
push ecx
mov ecx, dword [esp + 0x24]
push edx
push ecx
push edi
push ebx
mov ecx, eax
call fcn.004d13c0
jmp 0x598b96
xor eax, eax
mov ecx, eax
mov dword [esp + 0x20], eax
cmp byte [ecx + 4], 0
mov dword [esp + 0x80], 0xffffffff
jne 0x598bcc
mov edx, dword [ecx]
mov eax, dword [edx]
push 1
call eax
xor al, al
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x20
mov eax, dword [ecx + 0x4c]
cmp dword [ecx + 0x74], eax
jl 0x598bdf
mov edx, dword [ecx + 0x6c]
movsd xmm0, qword [edx + eax*8 - 8]
jmp 0x598be2
xorps xmm0, xmm0
movsd qword [esp + 0x34], xmm0
call fcn.00472d50
fst qword [esp + 0x3c]
cmp byte [ebp + 0x24], 0
fsub qword [esp + 0x34]
fstp qword [esp + 0x2c]
movsd xmm0, qword [esp + 0x2c]
je 0x598c8d
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
push eax
call fcn.004cc430
add edi, ebx
cmp dword [esi + 8], edi
jge 0x598c26
push edi
mov ecx, esi
call fcn.00412880
movsd xmm0, qword [esp + 0x2c]
movsd xmm1, qword [esp + 0x34]
mov edx, dword [esp + 0x1c]
xor eax, eax
test edi, edi
jle 0x598c5b
lea esp, [esp]
mov ecx, dword [edx + 0x6c]
lea ecx, [ecx + eax*8]
movapd xmm2, xmm0
mulsd xmm2, qword [ecx]
inc eax
cmp eax, edi
addsd xmm2, xmm1
movsd qword [ecx], xmm2
jl 0x598c40
mov ecx, dword [edx + 0x6c]
movsd qword [edx + 0x10], xmm1
movsd xmm1, qword [esp + 0x3c]
lea eax, [edi*8]
push eax
movsd qword [edx + 0x18], xmm1
movsd qword [edx + 0x20], xmm0
mov edx, dword [esi]
push ecx
push edx
call sub.MSVCR90.dll_memcpy
movsd xmm0, qword [esp + 0x38]
add esp, 0xc
cmp byte [esp + 0x18], 0
mov edi, dword [ebp + 0x18]
jne 0x598cbf
mov eax, dword [edi]
movsd xmm1, qword [esp + 0x34]
movsd qword [eax], xmm1
mov ecx, dword [edi]
movsd xmm1, qword [esp + 0x3c]
lea edx, [ebx - 1]
movsd qword [ecx + ebx*8 - 8], xmm1
mov eax, 1
mov dword [esp + 0x28], edx
jmp 0x598cc7
xor eax, eax
mov edx, ebx
mov dword [esp + 0x28], ebx
cmp eax, edx
xorps xmm1, xmm1
lea ecx, [ebx - 1]
movsd qword [esp + 0x6c], xmm1
movsd qword [esp + 0x64], xmm1
cvtsi2sd xmm1, ecx
mov ecx, eax
divsd xmm0, xmm1
mov byte [esp + 0x17], 1
mov byte [esp + 0x2c], 0
movsd qword [esp + 0x44], xmm0
mov dword [esp + 0x34], ecx
jge 0x598db0
mov ebx, dword [esp + 0x20]
shl eax, 4
mov dword [esp + 0x24], eax
lea ebx, [ebx]
mov edx, dword [ebp + 0x1c]
mov eax, dword [edx]
add eax, dword [esp + 0x24]
lea edx, [ecx*8]
mov ecx, dword [edi]
add ecx, edx
mov edx, dword [ebx]
mov ebx, dword [esp + 0x2c]
mov edx, dword [edx + 0x54]
push ebx
mov ebx, dword [esp + 0x24]
push eax
lea eax, [esp + 0x6c]
push eax
push ecx
mov ecx, ebx
call edx
mov byte [esp + 0x17], al
test al, al
je 0x598dad
mov ecx, dword [esp + 0x34]
test ecx, ecx
jle 0x598d5f
mov eax, dword [edi]
movsd xmm0, qword [eax + ecx*8 - 8]
comisd xmm0, xmmword [eax + ecx*8]
lea eax, [eax + ecx*8]
ja 0x598da8
mov edx, dword [esp + 0x28]
lea eax, [edx - 1]
cmp ecx, eax
jge 0x598d94
mov eax, dword [edi]
movsd xmm0, qword [eax + ecx*8]
addsd xmm0, qword [esp + 0x44]
movsd xmm1, qword [esp + 0x3c]
comisd xmm1, xmm0
lea eax, [eax + ecx*8]
mov byte [esp + 0x2c], 1
ja 0x598d8f
movapd xmm0, xmm1
movsd qword [eax + 8], xmm0
add dword [esp + 0x24], 0x10
inc ecx
cmp ecx, edx
mov dword [esp + 0x34], ecx
jl 0x598d10
jmp 0x598dad
mov byte [esp + 0x17], 0
mov ebx, dword [ebp + 8]
mov ecx, dword [esp + 0x20]
mov edx, dword [ecx]
mov eax, dword [edx]
push 1
call eax
cmp byte [esp + 0x17], 0
jne 0x599197
mov edx, dword [ebp + 0x1c]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
xorps xmm0, xmm0
push edx
mov edx, dword [ebp + 0xc]
push edi
push eax
push edx
movsd qword [ecx + 0x10], xmm0
movsd xmm0, qword [0x5fb270]
push ebx
movsd qword [ecx + 0x18], xmm0
movsd qword [ecx + 0x20], xmm0
call fcn.00598710
test al, al
je 0x598bb5
cmp byte [ebp + 0x24], 0
je 0x599197
cmp byte [esp + 0x18], 0
jne 0x599197
mov eax, dword [ebp + 0x10]
and dword [eax], 0xfffffff7
mov edx, dword [ebp + 0xc]
xorps xmm0, xmm0
xor eax, eax
cmp edx, 4
jl 0x598e59
lea esp, [esp]
mov ecx, dword [esi]
movsd qword [ecx + eax*8], xmm0
mov ecx, dword [esi]
movsd qword [ecx + eax*8 + 8], xmm0
mov ecx, dword [esi]
movsd qword [ecx + eax*8 + 0x10], xmm0
mov ecx, dword [esi]
movsd qword [ecx + eax*8 + 0x18], xmm0
add eax, 4
lea ecx, [edx - 3]
cmp eax, ecx
jl 0x598e30
cmp eax, edx
jge 0x598e6c
lea ecx, [ecx]
mov ecx, dword [esi]
movsd qword [ecx + eax*8], xmm0
inc eax
cmp eax, edx
jl 0x598e60
cmp edx, ebx
mov dword [esp + 0x24], edx
jge 0x598f81
mov eax, edx
mov ebx, 1
lea ecx, [eax - 1]
sub ebx, eax
cvtsi2sd xmm1, ecx
mov dword [esp + 0x20], ebx
mov ebx, dword [ebp + 8]
lea ecx, [eax*8]
jmp 0x598ea0
mov eax, dword [esi]
movsd qword [ecx + eax], xmm0
mov eax, dword [esp + 0x20]
add eax, edx
cmp eax, edx
jge 0x598f60
mov ebx, edx
sub ebx, eax
cmp ebx, 4
jl 0x598f32
mov edx, dword [ebp + 0xc]
lea edx, [eax + edx - 4]
mov dword [esp + 0x34], edx
lea esp, [esp]
mov edx, dword [esi]
mov ebx, dword [edi]
movsd xmm2, qword [ebx + eax*8]
addsd xmm2, qword [edx + ecx]
movsd qword [edx + ecx], xmm2
mov ebx, dword [edi]
movsd xmm2, qword [ebx + eax*8 + 8]
add edx, ecx
mov edx, dword [esi]
addsd xmm2, qword [edx + ecx]
movsd qword [edx + ecx], xmm2
mov ebx, dword [edi]
movsd xmm2, qword [ebx + eax*8 + 0x10]
add edx, ecx
mov edx, dword [esi]
addsd xmm2, qword [edx + ecx]
add edx, ecx
movsd qword [edx], xmm2
mov ebx, dword [edi]
mov edx, dword [esi]
movsd xmm2, qword [ebx + eax*8 + 0x18]
addsd xmm2, qword [edx + ecx]
add edx, ecx
add eax, 4
cmp eax, dword [esp + 0x34]
movsd qword [edx], xmm2
jl 0x598ed0
mov edx, dword [esp + 0x24]
cmp eax, edx
mov ebx, dword [ebp + 8]
jge 0x598f60
lea esp, [esp]
mov edx, dword [esi]
mov ebx, dword [edi]
movsd xmm2, qword [ebx + eax*8]
addsd xmm2, qword [edx + ecx]
add edx, ecx
movsd qword [edx], xmm2
mov edx, dword [esp + 0x24]
inc eax
cmp eax, edx
jl 0x598f40
mov ebx, dword [ebp + 8]
mov eax, dword [esi]
movsd xmm2, qword [eax + ecx]
add eax, ecx
inc edx
add ecx, 8
cmp edx, ebx
divsd xmm2, xmm1
movsd qword [eax], xmm2
mov dword [esp + 0x24], edx
jl 0x598ea0
mov ecx, dword [ebp + 0xc]
add ecx, ebx
cmp ebx, ecx
mov eax, ebx
jge 0x599197
movsd xmm0, qword [0x5fb270]
mov edx, dword [esi]
movsd qword [edx + eax*8], xmm0
inc eax
cmp eax, ecx
jl 0x598f98
jmp 0x599197
mov eax, dword [ebp + 0x1c]
mov esi, dword [ebp + 0x18]
mov ecx, dword [esp + 0x18]
push eax
push esi
push ecx
mov ecx, dword [esp + 0x28]
push edi
push ebx
call fcn.00598710
test al, al
je 0x598bb5
cmp byte [ebp + 0x24], 0
je 0x599197
cmp byte [esp + 0x18], 0
mov eax, dword [ebp + 0x10]
jne 0x599165
and dword [eax], 0xfffffff7
mov ecx, dword [ebp + 0x14]
xorps xmm0, xmm0
xor eax, eax
cmp edi, 4
jl 0x59901a
mov edx, dword [ecx]
movsd qword [edx + eax*8], xmm0
mov edx, dword [ecx]
movsd qword [edx + eax*8 + 8], xmm0
mov edx, dword [ecx]
movsd qword [edx + eax*8 + 0x10], xmm0
mov edx, dword [ecx]
movsd qword [edx + eax*8 + 0x18], xmm0
add eax, 4
lea edx, [edi - 3]
cmp eax, edx
jl 0x598ff1
cmp eax, edi
jge 0x59902c
mov edi, edi
mov edx, dword [ecx]
movsd qword [edx + eax*8], xmm0
inc eax
cmp eax, edi
jl 0x599020
cmp edi, ebx
mov dword [esp + 0x34], edi
jge 0x599144
mov eax, edi
mov ebx, 1
lea edx, [eax - 1]
sub ebx, eax
cvtsi2sd xmm1, edx
mov dword [esp + 0x20], ebx
mov ebx, dword [ebp + 8]
lea edx, [eax*8]
jmp 0x599060
mov eax, dword [ecx]
movsd qword [edx + eax], xmm0
mov eax, dword [esp + 0x20]
add eax, edi
cmp eax, edi
jge 0x599123
mov ebx, edi
sub ebx, eax
cmp ebx, 4
jl 0x5990f2
mov edi, dword [ebp + 0xc]
lea edi, [eax + edi - 4]
mov dword [esp + 0x2c], edi
lea esp, [esp]
mov edi, dword [ecx]
mov ebx, dword [esi]
movsd xmm2, qword [ebx + eax*8]
addsd xmm2, qword [edi + edx]
movsd qword [edi + edx], xmm2
mov ebx, dword [esi]
movsd xmm2, qword [ebx + eax*8 + 8]
add edi, edx
mov edi, dword [ecx]
addsd xmm2, qword [edi + edx]
movsd qword [edi + edx], xmm2
mov ebx, dword [esi]
movsd xmm2, qword [ebx + eax*8 + 0x10]
add edi, edx
mov edi, dword [ecx]
addsd xmm2, qword [edi + edx]
add edi, edx
movsd qword [edi], xmm2
mov ebx, dword [esi]
mov edi, dword [ecx]
movsd xmm2, qword [ebx + eax*8 + 0x18]
addsd xmm2, qword [edi + edx]
add edi, edx
add eax, 4
cmp eax, dword [esp + 0x2c]
movsd qword [edi], xmm2
jl 0x599090
mov edi, dword [esp + 0x34]
cmp eax, edi
mov ebx, dword [ebp + 8]
jge 0x599123
lea esp, [esp]
mov ebx, dword [ecx]
add ebx, edx
mov dword [esp + 0x34], ebx
mov ebx, dword [esi]
movsd xmm2, qword [ebx + eax*8]
mov ebx, dword [esp + 0x34]
addsd xmm2, qword [ebx]
inc eax
cmp eax, edi
movsd qword [ebx], xmm2
jl 0x599100
mov ebx, dword [ebp + 8]
mov eax, dword [ecx]
movsd xmm2, qword [eax + edx]
add eax, edx
inc edi
add edx, 8
cmp edi, ebx
divsd xmm2, xmm1
movsd qword [eax], xmm2
mov dword [esp + 0x34], edi
jl 0x599060
mov edx, dword [ebp + 0xc]
add edx, ebx
cmp ebx, edx
mov eax, ebx
jge 0x599197
movsd xmm0, qword [0x5fb270]
mov esi, dword [ecx]
movsd qword [esi + eax*8], xmm0
inc eax
cmp eax, edx
jl 0x599157
jmp 0x599197
or dword [eax], 8
lea ecx, [ebx + edi]
xor eax, eax
test ecx, ecx
jle 0x599197
mov esi, dword [ebp + 0x14]
mov edx, 1
cvtsi2sd xmm0, ebx
sub edx, edi
nop
lea edi, [edx + eax]
cvtsi2sd xmm1, edi
mov edi, dword [esi]
divsd xmm1, xmm0
movsd qword [edi + eax*8], xmm1
inc eax
cmp eax, ecx
jl 0x599180
mov al, 1
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x20