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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x94
mov eax, dword [ebp + 0x24]
push ebx
push esi
push edi
mov edi, dword [sym.imp.MSVCRT.dll_malloc]
lea esi, [eax*8]
mov dword [esp + 0x5c], ecx
push esi
call edi
push esi
mov dword [esp + 0x48], eax
call edi
push esi
mov dword [esp + 0x44], eax
call edi
mov ebx, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
mov dword [esp + 0x94], eax
add esp, 0xc
lea eax, [ebx - 1]
mov ecx, esi
cmp eax, esi
mov dword [esp + 0x28], ecx
jge 0x415327
mov ecx, eax
mov dword [esp + 0x28], ecx
lea edx, [esi - 2]
mov eax, ebx
cmp edx, ebx
mov dword [esp + 0x3c], eax
jge 0x41533a
mov eax, edx
mov dword [esp + 0x3c], eax
test eax, eax
jge 0x415344
xor eax, eax
mov dword [esp + 0x3c], eax
cmp eax, ecx
mov dword [esp + 0x24], ecx
jle 0x415352
mov ecx, eax
mov dword [esp + 0x24], ecx
cmp ecx, 1
jl 0x41587a
mov eax, dword [esp + 0x24]
mov ecx, 1
cmp eax, ecx
mov dword [esp + 0x44], ecx
jl 0x41587a
mov edx, dword [esp + 0x40]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x2c], edx
mov edx, dword [esp + 0x38]
lea eax, [edx + 8]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x88]
sub eax, edx
mov dword [esp + 0x48], eax
cmp ecx, dword [esp + 0x28]
jg 0x415491
fld qword [0x4206c0]
cmp ecx, ebx
jg 0x4153d6
lea edx, [esi + 1]
mov eax, dword [ebp + 8]
imul edx, ecx
sub edx, esi
lea edi, [esi*8]
lea edx, [eax + edx*8 - 8]
mov eax, ebx
sub eax, ecx
inc eax
fld qword [edx]
fld st(0)
fmul st(1)
add edx, edi
dec eax
faddp st(2)
fstp st(0)
jne 0x4153c7
fsqrt
mov edx, dword [esp + 0x2c]
fstp qword [esp + 0x30]
fld qword [esp + 0x30]
fcomp qword [0x4206c0]
mov eax, dword [esp + 0x30]
mov edi, dword [esp + 0x34]
mov dword [edx], eax
mov dword [edx + 4], edi
fnstsw ax
test ah, 0x40
jne 0x41548b
mov edx, dword [esp + 0x1c]
mov edi, dword [ebp + 8]
lea edx, [edx + ecx - 1]
mov dword [esp + 0x10], edx
fld qword [edi + edx*8]
fcomp qword [0x4206c0]
fnstsw ax
test ah, 0x40
jne 0x41544b
fld qword [esp + 0x30]
mov eax, dword [esp + 0x2c]
fabs
fld st(0)
fstp qword [eax]
fld qword [edi + edx*8]
fcomp qword [0x4206c0]
fnstsw ax
test ah, 1
je 0x415449
mov eax, dword [esp + 0x2c]
fchs
fstp qword [eax]
jmp 0x41544b
fstp st(0)
cmp ecx, ebx
jg 0x41547b
lea eax, [esi + 1]
sub ebx, ecx
imul eax, ecx
sub eax, esi
lea edx, [esi*8]
inc ebx
lea eax, [edi + eax*8 - 8]
mov edi, dword [esp + 0x2c]
fld qword [eax]
fdiv qword [edi]
fstp qword [eax]
add eax, edx
dec ebx
jne 0x415465
mov edi, dword [ebp + 8]
mov edx, dword [esp + 0x10]
fld qword [edi + edx*8]
fadd qword [0x420558]
fstp qword [edi + edx*8]
mov edx, dword [esp + 0x2c]
fld qword [edx]
fchs
fstp qword [edx]
lea edx, [ecx + 1]
cmp edx, esi
jg 0x4155ca
mov eax, dword [esp + 0x20]
mov edi, edx
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], eax
cmp ecx, dword [esp + 0x28]
jg 0x415595
mov eax, dword [esp + 0x2c]
fld qword [eax]
fcomp qword [0x4206c0]
fnstsw ax
test ah, 0x40
jne 0x415595
mov eax, dword [ebp + 0xc]
fld qword [0x4206c0]
cmp ecx, eax
jg 0x415529
lea eax, [esi + 1]
mov ebx, dword [ebp + 8]
imul eax, ecx
sub eax, esi
lea eax, [ebx + eax*8 - 8]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x1c]
add eax, edi
lea ebx, [ebx + eax*8 - 8]
mov eax, dword [ebp + 0xc]
sub eax, ecx
inc eax
jmp 0x415501
mov ebx, dword [esp + 0x10]
mov edi, dword [esp + 0xc]
fld qword [ebx]
fmul qword [edi]
lea edi, [esi*8]
add ebx, edi
mov dword [esp + 0x10], ebx
mov ebx, dword [esp + 0xc]
add ebx, edi
dec eax
faddp st(1)
mov dword [esp + 0xc], ebx
jne 0x4154fd
mov edi, dword [esp + 0x14]
mov eax, dword [esp + 0x1c]
mov ebx, dword [ebp + 8]
add eax, ecx
fdiv qword [ebx + eax*8 - 8]
cmp ecx, dword [ebp + 0xc]
fchs
fstp qword [esp + 0x60]
jg 0x415595
mov eax, dword [esp + 0x1c]
add edi, eax
mov eax, ebx
lea ebx, [esi + 1]
imul ebx, ecx
sub ebx, esi
lea edi, [eax + edi*8 - 8]
lea eax, [eax + ebx*8 - 8]
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 0xc]
sub eax, ecx
inc eax
jmp 0x415569
mov edi, dword [esp + 0x10]
mov ebx, dword [esp + 0xc]
fld qword [esp + 0x60]
fmul qword [ebx]
lea ebx, [esi*8]
fadd qword [edi]
fstp qword [edi]
add edi, ebx
mov dword [esp + 0x10], edi
mov edi, dword [esp + 0xc]
add edi, ebx
dec eax
mov dword [esp + 0xc], edi
jne 0x415565
mov edi, dword [esp + 0x14]
mov eax, dword [esp + 0x1c]
add edi, eax
mov eax, dword [ebp + 8]
mov ebx, dword [eax + edi*8 - 8]
mov eax, dword [esp + 0x18]
mov dword [eax], ebx
mov ebx, dword [ebp + 8]
add eax, 8
mov edi, dword [ebx + edi*8 - 4]
mov dword [esp + 0x18], eax
mov dword [eax - 4], edi
mov edi, dword [esp + 0x14]
inc edi
cmp edi, esi
mov dword [esp + 0x14], edi
jle 0x4154aa
cmp ecx, dword [esp + 0x28]
jg 0x415642
mov eax, dword [ebp + 0xc]
cmp ecx, eax
jg 0x415642
lea edi, [eax*8]
mov ebx, dword [ebp + 8]
mov dword [esp + 0x10], edi
lea edi, [eax + 1]
imul edi, ecx
sub edi, eax
mov eax, dword [ebp + 0x14]
lea edi, [eax + edi*8 - 8]
lea eax, [esi + 1]
imul eax, ecx
sub eax, esi
mov dword [esp + 0x18], edi
lea eax, [ebx + eax*8 - 8]
mov dword [esp + 0x14], eax
mov eax, dword [ebp + 0xc]
sub eax, ecx
inc eax
mov ebx, dword [esp + 0x14]
mov ebx, dword [ebx]
mov dword [edi], ebx
mov ebx, dword [esp + 0x14]
mov ebx, dword [ebx + 4]
mov dword [edi + 4], ebx
mov ebx, dword [esp + 0x14]
lea edi, [esi*8]
add ebx, edi
mov edi, dword [esp + 0x18]
mov dword [esp + 0x14], ebx
mov ebx, dword [esp + 0x10]
add edi, ebx
dec eax
mov dword [esp + 0x18], edi
jne 0x41560e
cmp ecx, dword [esp + 0x3c]
jg 0x415845
fld qword [0x4206c0]
mov ebx, dword [esp + 0x20]
cmp edx, esi
jg 0x415671
mov eax, esi
mov edi, ebx
sub eax, edx
inc eax
fld qword [edi]
fld st(0)
fmul st(1)
add edi, 8
dec eax
faddp st(2)
fstp st(0)
jne 0x415661
fsqrt
fstp qword [esp + 0x30]
fld qword [esp + 0x30]
fcomp qword [0x4206c0]
mov eax, dword [esp + 0x30]
mov edi, dword [esp + 0x34]
mov dword [ebx - 8], eax
mov dword [ebx - 4], edi
fnstsw ax
test ah, 0x40
jne 0x4156ef
fld qword [ebx]
fcomp qword [0x4206c0]
fnstsw ax
test ah, 0x40
jne 0x4156c6
fld qword [esp + 0x30]
fabs
fst qword [ebx - 8]
fld qword [ebx]
fcomp qword [0x4206c0]
fnstsw ax
test ah, 1
je 0x4156c4
fchs
fstp qword [ebx - 8]
jmp 0x4156c6
fstp st(0)
cmp edx, esi
jg 0x4156e1
mov eax, esi
sub eax, edx
inc eax
mov edi, dword [esp + 0x20]
fld qword [ebx]
fdiv qword [edi - 8]
add ebx, 8
dec eax
fstp qword [ebx - 8]
jne 0x4156cf
mov ebx, dword [esp + 0x20]
fld qword [ebx]
fadd qword [0x420558]
fstp qword [ebx]
fld qword [ebx - 8]
mov edi, dword [ebp + 0xc]
fchs
fst qword [esp + 0x60]
fstp qword [ebx - 8]
cmp edx, edi
jg 0x415812
fld qword [esp + 0x60]
fcomp qword [0x4206c0]
fnstsw ax
test ah, 0x40
jne 0x415812
sub edi, edx
xor eax, eax
lea ecx, [edi + edi + 2]
mov edi, dword [esp + 0x48]
and ecx, 0x3ffffffe
add edi, ebx
rep stosd dword es:[edi], eax
mov eax, edx
cmp edx, esi
mov dword [esp + 0x14], eax
jg 0x415799
mov dword [esp + 0xc], ebx
cmp edx, dword [ebp + 0xc]
jg 0x415785
lea edi, [edx - 1]
mov ecx, dword [esp + 0x88]
imul edi, esi
add edi, eax
mov eax, dword [ebp + 8]
lea ecx, [ecx + edx*8 - 8]
lea edi, [eax + edi*8 - 8]
mov eax, dword [ebp + 0xc]
sub eax, edx
inc eax
mov ebx, dword [esp + 0xc]
add ecx, 8
fld qword [ebx]
fmul qword [edi]
lea ebx, [esi*8]
add edi, ebx
dec eax
fadd qword [ecx - 8]
fstp qword [ecx - 8]
jne 0x415764
mov eax, dword [esp + 0x14]
mov edi, dword [esp + 0xc]
inc eax
add edi, 8
cmp eax, esi
mov dword [esp + 0x14], eax
mov dword [esp + 0xc], edi
jle 0x41573f
mov eax, edx
cmp edx, esi
mov dword [esp + 0x14], eax
jg 0x41580a
mov ecx, dword [esp + 0x20]
mov dword [esp + 0xc], ecx
mov ebx, dword [ebp + 0xc]
cmp edx, ebx
jg 0x4157f6
mov ecx, dword [esp + 0x88]
lea edi, [ecx + edx*8 - 8]
lea ecx, [edx - 1]
imul ecx, esi
add ecx, eax
mov eax, dword [ebp + 8]
lea ecx, [eax + ecx*8 - 8]
mov eax, ebx
sub eax, edx
inc eax
mov ebx, dword [esp + 0xc]
fld qword [edi]
fmul qword [ebx]
mov ebx, dword [esp + 0x20]
add edi, 8
fdiv qword [ebx]
lea ebx, [esi*8]
fsubr qword [ecx]
fstp qword [ecx]
add ecx, ebx
dec eax
jne 0x4157d1
mov eax, dword [esp + 0x14]
mov edi, dword [esp + 0xc]
inc eax
add edi, 8
cmp eax, esi
mov dword [esp + 0x14], eax
mov dword [esp + 0xc], edi
jle 0x4157ab
mov ecx, dword [esp + 0x44]
mov ebx, dword [esp + 0x20]
cmp edx, esi
jg 0x415849
mov eax, dword [esp + 0x1c]
mov edi, ebx
add eax, ecx
mov ecx, dword [ebp + 0x18]
add eax, esi
lea ecx, [ecx + eax*8 - 8]
mov eax, esi
sub eax, edx
inc eax
mov ebx, dword [edi]
add edi, 8
mov dword [ecx], ebx
mov ebx, dword [edi - 4]
mov dword [ecx + 4], ebx
lea ebx, [esi*8]
add ecx, ebx
dec eax
jne 0x41582c
mov ebx, dword [esp + 0x20]
mov eax, dword [esp + 0x1c]
mov edi, dword [esp + 0x2c]
add eax, esi
mov ecx, edx
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x24]
add ebx, 8
add edi, 8
mov dword [esp + 0x20], ebx
mov ebx, dword [ebp + 0xc]
cmp ecx, eax
mov dword [esp + 0x44], ecx
mov dword [esp + 0x2c], edi
jle 0x415398
lea eax, [ebx + 1]
mov edx, esi
cmp eax, esi
mov dword [esp + 0x20], edx
mov dword [esp + 0x10], eax
jge 0x415891
mov edx, eax
mov dword [esp + 0x20], edx
mov eax, dword [esp + 0x28]
cmp eax, esi
jge 0x4158bd
lea edx, [esi + 1]
mov ecx, dword [ebp + 8]
imul edx, eax
mov edi, dword [ecx + edx*8]
mov ecx, dword [esp + 0x40]
mov dword [ecx + eax*8], edi
mov edi, dword [ebp + 8]
mov edx, dword [edi + edx*8 + 4]
mov dword [ecx + eax*8 + 4], edx
mov edx, dword [esp + 0x20]
jmp 0x4158c1
mov ecx, dword [esp + 0x40]
cmp ebx, edx
jge 0x4158cf
xor edi, edi
mov dword [ecx + edx*8 - 8], edi
mov dword [ecx + edx*8 - 4], edi
mov edi, dword [esp + 0x3c]
lea ecx, [edi + 1]
cmp ecx, edx
jge 0x415904
mov eax, edi
mov ecx, dword [ebp + 8]
imul eax, esi
add eax, edx
mov edx, dword [ecx + eax*8 - 8]
mov ecx, dword [esp + 0x38]
mov dword [ecx + edi*8], edx
mov edx, dword [ebp + 8]
mov eax, dword [edx + eax*8 - 4]
mov edx, dword [esp + 0x20]
mov dword [ecx + edi*8 + 4], eax
mov eax, dword [esp + 0x28]
jmp 0x415908
mov ecx, dword [esp + 0x38]
xor edi, edi
cmp ebx, esi
mov dword [ecx + edx*8 - 8], edi
mov dword [ecx + edx*8 - 4], edi
mov edi, ebx
mov dword [esp + 0x2c], edi
jle 0x415922
mov edi, esi
mov dword [esp + 0x2c], edi
lea ecx, [eax + 1]
cmp ecx, edi
jg 0x415a2d
lea edx, [ecx - 1]
mov edi, dword [ebp + 0x14]
imul edx, ebx
mov dword [esp + 0xc], edx
lea edx, [edi + ecx*8 - 8]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x24], edx
cmp ebx, 1
jl 0x415978
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x18], ebx
mov dword [ecx], 0
lea edx, [ebx*8]
mov dword [ecx + 4], 0
add ecx, edx
mov edx, dword [esp + 0x18]
dec edx
mov dword [esp + 0x18], edx
jne 0x415953
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
add edx, ecx
inc ecx
mov dword [esp + 0x14], ecx
mov dword [edi + edx*8 - 8], 0
mov dword [edi + edx*8 - 4], 0x3ff00000
mov edx, dword [esp + 0x24]
add edx, 8
mov dword [esp + 0x24], edx
mov edx, dword [esp + 0xc]
add edx, ebx
mov dword [esp + 0xc], edx
mov edx, dword [esp + 0x2c]
cmp ecx, edx
jle 0x415946
mov edx, dword [esp + 0x20]
cmp eax, 1
jl 0x415c3b
or edx, 0xffffffff
mov ecx, ebx
sub edx, ebx
shl edx, 3
mov dword [esp + 0x30], edx
lea edx, [eax + 1]
mov dword [esp + 0x24], edx
mov edx, eax
imul edx, ebx
mov dword [esp + 0x18], edx
lea edx, [eax - 1]
imul edx, ebx
mov dword [esp + 0x44], edx
mov edx, dword [esp + 0x10]
imul edx, eax
shl edx, 3
mov dword [esp + 0x28], edx
lea edx, [edi + eax*8 - 8]
mov dword [esp + 0xc], edx
mov edx, dword [esp + 0x40]
sub edx, edi
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 0x90], edx
mov edx, 8
neg ecx
sub edx, edi
mov dword [esp + 0x48], ecx
lea ecx, [ebx*8]
mov dword [esp + 0x9c], edx
jmp 0x415a39
mov edi, dword [ebp + 0x14]
jmp 0x4159b4
mov edx, dword [esp + 0x9c]
dec eax
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0xc]
add edx, eax
mov eax, dword [esp + 0x44]
mov dword [esp + 0x70], edx
mov edx, dword [esp + 0x14]
lea edx, [edx + eax - 1]
mov eax, dword [esp + 0x90]
mov dword [esp + 0x6c], edx
mov edx, dword [esp + 0xc]
fld qword [eax + edx]
fcomp qword [0x4206c0]
fnstsw ax
test ah, 0x40
jne 0x415bb4
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x2c]
cmp edx, eax
jl 0x415b4e
mov edx, dword [esp + 0x44]
add edx, eax
lea edx, [edi + edx*8 - 8]
mov dword [esp + 0x1c], edx
mov edx, dword [esp + 0x2c]
sub edx, eax
inc edx
mov dword [esp + 0x8c], edx
mov eax, dword [esp + 0x14]
fld qword [0x4206c0]
cmp eax, ebx
jg 0x415aed
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x1c]
sub eax, ecx
lea eax, [eax + edi - 8]
mov dword [esp + 0x24], eax
mov eax, ebx
sub eax, dword [esp + 0x14]
inc eax
mov ebx, dword [esp + 0x24]
fld qword [edx]
fmul qword [ebx]
mov ebx, dword [esp + 0x6c]
add edx, ecx
fdiv qword [edi + ebx*8]
mov ebx, dword [esp + 0x24]
add ebx, ecx
dec eax
mov dword [esp + 0x24], ebx
faddp st(1)
jne 0x415aca
mov ebx, dword [ebp + 0xc]
mov eax, dword [esp + 0x14]
fchs
fstp qword [esp + 0x60]
cmp eax, ebx
jg 0x415b2e
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x1c]
sub eax, ecx
lea eax, [eax + edi - 8]
mov edi, dword [esp + 0x14]
mov dword [esp + 0x24], eax
mov eax, ebx
sub eax, edi
mov edi, dword [esp + 0x24]
inc eax
fld qword [esp + 0x60]
fmul qword [edi]
add edi, ecx
fadd qword [edx]
fstp qword [edx]
add edx, ecx
dec eax
jne 0x415b1a
mov edi, dword [ebp + 0x14]
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x8c]
add edx, 8
dec eax
mov dword [esp + 0x1c], edx
mov dword [esp + 0x8c], eax
jne 0x415aa3
mov edx, dword [esp + 0x14]
cmp edx, ebx
jg 0x415b82
mov eax, dword [esp + 0x28]
sub eax, ecx
lea eax, [eax + edi - 8]
mov dword [esp + 0x8c], eax
mov eax, ebx
sub eax, edx
mov edx, dword [esp + 0x8c]
inc eax
fld qword [edx]
fchs
fstp qword [edx]
add edx, ecx
dec eax
jne 0x415b73
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x6c]
dec edx
cmp edx, 1
fld qword [edi + eax*8]
fadd qword [0x420558]
fstp qword [edi + eax*8]
jl 0x415bef
mov eax, dword [esp + 0x70]
lea eax, [eax + edi - 8]
mov dword [eax], 0
mov dword [eax + 4], 0
add eax, ecx
dec edx
jne 0x415ba0
jmp 0x415bef
cmp ebx, 1
jl 0x415bcf
mov eax, edx
mov edx, ebx
mov dword [eax], 0
mov dword [eax + 4], 0
add eax, ecx
dec edx
jne 0x415bbd
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x48]
add eax, edx
mov edx, dword [esp + 0x14]
add eax, edx
mov dword [edi + eax*8 - 8], 0
mov dword [edi + eax*8 - 4], 0x3ff00000
mov eax, dword [esp + 0x48]
mov edx, dword [esp + 0x18]
add edx, eax
mov dword [esp + 0x18], edx
mov edx, dword [esp + 0x44]
add edx, eax
mov eax, dword [esp + 0xc]
sub eax, 8
mov dword [esp + 0x44], edx
mov edx, dword [esp + 0x28]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x30]
add edx, eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x28], edx
mov edx, dword [esp + 0x10]
dec edx
mov dword [esp + 0x24], eax
mov dword [esp + 0x10], edx
jne 0x415a32
mov edx, dword [esp + 0x20]
cmp esi, 1
jl 0x415dc9
or eax, 0xffffffff
lea edx, [esi + 1]
sub eax, esi
lea ecx, [esi*8]
shl eax, 3
imul edx, esi
mov dword [esp + 0x90], eax
lea edi, [esi + 1]
lea eax, [edx*8 - 8]
mov dword [esp + 0x18], edi
mov dword [esp + 0x28], ecx
mov dword [esp + 0xc], eax
mov dword [esp + 0x6c], esi
mov eax, dword [esp + 0x3c]
dec edi
cmp edi, eax
mov dword [esp + 0x30], edi
jg 0x415d5f
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x28]
fld qword [edx + eax - 8]
fcomp qword [0x4206c0]
fnstsw ax
test ah, 0x40
jne 0x415d5f
mov eax, dword [esp + 0x18]
cmp eax, esi
mov dword [esp + 0x14], eax
jg 0x415d5f
mov ebx, dword [ebp + 0x18]
mov eax, edi
imul eax, esi
fld qword [0x4206c0]
lea edx, [eax + edi]
mov edi, dword [esp + 0x14]
add eax, edi
mov edi, esi
lea edx, [ebx + edx*8 - 8]
lea eax, [ebx + eax*8 - 8]
mov ebx, dword [esp + 0x18]
sub edi, ebx
mov ebx, dword [ebp + 0x18]
mov dword [esp + 0x70], edi
inc edi
mov dword [esp + 0x10], edi
fld qword [edx]
fmul qword [eax]
mov edi, dword [esp + 0xc]
add eax, ecx
add edx, ecx
fdiv qword [edi + ebx]
dec dword [esp + 0x10]
faddp st(1)
jne 0x415ceb
mov edi, dword [esp + 0x30]
mov edx, dword [esp + 0x14]
mov eax, edi
imul eax, esi
fchs
add edx, eax
add eax, edi
lea eax, [ebx + eax*8 - 8]
lea edx, [ebx + edx*8 - 8]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x70]
inc eax
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x10]
fld st(0)
fmul qword [eax]
add eax, ecx
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x48]
fadd qword [edx]
fstp qword [edx]
add edx, ecx
dec eax
mov dword [esp + 0x48], eax
jne 0x415d2a
mov eax, dword [esp + 0x14]
inc eax
cmp eax, esi
mov dword [esp + 0x14], eax
fstp st(0)
jle 0x415cbb
mov ebx, dword [ebp + 0xc]
mov edx, dword [ebp + 0x18]
mov eax, dword [esp + 0x28]
lea eax, [eax + edx - 8]
mov edx, esi
mov dword [eax], 0
mov dword [eax + 4], 0
add eax, ecx
dec edx
jne 0x415d6c
mov eax, dword [esp + 0xc]
mov edx, dword [ebp + 0x18]
sub eax, ecx
mov dword [esp + 0x18], edi
mov dword [eax + edx], 0
mov dword [eax + edx + 4], 0x3ff00000
mov edx, dword [esp + 0x90]
mov eax, dword [esp + 0xc]
add eax, edx
mov edx, dword [esp + 0x28]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x6c]
sub edx, 8
dec eax
mov dword [esp + 0x28], edx
mov dword [esp + 0x6c], eax
jne 0x415c7a
mov edx, dword [esp + 0x20]
cmp ebx, 1
jl 0x415e10
mov eax, dword [ebp + 8]
mov dword [esp + 0x10], ebx
mov dword [esp + 0x18], eax
cmp esi, 1
jl 0x415df4
mov edi, dword [esp + 0x18]
mov edx, dword [esp + 0x20]
mov ecx, esi
and ecx, 0x1fffffff
shl ecx, 1
xor eax, eax
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x18]
lea eax, [esi*8]
add ecx, eax
mov eax, dword [esp + 0x10]
dec eax
mov dword [esp + 0x18], ecx
mov dword [esp + 0x10], eax
jne 0x415dd9
mov dword [esp + 0x48], edx
mov dword [esp + 0x28], 0x3c
mov eax, dword [esp + 0x20]
test eax, eax
je 0x41668d
mov eax, dword [esp + 0x28]
test eax, eax
je 0x4166d1
mov ecx, dword [esp + 0x20]
lea edi, [ecx - 1]
test edi, edi
mov dword [esp + 0x2c], edi
je 0x415ed2
mov edx, dword [esp + 0x40]
lea eax, [edx + edi*8]
mov edx, dword [esp + 0x38]
mov dword [esp + 0x18], eax
lea eax, [edx + edi*8 - 8]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x40]
sub eax, edx
mov dword [esp + 0x1c], eax
jmp 0x415e6e
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x24]
fld qword [eax]
fabs
fcom qword [0x4206c0]
fnstsw ax
test ah, 0x40
jne 0x415ffc
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x24]
fld qword [eax + edx]
mov eax, dword [esp + 0x18]
fabs
fld qword [eax]
fabs
faddp st(1)
fmul qword [ebp + 0x1c]
fxch st(1)
fcompp
fnstsw ax
test ah, 0x41
jne 0x415ec1
mov eax, dword [esp + 0x18]
dec edi
sub eax, 8
sub edx, 8
mov dword [esp + 0x18], eax
mov dword [esp + 0x24], edx
jmp 0x415ece
mov dword [edx], 0
mov dword [edx + 4], 0
test edi, edi
jne 0x415e6a
mov edx, dword [esp + 0x38]
cmp edi, dword [esp + 0x2c]
jne 0x416003
mov ecx, dword [esp + 0x40]
inc edi
fld qword [ecx + edi*8 - 8]
fcomp qword [0x4206c0]
lea ecx, [ecx + edi*8]
mov dword [esp + 0x30], ecx
fnstsw ax
test ah, 1
je 0x415f29
fld qword [ecx - 8]
fchs
fstp qword [ecx - 8]
cmp esi, 1
jl 0x415f29
mov edx, dword [ebp + 0x18]
lea ecx, [esi*8]
lea eax, [edx + edi*8 - 8]
mov edx, esi
fld qword [eax]
fchs
fstp qword [eax]
add eax, ecx
dec edx
jne 0x415f1a
mov ecx, dword [esp + 0x30]
cmp edi, dword [esp + 0x48]
je 0x415fe7
mov eax, dword [ebp + 0x18]
mov edx, dword [esp + 0x40]
sub eax, edx
mov dword [esp + 0x3c], eax
mov eax, dword [ebp + 0x14]
sub eax, edx
mov dword [esp + 0x18], eax
fld qword [ecx - 8]
fcomp qword [ecx]
fnstsw ax
test ah, 1
je 0x415fe7
mov eax, dword [ecx]
cmp edi, esi
fld qword [ecx - 8]
mov dword [ecx - 8], eax
mov edx, dword [ecx + 4]
mov dword [ecx - 4], edx
fstp qword [ecx]
jge 0x415fa0
cmp esi, 1
jl 0x415fa0
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x10], esi
add eax, ecx
mov edx, dword [eax]
fld qword [eax - 8]
mov dword [eax - 8], edx
mov edx, dword [eax + 4]
mov dword [eax - 4], edx
lea edx, [esi*8]
fstp qword [eax]
add eax, edx
mov edx, dword [esp + 0x10]
dec edx
mov dword [esp + 0x10], edx
jne 0x415f7c
cmp edi, ebx
jge 0x415fd7
cmp ebx, 1
jl 0x415fd7
mov eax, dword [esp + 0x18]
mov dword [esp + 0x10], ebx
add eax, ecx
mov edx, dword [eax]
fld qword [eax - 8]
mov dword [eax - 8], edx
mov edx, dword [eax + 4]
mov dword [eax - 4], edx
lea edx, [ebx*8]
fstp qword [eax]
add eax, edx
mov edx, dword [esp + 0x10]
dec edx
mov dword [esp + 0x10], edx
jne 0x415fb3
mov eax, dword [esp + 0x48]
inc edi
add ecx, 8
cmp edi, eax
jne 0x415f49
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x28], 0x3c
mov dword [esp + 0x20], eax
jmp 0x415e1c
fstp st(0)
jmp 0x415ed6
cmp ecx, edi
mov dword [esp + 0x1c], ecx
jle 0x4160b4
mov eax, dword [esp + 0x40]
lea eax, [eax + ecx*8 - 8]
mov dword [esp + 0x3c], eax
lea eax, [edx + ecx*8 - 0x10]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x3c]
jmp 0x41602d
mov edx, dword [esp + 0x38]
fld qword [eax]
fabs
fcom qword [0x4206c0]
fnstsw ax
test ah, 0x40
jne 0x41642a
mov edx, dword [esp + 0x1c]
fld qword [0x4206c0]
cmp edx, ecx
je 0x41605b
mov eax, dword [esp + 0xc]
fstp st(0)
fld qword [eax + 8]
fabs
lea eax, [edi + 1]
cmp edx, eax
je 0x41606c
mov eax, dword [esp + 0xc]
fld qword [eax]
fabs
faddp st(1)
fmul qword [ebp + 0x1c]
fxch st(1)
fcompp
fnstsw ax
test ah, 0x41
jne 0x416097
mov eax, dword [esp + 0xc]
dec edx
sub eax, 8
mov dword [esp + 0x1c], edx
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x3c]
sub eax, 8
mov dword [esp + 0x3c], eax
jmp 0x4160a8
mov eax, dword [esp + 0x3c]
mov dword [eax], 0
mov dword [eax + 4], 0
cmp edx, edi
jg 0x416029
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x1c]
cmp eax, edi
jne 0x416431
mov ebx, dword [esp + 0x40]
inc edi
mov dword [esp + 0x44], edi
fld qword [ebx + ecx*8 - 8]
fabs
fld qword [ebx + ecx*8 - 0x10]
fabs
fst qword [esp + 0x30]
fcomp st(1)
fnstsw ax
test ah, 0x41
jne 0x4160e8
fstp st(0)
fld qword [esp + 0x30]
fld qword [edx + ecx*8 - 0x10]
fabs
fst qword [esp + 0x30]
fcomp st(1)
fnstsw ax
test ah, 0x41
jne 0x416101
fstp st(0)
fld qword [esp + 0x30]
fld qword [ebx + edi*8 - 8]
lea ebx, [ebx + edi*8]
fabs
fst qword [esp + 0x30]
fcomp st(1)
fnstsw ax
test ah, 0x41
jne 0x41611d
fstp st(0)
fld qword [esp + 0x30]
fld qword [edx + edi*8 - 8]
lea eax, [edx + edi*8 - 8]
fabs
fst qword [esp + 0x30]
fcomp st(1)
mov dword [esp + 0x10], eax
fnstsw ax
test ah, 0x41
jne 0x41613e
fstp st(0)
fld qword [esp + 0x30]
mov eax, dword [esp + 0x40]
fld qword [eax + ecx*8 - 8]
fdiv st(1)
fstp qword [esp + 0x70]
fld qword [eax + ecx*8 - 0x10]
fdiv st(1)
fstp qword [esp + 0x30]
fld qword [edx + ecx*8 - 0x10]
fdiv st(1)
mov ecx, dword [esp + 0x10]
fstp qword [esp + 0x60]
fld qword [ebx - 8]
fdiv st(1)
fstp qword [esp + 0x90]
fdivr qword [ecx]
fld qword [esp + 0x30]
fsub qword [esp + 0x70]
fld qword [esp + 0x30]
fadd qword [esp + 0x70]
fmulp st(1)
fld qword [esp + 0x60]
fmul qword [esp + 0x60]
faddp st(1)
fmul qword [0x420690]
fstp qword [esp + 0x30]
fld qword [esp + 0x60]
fmul qword [esp + 0x70]
fld st(0)
fmul st(1)
fstp qword [esp + 0x60]
fstp st(0)
fld qword [0x4206c0]
fld qword [esp + 0x30]
fcomp qword [0x4206c0]
fnstsw ax
test ah, 0x40
je 0x4161d2
fld qword [esp + 0x60]
fcomp qword [0x4206c0]
fnstsw ax
test ah, 0x40
jne 0x4161fd
fstp st(0)
fld qword [esp + 0x30]
fmul qword [esp + 0x30]
fadd qword [esp + 0x60]
fsqrt
fld qword [esp + 0x30]
fcomp qword [0x4206c0]
fnstsw ax
test ah, 1
je 0x4161f5
fchs
fadd qword [esp + 0x30]
fdivr qword [esp + 0x60]
fld qword [esp + 0x90]
fsub qword [esp + 0x70]
fld qword [esp + 0x90]
fadd qword [esp + 0x70]
mov eax, dword [esp + 0x2c]
mov dword [esp + 0xc], edi
fmulp st(1)
cmp edi, eax
fsub st(1)
fstp qword [esp + 0x78]
fstp st(0)
fmul qword [esp + 0x90]
fstp qword [esp + 0x80]
jg 0x416409
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x38]
mov eax, ecx
mov edi, dword [esp + 0x10]
sub eax, edx
mov dword [esp + 0x1c], eax
mov eax, dword [ebp + 0x18]
sub eax, ecx
mov dword [esp + 0x3c], eax
mov eax, dword [ebp + 0x14]
sub eax, ecx
mov dword [esp + 0x18], eax
mov ecx, dword [esp + 0x5c]
lea edx, [esp + 0x4c]
lea eax, [esp + 0x78]
push edx
push eax
call fcn.00416840
mov ecx, dword [esp + 0x44]
mov eax, dword [esp + 0xc]
cmp eax, ecx
je 0x41628e
mov edx, dword [esp + 0x78]
mov eax, dword [esp + 0x7c]
mov dword [edi - 8], edx
mov dword [edi - 4], eax
fld qword [esp + 0x54]
fmul qword [edi]
mov eax, dword [esp + 0x1c]
fld qword [esp + 0x4c]
fmul qword [eax + edi]
faddp st(1)
fstp qword [esp + 0x78]
fld qword [esp + 0x4c]
fmul qword [edi]
fld qword [esp + 0x54]
fmul qword [eax + edi]
fsubp st(1)
fstp qword [edi]
fld qword [esp + 0x54]
fmul qword [ebx]
fstp qword [esp + 0x80]
fld qword [esp + 0x4c]
fmul qword [ebx]
fstp qword [ebx]
fld qword [esp + 0x4c]
fcomp qword [0x420558]
fnstsw ax
test ah, 0x40
je 0x4162ed
fld qword [esp + 0x54]
fcomp qword [0x4206c0]
fnstsw ax
test ah, 0x40
jne 0x41632a
cmp esi, 1
jl 0x41632a
mov ecx, dword [esp + 0x3c]
lea edx, [esi*8]
lea eax, [ecx + ebx]
mov ecx, esi
fld qword [esp + 0x54]
fmul qword [eax]
fld qword [esp + 0x4c]
fmul qword [eax - 8]
faddp st(1)
fld qword [esp + 0x4c]
fmul qword [eax]
fld qword [esp + 0x54]
fmul qword [eax - 8]
fsubp st(1)
fstp qword [eax]
fstp qword [eax - 8]
add eax, edx
dec ecx
jne 0x416302
mov ecx, dword [esp + 0x5c]
lea edx, [esp + 0x4c]
lea eax, [esp + 0x78]
push edx
push eax
call fcn.00416840
fld qword [esp + 0x78]
mov ecx, dword [esp + 0x1c]
mov edx, dword [ebp + 0xc]
mov eax, dword [esp + 0xc]
fstp qword [ecx + edi]
fld qword [esp + 0x4c]
fmul qword [edi]
fld qword [esp + 0x54]
fmul qword [ebx]
cmp eax, edx
faddp st(1)
fstp qword [esp + 0x78]
fld qword [esp + 0x4c]
fmul qword [ebx]
fld qword [esp + 0x54]
fmul qword [edi]
fsubp st(1)
fstp qword [ebx]
fld qword [esp + 0x54]
fmul qword [edi + 8]
fstp qword [esp + 0x80]
fld qword [esp + 0x4c]
fmul qword [edi + 8]
fstp qword [edi + 8]
jge 0x4163ee
fld qword [esp + 0x4c]
fcomp qword [0x420558]
fnstsw ax
test ah, 0x40
je 0x4163af
fld qword [esp + 0x54]
fcomp qword [0x4206c0]
fnstsw ax
test ah, 0x40
jne 0x4163ee
mov eax, dword [ebp + 0xc]
cmp eax, 1
jl 0x4163ee
mov ecx, eax
mov eax, dword [esp + 0x18]
add eax, ebx
lea edx, [ecx*8]
fld qword [esp + 0x54]
fmul qword [eax]
fld qword [esp + 0x4c]
fmul qword [eax - 8]
faddp st(1)
fld qword [esp + 0x4c]
fmul qword [eax]
fld qword [esp + 0x54]
fmul qword [eax - 8]
fsubp st(1)
fstp qword [eax]
fstp qword [eax - 8]
add eax, edx
dec ecx
jne 0x4163c6
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x2c]
inc eax
add ebx, 8
add edi, 8
cmp eax, ecx
mov dword [esp + 0xc], eax
jle 0x416261
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x38]
fld qword [esp + 0x78]
mov edx, dword [esp + 0x20]
mov ebx, dword [ebp + 0xc]
dec eax
fstp qword [ecx + edx*8 - 0x10]
mov dword [esp + 0x28], eax
jmp 0x415e1c
fstp st(0)
jmp 0x4160b4
cmp eax, ecx
jne 0x416576
fld qword [edx + ecx*8 - 0x10]
xor eax, eax
inc edi
fstp qword [esp + 0x80]
mov dword [edx + ecx*8 - 0x10], eax
mov dword [edx + ecx*8 - 0xc], eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x44], edi
cmp edi, eax
jg 0x415e1c
mov edx, dword [esp + 0x38]
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x24], eax
sub eax, edi
lea edx, [edx + ecx*8 - 0x18]
mov dword [esp + 0x18], edx
mov edx, dword [esp + 0x40]
lea ebx, [edx + ecx*8 - 0x10]
mov ecx, dword [ebp + 0x18]
sub ecx, edx
inc eax
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x10], eax
jmp 0x416491
mov edi, dword [esp + 0x44]
mov eax, dword [ebx]
mov ecx, dword [ebx + 4]
mov dword [esp + 0x78], eax
lea edx, [esp + 0x4c]
lea eax, [esp + 0x78]
mov dword [esp + 0x7c], ecx
mov ecx, dword [esp + 0x5c]
push edx
push eax
call fcn.00416840
mov ecx, dword [esp + 0x78]
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x7c]
mov dword [ebx], ecx
cmp eax, edi
mov dword [ebx + 4], edx
je 0x4164e1
mov eax, dword [esp + 0x18]
fld qword [esp + 0x54]
fmul qword [eax]
fchs
fstp qword [esp + 0x80]
fld qword [esp + 0x4c]
fmul qword [eax]
fstp qword [eax]
fld qword [esp + 0x4c]
fcomp qword [0x420558]
fnstsw ax
test ah, 0x40
je 0x416503
fld qword [esp + 0x54]
fcomp qword [0x4206c0]
fnstsw ax
test ah, 0x40
jne 0x416548
cmp esi, 1
jl 0x416548
mov ecx, dword [ebp + 0x18]
mov edi, dword [esp + 0x2c]
mov eax, dword [esp + 0x3c]
lea edx, [esi*8]
lea ecx, [ecx + edi*8]
add eax, ebx
mov edi, esi
fld qword [esp + 0x4c]
fmul qword [eax]
fld qword [esp + 0x54]
fmul qword [ecx]
faddp st(1)
fld qword [esp + 0x4c]
fmul qword [ecx]
fld qword [esp + 0x54]
fmul qword [eax]
fsubp st(1)
fstp qword [ecx]
add ecx, edx
fstp qword [eax]
add eax, edx
dec edi
jne 0x416521
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x10]
sub ebx, 8
sub edx, 8
dec ecx
dec eax
mov dword [esp + 0x18], edx
mov dword [esp + 0x24], ecx
mov dword [esp + 0x10], eax
jne 0x41648d
mov ebx, dword [ebp + 0xc]
jmp 0x415e1c
mov eax, dword [esp + 0x1c]
xor edi, edi
inc eax
cmp eax, ecx
mov dword [esp + 0x44], eax
fld qword [edx + eax*8 - 0x10]
fstp qword [esp + 0x80]
mov dword [edx + eax*8 - 0x10], edi
mov dword [edx + eax*8 - 0xc], edi
jg 0x415e1c
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x40]
sub edx, ecx
mov dword [esp + 0x1c], edx
mov edx, dword [ebp + 0x14]
lea edi, [ecx + eax*8 - 8]
sub edx, ecx
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x30], edx
sub ecx, eax
inc ecx
mov dword [esp + 0x10], ecx
mov ecx, dword [esp + 0x1c]
lea edx, [esp + 0x4c]
lea eax, [esp + 0x78]
push edx
fld qword [ecx + edi]
mov ecx, dword [esp + 0x60]
push eax
fstp qword [esp + 0x80]
call fcn.00416840
fld qword [esp + 0x78]
mov ecx, dword [esp + 0x1c]
fstp qword [ecx + edi]
fld qword [esp + 0x54]
fmul qword [edi]
fchs
fstp qword [esp + 0x80]
fld qword [esp + 0x4c]
fmul qword [edi]
fstp qword [edi]
fld qword [esp + 0x4c]
fcomp qword [0x420558]
fnstsw ax
test ah, 0x40
je 0x416627
fld qword [esp + 0x54]
fcomp qword [0x4206c0]
fnstsw ax
test ah, 0x40
jne 0x416673
cmp ebx, 1
jl 0x416673
mov ecx, dword [ebp + 0x14]
mov eax, dword [esp + 0x30]
lea edx, [ebx*8]
add eax, edi
mov dword [esp + 0x70], edx
mov edx, dword [esp + 0x44]
lea ecx, [ecx + edx*8 - 0x10]
mov edx, dword [esp + 0x70]
fld qword [esp + 0x4c]
fmul qword [eax]
fld qword [esp + 0x54]
fmul qword [ecx]
faddp st(1)
fld qword [esp + 0x4c]
fmul qword [ecx]
fld qword [esp + 0x54]
fmul qword [eax]
fsubp st(1)
fstp qword [ecx]
add ecx, edx
fstp qword [eax]
add eax, edx
dec ebx
jne 0x41664c
mov eax, dword [esp + 0x10]
mov ebx, dword [ebp + 0xc]
add edi, 8
dec eax
mov dword [esp + 0x10], eax
jne 0x4165c2
jmp 0x415e1c
mov eax, dword [ebp + 0x18]
mov edi, dword [esp + 0x38]
mov ecx, dword [ebp + 8]
push esi
mov esi, dword [esp + 0x44]
push ebx
push eax
push esi
push edi
push ecx
mov ecx, dword [esp + 0x74]
call fcn.00416720
push esi
mov esi, dword [sym.imp.MSVCRT.dll_free]
call esi
push edi
call esi
mov edx, dword [esp + 0x90]
push edx
call esi
add esp, 0xc
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x20
mov eax, dword [ebp + 0x18]
mov edi, dword [esp + 0x38]
mov ecx, dword [ebp + 8]
push esi
mov esi, dword [esp + 0x44]
push ebx
push eax
push esi
push edi
push ecx
mov ecx, dword [esp + 0x74]
call fcn.00416720
push esi
mov esi, dword [sym.imp.MSVCRT.dll_free]
call esi
push edi
call esi
mov edx, dword [esp + 0x90]
push edx
call esi
add esp, 0xc
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x20