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

Disassembly:
sub esp, 0x40
fild dword [esp + 0x48]
push ebx
mov ebx, dword [esp + 0x48]
push ebp
push esi
fdivr dword [0x4c9e48]
mov esi, dword [esp + 0x54]
push edi
mov edi, dword [esp + 0x5c]
mov ecx, ebx
mov edx, ebx
lea eax, [ebx - 1]
sar eax, 1
mov dword [esp + 0x30], eax
fld st(0)
imul ecx, esi
fcos
mov dword [esp + 0x1c], ecx
fstp dword [esp + 0x40]
imul edx, edi
fsin
inc esi
mov dword [esp + 0x14], edx
sar esi, 1
cmp ebx, edi
mov dword [esp + 0x10], esi
fstp dword [esp + 0x3c]
jge 0x4ade26
test ebx, ebx
jle 0x4ade84
mov edx, dword [esp + 0x64]
mov eax, dword [esp + 0x70]
sub eax, edx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x38], eax
test edi, edi
jle 0x4ade16
lea ebp, [ebx*4]
add eax, edx
mov ecx, edx
mov esi, edi
mov edi, dword [ecx]
mov dword [eax], edi
mov edi, dword [esp + 0x1c]
shl edi, 2
add eax, ebp
add ecx, edi
dec esi
jne 0x4addfc
mov edi, dword [esp + 0x5c]
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x2c]
add edx, 4
dec ecx
mov dword [esp + 0x2c], ecx
jne 0x4addeb
jmp 0x4ade7c
test edi, edi
jle 0x4ade84
mov esi, dword [esp + 0x70]
lea eax, [ecx*4]
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x64]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x28], edi
test ebx, ebx
jle 0x4ade5a
mov ecx, esi
mov edx, ebx
mov ebp, dword [eax]
add eax, 4
mov dword [ecx], ebp
add ecx, 4
dec edx
jne 0x4ade4d
mov edx, dword [esp + 0x38]
mov ecx, dword [esp + 0x28]
lea eax, [ebx*4]
add esi, eax
mov eax, dword [esp + 0x2c]
add eax, edx
dec ecx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x28], ecx
jne 0x4ade45
mov esi, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov eax, edx
lea ecx, [ebx + ebx]
imul eax, dword [esp + 0x58]
cmp esi, 1
mov dword [esp + 0x18], eax
jle 0x4adf30
lea ebp, [ecx*4]
mov ecx, dword [esp + 0x70]
lea esi, [edx*4]
mov dword [esp + 0x24], ebp
lea edx, [ecx + eax*4]
mov eax, dword [esp + 0x64]
add eax, ebp
mov dword [esp + 0x28], esi
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x10]
dec eax
mov dword [esp + 0x2c], eax
add ecx, esi
sub edx, esi
test edi, edi
mov dword [esp + 0x38], ecx
mov dword [esp + 0x34], edx
jle 0x4adf1b
mov eax, dword [esp + 0x1c]
lea esi, [ebx*4]
lea ebp, [eax*4]
mov eax, dword [esp + 0x20]
fld dword [eax - 4]
fadd st(0), st(0)
fstp dword [ecx]
fld dword [eax]
fadd st(0), st(0)
add ecx, esi
add eax, ebp
fstp dword [edx]
add edx, esi
dec edi
jne 0x4adef1
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x34]
mov esi, dword [esp + 0x28]
mov ebp, dword [esp + 0x24]
mov edi, dword [esp + 0x5c]
mov eax, dword [esp + 0x20]
add eax, ebp
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x2c]
dec eax
mov dword [esp + 0x2c], eax
jne 0x4adecb
cmp ebx, 1
je 0x4ae14d
mov ecx, dword [esp + 0x5c]
mov eax, dword [esp + 0x30]
cmp eax, ecx
mov eax, dword [esp + 0x10]
jge 0x4ae050
cmp eax, 1
jle 0x4ae14d
mov eax, dword [esp + 0x70]
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x10]
mov ebp, dword [esp + 0x64]
mov dword [esp + 0x20], eax
lea eax, [eax + edx*4]
dec ecx
mov dword [esp + 0x64], eax
mov dword [esp + 0x28], ecx
mov edx, dword [esp + 0x14]
mov esi, dword [esp + 0x20]
lea eax, [edx*4]
mov edx, dword [esp + 0x64]
add esi, eax
sub edx, eax
lea eax, [ebx*8]
mov dword [esp + 0x20], esi
add ebp, eax
cmp ebx, 2
mov dword [esp + 0x64], edx
mov dword [esp + 0x38], ebp
jle 0x4ae03c
lea edi, [ebx - 3]
mov esi, edx
mov edx, dword [esp + 0x20]
mov eax, ebp
shr edi, 1
inc edi
mov ecx, ebp
mov dword [esp + 0x2c], edi
add ecx, 8
add edx, 8
add esi, 8
sub eax, 8
cmp dword [esp + 0x5c], 0
mov dword [esp + 0x34], ecx
mov dword [esp + 0x24], edx
mov dword [esp + 0x44], esi
mov dword [esp + 0x48], eax
jle 0x4ae035
mov edi, dword [esp + 0x1c]
mov ebp, dword [esp + 0x5c]
shl edi, 2
shl ebx, 2
fld dword [eax - 4]
fadd dword [ecx - 4]
fstp dword [edx - 4]
fld dword [ecx - 4]
fsub dword [eax - 4]
fstp dword [esi - 4]
fld dword [ecx]
fsub dword [eax]
fstp dword [edx]
fld dword [ecx]
fadd dword [eax]
add edx, ebx
add eax, edi
add ecx, edi
fstp dword [esi]
add esi, ebx
dec ebp
jne 0x4adff0
mov ebx, dword [esp + 0x54]
mov ebp, dword [esp + 0x38]
mov edi, dword [esp + 0x2c]
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x24]
mov esi, dword [esp + 0x44]
mov eax, dword [esp + 0x48]
dec edi
mov dword [esp + 0x2c], edi
jne 0x4adfbf
mov eax, dword [esp + 0x28]
dec eax
mov dword [esp + 0x28], eax
jne 0x4adf76
jmp 0x4ae14d
cmp eax, 1
jle 0x4ae14d
mov eax, dword [esp + 0x70]
mov ecx, dword [esp + 0x18]
lea edx, [eax + ecx*4]
mov ecx, dword [esp + 0x64]
mov dword [esp + 0x24], edx
mov edx, dword [esp + 0x10]
dec edx
mov dword [esp + 0x20], ecx
mov dword [esp + 0x64], eax
mov dword [esp + 0x38], edx
mov eax, dword [esp + 0x14]
mov esi, dword [esp + 0x64]
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
shl eax, 2
add esi, eax
sub edx, eax
lea eax, [ebx*8]
mov dword [esp + 0x64], esi
add ecx, eax
mov eax, dword [esp + 0x5c]
test eax, eax
mov dword [esp + 0x24], edx
mov dword [esp + 0x20], ecx
jle 0x4ae13e
mov ebp, dword [esp + 0x20]
mov ecx, esi
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x28], edx
mov dword [esp + 0x34], eax
cmp ebx, 2
jle 0x4ae10b
mov edi, dword [esp + 0x28]
mov esi, dword [esp + 0x2c]
lea edx, [ebx - 3]
mov eax, ebp
shr edx, 1
mov ecx, ebp
inc edx
fld dword [eax + 4]
fadd dword [ecx - 0xc]
add eax, 8
sub ecx, 8
add esi, 8
add edi, 8
dec edx
fstp dword [esi - 4]
fld dword [eax - 4]
fsub dword [ecx - 4]
fstp dword [edi - 4]
fld dword [eax]
fsub dword [ecx]
fstp dword [esi]
fld dword [ecx]
fadd dword [eax]
fstp dword [edi]
jne 0x4ae0de
mov esi, dword [esp + 0x28]
mov edx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x1c]
lea eax, [ebx*4]
add esi, eax
add edx, eax
lea eax, [ecx*4]
mov dword [esp + 0x28], esi
add ebp, eax
mov eax, dword [esp + 0x34]
dec eax
mov dword [esp + 0x2c], edx
mov dword [esp + 0x34], eax
jne 0x4ae0c7
mov eax, dword [esp + 0x38]
dec eax
mov dword [esp + 0x38], eax
jne 0x4ae07d
mov ecx, dword [esp + 0x58]
mov ebp, dword [esp + 0x60]
mov eax, ecx
mov esi, dword [esp + 0x10]
imul eax, ebp
fld dword [0x4bc3f0]
dec ecx
mov edx, dword [esp + 0x74]
imul ecx, ebp
mov edi, dword [esp + 0x6c]
cmp esi, 1
mov dword [esp + 0x64], 0x3f800000
mov dword [esp + 0x48], ecx
jle 0x4ae2f9
fld dword [esp + 0x64]
mov ecx, eax
lea edx, [edi + eax*4]
sub ecx, ebp
dec esi
mov dword [esp + 0x44], ecx
mov dword [esp + 0x20], edi
mov dword [esp + 0x1c], edx
mov dword [esp + 0x24], esi
fld dword [esp + 0x40]
fmul st(1)
fld st(2)
fmul dword [esp + 0x3c]
mov edi, dword [esp + 0x20]
mov esi, dword [esp + 0x1c]
lea ecx, [ebp*4]
xor eax, eax
fsubp st(1)
add edi, ecx
sub esi, ecx
test ebp, ebp
fstp dword [esp + 0x64]
mov dword [esp + 0x20], edi
mov dword [esp + 0x1c], esi
fmul dword [esp + 0x3c]
fxch st(1)
fmul dword [esp + 0x40]
faddp st(1)
fld dword [esp + 0x64]
jle 0x4ae226
mov ebp, dword [esp + 0x74]
mov edx, dword [esp + 0x48]
mov edi, esi
add ecx, ebp
lea esi, [ebp + edx*4]
mov edx, dword [esp + 0x20]
fld dword [esp + 0x64]
fmul dword [ecx]
mov ebp, dword [esp + 0x74]
inc eax
add ecx, 4
add edx, 4
fadd dword [ebp + eax*4 - 4]
mov ebp, dword [esp + 0x60]
add esi, 4
add edi, 4
cmp eax, ebp
fstp dword [edx - 4]
fld st(1)
fmul dword [esi - 4]
fstp dword [edi - 4]
jl 0x4ae1f8
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x64]
cmp ecx, 2
mov dword [esp + 0x4c], eax
fld st(1)
jle 0x4ae2de
mov eax, dword [esp + 0x74]
add ecx, 0xfffffffe
fld dword [esp + 0x4c]
lea edx, [eax + ebp*4]
mov dword [esp + 0x34], ecx
mov dword [esp + 0x28], edx
mov edx, dword [esp + 0x44]
lea eax, [eax + edx*4]
mov dword [esp + 0x2c], eax
fld dword [esp + 0x64]
fmul st(1)
fld st(2)
fmul st(5)
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
lea eax, [ebp*4]
fsubp st(1)
add edx, eax
sub ecx, eax
test ebp, ebp
fstp dword [esp + 0x38]
fxch st(1)
fmul dword [esp + 0x64]
fxch st(1)
fmul st(3)
mov dword [esp + 0x28], edx
mov dword [esp + 0x2c], ecx
faddp st(1)
fld dword [esp + 0x38]
jle 0x4ae2d1
mov ecx, dword [esp + 0x1c]
mov esi, dword [esp + 0x2c]
mov eax, dword [esp + 0x20]
mov edi, ebp
fld dword [esp + 0x38]
fmul dword [edx]
add edx, 4
add eax, 4
add esi, 4
add ecx, 4
fadd dword [eax - 4]
dec edi
fstp dword [eax - 4]
fld st(1)
fmul dword [esi - 4]
fadd dword [ecx - 4]
fstp dword [ecx - 4]
jne 0x4ae2ab
mov eax, dword [esp + 0x34]
dec eax
mov dword [esp + 0x34], eax
jne 0x4ae25e
fstp st(0)
mov eax, dword [esp + 0x24]
dec eax
fstp st(0)
mov dword [esp + 0x24], eax
jne 0x4ae1a1
mov edx, dword [esp + 0x74]
mov esi, dword [esp + 0x10]
fstp st(0)
cmp esi, 1
fstp st(0)
jle 0x4ae339
lea ecx, [esi - 1]
mov edi, edx
mov dword [esp + 0x64], ecx
lea eax, [ebp*4]
add edi, eax
xor eax, eax
test ebp, ebp
jle 0x4ae32b
mov ecx, edi
fld dword [ecx]
fadd dword [edx + eax*4]
inc eax
add ecx, 4
cmp eax, ebp
fstp dword [edx + eax*4 - 4]
jl 0x4ae31a
mov eax, dword [esp + 0x64]
dec eax
mov dword [esp + 0x64], eax
jne 0x4ae309
cmp esi, 1
mov edi, dword [esp + 0x68]
jle 0x4ae3b1
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
shl edx, 2
dec esi
lea ecx, [edi + eax*4]
mov dword [esp + 0x44], edx
mov eax, edi
mov dword [esp + 0x64], esi
mov esi, dword [esp + 0x5c]
add eax, edx
sub ecx, edx
mov dword [esp + 0x4c], eax
test esi, esi
mov dword [esp + 0x48], ecx
jle 0x4ae3a2
mov edx, dword [esp + 0x70]
lea esi, [ebx*4]
sub edx, edi
mov edi, dword [esp + 0x5c]
fld dword [eax]
fsub dword [ecx]
fstp dword [edx + eax]
fld dword [eax]
fadd dword [ecx]
add eax, esi
fstp dword [edx + ecx]
add ecx, esi
dec edi
jne 0x4ae37d
mov edi, dword [esp + 0x68]
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x44]
mov esi, dword [esp + 0x64]
dec esi
mov dword [esp + 0x64], esi
jne 0x4ae358
mov esi, dword [esp + 0x10]
cmp ebx, 1
je 0x4ae84f
mov ecx, dword [esp + 0x30]
mov eax, dword [esp + 0x5c]
cmp ecx, eax
jge 0x4ae4e6
cmp esi, 1
jle 0x4ae5fe
mov eax, dword [esp + 0x70]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x64], eax
lea edx, [eax + ecx*4]
mov eax, dword [esp + 0x68]
mov dword [esp + 0x28], edx
mov edx, dword [esp + 0x10]
lea ecx, [eax + ecx*4 - 4]
add eax, 0xfffffffc
dec edx
mov dword [esp + 0x24], ecx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x3c], edx
mov eax, dword [esp + 0x14]
mov edi, dword [esp + 0x64]
mov esi, dword [esp + 0x2c]
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x24]
shl eax, 2
add edi, eax
add esi, eax
sub edx, eax
sub ecx, eax
cmp ebx, 2
mov dword [esp + 0x64], edi
mov dword [esp + 0x2c], esi
mov dword [esp + 0x28], edx
mov dword [esp + 0x24], ecx
jle 0x4ae4d2
mov eax, esi
mov esi, edx
lea edx, [ebx - 3]
shr edx, 1
inc edx
mov dword [esp + 0x40], edx
add edi, 8
add eax, 8
add esi, 8
add ecx, 8
cmp dword [esp + 0x5c], 0
mov dword [esp + 0x38], edi
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], esi
mov dword [esp + 0x4c], ecx
jle 0x4ae4c7
mov ebp, dword [esp + 0x68]
lea edx, [ebx*4]
mov ebx, esi
mov esi, dword [esp + 0x70]
sub esi, ebp
mov ebp, dword [esp + 0x5c]
fld dword [eax]
fsub dword [ecx + 4]
fstp dword [eax + esi]
fld dword [eax]
fadd dword [ecx + 4]
fstp dword [ecx + esi]
fld dword [eax + 4]
fadd dword [ecx]
fstp dword [edi]
fld dword [eax + 4]
fsub dword [ecx]
add edi, edx
add eax, edx
add ecx, edx
fstp dword [ebx]
add ebx, edx
dec ebp
jne 0x4ae482
mov ebp, dword [esp + 0x60]
mov edx, dword [esp + 0x40]
mov ecx, dword [esp + 0x4c]
mov esi, dword [esp + 0x48]
mov eax, dword [esp + 0x44]
mov edi, dword [esp + 0x38]
mov ebx, dword [esp + 0x54]
dec edx
mov dword [esp + 0x40], edx
jne 0x4ae448
mov eax, dword [esp + 0x3c]
dec eax
mov dword [esp + 0x3c], eax
jne 0x4ae402
jmp 0x4ae5fe
cmp esi, 1
jle 0x4ae5fe
mov eax, dword [esp + 0x70]
mov ecx, dword [esp + 0x18]
mov edi, eax
lea esi, [eax + ecx*4]
mov eax, dword [esp + 0x68]
lea ecx, [eax + ecx*4 - 4]
lea edx, [eax - 4]
mov eax, dword [esp + 0x10]
dec eax
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x14]
shl eax, 2
add edi, eax
add edx, eax
sub esi, eax
sub ecx, eax
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x4c], edi
test eax, eax
mov dword [esp + 0x44], edx
mov dword [esp + 0x2c], esi
mov dword [esp + 0x48], ecx
jle 0x4ae5ef
mov dword [esp + 0x64], edx
mov edx, eax
mov dword [esp + 0x40], edi
mov dword [esp + 0x54], esi
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x38], edx
cmp ebx, 2
jle 0x4ae5a1
mov esi, dword [esp + 0x70]
mov edx, dword [esp + 0x68]
mov ebp, dword [esp + 0x54]
mov eax, dword [esp + 0x64]
sub esi, edx
lea edx, [ebx - 3]
shr edx, 1
inc edx
fld dword [eax + 8]
fsub dword [ecx + 0xc]
add eax, 8
add ecx, 8
add edi, 8
add ebp, 8
dec edx
fstp dword [eax + esi]
fld dword [ecx + 4]
fadd dword [eax]
fstp dword [ecx + esi]
fld dword [eax + 4]
fadd dword [ecx]
fstp dword [edi]
fld dword [eax + 4]
fsub dword [ecx]
fstp dword [ebp]
jne 0x4ae56e
mov ebp, dword [esp + 0x60]
mov ecx, dword [esp + 0x64]
mov edi, dword [esp + 0x40]
mov esi, dword [esp + 0x54]
lea eax, [ebx*4]
add ecx, eax
add edi, eax
mov dword [esp + 0x64], ecx
mov ecx, dword [esp + 0x3c]
add esi, eax
add ecx, eax
mov eax, dword [esp + 0x38]
mov dword [esp + 0x40], edi
dec eax
mov dword [esp + 0x54], esi
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x38], eax
jne 0x4ae551
mov edi, dword [esp + 0x4c]
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x44]
mov esi, dword [esp + 0x2c]
mov eax, dword [esp + 0x34]
dec eax
mov dword [esp + 0x34], eax
jne 0x4ae510
test ebp, ebp
jle 0x4ae617
mov eax, dword [esp + 0x6c]
mov ecx, dword [esp + 0x74]
sub ecx, eax
mov edx, dword [ecx + eax]
mov dword [eax], edx
add eax, 4
dec ebp
jne 0x4ae60c
mov ecx, dword [esp + 0x58]
cmp ecx, 1
jle 0x4ae66c
mov ebp, dword [esp + 0x68]
mov edx, dword [esp + 0x5c]
lea eax, [ecx - 1]
mov dword [esp + 0x74], eax
mov eax, dword [esp + 0x14]
shl eax, 2
add ebp, eax
test edx, edx
jle 0x4ae661
mov ecx, dword [esp + 0x70]
mov edi, dword [esp + 0x68]
lea esi, [ebx*4]
mov eax, ebp
sub ecx, edi
mov edi, dword [eax + ecx]
mov dword [eax], edi
add eax, esi
dec edx
jne 0x4ae64f
mov edx, dword [esp + 0x5c]
mov ecx, dword [esp + 0x58]
mov eax, dword [esp + 0x74]
dec eax
mov dword [esp + 0x74], eax
jne 0x4ae62f
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x5c]
cmp edx, eax
jle 0x4ae774
or eax, 0xffffffff
sub eax, ebx
cmp ecx, 1
jle 0x4ae84f
mov edx, dword [esp + 0x14]
shl edx, 2
mov dword [esp + 0x4c], edx
mov edx, dword [esp + 0x78]
lea eax, [edx + eax*4]
mov edx, dword [esp + 0x68]
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0x70]
add eax, 0xfffffffc
dec ecx
mov dword [esp + 0x74], edx
mov dword [esp + 0x58], eax
mov dword [esp + 0x6c], ecx
mov esi, dword [esp + 0x64]
mov edx, dword [esp + 0x74]
mov ecx, dword [esp + 0x58]
lea eax, [ebx*4]
add esi, eax
mov eax, dword [esp + 0x4c]
add edx, eax
add ecx, eax
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x64], esi
test eax, eax
mov dword [esp + 0x74], edx
mov dword [esp + 0x58], ecx
jle 0x4ae75d
mov ebp, edx
mov edx, eax
mov dword [esp + 0x60], ecx
mov dword [esp + 0x54], edx
cmp ebx, 2
jle 0x4ae73f
mov edi, dword [esp + 0x68]
mov edx, dword [esp + 0x70]
mov ecx, dword [esp + 0x64]
mov eax, dword [esp + 0x60]
sub edi, edx
lea edx, [ebx - 3]
shr edx, 1
mov esi, ebp
inc edx
fld dword [ecx + 4]
fmul dword [eax + 8]
fld dword [ecx + 8]
add ecx, 8
add eax, 8
add esi, 8
dec edx
fmul dword [eax + 4]
fsubp st(1)
fstp dword [edi + eax]
fld dword [ecx]
fmul dword [eax]
fld dword [eax + 4]
fmul dword [ecx - 4]
faddp st(1)
fstp dword [esi]
jne 0x4ae714
mov ecx, dword [esp + 0x60]
lea eax, [ebx*4]
add ebp, eax
add ecx, eax
mov eax, dword [esp + 0x54]
mov dword [esp + 0x60], ecx
dec eax
mov dword [esp + 0x54], eax
jne 0x4ae6f5
mov eax, dword [esp + 0x6c]
dec eax
mov dword [esp + 0x6c], eax
jne 0x4ae6b8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x40
ret
or eax, 0xffffffff
sub eax, ebx
cmp ecx, 1
jle 0x4ae84f
mov edx, dword [esp + 0x14]
lea ebp, [ebx*4]
lea edi, [edx*4]
mov edx, dword [esp + 0x78]
mov dword [esp + 0x4c], edi
lea esi, [edx + eax*4]
mov eax, dword [esp + 0x70]
mov edx, dword [esp + 0x68]
add eax, 0xfffffffc
dec ecx
mov dword [esp + 0x58], ecx
add esi, ebp
add edx, edi
add eax, edi
cmp ebx, 2
mov dword [esp + 0x6c], esi
mov dword [esp + 0x78], edx
mov dword [esp + 0x54], eax
jle 0x4ae840
mov ecx, esi
lea esi, [ebx - 3]
shr esi, 1
inc esi
mov dword [esp + 0x74], esi
mov edi, dword [esp + 0x5c]
add ecx, 8
add edx, 8
add eax, 8
test edi, edi
mov dword [esp + 0x60], edx
mov dword [esp + 0x64], eax
jle 0x4ae829
mov esi, dword [esp + 0x68]
mov edi, dword [esp + 0x70]
sub esi, edi
mov edi, dword [esp + 0x5c]
fld dword [ecx - 4]
fmul dword [eax]
fld dword [ecx]
fmul dword [eax + 4]
fsubp st(1)
fstp dword [eax + esi]
fld dword [ecx - 4]
fmul dword [eax + 4]
fld dword [ecx]
fmul dword [eax]
add eax, ebp
faddp st(1)
fstp dword [edx]
add edx, ebp
dec edi
jne 0x4ae7f9
mov esi, dword [esp + 0x74]
mov eax, dword [esp + 0x64]
mov edx, dword [esp + 0x60]
dec esi
mov dword [esp + 0x74], esi
jne 0x4ae7d2
mov eax, dword [esp + 0x54]
mov esi, dword [esp + 0x6c]
mov edi, dword [esp + 0x4c]
mov edx, dword [esp + 0x78]
mov ecx, dword [esp + 0x58]
dec ecx
mov dword [esp + 0x58], ecx
jne 0x4ae7af
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x40
ret