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

Disassembly:
sub esp, 0x4c
fild dword [esp + 0x54]
mov ecx, dword [esp + 0x54]
push ebx
mov ebx, dword [esp + 0x54]
push ebp
fdivr dword [0x572668]
lea eax, [ecx + 1]
push esi
sar eax, 1
mov dword [esp + 0xc], eax
lea eax, [ebx - 1]
sar eax, 1
mov dword [esp + 0x24], eax
mov eax, ebx
push edi
fld st(0)
imul eax, dword [esp + 0x68]
fcos
mov dword [esp + 0x14], eax
mov eax, ebx
fstp dword [esp + 0x40]
imul eax, ecx
fsin
cmp ebx, 1
mov dword [esp + 0x1c], eax
fstp dword [esp + 0x3c]
je 0x5193b6
mov edx, dword [esp + 0x6c]
test edx, edx
jle 0x518ea6
mov eax, dword [esp + 0x80]
mov ecx, dword [esp + 0x78]
sub ecx, eax
mov esi, dword [ecx + eax]
mov dword [eax], esi
add eax, 4
dec edx
jne 0x518e9b
mov ecx, dword [esp + 0x64]
cmp ecx, 1
jle 0x518f07
mov eax, dword [esp + 0x14]
mov edi, dword [esp + 0x7c]
lea edx, [eax*4]
lea eax, [ecx - 1]
mov dword [esp + 0x38], edx
mov edx, dword [esp + 0x68]
mov dword [esp + 0x24], eax
add edi, dword [esp + 0x38]
test edx, edx
jle 0x518efa
mov ecx, dword [esp + 0x74]
mov ebp, dword [esp + 0x7c]
lea esi, [ebx*4]
mov eax, edi
sub ecx, ebp
mov ebp, dword [ecx + eax]
mov dword [eax], ebp
add eax, esi
dec edx
jne 0x518ee8
mov edx, dword [esp + 0x68]
mov ecx, dword [esp + 0x64]
mov eax, dword [esp + 0x24]
dec eax
mov dword [esp + 0x24], eax
jne 0x518ecd
jmp 0x518f0b
mov edx, dword [esp + 0x68]
mov eax, ebx
neg eax
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x28]
cmp eax, edx
jle 0x519035
cmp ecx, 1
jle 0x519114
mov eax, dword [esp + 0x84]
mov esi, dword [esp + 0x20]
lea ecx, [ebx*4]
mov edx, dword [esp + 0x14]
lea eax, [eax + esi*4 - 4]
mov dword [esp + 0x84], eax
mov eax, dword [esp + 0x7c]
sub eax, ecx
lea ecx, [ebx*4 + 4]
mov esi, ecx
mov ecx, dword [esp + 0x74]
sub ecx, esi
mov esi, dword [esp + 0x64]
shl edx, 2
dec esi
mov dword [esp + 0x38], edx
mov dword [esp + 0x34], esi
jmp 0x518f7c
mov edx, dword [esp + 0x38]
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x24]
add eax, edx
add ecx, edx
mov dword [esp + 0x24], eax
mov dword [esp + 0x2c], ecx
mov ecx, dword [esp + 0x84]
lea eax, [ebx*4]
add ecx, eax
mov eax, dword [esp + 0x68]
test eax, eax
mov dword [esp + 0x84], ecx
jle 0x519021
mov edx, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov dword [esp + 0x18], edx
mov dword [esp + 0x30], eax
mov ecx, dword [esp + 0x18]
lea eax, [ebx*4]
add ebp, eax
add ecx, eax
cmp ebx, 2
mov dword [esp + 0x18], ecx
jle 0x519016
mov edi, dword [esp + 0x7c]
mov edx, dword [esp + 0x74]
mov ecx, dword [esp + 0x84]
mov eax, dword [esp + 0x18]
sub edi, edx
lea edx, [ebx - 3]
shr edx, 1
mov esi, ebp
inc edx
fld dword [eax + 8]
fmul dword [ecx + 4]
fld dword [eax + 0xc]
add eax, 8
add ecx, 8
add esi, 8
dec edx
fmul dword [ecx]
faddp st(1)
fstp dword [edi + eax]
fld dword [eax + 4]
fmul dword [ecx - 4]
fld dword [ecx]
fmul dword [eax]
fsubp st(1)
fstp dword [esi]
jne 0x518fec
mov eax, dword [esp + 0x30]
dec eax
mov dword [esp + 0x30], eax
jne 0x518fb7
mov eax, dword [esp + 0x34]
dec eax
mov dword [esp + 0x34], eax
jne 0x518f70
jmp 0x519114
cmp ecx, 1
jle 0x519114
mov ecx, dword [esp + 0x84]
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x7c]
lea ebp, [ebx*4]
lea ecx, [ecx + eax*4 - 4]
mov eax, dword [esp + 0x74]
lea esi, [eax - 4]
mov eax, dword [esp + 0x64]
dec eax
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x14]
add ecx, ebp
shl eax, 2
add edx, eax
add esi, eax
cmp ebx, 2
mov dword [esp + 0x24], ecx
mov dword [esp + 0x18], edx
mov dword [esp + 0x2c], esi
jle 0x519105
mov eax, esi
lea esi, [ebx - 3]
shr esi, 1
inc esi
mov dword [esp + 0x84], esi
mov edi, dword [esp + 0x68]
add ecx, 8
add edx, 8
add eax, 8
test edi, edi
mov dword [esp + 0x30], edx
mov dword [esp + 0x38], eax
jle 0x5190ef
mov esi, dword [esp + 0x7c]
mov edi, dword [esp + 0x74]
sub esi, edi
mov edi, dword [esp + 0x68]
fld dword [eax + 4]
fmul dword [ecx]
fld dword [ecx - 4]
fmul dword [eax]
faddp st(1)
fstp dword [eax + esi]
fld dword [ecx - 4]
fmul dword [eax + 4]
fld dword [eax]
fmul dword [ecx]
add eax, ebp
fsubp st(1)
fstp dword [edx]
add edx, ebp
dec edi
jne 0x5190bc
mov esi, dword [esp + 0x84]
mov eax, dword [esp + 0x38]
mov edx, dword [esp + 0x30]
dec esi
mov dword [esp + 0x84], esi
jne 0x519095
mov esi, dword [esp + 0x2c]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x34]
dec eax
mov dword [esp + 0x34], eax
jne 0x519068
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x68]
mov eax, dword [esp + 0x28]
imul edx, dword [esp + 0x64]
cmp eax, ecx
mov eax, dword [esp + 0x10]
mov dword [esp + 0x84], 0
jge 0x51929d
cmp eax, 1
jle 0x5193b6
mov eax, dword [esp + 0x20]
mov edi, dword [esp + 0x74]
mov ebp, dword [esp + 0x7c]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x10]
lea esi, [ebx*4]
lea ecx, [ebx*4 + 4]
sub edi, esi
sub ebp, ecx
dec eax
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x84]
add ecx, eax
sub edx, eax
mov dword [esp + 0x84], ecx
lea ecx, [eax*4]
add edi, ecx
add ebp, ecx
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x58], edi
add ecx, eax
cmp ebx, 2
mov dword [esp + 0x20], ecx
mov ecx, dword [esp + 0x84]
mov dword [esp + 0x54], ebp
mov dword [esp + 0x24], edx
mov dword [esp + 0x18], ecx
jle 0x519289
mov eax, ebp
mov ebp, dword [esp + 0x84]
sub edx, ebp
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x44], edx
lea edx, [ebx - 3]
shr edx, 1
inc edx
mov dword [esp + 0x2c], edx
mov ebp, dword [esp + 0x18]
add edi, 8
add ebp, 2
add eax, 8
mov dword [esp + 0x18], ebp
mov ebp, dword [esp + 0x68]
add ecx, 2
mov dword [esp + 0x4c], edi
test ebp, ebp
mov dword [esp + 0x48], eax
mov dword [esp + 0x50], ecx
jle 0x519272
mov edx, dword [esp + 0x44]
add ecx, edx
mov edx, dword [esp + 0x74]
shl ecx, 2
lea ebp, [ecx + edx]
mov dword [esp + 0x34], ebp
mov ebp, dword [esp + 0x7c]
sub edx, ebp
lea ecx, [ecx + ebp - 4]
mov ebp, dword [esp + 0x68]
mov dword [esp + 0x30], ebp
fld dword [eax + esi]
fadd dword [ecx + esi]
add eax, esi
add ecx, esi
mov ebp, dword [esp + 0x34]
add edi, esi
add ebp, esi
fstp dword [eax + edx]
fld dword [eax + 4]
fsub dword [ecx + 4]
mov dword [esp + 0x34], ebp
fstp dword [ecx + edx]
fld dword [ecx + 4]
fadd dword [eax + 4]
fstp dword [edi]
fld dword [ecx]
fsub dword [eax]
fstp dword [ebp]
mov ebp, dword [esp + 0x30]
dec ebp
mov dword [esp + 0x30], ebp
jne 0x519226
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x48]
mov edi, dword [esp + 0x4c]
mov ecx, dword [esp + 0x50]
dec edx
mov dword [esp + 0x2c], edx
jne 0x5191d8
mov edx, dword [esp + 0x24]
mov ebp, dword [esp + 0x54]
mov edi, dword [esp + 0x58]
mov eax, dword [esp + 0x38]
dec eax
mov dword [esp + 0x38], eax
jne 0x519170
jmp 0x5193b6
cmp eax, 1
jle 0x5193b6
mov eax, dword [esp + 0x74]
mov edi, eax
lea ebp, [eax + edx*4]
mov eax, dword [esp + 0x7c]
lea ecx, [eax + edx*4 - 4]
lea edx, [eax - 4]
mov eax, dword [esp + 0x10]
dec eax
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x14]
shl eax, 2
add edi, eax
add edx, eax
sub ebp, eax
sub ecx, eax
mov eax, dword [esp + 0x68]
mov dword [esp + 0x54], edi
test eax, eax
mov dword [esp + 0x4c], edx
mov dword [esp + 0x58], ebp
mov dword [esp + 0x50], ecx
jle 0x5193a7
mov dword [esp + 0x84], edx
mov edx, eax
mov dword [esp + 0x38], edi
mov dword [esp + 0x34], ebp
mov dword [esp + 0x30], ecx
mov dword [esp + 0x2c], edx
cmp ebx, 2
jle 0x519353
mov esi, dword [esp + 0x74]
mov edx, dword [esp + 0x7c]
mov eax, dword [esp + 0x84]
sub esi, edx
lea edx, [ebx - 3]
shr edx, 1
inc edx
fld dword [eax + 8]
fadd dword [ecx + 8]
add eax, 8
add ecx, 8
add edi, 8
add ebp, 8
dec edx
fstp dword [eax + esi]
fld dword [eax + 4]
fsub dword [ecx + 4]
fstp dword [ecx + esi]
fld dword [ecx + 4]
fadd dword [eax + 4]
fstp dword [edi]
fld dword [ecx]
fsub dword [eax]
fstp dword [ebp]
jne 0x519323
mov ebp, dword [esp + 0x84]
mov edi, dword [esp + 0x38]
mov ecx, dword [esp + 0x30]
lea eax, [ebx*4]
add ebp, eax
add edi, eax
mov dword [esp + 0x84], ebp
mov ebp, dword [esp + 0x34]
add ebp, eax
add ecx, eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x38], edi
dec eax
mov dword [esp + 0x34], ebp
mov dword [esp + 0x30], ecx
mov dword [esp + 0x2c], eax
jne 0x519307
mov ebp, dword [esp + 0x58]
mov edi, dword [esp + 0x54]
mov ecx, dword [esp + 0x50]
mov edx, dword [esp + 0x4c]
mov eax, dword [esp + 0x24]
dec eax
mov dword [esp + 0x24], eax
jne 0x5192c3
mov esi, dword [esp + 0x6c]
test esi, esi
jle 0x5193d8
mov eax, dword [esp + 0x78]
mov ecx, dword [esp + 0x80]
sub ecx, eax
mov edx, esi
mov edi, dword [ecx + eax]
mov dword [eax], edi
add eax, 4
dec edx
jne 0x5193cd
mov edx, dword [esp + 0x64]
mov eax, dword [esp + 0x10]
imul edx, esi
mov ebp, dword [esp + 0x14]
xor ecx, ecx
cmp eax, 1
mov dword [esp + 0x54], edx
jle 0x51949c
mov esi, dword [esp + 0x7c]
lea eax, [ebx*4]
mov edi, ebx
sub esi, eax
mov eax, dword [esp + 0x10]
neg edi
dec eax
mov dword [esp + 0x34], eax
lea eax, [ebp*4]
add ecx, ebp
add esi, eax
mov eax, dword [esp + 0x68]
add edi, ebp
sub edx, ebp
test eax, eax
mov dword [esp + 0x84], ecx
mov dword [esp + 0x24], edx
jle 0x519485
mov ebp, edi
mov eax, esi
sub ebp, ecx
add ebp, edx
mov edx, dword [esp + 0x74]
mov ecx, ebp
mov ebp, dword [esp + 0x7c]
sub edx, ebp
lea ecx, [ebp + ecx*4]
mov ebp, dword [esp + 0x68]
mov dword [esp + 0x38], ebp
lea ebp, [ebx*4]
add eax, ebp
add ecx, ebp
mov ebp, dword [esp + 0x38]
fld dword [eax]
fadd dword [ecx]
dec ebp
mov dword [esp + 0x38], ebp
fstp dword [eax + edx]
fld dword [ecx]
fsub dword [eax]
fstp dword [ecx + edx]
jne 0x519452
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x84]
mov ebp, dword [esp + 0x14]
mov eax, dword [esp + 0x34]
dec eax
mov dword [esp + 0x34], eax
jne 0x519410
mov esi, dword [esp + 0x6c]
mov edx, dword [esp + 0x54]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x64]
mov dword [esp + 0x74], 0x3f800000
dec ecx
imul ecx, esi
fld dword [0x539ea4]
cmp eax, 1
mov dword [esp + 0x38], ecx
jle 0x519648
mov ecx, dword [esp + 0x80]
dec eax
fld dword [esp + 0x74]
lea edx, [ecx + edx*4]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x84], edx
mov dword [esp + 0x2c], eax
fld dword [esp + 0x40]
fmul st(1)
fld st(2)
fmul dword [esp + 0x3c]
mov edx, dword [esp + 0x6c]
mov ebp, dword [esp + 0x18]
mov edi, dword [esp + 0x84]
xor eax, eax
fsubp st(1)
lea ecx, [edx*4]
add ebp, ecx
sub edi, ecx
fstp dword [esp + 0x74]
test edx, edx
fmul dword [esp + 0x3c]
fxch st(1)
fmul dword [esp + 0x40]
mov dword [esp + 0x18], ebp
mov dword [esp + 0x84], edi
faddp st(1)
fld dword [esp + 0x74]
jle 0x51956a
mov ebp, dword [esp + 0x78]
mov edx, dword [esp + 0x38]
add ecx, ebp
lea esi, [ebp + edx*4]
mov edx, dword [esp + 0x18]
fld dword [esp + 0x74]
fmul dword [ecx]
mov ebp, dword [esp + 0x78]
add ecx, 4
add edx, 4
add esi, 4
fadd dword [ebp + eax*4]
mov ebp, dword [esp + 0x6c]
add edi, 4
inc eax
cmp eax, ebp
fstp dword [edx - 4]
fld st(1)
fmul dword [esi - 4]
fstp dword [edi - 4]
jl 0x51953c
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x74]
cmp ecx, 2
mov dword [esp + 0x58], eax
fld st(1)
jle 0x51962d
mov ebp, dword [esp + 0x6c]
mov eax, dword [esp + 0x78]
fld dword [esp + 0x58]
lea edx, [eax + ebp*4]
add ecx, 0xfffffffe
mov dword [esp + 0x20], edx
mov edx, dword [esp + 0x38]
mov dword [esp + 0x30], ecx
lea eax, [eax + edx*4]
mov dword [esp + 0x24], eax
fld dword [esp + 0x74]
fmul st(1)
fld st(2)
fmul st(5)
mov edx, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
lea eax, [ebp*4]
fsubp st(1)
add edx, eax
sub ecx, eax
test ebp, ebp
fstp dword [esp + 0x34]
fxch st(1)
fmul dword [esp + 0x74]
fxch st(1)
fmul st(3)
mov dword [esp + 0x20], edx
mov dword [esp + 0x24], ecx
faddp st(1)
fld dword [esp + 0x34]
jle 0x51961c
mov ecx, dword [esp + 0x84]
mov esi, dword [esp + 0x24]
mov eax, dword [esp + 0x18]
mov edi, ebp
fld dword [esp + 0x34]
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 0x5195f6
mov eax, dword [esp + 0x30]
dec eax
mov dword [esp + 0x30], eax
jne 0x5195a6
fstp st(0)
mov eax, dword [esp + 0x2c]
dec eax
fstp st(0)
mov dword [esp + 0x2c], eax
jne 0x5194dd
mov ebp, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
fstp st(0)
cmp eax, 1
fstp st(0)
jle 0x5196a4
mov ecx, dword [esp + 0x6c]
mov eax, dword [esp + 0x10]
mov edi, dword [esp + 0x78]
dec eax
lea edx, [ecx*4]
mov dword [esp + 0x74], eax
mov dword [esp + 0x84], edx
mov edx, dword [esp + 0x80]
mov esi, ecx
mov eax, dword [esp + 0x84]
add edi, eax
xor eax, eax
test esi, esi
jle 0x519699
mov ecx, edi
fld dword [edx + eax*4]
fadd dword [ecx]
inc eax
add ecx, 4
cmp eax, esi
fstp dword [edx + eax*4 - 4]
jl 0x519688
mov eax, dword [esp + 0x74]
dec eax
mov dword [esp + 0x74], eax
jne 0x519677
mov eax, dword [esp + 0x68]
cmp ebx, eax
jge 0x51970b
test ebx, ebx
jle 0x519765
mov edx, dword [esp + 0x7c]
mov ecx, dword [esp + 0x70]
sub ecx, edx
mov dword [esp + 0x74], ebx
mov dword [esp + 0x6c], ecx
mov eax, dword [esp + 0x68]
test eax, eax
jle 0x5196fb
mov eax, dword [esp + 0x1c]
mov esi, dword [esp + 0x68]
add ecx, edx
lea edi, [eax*4]
mov eax, edx
mov ebp, dword [eax]
mov dword [ecx], ebp
lea ebp, [ebx*4]
add eax, ebp
add ecx, edi
dec esi
jne 0x5196e1
mov ecx, dword [esp + 0x6c]
mov ebp, dword [esp + 0x14]
mov eax, dword [esp + 0x74]
add edx, 4
dec eax
mov dword [esp + 0x74], eax
jne 0x5196c6
jmp 0x519765
test eax, eax
jle 0x519765
mov ecx, dword [esp + 0x1c]
mov esi, dword [esp + 0x7c]
mov dword [esp + 0x6c], eax
lea edx, [ecx*4]
mov ecx, dword [esp + 0x70]
mov dword [esp + 0x78], edx
mov dword [esp + 0x74], ecx
test ebx, ebx
jle 0x519743
mov eax, esi
mov edx, ebx
mov edi, dword [eax]
add eax, 4
mov dword [ecx], edi
add ecx, 4
dec edx
jne 0x519736
mov ecx, dword [esp + 0x74]
mov edx, dword [esp + 0x78]
lea eax, [ebx*4]
add ecx, edx
add esi, eax
mov eax, dword [esp + 0x6c]
dec eax
mov dword [esp + 0x74], ecx
mov dword [esp + 0x6c], eax
jne 0x51972e
mov esi, ebp
mov ecx, dword [esp + 0x10]
imul esi, dword [esp + 0x64]
cmp ecx, 1
lea eax, [ebx + ebx]
mov dword [esp + 0x84], esi
jle 0x51980b
mov edi, dword [esp + 0x10]
mov ecx, dword [esp + 0x7c]
shl eax, 2
dec edi
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0x70]
lea edx, [ecx + esi*4]
mov dword [esp + 0x74], edi
mov edi, dword [esp + 0x64]
add eax, edi
lea edi, [ebp*4]
add ecx, edi
sub edx, edi
mov edi, dword [esp + 0x68]
mov dword [esp + 0x6c], eax
test edi, edi
mov dword [esp + 0x78], ecx
mov dword [esp + 0x80], edx
jle 0x519800
lea esi, [ebx*4]
mov ebp, dword [ecx]
add ecx, esi
mov dword [eax - 4], ebp
mov ebp, dword [edx]
mov dword [eax], ebp
mov ebp, dword [esp + 0x1c]
shl ebp, 2
add eax, ebp
add edx, esi
dec edi
jne 0x5197cd
mov ebp, dword [esp + 0x14]
mov eax, dword [esp + 0x6c]
mov ecx, dword [esp + 0x78]
mov edx, dword [esp + 0x80]
mov esi, dword [esp + 0x84]
mov edi, dword [esp + 0x74]
dec edi
mov dword [esp + 0x74], edi
jne 0x51979e
cmp ebx, 1
je 0x519b3b
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x68]
cmp ecx, eax
jge 0x5199d7
mov edx, dword [esp + 0x10]
mov eax, ebx
neg eax
cmp edx, 1
mov dword [esp + 0x18], 0
jle 0x519b3b
lea ecx, [ebx + ebx]
mov edi, ecx
shl ecx, 2
mov dword [esp + 0x58], ecx
mov ecx, dword [esp + 0x7c]
shl ebp, 2
lea esi, [ecx + esi*4 + 8]
add ecx, 8
mov dword [esp + 0x7c], ecx
mov ecx, 4
mov dword [esp + 0x54], ebp
sub ecx, eax
lea ebp, [eax + ebx - 2]
mov eax, dword [esp + 0x70]
neg edi
sub ecx, ebx
dec edx
mov dword [esp + 0x74], esi
mov dword [esp + 0x44], edi
lea esi, [eax + ebp*4]
mov dword [esp + 0x3c], edx
mov edx, dword [esp + 0x58]
lea eax, [ebx + ebx]
add esi, edx
mov edx, dword [esp + 0x18]
add edx, eax
add ebp, eax
mov eax, dword [esp + 0x54]
mov dword [esp + 0x18], edx
mov edx, dword [esp + 0x7c]
add ecx, edi
add edx, eax
mov dword [esp + 0x48], ebp
mov dword [esp + 0x7c], edx
mov edx, dword [esp + 0x74]
sub edx, eax
cmp ebx, 2
mov dword [esp + 0x4c], esi
mov dword [esp + 0x50], ecx
mov dword [esp + 0x74], edx
jle 0x5199c0
mov eax, dword [esp + 0x74]
mov edx, dword [esp + 0x7c]
mov dword [esp + 0x6c], eax
lea eax, [ebx - 3]
shr eax, 1
inc eax
mov dword [esp + 0x80], ecx
mov dword [esp + 0x64], edx
mov dword [esp + 0x78], ebp
mov dword [esp + 0x84], esi
mov dword [esp + 0x40], eax
mov edx, dword [esp + 0x68]
test edx, edx
jle 0x519964
mov edx, dword [esp + 0x78]
mov ebp, dword [esp + 0x80]
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x6c]
add edx, ebp
mov ebp, dword [esp + 0x18]
shl ebx, 2
add edx, ebp
mov ebp, dword [esp + 0x70]
lea edi, [ecx*4]
mov ecx, dword [esp + 0x64]
lea edx, [ebp + edx*4]
mov ebp, dword [esp + 0x68]
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 [eax]
fadd dword [ecx]
fstp dword [edx]
fld dword [eax]
fsub dword [ecx]
add edx, edi
add eax, ebx
add ecx, ebx
fstp dword [esi]
add esi, edi
dec ebp
jne 0x51992f
mov ebx, dword [esp + 0x60]
mov ecx, dword [esp + 0x50]
mov eax, dword [esp + 0x40]
mov esi, dword [esp + 0x64]
mov ebp, dword [esp + 0x6c]
mov edi, dword [esp + 0x80]
mov edx, 8
add esi, edx
add ebp, edx
mov dword [esp + 0x64], esi
mov esi, dword [esp + 0x84]
mov dword [esp + 0x6c], ebp
mov ebp, dword [esp + 0x78]
sub esi, edx
sub ebp, 2
add edi, 4
dec eax
mov dword [esp + 0x84], esi
mov dword [esp + 0x78], ebp
mov dword [esp + 0x80], edi
mov dword [esp + 0x40], eax
jne 0x5198f2
mov esi, dword [esp + 0x4c]
mov ebp, dword [esp + 0x48]
mov edi, dword [esp + 0x44]
mov eax, dword [esp + 0x3c]
dec eax
mov dword [esp + 0x3c], eax
jne 0x519882
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4c
ret
mov eax, dword [esp + 0x10]
mov edi, ebx
neg edi
cmp eax, 1
jle 0x519b3b
lea eax, [ebp*4]
mov ebp, dword [esp + 0x7c]
add edi, ebx
lea ecx, [ebx + ebx]
lea edx, [ebp + esi*4 + 8]
add ebp, 8
mov dword [esp + 0x6c], edx
mov edx, dword [esp + 0x70]
shl ecx, 2
lea esi, [edx + 8]
lea edx, [edx + edi*4 - 8]
mov dword [esp + 0x74], edx
mov edx, dword [esp + 0x10]
dec edx
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], ecx
mov dword [esp + 0x64], esi
mov dword [esp + 0x7c], ebp
mov dword [esp + 0x60], edx
jmp 0x519a38
mov ecx, dword [esp + 0x58]
mov eax, dword [esp + 0x54]
mov edi, dword [esp + 0x74]
mov esi, dword [esp + 0x64]
mov edx, dword [esp + 0x7c]
add edi, ecx
add esi, ecx
mov ecx, dword [esp + 0x6c]
add edx, eax
sub ecx, eax
mov eax, dword [esp + 0x68]
mov dword [esp + 0x74], edi
test eax, eax
mov dword [esp + 0x64], esi
mov dword [esp + 0x7c], edx
mov dword [esp + 0x6c], ecx
jle 0x519b2c
mov eax, edx
mov edx, dword [esp + 0x6c]
mov dword [esp + 0x70], eax
mov eax, dword [esp + 0x68]
mov ecx, edi
mov ebp, esi
mov dword [esp + 0x78], ecx
mov dword [esp + 0x80], edx
mov dword [esp + 0x84], eax
cmp ebx, 2
jle 0x519adf
mov ecx, dword [esp + 0x70]
mov eax, dword [esp + 0x80]
mov edi, dword [esp + 0x78]
lea edx, [ebx - 3]
shr edx, 1
mov esi, ebp
inc edx
fld dword [ecx - 4]
fadd dword [eax - 4]
add esi, 8
add eax, 8
add ecx, 8
sub edi, 8
dec edx
fstp dword [esi - 0xc]
fld dword [ecx - 0xc]
fsub dword [eax - 0xc]
fstp dword [edi + 4]
fld dword [ecx - 8]
fadd dword [eax - 8]
fstp dword [esi - 8]
fld dword [eax - 8]
fsub dword [ecx - 8]
fstp dword [edi + 8]
jne 0x519aac
mov ecx, dword [esp + 0x1c]
mov esi, dword [esp + 0x78]
mov edx, dword [esp + 0x70]
lea eax, [ecx*4]
mov ecx, dword [esp + 0x80]
add ebp, eax
add esi, eax
lea eax, [ebx*4]
mov dword [esp + 0x78], esi
add edx, eax
add ecx, eax
mov eax, dword [esp + 0x84]
mov dword [esp + 0x70], edx
dec eax
mov dword [esp + 0x80], ecx
mov dword [esp + 0x84], eax
jne 0x519a90
mov eax, dword [esp + 0x60]
dec eax
mov dword [esp + 0x60], eax
jne 0x519a30
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4c
ret