Function at 0x415310
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 0x415367
mov ecx, eax
mov dword [esp + 0x28], ecx
lea edx, [esi - 2]
mov eax, ebx
cmp edx, ebx
mov dword [esp + 0x3c], eax
jge 0x41537a
mov eax, edx
mov dword [esp + 0x3c], eax
test eax, eax
jge 0x415384
xor eax, eax
mov dword [esp + 0x3c], eax
cmp eax, ecx
mov dword [esp + 0x24], ecx
jle 0x415392
mov ecx, eax
mov dword [esp + 0x24], ecx
cmp ecx, 1
jl 0x4158ba
mov eax, dword [esp + 0x24]
mov ecx, 1
cmp eax, ecx
mov dword [esp + 0x44], ecx
jl 0x4158ba
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 0x4154d1
fld qword [0x4206c8]
cmp ecx, ebx
jg 0x415416
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 0x415407
fsqrt
mov edx, dword [esp + 0x2c]
fstp qword [esp + 0x30]
fld qword [esp + 0x30]
fcomp qword [0x4206c8]
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 0x4154cb
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 [0x4206c8]
fnstsw ax
test ah, 0x40
jne 0x41548b
fld qword [esp + 0x30]
mov eax, dword [esp + 0x2c]
fabs
fld st(0)
fstp qword [eax]
fld qword [edi + edx*8]
fcomp qword [0x4206c8]
fnstsw ax
test ah, 1
je 0x415489
mov eax, dword [esp + 0x2c]
fchs
fstp qword [eax]
jmp 0x41548b
fstp st(0)
cmp ecx, ebx
jg 0x4154bb
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 0x4154a5
mov edi, dword [ebp + 8]
mov edx, dword [esp + 0x10]
fld qword [edi + edx*8]
fadd qword [0x420560]
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 0x41560a
mov eax, dword [esp + 0x20]
mov edi, edx
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], eax
cmp ecx, dword [esp + 0x28]
jg 0x4155d5
mov eax, dword [esp + 0x2c]
fld qword [eax]
fcomp qword [0x4206c8]
fnstsw ax
test ah, 0x40
jne 0x4155d5
mov eax, dword [ebp + 0xc]
fld qword [0x4206c8]
cmp ecx, eax
jg 0x415569
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 0x415541
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 0x41553d
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 0x4155d5
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 0x4155a9
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 0x4155a5
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 0x4154ea
cmp ecx, dword [esp + 0x28]
jg 0x415682
mov eax, dword [ebp + 0xc]
cmp ecx, eax
jg 0x415682
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 0x41564e
cmp ecx, dword [esp + 0x3c]
jg 0x415885
fld qword [0x4206c8]
mov ebx, dword [esp + 0x20]
cmp edx, esi
jg 0x4156b1
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 0x4156a1
fsqrt
fstp qword [esp + 0x30]
fld qword [esp + 0x30]
fcomp qword [0x4206c8]
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 0x41572f
fld qword [ebx]
fcomp qword [0x4206c8]
fnstsw ax
test ah, 0x40
jne 0x415706
fld qword [esp + 0x30]
fabs
fst qword [ebx - 8]
fld qword [ebx]
fcomp qword [0x4206c8]
fnstsw ax
test ah, 1
je 0x415704
fchs
fstp qword [ebx - 8]
jmp 0x415706
fstp st(0)
cmp edx, esi
jg 0x415721
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 0x41570f
mov ebx, dword [esp + 0x20]
fld qword [ebx]
fadd qword [0x420560]
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 0x415852
fld qword [esp + 0x60]
fcomp qword [0x4206c8]
fnstsw ax
test ah, 0x40
jne 0x415852
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 0x4157d9
mov dword [esp + 0xc], ebx
cmp edx, dword [ebp + 0xc]
jg 0x4157c5
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 0x4157a4
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 0x41577f
mov eax, edx
cmp edx, esi
mov dword [esp + 0x14], eax
jg 0x41584a
mov ecx, dword [esp + 0x20]
mov dword [esp + 0xc], ecx
mov ebx, dword [ebp + 0xc]
cmp edx, ebx
jg 0x415836
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 0x415811
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 0x4157eb
mov ecx, dword [esp + 0x44]
mov ebx, dword [esp + 0x20]
cmp edx, esi
jg 0x415889
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 0x41586c
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 0x4153d8
lea eax, [ebx + 1]
mov edx, esi
cmp eax, esi
mov dword [esp + 0x20], edx
mov dword [esp + 0x10], eax
jge 0x4158d1
mov edx, eax
mov dword [esp + 0x20], edx
mov eax, dword [esp + 0x28]
cmp eax, esi
jge 0x4158fd
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 0x415901
mov ecx, dword [esp + 0x40]
cmp ebx, edx
jge 0x41590f
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 0x415944
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 0x415948
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 0x415962
mov edi, esi
mov dword [esp + 0x2c], edi
lea ecx, [eax + 1]
cmp ecx, edi
jg 0x415a6d
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 0x4159b8
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 0x415993
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 0x415986
mov edx, dword [esp + 0x20]
cmp eax, 1
jl 0x415c7b
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 0x415a79
mov edi, dword [ebp + 0x14]
jmp 0x4159f4
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 [0x4206c8]
fnstsw ax
test ah, 0x40
jne 0x415bf4
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x2c]
cmp edx, eax
jl 0x415b8e
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 [0x4206c8]
cmp eax, ebx
jg 0x415b2d
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 0x415b0a
mov ebx, dword [ebp + 0xc]
mov eax, dword [esp + 0x14]
fchs
fstp qword [esp + 0x60]
cmp eax, ebx
jg 0x415b6e
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 0x415b5a
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 0x415ae3
mov edx, dword [esp + 0x14]
cmp edx, ebx
jg 0x415bc2
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 0x415bb3
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x6c]
dec edx
cmp edx, 1
fld qword [edi + eax*8]
fadd qword [0x420560]
fstp qword [edi + eax*8]
jl 0x415c2f
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 0x415be0
jmp 0x415c2f
cmp ebx, 1
jl 0x415c0f
mov eax, edx
mov edx, ebx
mov dword [eax], 0
mov dword [eax + 4], 0
add eax, ecx
dec edx
jne 0x415bfd
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 0x415a72
mov edx, dword [esp + 0x20]
cmp esi, 1
jl 0x415e09
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 0x415d9f
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x28]
fld qword [edx + eax - 8]
fcomp qword [0x4206c8]
fnstsw ax
test ah, 0x40
jne 0x415d9f
mov eax, dword [esp + 0x18]
cmp eax, esi
mov dword [esp + 0x14], eax
jg 0x415d9f
mov ebx, dword [ebp + 0x18]
mov eax, edi
imul eax, esi
fld qword [0x4206c8]
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 0x415d2b
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 0x415d6a
mov eax, dword [esp + 0x14]
inc eax
cmp eax, esi
mov dword [esp + 0x14], eax
fstp st(0)
jle 0x415cfb
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 0x415dac
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 0x415cba
mov edx, dword [esp + 0x20]
cmp ebx, 1
jl 0x415e50
mov eax, dword [ebp + 8]
mov dword [esp + 0x10], ebx
mov dword [esp + 0x18], eax
cmp esi, 1
jl 0x415e34
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 0x415e19
mov dword [esp + 0x48], edx
mov dword [esp + 0x28], 0x3c
mov eax, dword [esp + 0x20]
test eax, eax
je 0x4166cd
mov eax, dword [esp + 0x28]
test eax, eax
je 0x416711
mov ecx, dword [esp + 0x20]
lea edi, [ecx - 1]
test edi, edi
mov dword [esp + 0x2c], edi
je 0x415f12
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 0x415eae
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x24]
fld qword [eax]
fabs
fcom qword [0x4206c8]
fnstsw ax
test ah, 0x40
jne 0x41603c
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 0x415f01
mov eax, dword [esp + 0x18]
dec edi
sub eax, 8
sub edx, 8
mov dword [esp + 0x18], eax
mov dword [esp + 0x24], edx
jmp 0x415f0e
mov dword [edx], 0
mov dword [edx + 4], 0
test edi, edi
jne 0x415eaa
mov edx, dword [esp + 0x38]
cmp edi, dword [esp + 0x2c]
jne 0x416043
mov ecx, dword [esp + 0x40]
inc edi
fld qword [ecx + edi*8 - 8]
fcomp qword [0x4206c8]
lea ecx, [ecx + edi*8]
mov dword [esp + 0x30], ecx
fnstsw ax
test ah, 1
je 0x415f69
fld qword [ecx - 8]
fchs
fstp qword [ecx - 8]
cmp esi, 1
jl 0x415f69
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 0x415f5a
mov ecx, dword [esp + 0x30]
cmp edi, dword [esp + 0x48]
je 0x416027
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 0x416027
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 0x415fe0
cmp esi, 1
jl 0x415fe0
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 0x415fbc
cmp edi, ebx
jge 0x416017
cmp ebx, 1
jl 0x416017
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 0x415ff3
mov eax, dword [esp + 0x48]
inc edi
add ecx, 8
cmp edi, eax
jne 0x415f89
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x28], 0x3c
mov dword [esp + 0x20], eax
jmp 0x415e5c
fstp st(0)
jmp 0x415f16
cmp ecx, edi
mov dword [esp + 0x1c], ecx
jle 0x4160f4
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 0x41606d
mov edx, dword [esp + 0x38]
fld qword [eax]
fabs
fcom qword [0x4206c8]
fnstsw ax
test ah, 0x40
jne 0x41646a
mov edx, dword [esp + 0x1c]
fld qword [0x4206c8]
cmp edx, ecx
je 0x41609b
mov eax, dword [esp + 0xc]
fstp st(0)
fld qword [eax + 8]
fabs
lea eax, [edi + 1]
cmp edx, eax
je 0x4160ac
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 0x4160d7
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 0x4160e8
mov eax, dword [esp + 0x3c]
mov dword [eax], 0
mov dword [eax + 4], 0
cmp edx, edi
jg 0x416069
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x1c]
cmp eax, edi
jne 0x416471
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 0x416128
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 0x416141
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 0x41615d
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 0x41617e
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 [0x420698]
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 [0x4206c8]
fld qword [esp + 0x30]
fcomp qword [0x4206c8]
fnstsw ax
test ah, 0x40
je 0x416212
fld qword [esp + 0x60]
fcomp qword [0x4206c8]
fnstsw ax
test ah, 0x40
jne 0x41623d
fstp st(0)
fld qword [esp + 0x30]
fmul qword [esp + 0x30]
fadd qword [esp + 0x60]
fsqrt
fld qword [esp + 0x30]
fcomp qword [0x4206c8]
fnstsw ax
test ah, 1
je 0x416235
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 0x416449
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.00416880
mov ecx, dword [esp + 0x44]
mov eax, dword [esp + 0xc]
cmp eax, ecx
je 0x4162ce
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 [0x420560]
fnstsw ax
test ah, 0x40
je 0x41632d
fld qword [esp + 0x54]
fcomp qword [0x4206c8]
fnstsw ax
test ah, 0x40
jne 0x41636a
cmp esi, 1
jl 0x41636a
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 0x416342
mov ecx, dword [esp + 0x5c]
lea edx, [esp + 0x4c]
lea eax, [esp + 0x78]
push edx
push eax
call fcn.00416880
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 0x41642e
fld qword [esp + 0x4c]
fcomp qword [0x420560]
fnstsw ax
test ah, 0x40
je 0x4163ef
fld qword [esp + 0x54]
fcomp qword [0x4206c8]
fnstsw ax
test ah, 0x40
jne 0x41642e
mov eax, dword [ebp + 0xc]
cmp eax, 1
jl 0x41642e
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 0x416406
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 0x4162a1
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 0x415e5c
fstp st(0)
jmp 0x4160f4
cmp eax, ecx
jne 0x4165b6
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 0x415e5c
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 0x4164d1
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.00416880
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 0x416521
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 [0x420560]
fnstsw ax
test ah, 0x40
je 0x416543
fld qword [esp + 0x54]
fcomp qword [0x4206c8]
fnstsw ax
test ah, 0x40
jne 0x416588
cmp esi, 1
jl 0x416588
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 0x416561
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 0x4164cd
mov ebx, dword [ebp + 0xc]
jmp 0x415e5c
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 0x415e5c
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.00416880
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 [0x420560]
fnstsw ax
test ah, 0x40
je 0x416667
fld qword [esp + 0x54]
fcomp qword [0x4206c8]
fnstsw ax
test ah, 0x40
jne 0x4166b3
cmp ebx, 1
jl 0x4166b3
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 0x41668c
mov eax, dword [esp + 0x10]
mov ebx, dword [ebp + 0xc]
add edi, 8
dec eax
mov dword [esp + 0x10], eax
jne 0x416602
jmp 0x415e5c
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.00416760
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.00416760
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