Function at 0x4a5af0
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 0x53f870
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x40
push esi
push edi
mov eax, dword [0x58213c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebx + 0xc]
mov ecx, dword [edi + 0x30]
test ecx, ecx
je 0x4a5b7f
lea eax, [ebp - 0x50]
push eax
call fcn.00473ef0
movss xmm3, dword [ebx + 0x14]
movss xmm1, dword [ebx + 0x10]
movaps xmm2, xmm3
movaps xmm0, xmm1
mulss xmm2, dword [eax + 4]
mulss xmm3, dword [eax + 0x10]
mulss xmm0, dword [eax]
mulss xmm1, dword [eax + 0xc]
addss xmm2, xmm0
addss xmm3, xmm1
addss xmm2, dword [eax + 8]
addss xmm3, dword [eax + 0x14]
movss dword [ebp - 0x18], xmm2
movss dword [ebp - 0x14], xmm3
jmp 0x4a5b93
movss xmm0, dword [ebx + 0x10]
movss dword [ebp - 0x18], xmm0
movss xmm0, dword [ebx + 0x14]
movss dword [ebp - 0x14], xmm0
test byte [edi + 0x80], 1
lea esi, [ebp - 0x18]
movss xmm1, dword [esi]
movss xmm2, dword [esi + 4]
movss dword [ebp - 0x28], xmm1
movss dword [ebp - 0x24], xmm2
je 0x4a5cb0
push edi
call fcn.004dd530
add esp, 4
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x4a5c87
push dword [ebp - 0x24]
mov ecx, dword [eax]
lea eax, [ebp - 0x30]
push dword [ebp - 0x28]
push eax
mov esi, dword [ecx + 0x30]
call fcn.004a73a0
mov ecx, dword [ebp - 0x1c]
add esp, 0xc
movss xmm0, dword [eax]
movss dword [ebp - 0x28], xmm0
movss xmm0, dword [eax + 4]
lea eax, [ebp - 0x38]
movss dword [ebp - 0x24], xmm0
push dword [ebp - 0x24]
push dword [ebp - 0x28]
push eax
call esi
movss xmm0, dword [eax]
movss dword [ebp - 0x14], xmm0
movss xmm0, dword [eax + 4]
movss dword [ebp - 0x1c], xmm0
mov eax, dword [edi]
mov ecx, edi
mov dword [ebp - 4], 0
mov eax, dword [eax + 0x40]
call eax
movss xmm0, dword [ebp - 0x14]
lea edx, [ebp - 0x28]
fstp dword [ebp - 0x24]
movss xmm1, dword [ebp - 0x24]
ucomiss xmm1, dword [0x5510a0]
lahf
test ah, 0x44
jnp 0x4a5c57
divss xmm0, xmm1
movss dword [ebp - 0x28], xmm0
movss xmm0, dword [ebp - 0x1c]
divss xmm0, xmm1
jmp 0x4a5c61
movss dword [ebp - 0x28], xmm0
movss xmm0, dword [ebp - 0x1c]
mov eax, dword [ebx + 8]
movss dword [ebp - 0x24], xmm0
mov ecx, dword [edx]
mov edx, dword [edx + 4]
mov dword [eax], ecx
mov dword [eax + 4], edx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
mov eax, dword [ebx + 8]
movss xmm0, dword [esi]
movss dword [eax], xmm0
movss xmm0, dword [esi + 4]
movss dword [eax + 4], xmm0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
cmp dword [edi + 0x18], 0
jne 0x4a5d70
push dword [ebp - 0x24]
lea eax, [ebp - 0x38]
mov dword [ebp - 4], 1
push dword [ebp - 0x28]
push eax
call fcn.004a73a0
add esp, 0xc
mov ecx, edi
movss xmm0, dword [eax]
movss dword [ebp - 0x1c], xmm0
movss xmm0, dword [eax + 4]
mov eax, dword [edi]
movss dword [ebp - 0x14], xmm0
mov eax, dword [eax + 0x40]
call eax
movss xmm0, dword [ebp - 0x1c]
fstp dword [ebp - 0x24]
movss xmm1, dword [ebp - 0x24]
ucomiss xmm1, dword [0x5510a0]
lahf
test ah, 0x44
lea eax, [ebp - 0x28]
jnp 0x4a5d20
divss xmm0, xmm1
movss dword [ebp - 0x28], xmm0
movss xmm0, dword [ebp - 0x14]
divss xmm0, xmm1
jmp 0x4a5d2a
movss dword [ebp - 0x28], xmm0
movss xmm0, dword [ebp - 0x14]
movd xmm1, dword [edi + 0x20]
movss dword [ebp - 0x24], xmm0
movd xmm0, dword [edi + 0x1c]
movss xmm2, dword [eax]
movss xmm3, dword [eax + 4]
mov eax, dword [ebx + 8]
cvtdq2ps xmm0, xmm0
cvtdq2ps xmm1, xmm1
subss xmm2, xmm0
subss xmm3, xmm1
movss dword [eax], xmm2
movss dword [eax + 4], xmm3
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
movd xmm0, dword [edi + 0x1c]
mov eax, dword [ebx + 8]
cvtdq2ps xmm0, xmm0
subss xmm1, xmm0
movd xmm0, dword [edi + 0x20]
cvtdq2ps xmm0, xmm0
movss dword [eax], xmm1
subss xmm2, xmm0
movss dword [eax + 4], xmm2
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret