Function at 0x5ac940
Capabilities:
Access peb ldr_data

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0xdd3e90
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x48
mov eax, dword [0xe3c018]
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, edx
mov esi, ecx
mov dword [ebp - 0x3c], esi
mov eax, dword [edi + 0x30]
mov ecx, dword [ebx + 8]
mov edx, dword [ebx + 0xc]
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x24], edx
test eax, eax
je 0x5ac9ec
lea ecx, [ebp - 0x58]
push ecx
mov ecx, eax
call fcn.004cff10
movd xmm3, dword [ebx + 8]
movd xmm2, dword [ebx + 0xc]
cvtdq2ps xmm2, xmm2
cvtdq2ps xmm3, xmm3
movaps xmm1, xmm2
mulss xmm2, dword [eax + 4]
mulss xmm1, dword [eax + 0x10]
movaps xmm0, xmm3
mulss xmm0, dword [eax + 0xc]
mulss xmm3, dword [eax]
addss xmm1, xmm0
addss xmm2, xmm3
addss xmm1, dword [eax + 0x14]
addss xmm2, dword [eax + 8]
cvttss2si edx, xmm1
cvttss2si ecx, xmm2
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x28], ecx
mov al, byte [edi + 0x80]
and al, 1
je 0x5acb03
mov ecx, edi
call fcn.0059e2b0
mov dword [ebp - 0x34], eax
test eax, eax
je 0x5acaf3
mov dword [ebp - 4], 0
mov eax, dword [0xe457c8]
test eax, eax
jne 0x5aca4d
push 0xf8
call fcn.00d493ca
add esp, 4
mov esi, eax
mov dword [ebp - 0x1c], esi
push 0xf8
push 0
push esi
call fcn.00d9ac00
add esp, 0xc
mov ecx, esi
call fcn.00559750
mov esi, dword [ebp - 0x3c]
mov dword [0xe457c8], eax
mov ecx, dword [ebp - 0x24]
movss xmm1, dword [eax + 0xa8]
push ecx
mov ecx, dword [ebp - 0x28]
push ecx
lea ecx, [ebp - 0x20]
call fcn.005ac4c0
mov ecx, dword [ebp - 0x34]
lea edx, [ebp - 0x40]
mov dword [ebp - 4], 0xffffffff
add esp, 8
movd xmm1, dword [ebp - 0x1c]
movd xmm0, dword [ebp - 0x20]
mov eax, dword [ecx]
cvtdq2ps xmm1, xmm1
mov eax, dword [eax + 0x30]
cvtdq2ps xmm0, xmm0
movss dword [ebp - 0x1c], xmm1
push dword [ebp - 0x1c]
movss dword [ebp - 0x20], xmm0
push dword [ebp - 0x20]
push edx
call eax
movss xmm0, dword [eax + 4]
cvtps2pd xmm0, xmm0
addsd xmm0, qword [0xe16a58]
movsd qword [ebp - 0x20], xmm0
movss xmm0, dword [eax]
cvtps2pd xmm0, xmm0
addsd xmm0, qword [0xe16a58]
movsd qword [ebp - 0x38], xmm0
mov dword [ebp - 4], 1
mov ecx, edi
mov edx, dword [edi]
push dword [ebp - 0x20]
push dword [ebp - 0x38]
mov edx, dword [edx + 0x40]
call edx
fstp dword [ebp - 0x34]
movss xmm1, dword [ebp - 0x34]
mov ecx, esi
call fcn.005ac5d0
add esp, 8
jmp 0x5acbb4
mov ecx, dword [ebp - 0x28]
mov dword [esi], ecx
mov ecx, dword [ebp - 0x24]
mov dword [esi + 4], ecx
jmp 0x5acbb4
cmp dword [edi + 0x18], 0
jne 0x5acba7
mov dword [ebp - 4], 2
mov eax, dword [0xe457c8]
test eax, eax
jne 0x5acb4e
push 0xf8
call fcn.00d493ca
add esp, 4
mov esi, eax
mov dword [ebp - 0x1c], esi
push 0xf8
push 0
push esi
call fcn.00d9ac00
add esp, 0xc
mov ecx, esi
call fcn.00559750
mov esi, dword [ebp - 0x3c]
mov dword [0xe457c8], eax
mov ecx, dword [ebp - 0x24]
movss xmm1, dword [eax + 0xa8]
push ecx
mov ecx, dword [ebp - 0x28]
push ecx
lea ecx, [ebp - 0x20]
call fcn.005ac4c0
add esp, 8
mov dword [ebp - 4], 3
mov ecx, edi
mov eax, dword [edi]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
mov eax, dword [eax + 0x40]
call eax
fstp dword [ebp - 0x34]
movss xmm1, dword [ebp - 0x34]
lea ecx, [ebp - 0x20]
call fcn.005ac5d0
mov eax, dword [ebp - 0x20]
add esp, 8
sub eax, dword [edi + 0x1c]
mov ecx, dword [edi + 0x20]
mov dword [esi], eax
mov eax, dword [ebp - 0x1c]
sub eax, ecx
mov dword [esi + 4], eax
jmp 0x5acbb4
mov eax, dword [edi + 0x20]
sub ecx, dword [edi + 0x1c]
sub edx, eax
mov dword [esi], ecx
mov dword [esi + 4], edx
mov eax, esi
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.00d491ba
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret