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

Disassembly:
push 0x3c
mov eax, 0x1006dad4
call fcn.1006c999
mov esi, ecx
mov dword [ebp - 0x10], esi
push fcn.10027d31
push 0x1001b3ab
push 2
push 0x54
lea eax, [esi + 0x4c]
push eax
call fcn.1006cada
mov edx, dword [ebp + 8]
xor eax, eax
mov byte [esi + 0xf4], al
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], eax
mov al, byte [ebp + 0xc]
mov byte [esi], al
fld dword [edx + 0x80]
fstp dword [esi + 0x1c]
movss xmm0, dword [edx + 0x6c]
cvtps2pd xmm0, xmm0
andpd xmm0, xmmword [0x100027a0]
cvtpd2ps xmm0, xmm0
movss dword [esi + 0xc], xmm0
mov eax, dword [edx + 0x70]
mov dword [esi + 0x10], eax
mov eax, dword [edx + 0x74]
mov dword [esi + 0x14], eax
fld dword [edx + 0x78]
fstp dword [esi + 0x18]
lea eax, [edx + 0x214]
mov dword [esi + 0xf8], eax
push 6
lea edi, [esi + 0x24]
pop ecx
lea esi, [edx + 0x24]
rep movsd dword es:[edi], dword [esi]
mov eax, dword [edx + 0x210]
mov edi, dword [eax]
xor eax, eax
test edi, edi
sete al
mov dword [ebp - 0x1c], edi
push eax
call fcn.1005d1bc
mov eax, dword [edi + 0x2c]
mov esi, dword [ebp - 0x10]
xor ecx, ecx
push 4
pop edx
mov dword [esi + 0x40], eax
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call sub.MSVCR100.dll_void____cdecl_operator_new___unsigned_int_
pop ecx
xor ecx, ecx
mov dword [esi + 0x3c], eax
cmp dword [esi + 0x40], ecx
jle 0x10027a3c
push ecx
mov ecx, edi
call fcn.1005d1bc
mov esi, eax
lea edi, [ebp - 0x48]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov eax, dword [ebp - 0x48]
shr eax, 2
test al, 1
je 0x10027a1a
movss xmm0, dword [ebp - 0x3c]
jmp 0x10027a22
movd xmm0, dword [ebp - 0x3c]
cvtdq2ps xmm0, xmm0
mov esi, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x18]
mov eax, dword [esi + 0x3c]
mov edi, dword [ebp - 0x1c]
movss dword [eax + ecx*4], xmm0
inc ecx
mov dword [ebp - 0x18], ecx
cmp ecx, dword [esi + 0x40]
jl 0x100279f8
mov eax, dword [ebp + 8]
fld dword [esi + 0x24]
movss xmm0, dword [eax + 0x200]
cvtps2pd xmm0, xmm0
andpd xmm0, xmmword [0x100027a0]
lea eax, [esi + 0x48]
push 3
fstp dword [eax]
cvtpd2ps xmm0, xmm0
movss dword [esi + 0x44], xmm0
lea ecx, [esi + 0x28]
pop edx
movss xmm0, dword [ecx]
comiss xmm0, dword [eax]
jbe 0x10027a76
movss dword [eax], xmm0
add ecx, 4
dec edx
jne 0x10027a69
cmp byte [ebp + 0xc], dl
jne 0x10027c01
movss xmm3, dword [esi + 0xc]
movss xmm2, dword [esi + 0x1c]
movaps xmm0, xmm3
mulss xmm0, dword [eax]
divss xmm2, xmm0
mulss xmm2, dword [ebp + 0x10]
movss xmm0, dword [0x10004d24]
comiss xmm0, xmm2
movss dword [ebp + 0x10], xmm2
jbe 0x10027ab9
movaps xmm2, xmm0
movss dword [ebp + 0x10], xmm0
movss xmm4, dword [0x100027e8]
movss xmm5, dword [0x10004d2c]
mulss xmm3, xmm4
movaps xmm1, xmm3
mulss xmm1, dword [0x10004d28]
subss xmm1, xmm3
mulss xmm1, dword [0x10004d28]
mulss xmm1, xmm4
comiss xmm1, xmm2
movss dword [ebp + 0xc], xmm3
jbe 0x10027bfa
mulss xmm5, xmm4
cvtps2pd xmm0, xmm5
movsd qword [ebp - 0x30], xmm0
fld qword [ebp - 0x30]
movss dword [ebp + 8], xmm5
call sub.MSVCR100.dll__CIcos
fstp qword [ebp - 0x20]
movsd xmm0, qword [ebp - 0x20]
cvtpd2ps xmm0, xmm0
mulss xmm0, dword [ebp + 0xc]
addss xmm0, dword [ebp + 0xc]
mulss xmm0, dword [0x100027e8]
movss dword [ebp - 0x18], xmm0
movss xmm0, dword [ebp + 8]
cvtps2pd xmm0, xmm0
movsd qword [ebp - 0x38], xmm0
fld qword [ebp - 0x38]
call sub.MSVCR100.dll__CIsin
fstp qword [ebp - 0x20]
movsd xmm0, qword [ebp - 0x20]
cvtpd2ps xmm0, xmm0
mulss xmm0, dword [ebp + 0xc]
addss xmm0, dword [0x100027d4]
mulss xmm0, dword [0x100027e8]
movss dword [ebp - 0x1c], xmm0
movss xmm0, dword [ebp + 8]
cvtps2pd xmm0, xmm0
mulsd xmm0, qword [0x10002760]
movsd qword [ebp - 0x28], xmm0
fld qword [ebp - 0x28]
call sub.MSVCR100.dll__CIcos
fstp qword [ebp - 0x14]
movsd xmm0, qword [ebp - 0x14]
fld qword [ebp - 0x28]
cvtpd2ps xmm0, xmm0
mulss xmm0, dword [ebp + 0xc]
movss dword [ebp - 0x10], xmm0
call sub.MSVCR100.dll__CIsin
fstp qword [ebp - 0x40]
movsd xmm0, qword [ebp - 0x40]
movss xmm1, dword [ebp - 0x1c]
movss xmm4, dword [0x100027e8]
movss xmm5, dword [ebp + 8]
cvtpd2ps xmm0, xmm0
mulss xmm0, dword [ebp + 0xc]
subss xmm1, xmm0
movss xmm0, dword [ebp - 0x18]
subss xmm0, dword [ebp - 0x10]
mulss xmm0, xmm0
mulss xmm1, xmm1
addss xmm0, xmm1
cvtps2pd xmm0, xmm0
sqrtpd xmm0, xmm0
cvtpd2ps xmm0, xmm0
comiss xmm0, dword [ebp + 0x10]
ja 0x10027af6
movss dword [esi + 0x20], xmm5
jmp 0x10027c0e
movss xmm0, dword [0x10002758]
movss dword [esi + 0x20], xmm0
mov eax, esi
call fcn.1006ca71
ret 0xc