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

Disassembly:
sub esp, 0x3c
mov eax, dword [esp + 0x40]
mov edx, ecx
push ebx
push ebp
mov ebp, dword [esp + 0x60]
mov eax, dword [eax]
push esi
mov esi, dword [esp + 0x50]
push edi
mov dword [esp + 0x1c], edx
mov dword [esp + 0x24], eax
mov esi, dword [esi]
cmp esi, 1
jb 0x4dbd96
mov ecx, dword [edx + 0x2c]
dec esi
mov edi, dword [edx + 0x20]
mov ebx, dword [edx + 0x30]
mov dword [esp + 0x18], ecx
mov cl, byte [eax]
inc eax
mov dword [esp + 0x14], ebx
mov byte [esp + 0x13], cl
mov dword [esp + 0x24], eax
mov dword [esp + 0x2c], esi
cmp edi, 5
jl 0x4db23c
movzx eax, cl
and eax, 4
mov dword [esp + 0x28], eax
jmp 0x4db244
mov dword [esp + 0x28], 0
movzx eax, cl
xor edx, edx
cmp edi, 5
mov dword [esp + 0x38], eax
mov ecx, eax
mov eax, dword [esp + 0x64]
setl dl
shr ecx, 2
add edx, 0xe
sar eax, 3
and ecx, edx
and eax, edx
cmp ecx, eax
jne 0x4dbd96
mov edx, dword [esp + 0x28]
mov edi, dword [esp + 0x6c]
test edx, edx
je 0x4db282
test edi, edi
je 0x4dbd96
mov al, byte [esp + 0x13]
mov ecx, dword [esp + 0x38]
and al, 3
shr ecx, 6
mov byte [esp + 0x13], al
cmp al, 2
jne 0x4db3c8
mov esi, dword [esp + 0x5c]
cmp esi, dword [esp + 0x60]
jge 0x4dbd76
mov eax, dword [esp + 0x18]
mov ecx, ebx
imul ecx, dword [esp + 0x18]
imul eax, esi
shl ecx, 2
add eax, dword [esp + 0x64]
mov dword [esp + 0x30], ecx
mov ecx, eax
imul ecx, ebx
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x58]
add ecx, edi
mov edi, dword [esp + 0x60]
sub edi, esi
mov dword [esp + 0x60], edi
lea edx, [eax + ecx*4]
lea eax, [ebx*4]
mov dword [esp + 0x6c], edx
mov ebx, ebp
mov dword [esp + 0x58], eax
sub ebx, dword [esp + 0x64]
mov esi, dword [esp + 0x5c]
mov ecx, eax
mov eax, dword [esp + 0x64]
mov ebp, ebx
mov dword [esp + 0x38], ecx
cmp eax, dword [esp + 0x68]
jge 0x4db34d
cmp dword [esp + 0x28], 0
mov edi, edx
mov eax, dword [esp + 0x1c]
mov eax, dword [eax + 0x14]
je 0x4db382
mov ebp, eax
nop dword [eax + eax]
mov eax, esi
mov ecx, esi
and ecx, 7
sar eax, 3
mov edx, 0x80
sar edx, cl
test byte [eax + ebp], dl
jbe 0x4db33b
mov eax, dword [edi - 4]
mov dword [edi], eax
add edi, dword [esp + 0x58]
inc esi
sub ebx, 1
jne 0x4db320
mov edx, dword [esp + 0x6c]
mov edi, dword [esp + 0x60]
mov eax, dword [esp + 0x14]
mov ebx, dword [esp + 0x68]
shl eax, 2
sub ebx, dword [esp + 0x64]
mov dword [esp + 0x58], eax
mov ecx, dword [esp + 0x18]
add edx, dword [esp + 0x30]
add dword [esp + 0x5c], ecx
sub edi, 1
mov dword [esp + 0x6c], edx
mov dword [esp + 0x60], edi
jne 0x4db2f3
jmp 0x4dbd76
mov dword [esp + 0x58], ecx
mov ebx, eax
mov dword [esp + 0x34], ebp
nop dword [eax]
mov eax, esi
mov ecx, esi
and ecx, 7
sar eax, 3
mov edx, 0x80
sar edx, cl
test byte [eax + ebx], dl
jbe 0x4db3ac
mov dword [edi], 0
add edi, dword [esp + 0x38]
inc esi
sub ebp, 1
jne 0x4db390
mov ebx, dword [esp + 0x34]
mov eax, dword [esp + 0x58]
mov edx, dword [esp + 0x6c]
mov edi, dword [esp + 0x60]
jmp 0x4db360
test al, al
jne 0x4db503
test edx, edx
jne 0x4dbd96
mov eax, dword [esp + 0x5c]
mov ebp, dword [esp + 0x24]
mov dword [esp + 0x28], ebp
mov dword [esp + 0x70], edx
mov dword [esp + 0x20], eax
cmp eax, dword [esp + 0x60]
jge 0x4db4f3
mov ecx, dword [esp + 0x18]
mov edi, dword [esp + 0x64]
imul ecx, eax
mov eax, ebx
imul eax, dword [esp + 0x18]
add edi, ecx
mov dword [esp + 0x30], ecx
mov ecx, edi
shl eax, 2
imul ecx, ebx
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x58]
mov dword [esp + 0x34], edi
add ecx, dword [esp + 0x6c]
lea eax, [eax + ecx*4]
mov ecx, dword [esp + 0x5c]
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x68]
nop word [eax + eax]
mov esi, edi
cmp dword [esp + 0x64], eax
jge 0x4db4ce
sub edi, dword [esp + 0x30]
lea eax, [ebx*4]
mov ebx, dword [esp + 0x58]
mov dword [esp + 0x5c], eax
nop
mov ebp, dword [esp + 0x1c]
mov ecx, esi
and ecx, 7
mov edx, 0x80
sar edx, cl
mov eax, esi
sar eax, 3
mov ecx, dword [ebp + 0x14]
mov ebp, dword [esp + 0x28]
test byte [eax + ecx], dl
jbe 0x4db4b0
mov eax, dword [esp + 0x2c]
cmp eax, 4
jb 0x4dbd96
movss xmm0, dword [ebp]
sub eax, 4
mov edx, dword [esp + 0x70]
add ebp, 4
inc edx
mov dword [esp + 0x28], ebp
movss dword [ebx], xmm0
mov dword [esp + 0x2c], eax
mov dword [esp + 0x70], edx
jmp 0x4db4b4
mov edx, dword [esp + 0x70]
add ebx, dword [esp + 0x5c]
inc edi
mov eax, dword [esp + 0x68]
inc esi
cmp edi, eax
jl 0x4db460
mov ebx, dword [esp + 0x14]
mov edi, dword [esp + 0x34]
mov ecx, dword [esp + 0x20]
mov esi, dword [esp + 0x18]
inc ecx
add dword [esp + 0x30], esi
add edi, esi
mov esi, dword [esp + 0x38]
add dword [esp + 0x58], esi
mov dword [esp + 0x20], ecx
mov dword [esp + 0x34], edi
cmp ecx, dword [esp + 0x60]
jl 0x4db440
mov eax, dword [esp + 0x24]
lea eax, [eax + edx*4]
mov dword [esp + 0x24], eax
jmp 0x4dbd76
mov eax, dword [esp + 0x1c]
test edx, edx
je 0x4db518
cmp dword [eax + 0x48], 6
jge 0x4db518
mov eax, 4
jmp 0x4db51b
mov eax, dword [eax + 0x48]
push ecx
push eax
call fcn.004fb780
add esp, 8
mov dword [esp + 0x38], eax
cmp eax, 8
je 0x4dbd96
push eax
call fcn.004fb730
add esp, 4
mov dword [esp + 0x34], eax
cmp esi, eax
jb 0x4dbd96
push dword [esp + 0x38]
lea eax, [esp + 0x28]
push eax
call fcn.004fc290
sub esi, dword [esp + 0x3c]
add esp, 8
mov dword [esp + 0x2c], esi
mov esi, dword [esp + 0x1c]
fstp qword [esp + 0x44]
mov edx, dword [esi + 0x20]
cmp edx, 4
jl 0x4db582
cmp ebx, 1
jle 0x4db582
mov eax, dword [esi + 0xb4]
movsd xmm0, qword [eax + edi*8]
jmp 0x4db587
movsd xmm0, qword [esi + 0x60]
cmp byte [esp + 0x13], 3
movsd qword [esp + 0x3c], xmm0
jne 0x4db7ed
mov ecx, dword [esp + 0x5c]
cmp ecx, dword [esp + 0x60]
jge 0x4dbd76
mov esi, dword [esp + 0x18]
mov eax, ebx
imul eax, dword [esp + 0x18]
mov edx, dword [esp + 0x64]
imul esi, ecx
movsd xmm2, qword [esp + 0x44]
mov dword [esp + 0x5c], eax
add esi, edx
mov eax, esi
mov dword [esp + 0x70], esi
imul eax, ebx
add edi, eax
mov eax, dword [esp + 0x58]
mov dword [esp + 0x30], edi
lea eax, [eax + edi*4]
mov dword [esp + 0x6c], eax
mov eax, dword [esp + 0x60]
sub eax, ecx
mov ecx, dword [esp + 0x6c]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x5c]
cmp dword [esp + 0x28], 0
mov edi, esi
mov esi, dword [esp + 0x30]
jne 0x4db74a
xorps xmm0, xmm0
cvtsd2ss xmm0, xmm2
cmp dword [esp + 0x64], ebp
jge 0x4db7b6
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x68]
mov ebp, dword [eax + 0x14]
mov eax, ecx
sub eax, dword [esp + 0x64]
cmp eax, 4
jl 0x4db706
mov ebx, dword [esp + 0x70]
mov eax, ecx
mov ecx, dword [esp + 0x64]
add ebx, 2
sub eax, ecx
sub eax, 4
shr eax, 2
inc eax
mov dword [esp + 0x60], eax
lea eax, [ecx + eax*4]
mov dword [esp + 0x38], eax
nop dword [eax]
mov eax, edi
mov ecx, edi
and ecx, 7
sar eax, 3
mov edx, 0x80
sar edx, cl
test byte [eax + ebp], dl
jbe 0x4db66f
mov eax, dword [esp + 0x58]
movss dword [eax + esi*4], xmm0
add esi, dword [esp + 0x14]
lea edx, [ebx - 1]
mov ecx, edx
mov eax, 0x80
and ecx, 7
sar edx, 3
sar eax, cl
test byte [edx + ebp], al
jbe 0x4db693
mov eax, dword [esp + 0x58]
movss dword [eax + esi*4], xmm0
add esi, dword [esp + 0x14]
mov eax, ebx
mov ecx, ebx
sar eax, 3
and ecx, 7
mov edx, 0x80
sar edx, cl
test byte [eax + ebp], dl
jbe 0x4db6b6
mov eax, dword [esp + 0x58]
movss dword [eax + esi*4], xmm0
add esi, dword [esp + 0x14]
lea edx, [ebx + 1]
mov ecx, edx
mov eax, 0x80
and ecx, 7
sar edx, 3
sar eax, cl
test byte [edx + ebp], al
jbe 0x4db6da
mov eax, dword [esp + 0x58]
movss dword [eax + esi*4], xmm0
add esi, dword [esp + 0x14]
add edi, 4
add ebx, 4
sub dword [esp + 0x60], 1
jne 0x4db650
mov ecx, dword [esp + 0x68]
mov edx, dword [esp + 0x38]
mov ebx, dword [esp + 0x14]
cmp edx, ecx
jl 0x4db706
mov ebp, ecx
jmp 0x4db7ae
lea eax, [ebx*4]
mov ebx, ecx
mov dword [esp + 0x60], eax
sub ebx, edx
mov eax, dword [esp + 0x58]
lea esi, [eax + esi*4]
nop dword [eax]
mov eax, edi
mov ecx, edi
and ecx, 7
sar eax, 3
mov edx, 0x80
sar edx, cl
test byte [eax + ebp], dl
jbe 0x4db73a
movss dword [esi], xmm0
add esi, dword [esp + 0x60]
inc edi
sub ebx, 1
jne 0x4db720
mov ebp, dword [esp + 0x68]
jmp 0x4db7aa
cmp edx, ebp
jge 0x4db7ba
lea eax, [ebx*4]
mov esi, ecx
mov ebx, ebp
mov dword [esp + 0x38], eax
sub ebx, edx
mov dword [esp + 0x60], ebx
mov ebx, dword [esp + 0x1c]
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 0x4db798
movss xmm1, dword [esi - 4]
cvtps2pd xmm1, xmm1
addsd xmm1, xmm2
minsd xmm0, xmm1
cvtpd2ps xmm0, xmm0
movss dword [esi], xmm0
add esi, dword [esp + 0x38]
inc edi
sub dword [esp + 0x60], 1
movsd xmm0, qword [esp + 0x3c]
jne 0x4db763
mov ebx, dword [esp + 0x14]
mov ecx, dword [esp + 0x6c]
mov eax, dword [esp + 0x5c]
mov edx, dword [esp + 0x64]
mov esi, dword [esp + 0x70]
lea edi, [eax*4]
add esi, dword [esp + 0x18]
add ecx, edi
add dword [esp + 0x30], eax
sub dword [esp + 0x34], 1
movsd xmm0, qword [esp + 0x3c]
mov dword [esp + 0x70], esi
mov dword [esp + 0x6c], ecx
jne 0x4db5f0
jmp 0x4dbd76
mov eax, dword [esp + 0x5c]
mov ecx, dword [esp + 0x60]
mov edi, dword [esp + 0x70]
sub ecx, eax
mov dword [esp + 0x38], eax
mov eax, ebp
sub eax, dword [esp + 0x64]
mov dword [esp + 0x30], eax
imul eax, ecx
push edx
mov dword [esp + 0x24], ecx
lea ecx, [esi + 0x78]
push eax
mov dword [esp + 0x3c], eax
lea eax, [esp + 0x34]
push edi
push eax
lea eax, [esp + 0x34]
push eax
call fcn.004ff6b0
test al, al
je 0x4dbd96
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 + 0x34]
jne 0x4dba93
mov ecx, dword [esp + 0x5c]
cmp ecx, dword [esp + 0x60]
jge 0x4dbd76
mov edx, dword [esp + 0x18]
mov eax, ebx
imul eax, edx
movsd xmm3, qword [esp + 0x44]
mov edi, dword [esp + 0x20]
imul edx, ecx
mov dword [esp + 0x68], eax
add edx, dword [esp + 0x64]
imul edx, ebx
add edx, dword [esp + 0x6c]
shl eax, 2
mov dword [esp + 0x70], eax
mov eax, dword [esp + 0x58]
mov dword [esp + 0x6c], edx
lea ecx, [eax + edx*4]
mov eax, dword [esp + 0x68]
mov dword [esp + 0x60], ecx
nop dword [eax + eax]
cmp dword [esp + 0x28], 0
jne 0x4dba09
mov eax, dword [esp + 0x64]
cmp eax, ebp
jge 0x4dba6b
cmp dword [esp + 0x30], 4
movsd xmm4, qword [esp + 0x3c]
jl 0x4db9b9
mov ecx, ebp
sub ecx, eax
sub ecx, 4
shr ecx, 2
inc ecx
lea edi, [eax + ecx*4]
mov dword [esp + 0x5c], edi
mov edi, dword [esp + 0x58]
nop
mov eax, dword [esi]
xorps xmm1, xmm1
movaps xmm0, xmm4
cvtsi2sd xmm1, eax
shr eax, 0x1f
addsd xmm1, qword [eax*8 + 0x71a1f0]
mulsd xmm1, xmm2
addsd xmm1, xmm3
minsd xmm0, xmm1
xorps xmm1, xmm1
cvtsd2ss xmm0, xmm0
movss dword [edi + edx*4], xmm0
movaps xmm0, xmm4
mov eax, dword [esi + 4]
add edx, ebx
cvtsi2sd xmm1, eax
shr eax, 0x1f
addsd xmm1, qword [eax*8 + 0x71a1f0]
mulsd xmm1, xmm2
addsd xmm1, xmm3
minsd xmm0, xmm1
xorps xmm1, xmm1
cvtsd2ss xmm0, xmm0
movss dword [edi + edx*4], xmm0
movaps xmm0, xmm4
mov eax, dword [esi + 8]
add edx, ebx
cvtsi2sd xmm1, eax
shr eax, 0x1f
addsd xmm1, qword [eax*8 + 0x71a1f0]
mulsd xmm1, xmm2
addsd xmm1, xmm3
minsd xmm0, xmm1
xorps xmm1, xmm1
cvtsd2ss xmm0, xmm0
movss dword [edi + edx*4], xmm0
movaps xmm0, xmm4
mov eax, dword [esi + 0xc]
add edx, ebx
add esi, 0x10
cvtsi2sd xmm1, eax
shr eax, 0x1f
addsd xmm1, qword [eax*8 + 0x71a1f0]
mulsd xmm1, xmm2
addsd xmm1, xmm3
minsd xmm0, xmm1
cvtsd2ss xmm0, xmm0
movss dword [edi + edx*4], xmm0
add edx, ebx
sub ecx, 1
jne 0x4db8e0
cmp dword [esp + 0x5c], ebp
jge 0x4dba63
mov eax, dword [esp + 0x5c]
mov ecx, dword [esp + 0x58]
lea edi, [ebx*4]
lea ecx, [ecx + edx*4]
mov edx, ebp
sub edx, eax
nop dword [eax + 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
cvtsd2ss xmm0, xmm0
movss dword [ecx], xmm0
add ecx, edi
sub edx, 1
jne 0x4db9d0
jmp 0x4dba63
cmp dword [esp + 0x64], ebp
jge 0x4dba6f
mov edx, dword [esp + 0x30]
lea edi, [ebx*4]
movsd xmm4, qword [esp + 0x3c]
mov eax, dword [esi]
add esi, 4
movss xmm0, dword [ecx - 4]
cvtps2pd xmm0, xmm0
movd xmm1, eax
cvtdq2pd xmm1, xmm1
shr eax, 0x1f
addsd xmm1, qword [eax*8 + 0x71a1f0]
mulsd xmm1, xmm2
addsd xmm1, xmm3
addsd xmm1, xmm0
movaps xmm0, xmm4
minsd xmm0, xmm1
cvtsd2ss xmm0, xmm0
movss dword [ecx], xmm0
add ecx, edi
sub edx, 1
jne 0x4dba20
mov ecx, dword [esp + 0x60]
mov edi, dword [esp + 0x20]
mov eax, dword [esp + 0x68]
mov edx, dword [esp + 0x6c]
add ecx, dword [esp + 0x70]
add edx, eax
sub edi, 1
mov dword [esp + 0x6c], edx
mov dword [esp + 0x60], ecx
mov dword [esp + 0x20], edi
jne 0x4db8a0
jmp 0x4dbd76
mov eax, dword [esp + 0x1c]
cmp dword [eax + 0x20], 2
jle 0x4dbc3d
mov ecx, dword [esp + 0x5c]
cmp ecx, dword [esp + 0x60]
jge 0x4dbd76
mov edi, dword [esp + 0x18]
mov eax, ebx
imul eax, dword [esp + 0x18]
movsd xmm4, qword [esp + 0x44]
movsd xmm3, qword [esp + 0x3c]
imul edi, ecx
shl eax, 2
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x58]
add edi, dword [esp + 0x64]
mov edx, dword [esp + 0x60]
mov ecx, edi
imul ecx, ebx
mov dword [esp + 0x70], edi
add ecx, dword [esp + 0x6c]
lea ecx, [eax + ecx*4]
mov eax, dword [esp + 0x20]
mov dword [esp + 0x58], ecx
cmp dword [esp + 0x28], 0
jne 0x4dbb7e
cmp dword [esp + 0x64], ebp
jge 0x4dbc19
mov ebp, dword [esp + 0x30]
lea eax, [ebx*4]
mov dword [esp + 0x6c], eax
mov ebx, ecx
mov dword [esp + 0x5c], ebp
nop
mov ebp, dword [esp + 0x1c]
mov ecx, edi
and ecx, 7
mov edx, 0x80
sar edx, cl
mov eax, edi
sar eax, 3
mov ecx, dword [ebp + 0x14]
test byte [eax + ecx], dl
jbe 0x4dbb6d
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
cvtsd2ss xmm0, xmm0
movss dword [ebx], xmm0
add ebx, dword [esp + 0x6c]
inc edi
sub dword [esp + 0x5c], 1
jne 0x4dbb20
jmp 0x4dbc05
cmp dword [esp + 0x64], ebp
jge 0x4dbc19
mov ebp, dword [esp + 0x30]
lea eax, [ebx*4]
mov dword [esp + 0x6c], eax
mov ebx, ecx
mov dword [esp + 0x5c], ebp
nop dword [eax]
mov ebp, dword [esp + 0x1c]
mov ecx, edi
and ecx, 7
mov edx, 0x80
sar edx, cl
mov eax, edi
sar eax, 3
mov ecx, dword [ebp + 0x14]
test byte [eax + ecx], dl
jbe 0x4dbbf9
mov eax, dword [esi]
movss xmm0, dword [ebx - 4]
cvtps2pd xmm0, xmm0
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, xmm0
movaps xmm0, xmm3
minsd xmm0, xmm1
cvtsd2ss xmm0, xmm0
movss dword [ebx], xmm0
add ebx, dword [esp + 0x6c]
inc edi
sub dword [esp + 0x5c], 1
jne 0x4dbba0
mov edx, dword [esp + 0x60]
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x58]
mov ebp, dword [esp + 0x68]
mov ebx, dword [esp + 0x14]
mov edi, dword [esp + 0x70]
add ecx, edx
add edi, dword [esp + 0x18]
sub eax, 1
mov dword [esp + 0x70], edi
mov dword [esp + 0x58], ecx
mov dword [esp + 0x20], eax
jne 0x4dbaf4
jmp 0x4dbd76
mov edi, dword [esp + 0x5c]
xor ebx, ebx
mov dword [esp + 0x34], ebx
cmp edi, dword [esp + 0x60]
jge 0x4dbd76
mov eax, dword [esp + 0x18]
mov esi, dword [esp + 0x64]
mov edx, dword [esp + 0x14]
imul eax, edi
movsd xmm4, qword [esp + 0x44]
movsd xmm3, qword [esp + 0x3c]
add esi, eax
mov dword [esp + 0x5c], eax
mov eax, edx
mov dword [esp + 0x30], esi
imul eax, dword [esp + 0x18]
mov ecx, esi
imul ecx, edx
shl eax, 2
add ecx, dword [esp + 0x6c]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x58]
lea ecx, [eax + ecx*4]
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x58], ecx
nop dword [eax]
cmp dword [esp + 0x64], ebp
jge 0x4dbd4b
mov edi, dword [esp + 0x30]
lea eax, [edx*4]
sub edi, dword [esp + 0x5c]
mov ebp, ecx
mov dword [esp + 0x6c], eax
nop
mov ebx, dword [esp + 0x1c]
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 + 0x34]
test byte [eax + ecx], dl
jbe 0x4dbd2b
mov edx, dword [esp + 0x70]
mov eax, dword [edx + 4]
mov ecx, dword [edx]
sub eax, ecx
sar eax, 2
cmp ebx, eax
je 0x4dbd96
mov eax, dword [ecx + ebx*4]
movaps xmm0, xmm3
movd xmm1, eax
cvtdq2pd xmm1, xmm1
shr eax, 0x1f
inc ebx
mov dword [esp + 0x34], ebx
addsd xmm1, qword [eax*8 + 0x71a1f0]
mulsd xmm1, xmm2
addsd xmm1, xmm4
minsd xmm0, xmm1
cvtsd2ss xmm0, xmm0
movss dword [ebp], xmm0
add ebp, dword [esp + 0x6c]
inc edi
inc esi
cmp edi, dword [esp + 0x68]
jl 0x4dbcc0
mov edx, dword [esp + 0x14]
mov ebp, dword [esp + 0x68]
mov edi, dword [esp + 0x38]
mov eax, dword [esp + 0x5c]
mov ecx, dword [esp + 0x58]
mov esi, dword [esp + 0x30]
inc edi
add eax, dword [esp + 0x18]
add esi, dword [esp + 0x18]
add ecx, dword [esp + 0x28]
mov dword [esp + 0x38], edi
mov dword [esp + 0x5c], eax
mov dword [esp + 0x30], esi
mov dword [esp + 0x58], ecx
cmp edi, dword [esp + 0x60]
jl 0x4dbca0
mov ecx, dword [esp + 0x50]
mov eax, dword [esp + 0x24]
pop edi
pop esi
mov dword [ecx], eax
mov ecx, dword [esp + 0x4c]
mov eax, dword [esp + 0x24]
pop ebp
pop ebx
mov dword [ecx], eax
mov al, 1
add esp, 0x3c
ret 0x24
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x3c
ret 0x24