Function at 0x4fd8c0
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 0x4fe451
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 0x4fd91c
movzx eax, cl
and eax, 4
mov dword [esp + 0x1c], eax
jmp 0x4fd924
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 0x4fe451
cmp dword [esp + 0x1c], 0
mov edx, dword [ebp + 0x24]
je 0x4fd964
test edx, edx
je 0x4fe451
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 0x4fdaaa
mov ebx, dword [ebp + 0x14]
cmp ebx, dword [ebp + 0x18]
jge 0x4fe434
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 0x4fda31
cmp dword [esp + 0x1c], 0
mov edi, dword [esp + 0x24]
je 0x4fda65
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 0x4fda20
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 0x4fd9f6
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 0x4fd9d2
jmp 0x4fe434
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 0x4fda91
movsd qword [edi], xmm1
add edi, dword [esp + 0x44]
inc esi
sub dword [esp + 0x38], 1
jne 0x4fda70
mov ebx, dword [esp + 0x40]
mov ecx, dword [esp + 0x28]
mov edi, dword [ebp + 0x20]
jmp 0x4fda45
test al, al
jne 0x4fdbe5
cmp dword [esp + 0x1c], 0
jne 0x4fe451
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 0x4fdbd5
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 0x4fdbaf
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 0x4fdb83
mov eax, dword [esp + 0x2c]
cmp eax, 8
jb 0x4fe451
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 0x4fdb87
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 0x4fdb30
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 0x4fdb13
mov eax, dword [esp + 0x20]
lea eax, [eax + edx*8]
mov dword [esp + 0x20], eax
jmp 0x4fe434
cmp dword [esp + 0x1c], 0
mov eax, dword [esp + 0x18]
je 0x4fdbfd
cmp dword [eax + 0x48], 6
jge 0x4fdbfd
mov eax, 4
jmp 0x4fdc00
mov eax, dword [eax + 0x48]
push ecx
push eax
call fcn.0051d2c0
add esp, 8
mov dword [esp + 0x44], eax
cmp eax, 8
je 0x4fe451
push eax
call fcn.0051d270
add esp, 4
mov dword [esp + 0x40], eax
cmp ebx, eax
jb 0x4fe451
push dword [esp + 0x44]
lea eax, [esp + 0x24]
push eax
call fcn.0051ddd0
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 0x4fdc68
cmp esi, 1
jle 0x4fdc68
mov eax, dword [eax + 0xb4]
mov edx, dword [ebp + 0x24]
movsd xmm0, qword [eax + edx*8]
jmp 0x4fdc70
movsd xmm0, qword [eax + 0x60]
mov edx, dword [ebp + 0x24]
cmp byte [esp + 0xf], 3
movsd qword [esp + 0x48], xmm0
jne 0x4fdeca
mov ecx, dword [ebp + 0x14]
cmp ecx, dword [ebp + 0x18]
jge 0x4fe434
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 0x4fde31
mov dword [esp + 0x30], ebx
cmp ebx, ecx
jge 0x4fde8f
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 0x4fddee
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 0x4fdd52
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 0x4fdd79
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 0x4fdd9f
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 0x4fddc6
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 0x4fdd30
mov ecx, dword [ebp + 0x20]
mov edx, dword [esp + 0x30]
cmp edx, ecx
jge 0x4fde88
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 0x4fde1a
movsd qword [esi], xmm2
mov ecx, dword [esp + 0x10]
inc edi
lea eax, [ecx*8]
add esi, eax
sub dword [esp + 0x3c], 1
jne 0x4fde00
jmp 0x4fde88
cmp ebx, ecx
jge 0x4fde8f
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 0x4fde6d
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 0x4fde40
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 0x4fdcd0
jmp 0x4fe434
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.005211f0
test al, al
je 0x4fe451
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 0x4fe15a
cmp ebx, dword [ebp + 0x18]
jge 0x4fe434
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 0x4fe103
mov ebx, dword [ebp + 0x1c]
mov eax, dword [ebp + 0x20]
mov edi, dword [esp + 0x10]
cmp ebx, eax
jge 0x4fe0db
cmp dword [esp + 0x30], 4
movsd xmm4, qword [esp + 0x48]
jl 0x4fe08f
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 + 0x6bc110]
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 + 0x6bc110]
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 + 0x6bc110]
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 + 0x6bc110]
mulsd xmm1, xmm2
addsd xmm1, xmm3
minsd xmm0, xmm1
movsd qword [ebx + edx*8], xmm0
add edx, edi
sub ecx, 1
jne 0x4fdfc5
mov ebx, dword [esp + 0x40]
mov eax, dword [ebp + 0x20]
cmp ebx, eax
jge 0x4fe0d7
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 + 0x6bc110]
mulsd xmm1, xmm2
addsd xmm1, xmm3
minsd xmm0, xmm1
movsd qword [ecx], xmm0
add ecx, edi
sub edx, 1
jne 0x4fe0a0
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 0x4fdf80
jmp 0x4fe434
mov edx, dword [ebp + 0x1c]
cmp edx, dword [ebp + 0x20]
jge 0x4fe0e3
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 + 0x6bc110]
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 0x4fe118
mov edi, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
jmp 0x4fe0df
mov eax, dword [esp + 0x18]
cmp dword [eax + 0x20], 2
jle 0x4fe2fe
cmp ebx, dword [ebp + 0x18]
jge 0x4fe434
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 0x4fe24e
cmp edx, dword [ebp + 0x20]
jge 0x4fe2da
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 0x4fe230
mov eax, dword [esi]
movaps xmm0, xmm3
movd xmm1, eax
cvtdq2pd xmm1, xmm1
shr eax, 0x1f
add esi, 4
addsd xmm1, qword [eax*8 + 0x6bc110]
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 0x4fe1e3
jmp 0x4fe2ce
cmp edx, dword [ebp + 0x20]
jge 0x4fe2da
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 0x4fe2b5
mov eax, dword [esi]
movaps xmm0, xmm3
movd xmm1, eax
cvtdq2pd xmm1, xmm1
shr eax, 0x1f
add esi, 4
addsd xmm1, qword [eax*8 + 0x6bc110]
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 0x4fe263
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 0x4fe1c0
jmp 0x4fe434
mov edx, dword [ebp + 0x14]
xor ebx, ebx
mov dword [esp + 0x44], ebx
cmp edx, dword [ebp + 0x18]
jge 0x4fe434
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 0x4fe40e
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 0x4fe3e0
mov edx, dword [ebp + 0x28]
mov eax, dword [edx + 4]
mov ecx, dword [edx]
sub eax, ecx
sar eax, 2
cmp ebx, eax
je 0x4fe451
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 + 0x6bc110]
mov eax, dword [esp + 0x38]
mulsd xmm1, xmm2
addsd xmm1, xmm4
minsd xmm0, xmm1
movsd qword [eax], xmm0
jmp 0x4fe3e4
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 0x4fe375
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 0x4fe360
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