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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x4c
mov eax, dword [ebp + 8]
mov edx, ecx
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov eax, dword [eax]
push edi
mov ebx, dword [ebx]
mov edi, dword [ebp + 0x20]
mov dword [esp + 0x18], edx
mov dword [esp + 0x20], eax
cmp ebx, 1
jb 0x59c4b1
mov ecx, dword [edx + 0x2c]
dec ebx
mov esi, dword [edx + 0x30]
mov dword [esp + 0x14], ecx
mov cl, byte [eax]
inc eax
cmp dword [edx + 0x20], 5
mov dword [esp + 0x10], esi
mov byte [esp + 0xf], cl
mov dword [esp + 0x20], eax
mov dword [esp + 0x2c], ebx
jl 0x59b97c
movzx eax, cl
and eax, 4
mov dword [esp + 0x1c], eax
jmp 0x59b984
mov dword [esp + 0x1c], 0
movzx eax, cl
xor edx, edx
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x44], eax
cmp dword [ecx + 0x20], 5
mov ecx, eax
mov eax, dword [ebp + 0x1c]
setl dl
shr ecx, 2
add edx, 0xe
sar eax, 3
and ecx, edx
and eax, edx
cmp ecx, eax
jne 0x59c4b1
cmp dword [esp + 0x1c], 0
mov edx, dword [ebp + 0x24]
je 0x59b9c4
test edx, edx
je 0x59c4b1
mov al, byte [esp + 0xf]
mov ecx, dword [esp + 0x44]
and al, 3
shr ecx, 6
mov byte [esp + 0xf], al
cmp al, 2
jne 0x59bb0a
mov ebx, dword [ebp + 0x14]
cmp ebx, dword [ebp + 0x18]
jge 0x59c494
mov eax, dword [esp + 0x14]
mov ecx, esi
imul ecx, dword [esp + 0x14]
xorps xmm1, xmm1
imul eax, ebx
shl ecx, 3
add eax, dword [ebp + 0x1c]
mov dword [esp + 0x3c], ecx
mov ecx, eax
imul ecx, esi
mov dword [esp + 0x30], eax
mov eax, dword [ebp + 0x10]
add ecx, edx
lea eax, [eax + ecx*8]
mov dword [esp + 0x24], eax
lea ecx, [esi*8]
mov eax, dword [ebp + 0x18]
sub eax, ebx
mov dword [esp + 0x28], ecx
mov ebx, edi
mov dword [esp + 0x34], eax
sub ebx, dword [ebp + 0x1c]
mov eax, ebx
mov esi, dword [esp + 0x30]
mov edx, ecx
mov dword [esp + 0x38], eax
mov dword [esp + 0x44], edx
cmp dword [ebp + 0x1c], edi
jge 0x59ba91
cmp dword [esp + 0x1c], 0
mov edi, dword [esp + 0x24]
je 0x59bac5
mov dword [esp + 0x38], edi
mov edi, dword [esp + 0x18]
mov ecx, esi
and ecx, 7
mov edx, 0x80
sar edx, cl
mov eax, esi
sar eax, 3
mov ecx, dword [edi + 0x14]
mov edi, dword [esp + 0x38]
test byte [eax + ecx], dl
jbe 0x59ba80
movsd xmm0, qword [edi - 8]
movsd qword [edi], xmm0
add edi, dword [esp + 0x28]
inc esi
mov dword [esp + 0x38], edi
sub ebx, 1
jne 0x59ba56
mov edi, dword [ebp + 0x20]
mov eax, dword [esp + 0x10]
mov ebx, edi
sub ebx, dword [ebp + 0x1c]
lea ecx, [eax*8]
mov dword [esp + 0x28], ecx
mov eax, dword [esp + 0x14]
add dword [esp + 0x30], eax
mov eax, dword [esp + 0x3c]
add dword [esp + 0x24], eax
sub dword [esp + 0x34], 1
jne 0x59ba32
jmp 0x59c494
mov dword [esp + 0x28], edx
mov dword [esp + 0x40], eax
nop dword [eax]
mov ebx, dword [esp + 0x18]
mov ecx, esi
and ecx, 7
mov edx, 0x80
sar edx, cl
mov eax, esi
sar eax, 3
mov ecx, dword [ebx + 0x14]
test byte [eax + ecx], dl
jbe 0x59baf1
movsd qword [edi], xmm1
add edi, dword [esp + 0x44]
inc esi
sub dword [esp + 0x38], 1
jne 0x59bad0
mov ebx, dword [esp + 0x40]
mov ecx, dword [esp + 0x28]
mov edi, dword [ebp + 0x20]
jmp 0x59baa5
test al, al
jne 0x59bc45
cmp dword [esp + 0x1c], 0
jne 0x59c4b1
mov edi, dword [ebp + 0x14]
xor edx, edx
mov eax, dword [esp + 0x20]
mov dword [esp + 0x38], eax
mov dword [esp + 0x28], edx
mov dword [esp + 0x30], edi
cmp edi, dword [ebp + 0x18]
jge 0x59bc35
mov eax, dword [esp + 0x14]
mov ebx, dword [ebp + 0x1c]
imul eax, edi
add ebx, eax
mov dword [esp + 0x24], eax
mov eax, esi
mov dword [esp + 0x1c], ebx
imul eax, dword [esp + 0x14]
mov ecx, ebx
imul ecx, esi
shl eax, 3
add ecx, dword [ebp + 0x24]
mov dword [esp + 0x44], eax
mov eax, dword [ebp + 0x10]
lea ecx, [eax + ecx*8]
mov eax, dword [esp + 0x24]
mov dword [esp + 0x3c], ecx
mov edx, dword [ebp + 0x1c]
mov esi, ebx
cmp edx, dword [ebp + 0x20]
mov edx, dword [esp + 0x28]
jge 0x59bc0f
sub ebx, dword [esp + 0x24]
mov dword [esp + 0x34], ebx
mov ebx, ecx
nop
mov edi, dword [esp + 0x18]
mov ecx, esi
and ecx, 7
mov edx, 0x80
sar edx, cl
mov eax, esi
sar eax, 3
mov ecx, dword [edi + 0x14]
mov edi, dword [esp + 0x34]
test byte [eax + ecx], dl
jbe 0x59bbe3
mov eax, dword [esp + 0x2c]
cmp eax, 8
jb 0x59c4b1
mov edx, dword [esp + 0x38]
sub eax, 8
movsd xmm0, qword [edx]
add edx, 8
mov dword [esp + 0x38], edx
mov edx, dword [esp + 0x28]
inc edx
movsd qword [ebx], xmm0
mov dword [esp + 0x2c], eax
mov dword [esp + 0x28], edx
jmp 0x59bbe7
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x10]
inc edi
inc esi
mov dword [esp + 0x34], edi
lea eax, [ecx*8]
add ebx, eax
cmp edi, dword [ebp + 0x20]
jl 0x59bb90
mov ebx, dword [esp + 0x1c]
mov edi, dword [esp + 0x30]
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x3c]
add eax, dword [esp + 0x14]
inc edi
add ebx, dword [esp + 0x14]
add ecx, dword [esp + 0x44]
mov dword [esp + 0x30], edi
mov dword [esp + 0x24], eax
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x3c], ecx
cmp edi, dword [ebp + 0x18]
jl 0x59bb73
mov eax, dword [esp + 0x20]
lea eax, [eax + edx*8]
mov dword [esp + 0x20], eax
jmp 0x59c494
cmp dword [esp + 0x1c], 0
mov eax, dword [esp + 0x18]
je 0x59bc5d
cmp dword [eax + 0x48], 6
jge 0x59bc5d
mov eax, 4
jmp 0x59bc60
mov eax, dword [eax + 0x48]
push ecx
push eax
call fcn.005bb2f0
add esp, 8
mov dword [esp + 0x44], eax
cmp eax, 8
je 0x59c4b1
push eax
call fcn.005bb2a0
add esp, 4
mov dword [esp + 0x40], eax
cmp ebx, eax
jb 0x59c4b1
push dword [esp + 0x44]
lea eax, [esp + 0x24]
push eax
call fcn.005bbe00
mov eax, dword [esp + 0x20]
add esp, 8
sub ebx, dword [esp + 0x40]
fstp qword [esp + 0x50]
mov dword [esp + 0x2c], ebx
cmp dword [eax + 0x20], 4
jl 0x59bcc8
cmp esi, 1
jle 0x59bcc8
mov eax, dword [eax + 0xb4]
mov edx, dword [ebp + 0x24]
movsd xmm0, qword [eax + edx*8]
jmp 0x59bcd0
movsd xmm0, qword [eax + 0x60]
mov edx, dword [ebp + 0x24]
cmp byte [esp + 0xf], 3
movsd qword [esp + 0x48], xmm0
jne 0x59bf2a
mov ecx, dword [ebp + 0x14]
cmp ecx, dword [ebp + 0x18]
jge 0x59c494
mov edi, dword [esp + 0x14]
mov eax, esi
imul eax, dword [esp + 0x14]
mov ebx, dword [ebp + 0x1c]
movsd xmm2, qword [esp + 0x50]
imul edi, ecx
mov dword [esp + 0x28], eax
mov eax, dword [ebp + 0x10]
add edi, ebx
imul esi, edi
mov dword [esp + 0x34], edi
add esi, edx
mov dword [esp + 0x40], esi
lea edx, [eax + esi*8]
mov eax, dword [ebp + 0x18]
sub eax, ecx
mov dword [esp + 0x38], edx
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x28]
nop
cmp dword [esp + 0x1c], 0
mov ecx, dword [ebp + 0x20]
jne 0x59be91
mov dword [esp + 0x30], ebx
cmp ebx, ecx
jge 0x59beef
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x30]
mov ebx, dword [eax + 0x14]
mov eax, ecx
sub eax, dword [ebp + 0x1c]
mov dword [esp + 0x24], ebx
cmp eax, 4
jl 0x59be4e
mov ebx, dword [esp + 0x34]
mov eax, ecx
mov ecx, dword [ebp + 0x1c]
add ebx, 2
sub eax, ecx
sub eax, 4
shr eax, 2
inc eax
mov dword [esp + 0x3c], eax
lea eax, [ecx + eax*4]
mov dword [esp + 0x30], eax
nop word [eax + eax]
mov ecx, edi
mov edx, 0x80
and ecx, 7
mov eax, edi
sar edx, cl
mov ecx, dword [esp + 0x24]
sar eax, 3
test byte [eax + ecx], dl
jbe 0x59bdb2
mov eax, dword [ebp + 0x10]
movsd qword [eax + esi*8], xmm2
add esi, dword [esp + 0x10]
lea edx, [ebx - 1]
mov ecx, edx
mov eax, 0x80
and ecx, 7
sar edx, 3
sar eax, cl
mov ecx, dword [esp + 0x24]
test byte [edx + ecx], al
jbe 0x59bdd9
mov eax, dword [ebp + 0x10]
movsd qword [eax + esi*8], xmm2
add esi, dword [esp + 0x10]
mov ecx, ebx
and ecx, 7
mov edx, 0x80
sar edx, cl
mov eax, ebx
mov ecx, dword [esp + 0x24]
sar eax, 3
test byte [eax + ecx], dl
jbe 0x59bdff
mov eax, dword [ebp + 0x10]
movsd qword [eax + esi*8], xmm2
add esi, dword [esp + 0x10]
lea edx, [ebx + 1]
mov ecx, edx
mov eax, 0x80
and ecx, 7
sar edx, 3
sar eax, cl
mov ecx, dword [esp + 0x24]
test byte [edx + ecx], al
jbe 0x59be26
mov eax, dword [ebp + 0x10]
movsd qword [eax + esi*8], xmm2
add esi, dword [esp + 0x10]
add edi, 4
add ebx, 4
sub dword [esp + 0x3c], 1
jne 0x59bd90
mov ecx, dword [ebp + 0x20]
mov edx, dword [esp + 0x30]
cmp edx, ecx
jge 0x59bee8
mov ebx, dword [esp + 0x24]
mov eax, dword [ebp + 0x10]
sub ecx, edx
mov dword [esp + 0x3c], ecx
lea esi, [eax + esi*8]
nop word [eax + eax]
mov eax, edi
mov ecx, edi
and ecx, 7
sar eax, 3
mov edx, 0x80
sar edx, cl
test byte [eax + ebx], dl
jbe 0x59be7a
movsd qword [esi], xmm2
mov ecx, dword [esp + 0x10]
inc edi
lea eax, [ecx*8]
add esi, eax
sub dword [esp + 0x3c], 1
jne 0x59be60
jmp 0x59bee8
cmp ebx, ecx
jge 0x59beef
mov ebx, ecx
mov esi, edx
sub ebx, dword [ebp + 0x1c]
mov dword [esp + 0x3c], ebx
mov ebx, dword [esp + 0x18]
mov ecx, edi
and ecx, 7
mov edx, 0x80
sar edx, cl
mov eax, edi
sar eax, 3
mov ecx, dword [ebx + 0x14]
test byte [eax + ecx], dl
jbe 0x59becd
movaps xmm1, xmm2
addsd xmm1, qword [esi - 8]
minsd xmm0, xmm1
movsd qword [esi], xmm0
mov ecx, dword [esp + 0x10]
inc edi
movsd xmm0, qword [esp + 0x48]
lea eax, [ecx*8]
add esi, eax
sub dword [esp + 0x3c], 1
jne 0x59bea0
mov ebx, dword [ebp + 0x1c]
mov eax, dword [esp + 0x28]
mov edi, dword [esp + 0x34]
lea ecx, [eax*8]
mov esi, dword [esp + 0x40]
add edi, dword [esp + 0x14]
add esi, eax
add dword [esp + 0x38], ecx
sub dword [esp + 0x44], 1
movsd xmm0, qword [esp + 0x48]
mov edx, dword [esp + 0x38]
mov dword [esp + 0x34], edi
mov dword [esp + 0x40], esi
jne 0x59bd30
jmp 0x59c494
sub edi, dword [ebp + 0x1c]
lea eax, [esp + 0x2c]
mov ecx, dword [ebp + 0x18]
mov ebx, dword [ebp + 0x14]
sub ecx, ebx
mov esi, dword [esp + 0x18]
mov dword [esp + 0x30], edi
imul edi, ecx
mov dword [esp + 0x24], ecx
push dword [esi + 0x20]
lea ecx, [esi + 0x78]
mov dword [esp + 0x44], ebx
push edi
mov dword [esp + 0x4c], edi
mov edi, dword [ebp + 0x28]
push edi
push eax
lea eax, [esp + 0x30]
push eax
call fcn.005bf220
test al, al
je 0x59c4b1
movsd xmm2, qword [esi + 0x50]
mov eax, dword [edi + 4]
addsd xmm2, xmm2
mov esi, dword [edi]
sub eax, esi
sar eax, 2
cmp eax, dword [esp + 0x44]
jne 0x59c1ba
cmp ebx, dword [ebp + 0x18]
jge 0x59c494
mov edi, dword [esp + 0x10]
mov ecx, edi
mov edx, dword [esp + 0x14]
movsd xmm3, qword [esp + 0x50]
imul ecx, edx
imul edx, ebx
mov dword [esp + 0x28], ecx
add edx, dword [ebp + 0x1c]
imul edx, edi
lea eax, [ecx*8]
mov dword [esp + 0x18], eax
mov eax, dword [ebp + 0x10]
mov ebx, dword [esp + 0x18]
add edx, dword [ebp + 0x24]
mov dword [esp + 0x44], edx
lea ecx, [eax + edx*8]
mov eax, dword [esp + 0x28]
mov dword [esp + 0x14], ecx
nop dword [eax + eax]
cmp dword [esp + 0x1c], 0
jne 0x59c163
mov ebx, dword [ebp + 0x1c]
mov eax, dword [ebp + 0x20]
mov edi, dword [esp + 0x10]
cmp ebx, eax
jge 0x59c13b
cmp dword [esp + 0x30], 4
movsd xmm4, qword [esp + 0x48]
jl 0x59c0ef
mov ecx, eax
mov eax, ebx
sub ecx, eax
sub ecx, 4
shr ecx, 2
inc ecx
lea ebx, [eax + ecx*4]
mov dword [esp + 0x40], ebx
mov ebx, dword [ebp + 0x10]
mov eax, dword [esi]
movaps xmm0, xmm4
movd xmm1, eax
cvtdq2pd xmm1, xmm1
shr eax, 0x1f
addsd xmm1, qword [eax*8 + 0x8b6930]
mulsd xmm1, xmm2
addsd xmm1, xmm3
minsd xmm0, xmm1
movsd qword [ebx + edx*8], xmm0
add edx, edi
mov eax, dword [esi + 4]
movaps xmm0, xmm4
movd xmm1, eax
cvtdq2pd xmm1, xmm1
shr eax, 0x1f
addsd xmm1, qword [eax*8 + 0x8b6930]
mulsd xmm1, xmm2
addsd xmm1, xmm3
minsd xmm0, xmm1
movsd qword [ebx + edx*8], xmm0
movaps xmm0, xmm4
mov eax, dword [esi + 8]
add edx, edi
movd xmm1, eax
cvtdq2pd xmm1, xmm1
shr eax, 0x1f
addsd xmm1, qword [eax*8 + 0x8b6930]
mulsd xmm1, xmm2
addsd xmm1, xmm3
minsd xmm0, xmm1
movsd qword [ebx + edx*8], xmm0
movaps xmm0, xmm4
mov eax, dword [esi + 0xc]
add edx, edi
add esi, 0x10
movd xmm1, eax
cvtdq2pd xmm1, xmm1
shr eax, 0x1f
addsd xmm1, qword [eax*8 + 0x8b6930]
mulsd xmm1, xmm2
addsd xmm1, xmm3
minsd xmm0, xmm1
movsd qword [ebx + edx*8], xmm0
add edx, edi
sub ecx, 1
jne 0x59c025
mov ebx, dword [esp + 0x40]
mov eax, dword [ebp + 0x20]
cmp ebx, eax
jge 0x59c137
mov ecx, dword [ebp + 0x10]
shl edi, 3
lea ecx, [ecx + edx*8]
mov edx, eax
sub edx, ebx
nop dword [eax]
mov eax, dword [esi]
movaps xmm0, xmm4
add esi, 4
movd xmm1, eax
cvtdq2pd xmm1, xmm1
shr eax, 0x1f
addsd xmm1, qword [eax*8 + 0x8b6930]
mulsd xmm1, xmm2
addsd xmm1, xmm3
minsd xmm0, xmm1
movsd qword [ecx], xmm0
add ecx, edi
sub edx, 1
jne 0x59c100
mov edi, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x44]
add ecx, ebx
add edx, eax
mov dword [esp + 0x14], ecx
sub dword [esp + 0x24], 1
mov dword [esp + 0x44], edx
jne 0x59bfe0
jmp 0x59c494
mov edx, dword [ebp + 0x1c]
cmp edx, dword [ebp + 0x20]
jge 0x59c143
mov edx, dword [esp + 0x30]
movsd xmm4, qword [esp + 0x48]
shl edi, 3
mov eax, dword [esi]
movaps xmm0, xmm4
add esi, 4
movd xmm1, eax
cvtdq2pd xmm1, xmm1
shr eax, 0x1f
addsd xmm1, qword [eax*8 + 0x8b6930]
mulsd xmm1, xmm2
addsd xmm1, xmm3
addsd xmm1, qword [ecx - 8]
minsd xmm0, xmm1
movsd qword [ecx], xmm0
add ecx, edi
sub edx, 1
jne 0x59c178
mov edi, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
jmp 0x59c13f
mov eax, dword [esp + 0x18]
cmp dword [eax + 0x20], 2
jle 0x59c35e
cmp ebx, dword [ebp + 0x18]
jge 0x59c494
mov edi, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
imul eax, dword [esp + 0x14]
movsd xmm4, qword [esp + 0x50]
movsd xmm3, qword [esp + 0x48]
imul edi, ebx
shl eax, 3
mov dword [esp + 0x38], eax
mov eax, dword [ebp + 0x10]
add edi, dword [ebp + 0x1c]
mov ebx, dword [esp + 0x38]
mov ecx, edi
imul ecx, dword [esp + 0x10]
mov dword [esp + 0x3c], edi
add ecx, dword [ebp + 0x24]
lea ecx, [eax + ecx*8]
mov eax, dword [esp + 0x24]
mov dword [esp + 0x34], ecx
nop word [eax + eax]
cmp dword [esp + 0x1c], 0
mov edx, dword [ebp + 0x1c]
jne 0x59c2ae
cmp edx, dword [ebp + 0x20]
jge 0x59c33a
mov eax, dword [esp + 0x30]
mov dword [esp + 0x44], ecx
mov dword [esp + 0x40], eax
mov ebx, dword [esp + 0x18]
mov ecx, edi
and ecx, 7
mov edx, 0x80
sar edx, cl
mov eax, edi
sar eax, 3
mov ecx, dword [ebx + 0x14]
mov ebx, dword [esp + 0x44]
test byte [eax + ecx], dl
jbe 0x59c290
mov eax, dword [esi]
movaps xmm0, xmm3
movd xmm1, eax
cvtdq2pd xmm1, xmm1
shr eax, 0x1f
add esi, 4
addsd xmm1, qword [eax*8 + 0x8b6930]
mulsd xmm1, xmm2
addsd xmm1, xmm4
minsd xmm0, xmm1
movsd qword [ebx], xmm0
mov edx, dword [esp + 0x10]
inc edi
lea eax, [edx*8]
add ebx, eax
sub dword [esp + 0x40], 1
mov dword [esp + 0x44], ebx
jne 0x59c243
jmp 0x59c32e
cmp edx, dword [ebp + 0x20]
jge 0x59c33a
mov eax, dword [esp + 0x30]
mov dword [esp + 0x44], ecx
mov dword [esp + 0x40], eax
mov ebx, dword [esp + 0x18]
mov ecx, edi
and ecx, 7
mov edx, 0x80
sar edx, cl
mov eax, edi
sar eax, 3
mov ecx, dword [ebx + 0x14]
mov ebx, dword [esp + 0x44]
test byte [eax + ecx], dl
jbe 0x59c315
mov eax, dword [esi]
movaps xmm0, xmm3
movd xmm1, eax
cvtdq2pd xmm1, xmm1
shr eax, 0x1f
add esi, 4
addsd xmm1, qword [eax*8 + 0x8b6930]
mulsd xmm1, xmm2
addsd xmm1, xmm4
addsd xmm1, qword [ebx - 8]
minsd xmm0, xmm1
movsd qword [ebx], xmm0
mov edx, dword [esp + 0x10]
inc edi
lea eax, [edx*8]
add ebx, eax
sub dword [esp + 0x40], 1
mov dword [esp + 0x44], ebx
jne 0x59c2c3
mov ebx, dword [esp + 0x38]
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x34]
mov edi, dword [esp + 0x3c]
add ecx, ebx
add edi, dword [esp + 0x14]
sub eax, 1
mov dword [esp + 0x3c], edi
mov dword [esp + 0x34], ecx
mov dword [esp + 0x24], eax
jne 0x59c220
jmp 0x59c494
mov edx, dword [ebp + 0x14]
xor ebx, ebx
mov dword [esp + 0x44], ebx
cmp edx, dword [ebp + 0x18]
jge 0x59c494
mov ecx, dword [esp + 0x10]
imul ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x14]
mov edi, dword [ebp + 0x1c]
movsd xmm4, qword [esp + 0x50]
movsd xmm3, qword [esp + 0x48]
imul eax, edx
shl ecx, 3
mov dword [esp + 0x28], ecx
add edi, eax
mov dword [esp + 0x34], eax
mov eax, dword [ebp + 0x10]
mov ecx, edi
imul ecx, dword [esp + 0x10]
mov dword [esp + 0x3c], edi
add ecx, dword [ebp + 0x24]
lea eax, [eax + ecx*8]
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x30], eax
mov eax, dword [ebp + 0x20]
nop dword [eax + eax]
mov esi, edi
cmp dword [ebp + 0x1c], eax
jge 0x59c46e
mov eax, dword [esp + 0x30]
sub edi, ecx
mov dword [esp + 0x38], eax
mov ebx, dword [esp + 0x18]
mov ecx, esi
and ecx, 7
mov edx, 0x80
sar edx, cl
mov eax, esi
sar eax, 3
mov ecx, dword [ebx + 0x14]
mov ebx, dword [esp + 0x44]
test byte [eax + ecx], dl
jbe 0x59c440
mov edx, dword [ebp + 0x28]
mov eax, dword [edx + 4]
mov ecx, dword [edx]
sub eax, ecx
sar eax, 2
cmp ebx, eax
je 0x59c4b1
mov eax, dword [ecx + ebx*4]
movaps xmm0, xmm3
movd xmm1, eax
cvtdq2pd xmm1, xmm1
shr eax, 0x1f
inc ebx
mov dword [esp + 0x44], ebx
addsd xmm1, qword [eax*8 + 0x8b6930]
mov eax, dword [esp + 0x38]
mulsd xmm1, xmm2
addsd xmm1, xmm4
minsd xmm0, xmm1
movsd qword [eax], xmm0
jmp 0x59c444
mov eax, dword [esp + 0x38]
mov edx, dword [esp + 0x10]
inc edi
inc esi
lea ecx, [edx*8]
add eax, ecx
mov dword [esp + 0x38], eax
mov eax, dword [ebp + 0x20]
cmp edi, eax
jl 0x59c3d5
mov edx, dword [esp + 0x40]
mov edi, dword [esp + 0x3c]
mov ecx, dword [esp + 0x34]
add ecx, dword [esp + 0x14]
inc edx
add edi, dword [esp + 0x14]
mov esi, dword [esp + 0x28]
add dword [esp + 0x30], esi
mov dword [esp + 0x40], edx
mov dword [esp + 0x34], ecx
mov dword [esp + 0x3c], edi
cmp edx, dword [ebp + 0x18]
jl 0x59c3c0
mov ecx, dword [ebp + 8]
mov eax, dword [esp + 0x20]
mov dword [ecx], eax
mov ecx, dword [ebp + 0xc]
mov eax, dword [esp + 0x2c]
mov dword [ecx], eax
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x24
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 0x24