Function at 0x10025520
Capabilities:
Access peb ldr_data

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff0
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1009be30
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x58
mov eax, dword [0x10113900]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push edx
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x60]
call fcn.10036bd0
mov edx, dword [ebp - 0x58]
mov ecx, dword [ebp - 0x5c]
cmp edx, 1
jne 0x1002557b
add ecx, dword [ebp - 0x54]
mov esi, dword [ebx + 8]
xor eax, eax
cmp edx, 1
mov dword [ebp - 0x44], esi
cmovne eax, edx
lea ecx, [ecx + eax*4]
mov eax, dword [ebp - 0x60]
mov dword [eax + ecx*4], 0x3f800000
lea eax, [ebp - 0x30]
mov dword [ebp - 0x40], eax
mov ecx, esi
mov dword [ebp - 4], 0
call fcn.1002a810
mov eax, dword [ebp - 0x40]
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], 4
movss xmm4, dword [eax]
movss xmm0, dword [eax + 4]
movups xmm2, xmmword [esi + 0x10]
movups xmm3, xmmword [esi]
movups xmm1, xmmword [esi + 0x20]
shufps xmm0, xmm0, 0
mulps xmm2, xmm0
movss xmm0, dword [eax + 8]
shufps xmm4, xmm4, 0
mulps xmm3, xmm4
shufps xmm0, xmm0, 0
mulps xmm1, xmm0
movups xmm0, xmmword [esi + 0x30]
addps xmm3, xmm2
addps xmm3, xmm1
movss xmm1, dword [eax + 0xc]
shufps xmm1, xmm1, 0
mulps xmm0, xmm1
addps xmm0, xmm3
movaps xmmword [ebp - 0x60], xmm0
call fcn.10016aa0
movaps xmm0, xmmword [ebp - 0x60]
lea eax, [ebp - 0x30]
mov esi, dword [ebx + 0xc]
movaps xmmword [ebp - 0x30], xmm0
mov dword [ebp - 0x44], esi
mov dword [ebp - 0x40], eax
mov ecx, esi
mov dword [ebp - 4], 1
call fcn.1002a810
mov eax, dword [ebp - 0x40]
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], 4
movss xmm0, dword [eax + 4]
movups xmm2, xmmword [esi + 0x10]
movups xmm1, xmmword [esi]
shufps xmm0, xmm0, 0
mulps xmm2, xmm0
movss xmm0, dword [eax]
shufps xmm0, xmm0, 0
mulps xmm1, xmm0
movss xmm0, dword [eax + 8]
shufps xmm0, xmm0, 0
addps xmm2, xmm1
movups xmm1, xmmword [esi + 0x20]
mulps xmm1, xmm0
movss xmm0, dword [eax + 0xc]
shufps xmm0, xmm0, 0
addps xmm2, xmm1
movups xmm1, xmmword [esi + 0x30]
mulps xmm1, xmm0
addps xmm2, xmm1
movaps xmmword [ebp - 0x60], xmm2
call fcn.10016aa0
movaps xmm1, xmmword [ebp - 0x60]
movaps xmmword [ebp - 0x30], xmm1
movss xmm0, dword [ebp - 0x24]
shufps xmm0, xmm0, 0
divps xmm1, xmm0
mov eax, dword [ebx + 0x10]
movaps xmmword [ebp - 0x30], xmm1
mulps xmm1, xmmword [0x10105ee0]
addps xmm1, xmmword [0x10105ee0]
movaps xmmword [ebp - 0x30], xmm1
mulss xmm1, dword [eax + 8]
movss xmm0, dword [ebp - 0x2c]
addss xmm1, dword [eax]
movss dword [ebp - 0x30], xmm1
mulss xmm0, dword [eax + 0xc]
addss xmm0, dword [eax + 4]
mov eax, edi
movss dword [ebp - 0x2c], xmm0
movss dword [edi], xmm1
movss xmm0, dword [ebp - 0x2c]
movss dword [edi + 4], xmm0
movss xmm0, dword [ebp - 0x28]
movss dword [edi + 8], xmm0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.1006f8b7
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret