Function at 0x10043060
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 0x10043bf1
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 0x100430bc
movzx eax, cl
and eax, 4
mov dword [esp + 0x1c], eax
jmp 0x100430c4
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 0x10043bf1
cmp dword [esp + 0x1c], 0
mov edx, dword [ebp + 0x24]
je 0x10043104
test edx, edx
je 0x10043bf1
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 0x1004324a
mov ebx, dword [ebp + 0x14]
cmp ebx, dword [ebp + 0x18]
jge 0x10043bd4
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 0x100431d1
cmp dword [esp + 0x1c], 0
mov edi, dword [esp + 0x24]
je 0x10043205
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 0x100431c0
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 0x10043196
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 0x10043172
jmp 0x10043bd4
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 0x10043231
movsd qword [edi], xmm1
add edi, dword [esp + 0x44]
inc esi
sub dword [esp + 0x38], 1
jne 0x10043210
mov ebx, dword [esp + 0x40]
mov ecx, dword [esp + 0x28]
mov edi, dword [ebp + 0x20]
jmp 0x100431e5
test al, al
jne 0x10043385
cmp dword [esp + 0x1c], 0
jne 0x10043bf1
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 0x10043375
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 0x1004334f
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 0x10043323
mov eax, dword [esp + 0x2c]
cmp eax, 8
jb 0x10043bf1
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 0x10043327
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 0x100432d0
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 0x100432b3
mov eax, dword [esp + 0x20]
lea eax, [eax + edx*8]
mov dword [esp + 0x20], eax
jmp 0x10043bd4
cmp dword [esp + 0x1c], 0
mov eax, dword [esp + 0x18]
je 0x1004339d
cmp dword [eax + 0x48], 6
jge 0x1004339d
mov eax, 4
jmp 0x100433a0
mov eax, dword [eax + 0x48]
push ecx
push eax
call fcn.10062a40
add esp, 8
mov dword [esp + 0x44], eax
cmp eax, 8
je 0x10043bf1
push eax
call fcn.100629f0
add esp, 4
mov dword [esp + 0x40], eax
cmp ebx, eax
jb 0x10043bf1
push dword [esp + 0x44]
lea eax, [esp + 0x24]
push eax
call fcn.10063550
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 0x10043408
cmp esi, 1
jle 0x10043408
mov eax, dword [eax + 0xb4]
mov edx, dword [ebp + 0x24]
movsd xmm0, qword [eax + edx*8]
jmp 0x10043410
movsd xmm0, qword [eax + 0x60]
mov edx, dword [ebp + 0x24]
cmp byte [esp + 0xf], 3
movsd qword [esp + 0x48], xmm0
jne 0x1004366a
mov ecx, dword [ebp + 0x14]
cmp ecx, dword [ebp + 0x18]
jge 0x10043bd4
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 0x100435d1
mov dword [esp + 0x30], ebx
cmp ebx, ecx
jge 0x1004362f
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 0x1004358e
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 0x100434f2
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 0x10043519
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 0x1004353f
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 0x10043566
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 0x100434d0
mov ecx, dword [ebp + 0x20]
mov edx, dword [esp + 0x30]
cmp edx, ecx
jge 0x10043628
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 0x100435ba
movsd qword [esi], xmm2
mov ecx, dword [esp + 0x10]
inc edi
lea eax, [ecx*8]
add esi, eax
sub dword [esp + 0x3c], 1
jne 0x100435a0
jmp 0x10043628
cmp ebx, ecx
jge 0x1004362f
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 0x1004360d
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 0x100435e0
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 0x10043470
jmp 0x10043bd4
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.10066970
test al, al
je 0x10043bf1
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 0x100438fa
cmp ebx, dword [ebp + 0x18]
jge 0x10043bd4
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 0x100438a3
mov ebx, dword [ebp + 0x1c]
mov eax, dword [ebp + 0x20]
mov edi, dword [esp + 0x10]
cmp ebx, eax
jge 0x1004387b
cmp dword [esp + 0x30], 4
movsd xmm4, qword [esp + 0x48]
jl 0x1004382f
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 + 0x1008f6c0]
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 + 0x1008f6c0]
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 + 0x1008f6c0]
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 + 0x1008f6c0]
mulsd xmm1, xmm2
addsd xmm1, xmm3
minsd xmm0, xmm1
movsd qword [ebx + edx*8], xmm0
add edx, edi
sub ecx, 1
jne 0x10043765
mov ebx, dword [esp + 0x40]
mov eax, dword [ebp + 0x20]
cmp ebx, eax
jge 0x10043877
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 + 0x1008f6c0]
mulsd xmm1, xmm2
addsd xmm1, xmm3
minsd xmm0, xmm1
movsd qword [ecx], xmm0
add ecx, edi
sub edx, 1
jne 0x10043840
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 0x10043720
jmp 0x10043bd4
mov edx, dword [ebp + 0x1c]
cmp edx, dword [ebp + 0x20]
jge 0x10043883
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 + 0x1008f6c0]
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 0x100438b8
mov edi, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
jmp 0x1004387f
mov eax, dword [esp + 0x18]
cmp dword [eax + 0x20], 2
jle 0x10043a9e
cmp ebx, dword [ebp + 0x18]
jge 0x10043bd4
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 0x100439ee
cmp edx, dword [ebp + 0x20]
jge 0x10043a7a
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 0x100439d0
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
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 0x10043983
jmp 0x10043a6e
cmp edx, dword [ebp + 0x20]
jge 0x10043a7a
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 0x10043a55
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
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 0x10043a03
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 0x10043960
jmp 0x10043bd4
mov edx, dword [ebp + 0x14]
xor ebx, ebx
mov dword [esp + 0x44], ebx
cmp edx, dword [ebp + 0x18]
jge 0x10043bd4
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 0x10043bae
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 0x10043b80
mov edx, dword [ebp + 0x28]
mov eax, dword [edx + 4]
mov ecx, dword [edx]
sub eax, ecx
sar eax, 2
cmp ebx, eax
je 0x10043bf1
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 + 0x1008f6c0]
mov eax, dword [esp + 0x38]
mulsd xmm1, xmm2
addsd xmm1, xmm4
minsd xmm0, xmm1
movsd qword [eax], xmm0
jmp 0x10043b84
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 0x10043b15
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 0x10043b00
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