Function at 0x10042490
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 0x10043046
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 0x100424ec
movzx eax, cl
and eax, 4
mov dword [esp + 0x28], eax
jmp 0x100424f4
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 0x10043046
mov edx, dword [esp + 0x28]
mov edi, dword [esp + 0x6c]
test edx, edx
je 0x10042532
test edi, edi
je 0x10043046
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 0x10042678
mov esi, dword [esp + 0x5c]
cmp esi, dword [esp + 0x60]
jge 0x10043026
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 0x100425fd
cmp dword [esp + 0x28], 0
mov edi, edx
mov eax, dword [esp + 0x1c]
mov eax, dword [eax + 0x14]
je 0x10042632
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 0x100425eb
mov eax, dword [edi - 4]
mov dword [edi], eax
add edi, dword [esp + 0x58]
inc esi
sub ebx, 1
jne 0x100425d0
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 0x100425a3
jmp 0x10043026
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 0x1004265c
mov dword [edi], 0
add edi, dword [esp + 0x38]
inc esi
sub ebp, 1
jne 0x10042640
mov ebx, dword [esp + 0x34]
mov eax, dword [esp + 0x58]
mov edx, dword [esp + 0x6c]
mov edi, dword [esp + 0x60]
jmp 0x10042610
test al, al
jne 0x100427b3
test edx, edx
jne 0x10043046
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 0x100427a3
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 0x1004277e
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 0x10042760
mov eax, dword [esp + 0x2c]
cmp eax, 4
jb 0x10043046
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 0x10042764
mov edx, dword [esp + 0x70]
add ebx, dword [esp + 0x5c]
inc edi
mov eax, dword [esp + 0x68]
inc esi
cmp edi, eax
jl 0x10042710
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 0x100426f0
mov eax, dword [esp + 0x24]
lea eax, [eax + edx*4]
mov dword [esp + 0x24], eax
jmp 0x10043026
mov eax, dword [esp + 0x1c]
test edx, edx
je 0x100427c8
cmp dword [eax + 0x48], 6
jge 0x100427c8
mov eax, 4
jmp 0x100427cb
mov eax, dword [eax + 0x48]
push ecx
push eax
call fcn.10062a40
add esp, 8
mov dword [esp + 0x38], eax
cmp eax, 8
je 0x10043046
push eax
call fcn.100629f0
add esp, 4
mov dword [esp + 0x34], eax
cmp esi, eax
jb 0x10043046
push dword [esp + 0x38]
lea eax, [esp + 0x28]
push eax
call fcn.10063550
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 0x10042832
cmp ebx, 1
jle 0x10042832
mov eax, dword [esi + 0xb4]
movsd xmm0, qword [eax + edi*8]
jmp 0x10042837
movsd xmm0, qword [esi + 0x60]
cmp byte [esp + 0x13], 3
movsd qword [esp + 0x3c], xmm0
jne 0x10042a9d
mov ecx, dword [esp + 0x5c]
cmp ecx, dword [esp + 0x60]
jge 0x10043026
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 0x100429fa
xorps xmm0, xmm0
cvtsd2ss xmm0, xmm2
cmp dword [esp + 0x64], ebp
jge 0x10042a66
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 0x100429b6
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 0x1004291f
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 0x10042943
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 0x10042966
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 0x1004298a
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 0x10042900
mov ecx, dword [esp + 0x68]
mov edx, dword [esp + 0x38]
mov ebx, dword [esp + 0x14]
cmp edx, ecx
jl 0x100429b6
mov ebp, ecx
jmp 0x10042a5e
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 0x100429ea
movss dword [esi], xmm0
add esi, dword [esp + 0x60]
inc edi
sub ebx, 1
jne 0x100429d0
mov ebp, dword [esp + 0x68]
jmp 0x10042a5a
cmp edx, ebp
jge 0x10042a6a
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 0x10042a48
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 0x10042a13
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 0x100428a0
jmp 0x10043026
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.10066970
test al, al
je 0x10043046
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 0x10042d43
mov ecx, dword [esp + 0x5c]
cmp ecx, dword [esp + 0x60]
jge 0x10043026
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 0x10042cb9
mov eax, dword [esp + 0x64]
cmp eax, ebp
jge 0x10042d1b
cmp dword [esp + 0x30], 4
movsd xmm4, qword [esp + 0x3c]
jl 0x10042c69
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 + 0x1008f6c0]
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 + 0x1008f6c0]
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 + 0x1008f6c0]
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 + 0x1008f6c0]
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 0x10042b90
cmp dword [esp + 0x5c], ebp
jge 0x10042d13
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 + 0x1008f6c0]
mulsd xmm1, xmm2
addsd xmm1, xmm3
minsd xmm0, xmm1
cvtsd2ss xmm0, xmm0
movss dword [ecx], xmm0
add ecx, edi
sub edx, 1
jne 0x10042c80
jmp 0x10042d13
cmp dword [esp + 0x64], ebp
jge 0x10042d1f
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 + 0x1008f6c0]
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 0x10042cd0
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 0x10042b50
jmp 0x10043026
mov eax, dword [esp + 0x1c]
cmp dword [eax + 0x20], 2
jle 0x10042eed
mov ecx, dword [esp + 0x5c]
cmp ecx, dword [esp + 0x60]
jge 0x10043026
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 0x10042e2e
cmp dword [esp + 0x64], ebp
jge 0x10042ec9
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 0x10042e1d
mov eax, dword [esi]
movaps xmm0, xmm3
movd xmm1, eax
cvtdq2pd xmm1, xmm1
shr eax, 0x1f
add esi, 4
addsd xmm1, qword [eax*8 + 0x1008f6c0]
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 0x10042dd0
jmp 0x10042eb5
cmp dword [esp + 0x64], ebp
jge 0x10042ec9
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 0x10042ea9
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 + 0x1008f6c0]
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 0x10042e50
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 0x10042da4
jmp 0x10043026
mov edi, dword [esp + 0x5c]
xor ebx, ebx
mov dword [esp + 0x34], ebx
cmp edi, dword [esp + 0x60]
jge 0x10043026
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 0x10042ffb
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 0x10042fdb
mov edx, dword [esp + 0x70]
mov eax, dword [edx + 4]
mov ecx, dword [edx]
sub eax, ecx
sar eax, 2
cmp ebx, eax
je 0x10043046
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 + 0x1008f6c0]
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 0x10042f70
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 0x10042f50
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