Function at 0x4dbdb0
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 0x4dc941
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 0x4dbe0c
movzx eax, cl
and eax, 4
mov dword [esp + 0x1c], eax
jmp 0x4dbe14
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 0x4dc941
cmp dword [esp + 0x1c], 0
mov edx, dword [ebp + 0x24]
je 0x4dbe54
test edx, edx
je 0x4dc941
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 0x4dbf9a
mov ebx, dword [ebp + 0x14]
cmp ebx, dword [ebp + 0x18]
jge 0x4dc924
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 0x4dbf21
cmp dword [esp + 0x1c], 0
mov edi, dword [esp + 0x24]
je 0x4dbf55
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 0x4dbf10
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 0x4dbee6
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 0x4dbec2
jmp 0x4dc924
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 0x4dbf81
movsd qword [edi], xmm1
add edi, dword [esp + 0x44]
inc esi
sub dword [esp + 0x38], 1
jne 0x4dbf60
mov ebx, dword [esp + 0x40]
mov ecx, dword [esp + 0x28]
mov edi, dword [ebp + 0x20]
jmp 0x4dbf35
test al, al
jne 0x4dc0d5
cmp dword [esp + 0x1c], 0
jne 0x4dc941
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 0x4dc0c5
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 0x4dc09f
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 0x4dc073
mov eax, dword [esp + 0x2c]
cmp eax, 8
jb 0x4dc941
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 0x4dc077
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 0x4dc020
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 0x4dc003
mov eax, dword [esp + 0x20]
lea eax, [eax + edx*8]
mov dword [esp + 0x20], eax
jmp 0x4dc924
cmp dword [esp + 0x1c], 0
mov eax, dword [esp + 0x18]
je 0x4dc0ed
cmp dword [eax + 0x48], 6
jge 0x4dc0ed
mov eax, 4
jmp 0x4dc0f0
mov eax, dword [eax + 0x48]
push ecx
push eax
call fcn.004fb780
add esp, 8
mov dword [esp + 0x44], eax
cmp eax, 8
je 0x4dc941
push eax
call fcn.004fb730
add esp, 4
mov dword [esp + 0x40], eax
cmp ebx, eax
jb 0x4dc941
push dword [esp + 0x44]
lea eax, [esp + 0x24]
push eax
call fcn.004fc290
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 0x4dc158
cmp esi, 1
jle 0x4dc158
mov eax, dword [eax + 0xb4]
mov edx, dword [ebp + 0x24]
movsd xmm0, qword [eax + edx*8]
jmp 0x4dc160
movsd xmm0, qword [eax + 0x60]
mov edx, dword [ebp + 0x24]
cmp byte [esp + 0xf], 3
movsd qword [esp + 0x48], xmm0
jne 0x4dc3ba
mov ecx, dword [ebp + 0x14]
cmp ecx, dword [ebp + 0x18]
jge 0x4dc924
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 0x4dc321
mov dword [esp + 0x30], ebx
cmp ebx, ecx
jge 0x4dc37f
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 0x4dc2de
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 0x4dc242
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 0x4dc269
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 0x4dc28f
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 0x4dc2b6
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 0x4dc220
mov ecx, dword [ebp + 0x20]
mov edx, dword [esp + 0x30]
cmp edx, ecx
jge 0x4dc378
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 0x4dc30a
movsd qword [esi], xmm2
mov ecx, dword [esp + 0x10]
inc edi
lea eax, [ecx*8]
add esi, eax
sub dword [esp + 0x3c], 1
jne 0x4dc2f0
jmp 0x4dc378
cmp ebx, ecx
jge 0x4dc37f
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 0x4dc35d
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 0x4dc330
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 0x4dc1c0
jmp 0x4dc924
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.004ff6b0
test al, al
je 0x4dc941
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 0x4dc64a
cmp ebx, dword [ebp + 0x18]
jge 0x4dc924
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 0x4dc5f3
mov ebx, dword [ebp + 0x1c]
mov eax, dword [ebp + 0x20]
mov edi, dword [esp + 0x10]
cmp ebx, eax
jge 0x4dc5cb
cmp dword [esp + 0x30], 4
movsd xmm4, qword [esp + 0x48]
jl 0x4dc57f
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 + 0x71a1f0]
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 + 0x71a1f0]
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 + 0x71a1f0]
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 + 0x71a1f0]
mulsd xmm1, xmm2
addsd xmm1, xmm3
minsd xmm0, xmm1
movsd qword [ebx + edx*8], xmm0
add edx, edi
sub ecx, 1
jne 0x4dc4b5
mov ebx, dword [esp + 0x40]
mov eax, dword [ebp + 0x20]
cmp ebx, eax
jge 0x4dc5c7
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 + 0x71a1f0]
mulsd xmm1, xmm2
addsd xmm1, xmm3
minsd xmm0, xmm1
movsd qword [ecx], xmm0
add ecx, edi
sub edx, 1
jne 0x4dc590
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 0x4dc470
jmp 0x4dc924
mov edx, dword [ebp + 0x1c]
cmp edx, dword [ebp + 0x20]
jge 0x4dc5d3
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 + 0x71a1f0]
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 0x4dc608
mov edi, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
jmp 0x4dc5cf
mov eax, dword [esp + 0x18]
cmp dword [eax + 0x20], 2
jle 0x4dc7ee
cmp ebx, dword [ebp + 0x18]
jge 0x4dc924
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 0x4dc73e
cmp edx, dword [ebp + 0x20]
jge 0x4dc7ca
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 0x4dc720
mov eax, dword [esi]
movaps xmm0, xmm3
movd xmm1, eax
cvtdq2pd xmm1, xmm1
shr eax, 0x1f
add esi, 4
addsd xmm1, qword [eax*8 + 0x71a1f0]
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 0x4dc6d3
jmp 0x4dc7be
cmp edx, dword [ebp + 0x20]
jge 0x4dc7ca
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 0x4dc7a5
mov eax, dword [esi]
movaps xmm0, xmm3
movd xmm1, eax
cvtdq2pd xmm1, xmm1
shr eax, 0x1f
add esi, 4
addsd xmm1, qword [eax*8 + 0x71a1f0]
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 0x4dc753
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 0x4dc6b0
jmp 0x4dc924
mov edx, dword [ebp + 0x14]
xor ebx, ebx
mov dword [esp + 0x44], ebx
cmp edx, dword [ebp + 0x18]
jge 0x4dc924
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 0x4dc8fe
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 0x4dc8d0
mov edx, dword [ebp + 0x28]
mov eax, dword [edx + 4]
mov ecx, dword [edx]
sub eax, ecx
sar eax, 2
cmp ebx, eax
je 0x4dc941
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 + 0x71a1f0]
mov eax, dword [esp + 0x38]
mulsd xmm1, xmm2
addsd xmm1, xmm4
minsd xmm0, xmm1
movsd qword [eax], xmm0
jmp 0x4dc8d4
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 0x4dc865
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 0x4dc850
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