Function at 0x41ca90
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x80
mov eax, dword [0x49c00c]
xor eax, esp
mov dword [esp + 0x7c], eax
push esi
push edi
lea eax, [ecx + 0x34]
mov dword [esp + 0x10], ecx
push eax
lea eax, [esp + 0x34]
mov dword [esp + 0x34], 0
push eax
lea eax, [esp + 0x48]
push eax
call dword [sym.imp.d3dx9_43.dll_D3DXMatrixInverse]
mov ecx, dword [esp + 0x10]
mov esi, dword [ecx + 8]
mov edi, dword [esi]
cmp edi, esi
je 0x41cc64
lea edx, [ecx + 0x1c]
mov dword [esp + 0x14], edx
mov eax, dword [edi + 8]
movss xmm1, dword [ecx + 0x14]
movss xmm2, dword [ecx + 0x18]
mov dword [esp + 0xc], eax
movss xmm0, dword [eax + 8]
subss xmm0, dword [ecx + 0x10]
mov ecx, eax
movss dword [eax + 8], xmm0
movss xmm0, dword [eax + 0xc]
subss xmm0, xmm1
movss dword [eax + 0xc], xmm0
movss xmm0, dword [eax + 0x10]
subss xmm0, xmm2
movss dword [eax + 0x10], xmm0
call fcn.0042fd70
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x40]
add eax, 0x14
push ecx
push eax
push eax
call dword [0x47e604]
mov ecx, dword [esp + 0xc]
call fcn.0042fd70
mov eax, dword [esp + 0xc]
movq xmm0, qword [eax + 8]
mov eax, dword [eax + 0x10]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x14]
movq qword [esp + 0x24], xmm0
movss xmm0, dword [esp + 0x24]
subss xmm0, dword [eax]
movss dword [esp + 0x24], xmm0
movss xmm0, dword [esp + 0x28]
subss xmm0, dword [eax + 4]
movss dword [esp + 0x28], xmm0
movss xmm0, dword [esp + 0x2c]
subss xmm0, dword [eax + 8]
lea eax, [esp + 0x40]
push eax
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x3c]
movss dword [esp + 0x34], xmm0
push eax
call dword [0x47e5fc]
mov eax, dword [esp + 0xc]
mov ecx, eax
movss xmm0, dword [esp + 0x34]
subss xmm0, dword [esp + 0x24]
addss xmm0, dword [eax + 8]
movss dword [eax + 8], xmm0
movss xmm0, dword [esp + 0x38]
subss xmm0, dword [esp + 0x28]
addss xmm0, dword [eax + 0xc]
movss dword [eax + 0xc], xmm0
movss xmm0, dword [esp + 0x3c]
subss xmm0, dword [esp + 0x2c]
addss xmm0, dword [eax + 0x10]
movss dword [eax + 0x10], xmm0
call fcn.0042fd70
mov edx, dword [esp + 0x10]
movss xmm1, dword [0x486b20]
mov eax, dword [edx + 4]
movss xmm0, dword [edx + 0x10]
xorps xmm0, xmm1
mov ecx, dword [eax + 0x1c]
mov eax, dword [ecx]
movss dword [esp + 0x18], xmm0
movss xmm0, dword [edx + 0x14]
xorps xmm0, xmm1
movss dword [esp + 0x1c], xmm0
movss xmm0, dword [edx + 0x18]
lea edx, [esp + 0x18]
push edx
push dword [esp + 0x10]
xorps xmm0, xmm1
movss dword [esp + 0x28], xmm0
call dword [eax + 0x48]
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx + 4]
mov ecx, dword [eax + 0x1c]
mov edx, dword [esp + 0x14]
push edx
lea edx, [esp + 0x44]
mov eax, dword [ecx]
push edx
push dword [esp + 0x14]
call dword [eax + 0x4c]
mov edi, dword [edi]
mov ecx, dword [esp + 0x10]
cmp edi, esi
jne 0x41cae1
mov edi, dword [ecx + 4]
mov eax, dword [edi + 0x10]
mov esi, dword [eax]
cmp esi, eax
je 0x41cc86
mov ecx, dword [esi + 8]
mov eax, dword [ecx]
call dword [eax + 8]
mov esi, dword [esi]
cmp esi, dword [edi + 0x10]
jne 0x41cc70
mov ecx, dword [esp + 0x10]
mov edi, dword [ecx + 4]
mov ecx, dword [edi + 0x1c]
mov eax, dword [ecx]
mov eax, dword [eax + 0x44]
call eax
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0xc]
mov ecx, dword [esp + 0x84]
pop edi
pop esi
xor ecx, esp
call fcn.0046c079
mov esp, ebp
pop ebp
ret