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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x210
mov esi, ecx
mov edi, dword [ebp + 0xc]
mov eax, dword [0x102a2000]
xor eax, ebp
mov dword [esp + 0x208], eax
movss xmm0, dword [edi]
mulss xmm0, dword [0x10147768]
cvtss2sd xmm0, xmm0
movsd qword [esp + 0x20], xmm0
movsd qword [esp], xmm0
call fcn.1002e110
sub esp, 8
fstp dword [esp + 0x8c]
movss xmm0, dword [esp + 0x8c]
movss dword [esp + 0x3c], xmm0
movsd xmm0, qword [esp + 0x20]
movsd qword [esp], xmm0
call fcn.1002e120
sub esp, 8
fstp dword [esp + 0x88]
movss xmm0, dword [edi + 4]
mulss xmm0, dword [0x10147768]
cvtss2sd xmm0, xmm0
movsd qword [esp + 0x20], xmm0
movsd qword [esp], xmm0
call fcn.1002e110
sub esp, 8
fstp qword [esp + 0x118]
movsd xmm0, qword [esp + 0x20]
movsd qword [esp], xmm0
call fcn.1002e120
sub esp, 8
fstp qword [esp + 0x110]
movss xmm0, dword [0x10147768]
mulss xmm0, dword [edi + 8]
cvtss2sd xmm0, xmm0
movsd qword [esp + 0x20], xmm0
movsd qword [esp], xmm0
call fcn.1002e110
sub esp, 8
fstp dword [esp + 0x84]
movsd xmm0, qword [esp + 0x20]
movsd qword [esp], xmm0
call fcn.1002e120
sub esp, 8
fstp dword [esp + 0x80]
movss xmm0, dword [esp + 0x80]
movaps xmmword [esp + 0x40], xmm0
movss xmm0, dword [esp + 0x84]
movaps xmmword [esp + 0x20], xmm0
movsd xmm0, qword [esp + 0x110]
movhps xmm0, qword [esp + 0x118]
movaps xmmword [esp + 0x50], xmm0
movss xmm0, dword [esp + 0x88]
movaps xmmword [esp + 0x90], xmm0
mov ecx, esi
call fcn.10028440
fstp dword [esp + 0x7c]
movss xmm0, dword [esp + 0x7c]
movss dword [esp + 0x18], xmm0
mov eax, dword [0x102a22ac]
mov ecx, dword [eax]
mov eax, dword [eax + 0x178]
mov edx, dword [ecx]
mov ecx, dword [0x102a2384]
mov eax, dword [eax + edx]
mov edx, dword [ecx]
mov dword [esp], eax
call dword [edx + 0x10]
sub esp, 4
test eax, eax
je 0x10028855
mov esi, eax
mov eax, dword [0x102a22ac]
mov ecx, dword [eax + 4]
mov eax, dword [eax + 0x108]
mov edx, dword [ecx]
movzx eax, word [eax + esi]
mov dword [esp], eax
call dword [edx + 8]
sub esp, 4
test eax, eax
je 0x10028855
lea ecx, [ebp + 0x10]
movaps xmm0, xmmword [0x10146bb0]
movaps xmm6, xmmword [esp + 0x20]
movaps xmm3, xmm6
xorps xmm3, xmm0
movaps xmm7, xmmword [esp + 0x40]
xorps xmm0, xmm7
cvtpd2ps xmm4, xmmword [esp + 0x50]
movapd xmm1, xmm4
shufps xmm1, xmm4, 0xe1
movaps xmm2, xmm7
unpcklps xmm2, xmm0
mulps xmm2, xmm1
movaps xmmword [esp + 0x50], xmm2
unpcklps xmm6, xmm3
mulps xmm6, xmm1
mov edx, dword [0x102a22ac]
movsd xmm5, qword [edx + 0x4010]
movaps xmm2, xmm5
shufps xmm2, xmm5, 0x55
movss xmm1, dword [ecx]
movss xmm0, dword [ecx + 4]
movaps xmmword [esp + 0x150], xmm5
subss xmm1, xmm5
subss xmm0, xmm2
mulss xmm1, xmm1
xorps xmm2, xmm2
addss xmm1, xmm2
mulss xmm0, xmm0
addss xmm0, xmm1
movss xmm2, dword [edx + 0x4018]
movss xmm1, dword [ecx + 8]
movss dword [esp + 0x68], xmm2
subss xmm1, xmm2
mulss xmm1, xmm1
addss xmm1, xmm0
xorps xmm0, xmm0
cvtss2sd xmm0, xmm1
xorps xmm1, xmm1
ucomisd xmm0, xmm1
movss xmm1, dword [esp + 0x3c]
movaps xmm2, xmm1
mulss xmm2, xmm3
mulss xmm1, xmm7
unpcklps xmm3, xmm7
movaps xmmword [esp + 0xd0], xmm3
movaps xmm5, xmmword [esp + 0x90]
shufps xmm5, xmm5, 0
shufps xmm2, xmm2, 0
mulps xmm2, xmm4
movaps xmmword [esp + 0xb0], xmm2
shufps xmm1, xmm1, 0
movaps xmmword [esp + 0xc0], xmm4
mulps xmm1, xmm4
movaps xmmword [esp + 0xa0], xmm1
movss xmm1, dword [esp + 0x18]
divss xmm1, dword [0x10147aa8]
mov ecx, dword [edx + 0x108]
mov edx, dword [edx + 0x15c]
movzx edi, word [ecx + esi]
movss xmm3, dword [edx + esi]
movss xmm4, dword [eax + 0x104]
xorps xmm2, xmm2
movaps xmmword [esp + 0x1f0], xmm2
movaps xmmword [esp + 0x1e0], xmm2
movaps xmmword [esp + 0x1d0], xmm2
movaps xmmword [esp + 0x1c0], xmm2
movaps xmmword [esp + 0x1b0], xmm2
mov dword [esp + 0x200], 0
movss dword [esp + 0x38], xmm3
jb 0x1002885c
sqrtsd xmm0, xmm0
jmp 0x100288ac
xor ebx, ebx
jmp 0x10028d35
movsd qword [esp], xmm0
movss dword [esp + 0x18], xmm1
movaps xmmword [esp + 0x20], xmm6
movaps xmmword [esp + 0x90], xmm5
movaps xmmword [esp + 0x40], xmm4
call sub.api_ms_win_crt_math_l1_1_0.dll_sqrt
movaps xmm4, xmmword [esp + 0x40]
movaps xmm5, xmmword [esp + 0x90]
movaps xmm6, xmmword [esp + 0x20]
movss xmm3, dword [esp + 0x38]
movss xmm1, dword [esp + 0x18]
fstp qword [esp + 0x108]
movsd xmm0, qword [esp + 0x108]
movaps xmm2, xmmword [esp + 0xc0]
mulps xmm2, xmm5
movaps xmmword [esp + 0xc0], xmm2
movaps xmm2, xmmword [esp + 0xb0]
addps xmm2, xmmword [esp + 0x50]
movaps xmmword [esp + 0xb0], xmm2
movaps xmm2, xmmword [esp + 0xa0]
addps xmm2, xmm6
movaps xmmword [esp + 0xa0], xmm2
movaps xmm2, xmmword [esp + 0xd0]
mulps xmm2, xmm5
movaps xmmword [esp + 0xd0], xmm2
mulss xmm1, dword [0x10147aac]
movss dword [esp + 0x18], xmm1
cvtsd2ss xmm0, xmm0
addss xmm0, dword [0x10147ab0]
xorps xmm1, xmm1
maxss xmm1, xmm0
movaps xmm2, xmm4
cmpltss xmm2, xmm0
movaps xmm0, xmm2
andnps xmm0, xmm1
andps xmm2, xmm4
cmp di, 0x1c
sete al
movss xmm1, dword [0x10147ab4]
ucomiss xmm1, xmm3
seta cl
orps xmm2, xmm0
and cl, al
mov byte [esp + 0x17], cl
lea edi, [esp + 0x184]
movaps xmmword [esp + 0x140], xmm2
shufps xmm2, xmm2, 0
movaps xmmword [esp + 0x130], xmm2
xor esi, esi
xorps xmm0, xmm0
movss dword [esp + 0x1c], xmm0
jmp 0x100289a1
movss xmm0, dword [esp + 0x1c]
addss xmm0, dword [0x10147700]
movss dword [esp + 0x1c], xmm0
inc esi
cmp esi, 0x80
je 0x10028d27
mov eax, dword [0x102a2338]
movss xmm0, dword [eax + 0x20]
movaps xmmword [esp + 0x90], xmm0
movss xmm0, dword [eax + 0x24]
movaps xmmword [esp + 0x20], xmm0
mov eax, dword [0x102a22ac]
mov dword [esp], esi
call dword [eax + 0x2b8]
mov eax, dword [0x102a22ac]
mov dword [esp + 4], 0x3f800000
mov dword [esp], 0
call dword [eax + 0x2ac]
fstp dword [esp + 0x78]
mov eax, dword [0x102a22ac]
mov dword [esp + 4], 0x40c90fdb
mov dword [esp], 0
call dword [eax + 0x2ac]
fstp dword [esp + 0x74]
movss xmm0, dword [esp + 0x74]
movss dword [esp + 0x40], xmm0
mov eax, dword [0x102a22ac]
mov dword [esp + 4], 0x3f800000
mov dword [esp], 0
call dword [eax + 0x2ac]
fstp dword [esp + 0x70]
mov eax, dword [0x102a22ac]
mov dword [esp + 4], 0x40c90fdb
mov dword [esp], 0
call dword [eax + 0x2ac]
fstp dword [esp + 0x6c]
movss xmm0, dword [esp + 0x78]
movss xmm2, dword [esp + 0x70]
unpcklps xmm2, xmm0
cmp byte [esp + 0x17], 0
je 0x10028aa0
mov eax, 2
movss xmm1, dword [esp + 0x38]
xorps xmm0, xmm0
cvtsi2ss xmm0, eax
mulps xmm2, xmm2
dec eax
ucomiss xmm0, xmm1
ja 0x10028a70
movaps xmm0, xmmword [0x10147710]
subps xmm0, xmm2
movaps xmmword [esp + 0x120], xmm0
jmp 0x10028aa8
movaps xmmword [esp + 0x120], xmm2
movss xmm0, dword [esp + 0x40]
movss xmm1, dword [esp + 0x6c]
movss dword [esp + 0x50], xmm1
cvtss2sd xmm0, xmm0
movsd qword [esp + 0x40], xmm0
movsd qword [esp], xmm0
call sub.api_ms_win_crt_math_l1_1_0.dll_cos
fstp qword [esp + 0x100]
movss xmm0, dword [esp + 0x50]
cvtss2sd xmm0, xmm0
movsd qword [esp + 0x50], xmm0
movsd qword [esp], xmm0
call sub.api_ms_win_crt_math_l1_1_0.dll_cos
fstp qword [esp + 0xf8]
movsd xmm0, qword [esp + 0x40]
movsd qword [esp], xmm0
call sub.api_ms_win_crt_math_l1_1_0.dll_sin
fstp qword [esp + 0xf0]
movsd xmm0, qword [esp + 0x50]
movsd qword [esp], xmm0
call sub.api_ms_win_crt_math_l1_1_0.dll_sin
fstp qword [esp + 0xe8]
movaps xmm2, xmmword [esp + 0x90]
movaps xmm3, xmmword [esp + 0x120]
mulss xmm2, xmm3
movsd xmm0, qword [esp + 0x100]
movhpd xmm0, qword [esp + 0xf0]
cvtpd2ps xmm0, xmm0
shufps xmm3, xmm3, 0x55
movsd xmm1, qword [esp + 0xf8]
movhpd xmm1, qword [esp + 0xe8]
movaps xmm5, xmmword [esp + 0x20]
mulss xmm5, xmm3
cvtpd2ps xmm1, xmm1
shufps xmm2, xmm2, 0
mulps xmm2, xmm1
shufps xmm5, xmm5, 0
mulps xmm5, xmm0
addps xmm5, xmm2
movaps xmm0, xmmword [esp + 0xd0]
mulps xmm0, xmm5
movaps xmm1, xmm0
subss xmm1, dword [esp + 0x3c]
shufps xmm0, xmm0, 0x55
addss xmm0, xmm1
movaps xmm1, xmm5
shufps xmm1, xmm5, 0
mulps xmm1, xmmword [esp + 0xb0]
addps xmm1, xmmword [esp + 0xc0]
shufps xmm5, xmm5, 0x55
mulps xmm5, xmmword [esp + 0xa0]
addps xmm5, xmm1
movaps xmm1, xmm5
mulss xmm1, xmm5
xorps xmm3, xmm3
addss xmm1, xmm3
movaps xmm2, xmm5
shufps xmm2, xmm5, 0x55
mulss xmm2, xmm2
addss xmm2, xmm1
movaps xmm1, xmm0
mulss xmm1, xmm0
addss xmm1, xmm2
cvtss2sd xmm1, xmm1
sqrtsd xmm1, xmm1
cvtsd2ss xmm1, xmm1
movaps xmm2, xmm1
cmpneqss xmm2, xmm3
andps xmm1, xmm2
movss xmm4, dword [0x10147700]
andnps xmm2, xmm4
orps xmm2, xmm1
movaps xmm1, xmmword [esp + 0x150]
movlps qword [esp + 0x168], xmm1
movss xmm4, dword [esp + 0x68]
movss dword [esp + 0x170], xmm4
mov dword [esp + 0x174], 0
divss xmm0, xmm2
shufps xmm2, xmm2, 0
divps xmm5, xmm2
mulps xmm5, xmmword [esp + 0x130]
addps xmm5, xmm1
subps xmm5, xmm1
movlps qword [esp + 0x178], xmm5
movaps xmm1, xmm5
mulss xmm1, xmm5
addss xmm1, xmm3
shufps xmm5, xmm5, 0x55
mulss xmm5, xmm5
addss xmm5, xmm1
mulss xmm0, dword [esp + 0x140]
addss xmm0, xmm4
subss xmm0, xmm4
movss dword [esp + 0x180], xmm0
mulss xmm0, xmm0
addss xmm0, xmm5
ucomiss xmm0, xmm3
mov ecx, dword [0x102a23c0]
xorps xmm0, xmm0
movups xmmword [edi + 0x10], xmm0
movups xmmword [edi], xmm0
mov dword [edi + 0x24], 0
mov dword [edi + 0x20], 0
mov byte [esp + 0x1ac], 1
setp al
setne dl
or dl, al
mov byte [esp + 0x1ad], dl
mov eax, dword [ecx]
lea edx, [esp + 0x1b0]
mov dword [esp + 0xc], edx
mov ebx, dword [ebp + 8]
mov dword [esp + 8], ebx
lea edx, [esp + 0x168]
mov dword [esp], edx
mov dword [esp + 4], 0x4600400b
call dword [eax + 0xc]
sub esp, 0x10
cmp dword [esp + 0x1fc], ebx
jne 0x10028994
mov eax, dword [esp + 0x1f4]
lea ecx, [eax - 1]
cmp ecx, 7
jb 0x10028980
cmp eax, 0xa
je 0x10028980
jmp 0x10028994
movss xmm0, dword [esp + 0x1c]
ucomiss xmm0, dword [esp + 0x18]
setae bl
mov ecx, dword [esp + 0x208]
xor ecx, ebp
call fcn.100ea0d3
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 0x14