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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
push ebx
fldz
push esi
push edi
mov edi, ecx
mov ecx, dword [edi + 0x78]
sub ecx, dword [edi + 0x74]
mov esi, dword [edi + 0x10]
mov eax, 0x88888889
imul ecx
add edx, ecx
sar edx, 5
mov ebx, edx
shr ebx, 0x1f
add ebx, edx
xor eax, eax
mov dword [ebp - 0x10], ebx
mov dword [ebp - 8], esi
cmp ebx, 4
jl 0x414ff2
lea esi, [ebx - 4]
shr esi, 2
xor ecx, ecx
inc esi
lea eax, [esi*4]
mov dword [ebp - 0xc], eax
mov eax, dword [edi + 0x74]
fst dword [eax + ecx + 0x20]
fst dword [eax + ecx + 0x24]
add eax, ecx
fst dword [eax + 0x28]
fst dword [eax + 0x2c]
fst dword [eax + 0x30]
fst dword [eax + 0x34]
fst dword [eax + 0x38]
mov edx, dword [edi + 0x74]
fst dword [ecx + edx + 0x5c]
lea eax, [ecx + edx + 0x3c]
fst dword [eax + 0x24]
lea edx, [ecx + 0xb4]
fst dword [eax + 0x28]
add ecx, 0xf0
fst dword [eax + 0x2c]
fst dword [eax + 0x30]
fst dword [eax + 0x34]
fst dword [eax + 0x38]
mov eax, dword [edi + 0x74]
fst dword [edx + eax - 0x1c]
lea eax, [edx + eax - 0x3c]
fst dword [eax + 0x24]
fst dword [eax + 0x28]
fst dword [eax + 0x2c]
fst dword [eax + 0x30]
fst dword [eax + 0x34]
fst dword [eax + 0x38]
mov eax, dword [edi + 0x74]
add eax, edx
dec esi
fst dword [eax + 0x20]
fst dword [eax + 0x24]
fst dword [eax + 0x28]
fst dword [eax + 0x2c]
fst dword [eax + 0x30]
fst dword [eax + 0x34]
fst dword [eax + 0x38]
jne 0x414f6d
mov eax, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
cmp eax, ebx
jge 0x415026
mov ecx, eax
shl ecx, 4
sub ecx, eax
add ecx, ecx
mov edx, ebx
add ecx, ecx
sub edx, eax
mov eax, dword [edi + 0x74]
fst dword [eax + ecx + 0x20]
add eax, ecx
fst dword [eax + 0x24]
add ecx, 0x3c
dec edx
fst dword [eax + 0x28]
fst dword [eax + 0x2c]
fst dword [eax + 0x30]
fst dword [eax + 0x34]
fst dword [eax + 0x38]
jne 0x415005
test esi, esi
jle 0x415257
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], esi
mov eax, dword [edi + 0x84]
add eax, dword [ebp - 8]
mov esi, dword [edi + 0x74]
mov ecx, dword [eax]
mov edx, ecx
shl edx, 4
sub edx, ecx
lea ecx, [esi + edx*4]
mov edx, dword [eax + 4]
mov eax, dword [eax + 8]
mov ebx, edx
shl ebx, 4
sub ebx, edx
fld dword [esi + ebx*4]
lea edx, [esi + ebx*4]
fsub dword [ecx]
mov ebx, eax
shl ebx, 4
sub ebx, eax
fstp dword [ebp - 0x50]
lea esi, [esi + ebx*4]
fld dword [edx + 4]
fsub dword [ecx + 4]
fstp dword [ebp - 0x4c]
fld dword [edx + 8]
fsub dword [ecx + 8]
fstp dword [ebp - 0x48]
fld dword [esi]
fsub dword [ecx]
fstp dword [ebp - 0x44]
fld dword [esi + 4]
fsub dword [ecx + 4]
fstp dword [ebp - 0x40]
fld dword [esi + 8]
fsub dword [ecx + 8]
fstp dword [ebp - 0x3c]
fld dword [edx + 0xc]
fsub dword [ecx + 0xc]
fstp dword [ebp - 0x20]
fld dword [edx + 0x10]
fsub dword [ecx + 0x10]
fstp dword [ebp - 0x1c]
fld dword [esi + 0xc]
fsub dword [ecx + 0xc]
fstp dword [ebp - 0x18]
fld dword [esi + 0x10]
fsub dword [ecx + 0x10]
fstp dword [ebp - 0x14]
fld dword [ebp - 0x14]
fld st(0)
fld dword [ebp - 0x20]
fld st(0)
fmulp st(2)
fld dword [ebp - 0x18]
fld st(0)
fld dword [ebp - 0x1c]
fld st(0)
fmulp st(2)
fxch st(4)
fsubrp st(1)
fstp dword [ebp - 4]
fld dword [ebp - 4]
fld st(0)
fabs
fstp dword [ebp - 4]
fld dword [ebp - 4]
fcomp dword [0x422d74]
fnstsw ax
test ah, 5
jp 0x41511d
fstp st(4)
fstp st(1)
fstp st(0)
fstp st(0)
fstp st(0)
fld1
fst dword [ebp - 0x38]
fstp dword [ebp - 0x28]
fst dword [ebp - 0x34]
fst dword [ebp - 0x30]
fst dword [ebp - 0x2c]
fst dword [ebp - 0x24]
jmp 0x41519f
fstp st(5)
fld1
fdivrp st(5)
fxch st(4)
fstp dword [ebp - 4]
fld st(2)
fmul dword [ebp - 0x50]
fld st(2)
fmul dword [ebp - 0x44]
fsubp st(1)
fld dword [ebp - 4]
fld st(0)
fmulp st(2)
fxch st(1)
fstp dword [ebp - 0x38]
fld st(3)
fmul dword [ebp - 0x4c]
fld st(3)
fmul dword [ebp - 0x40]
fsubp st(1)
fmul st(1)
fstp dword [ebp - 0x34]
fld dword [ebp - 0x48]
fld st(0)
fmulp st(5)
fld dword [ebp - 0x3c]
fld st(0)
fmulp st(5)
fxch st(5)
fsubrp st(4)
fld st(1)
fmulp st(4)
fxch st(3)
fstp dword [ebp - 0x30]
fld st(1)
fmul dword [ebp - 0x44]
fld st(5)
fmul dword [ebp - 0x50]
fsubp st(1)
fmul st(1)
fstp dword [ebp - 0x2c]
fld st(1)
fmul dword [ebp - 0x40]
fld st(5)
fmul dword [ebp - 0x4c]
fsubp st(1)
fmul st(1)
fstp dword [ebp - 0x28]
fxch st(1)
fmulp st(3)
fxch st(3)
fmulp st(1)
fsubp st(1)
fmulp st(1)
fstp dword [ebp - 0x24]
fldz
fld dword [ebp - 0x38]
add dword [ebp - 8], 0xc
dec dword [ebp - 0xc]
fld st(0)
fadd dword [ecx + 0x20]
fstp dword [ecx + 0x20]
fld dword [ecx + 0x24]
fld dword [ebp - 0x34]
fld st(0)
faddp st(2)
fxch st(1)
fstp dword [ecx + 0x24]
fld dword [ebp - 0x30]
fld st(0)
fadd dword [ecx + 0x28]
fstp dword [ecx + 0x28]
fld dword [ebp - 0x2c]
fld st(0)
fadd dword [ecx + 0x30]
fstp dword [ecx + 0x30]
fld dword [ecx + 0x34]
fld dword [ebp - 0x28]
fld st(0)
faddp st(2)
fxch st(1)
fstp dword [ecx + 0x34]
fld dword [ebp - 0x24]
fadd dword [ecx + 0x38]
fstp dword [ecx + 0x38]
fld st(4)
fadd dword [edx + 0x20]
fstp dword [edx + 0x20]
fld dword [edx + 0x24]
fadd st(4)
fstp dword [edx + 0x24]
fld st(2)
fadd dword [edx + 0x28]
fstp dword [edx + 0x28]
fld dword [edx + 0x30]
fadd st(2)
fstp dword [edx + 0x30]
fld st(0)
fadd dword [edx + 0x34]
fstp dword [edx + 0x34]
fld dword [edx + 0x38]
fadd dword [ebp - 0x24]
fstp dword [edx + 0x38]
fld dword [esi + 0x20]
faddp st(5)
fxch st(4)
fstp dword [esi + 0x20]
fld dword [esi + 0x24]
faddp st(3)
fxch st(2)
fstp dword [esi + 0x24]
fadd dword [esi + 0x28]
fstp dword [esi + 0x28]
fadd dword [esi + 0x30]
fstp dword [esi + 0x30]
fadd dword [esi + 0x34]
fstp dword [esi + 0x34]
fld dword [esi + 0x38]
fadd dword [ebp - 0x24]
fstp dword [esi + 0x38]
jne 0x415038
mov ebx, dword [ebp - 0x10]
fstp st(0)
test ebx, ebx
jle 0x4153ab
mov dword [ebp - 8], 0
jmp 0x415270
mov esi, dword [edi + 0x74]
add esi, dword [ebp - 8]
fld dword [esi + 0x24]
fmul dword [esi + 0x18]
fld dword [esi + 0x20]
fmul dword [esi + 0x14]
faddp st(1)
fld dword [esi + 0x1c]
fmul dword [esi + 0x28]
faddp st(1)
fstp dword [ebp - 0x10]
fld dword [esi + 0x20]
fld dword [ebp - 0x10]
fld st(0)
fmul dword [esi + 0x14]
fsubp st(2)
fxch st(1)
fstp dword [ebp - 0x10]
fld dword [ebp - 0x10]
fst dword [esi + 0x20]
fld dword [esi + 0x24]
fld st(2)
fmul dword [esi + 0x18]
fsubp st(1)
fstp dword [ebp - 0x10]
fld dword [ebp - 0x10]
fst dword [esi + 0x24]
fld dword [esi + 0x28]
fld dword [esi + 0x1c]
fmulp st(4)
fsubrp st(3)
fxch st(2)
fstp dword [ebp - 0x10]
fld dword [ebp - 0x10]
fst dword [esi + 0x28]
fld st(1)
fmulp st(2)
fld st(2)
fmulp st(3)
fxch st(1)
faddp st(2)
fmul st(0), st(0)
faddp st(1)
fstp dword [ebp - 0x10]
fld dword [ebp - 0x10]
call sub.MSVCR100.dll__CIsqrt
fstp dword [ebp - 0x10]
fld dword [ebp - 0x10]
fld1
fdivrp st(1)
fstp dword [ebp - 0x10]
fld dword [ebp - 0x10]
fld st(0)
fmul dword [esi + 0x20]
fstp dword [ebp - 0x10]
fld dword [ebp - 0x10]
fst dword [esi + 0x20]
fld dword [esi + 0x24]
fmul st(2)
fstp dword [ebp - 0x10]
fld dword [ebp - 0x10]
fst dword [esi + 0x24]
fld dword [esi + 0x28]
fmulp st(3)
fxch st(2)
fstp dword [ebp - 0x10]
fld dword [ebp - 0x10]
fst dword [esi + 0x28]
fld st(0)
fmul dword [esi + 0x18]
fld st(3)
fmul dword [esi + 0x1c]
fsubp st(1)
fstp dword [ebp - 0x2c]
fld st(1)
fmul dword [esi + 0x1c]
fld dword [esi + 0x14]
fmulp st(2)
fsubrp st(1)
fstp dword [ebp - 0x28]
fld dword [esi + 0x14]
fmulp st(2)
fmul dword [esi + 0x18]
fsubp st(1)
fstp dword [ebp - 0x24]
fld dword [esi + 0x34]
fld dword [ebp - 0x28]
fld st(0)
fmulp st(2)
fld dword [ebp - 0x2c]
fld st(0)
fmul dword [esi + 0x30]
faddp st(3)
fld dword [ebp - 0x24]
fld st(0)
fmul dword [esi + 0x38]
faddp st(4)
fxch st(3)
fstp dword [ebp - 0x10]
fld dword [ebp - 0x10]
fcomp dword [0x4215f8]
fnstsw ax
test ah, 5
jp 0x415388
fld1
jmp 0x41538e
fld dword [0x422d70]
add dword [ebp - 8], 0x3c
fstp dword [ebp - 0xc]
dec ebx
fld dword [ebp - 0xc]
fstp dword [esi + 0x2c]
fstp dword [esi + 0x30]
fstp dword [esi + 0x34]
fstp dword [esi + 0x38]
jne 0x415270
mov byte [edi + 3], 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret