Function at 0x10014740
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1008ce90
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push esi
push edi
mov eax, dword [0x100a4040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x14], edx
mov esi, ecx
mov dword [ebp - 0x10], esi
test esi, esi
je 0x10014a27
mov ax, word [0x100bf268]
test ax, ax
jne 0x10014792
mov ecx, 0x19222c70
call fcn.10002c20
mov word [0x100bf268], ax
movzx eax, ax
cmp dword [eax + esi], 0
jne 0x10014a27
mov ax, word [0x100bf0e4]
test ax, ax
jne 0x100147ba
mov ecx, 0xc2a1c250
call fcn.10002c20
mov word [0x100bf0e4], ax
movzx edx, ax
cmp dword [edx + esi + 1], 8
je 0x10014a27
test ax, ax
jne 0x100147dd
mov ecx, 0xc2a1c250
call fcn.10002c20
mov word [0x100bf0e4], ax
movzx eax, ax
cmp dword [eax + esi + 1], 9
je 0x10014a27
test byte [ebp - 0x14], 1
je 0x10014a27
mov eax, dword [ebp + 8]
test dword [eax + 0x30], 0x61a
jne 0x10014a27
mov eax, dword fs:[0x2c]
mov ecx, dword [0x100be8d8]
mov edi, dword [eax + ecx*4]
mov eax, dword [0x100bf0b8]
cmp eax, dword [edi + 4]
jle 0x1001491a
push 0x100bf0b8
call fcn.1008a0fd
add esp, 4
cmp dword [0x100bf0b8], 0xffffffff
jne 0x1001491a
mov eax, dword [0x100be904]
cmp eax, dword [edi + 4]
jle 0x10014897
push 0x100be904
call fcn.1008a0fd
add esp, 4
cmp dword [0x100be904], 0xffffffff
jne 0x10014897
push 0x1008f440
mov dword [0x100be8f8], 0
mov dword [0x100be8fc], 0
mov dword [0x100be900], 0
call fcn.1008a5ab
push 0x100be904
call fcn.1008a0ac
add esp, 8
mov esi, dword [0x100be8f8]
mov edi, dword [0x100be8fc]
cmp esi, edi
je 0x100148cd
mov eax, dword [esi]
test eax, eax
je 0x100148c6
push str.DT_CSPlayer
push dword [eax + 0xc]
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
add esp, 8
test eax, eax
je 0x10014a38
add esi, 4
cmp esi, edi
jne 0x100148a7
movaps xmm0, xmmword [0x1009a500]
xor ecx, ecx
movups xmmword [ebp - 0x2c], xmm0
nop word [eax + eax]
mov al, byte [ebp - 0x2c]
xor byte [ebp + ecx - 0x2b], al
inc ecx
cmp ecx, 0xe
jb 0x100148e0
lea eax, [ebp - 0x2b]
mov byte [ebp - 0x1d], 0
push str.m_vecVelocity_0_
push eax
call fcn.10002690
add esp, 8
xor esi, esi
push 0x100bf0b8
mov dword [0x100bf1f0], esi
call fcn.1008a0ac
mov esi, dword [ebp - 0x10]
add esp, 4
mov eax, dword [0x100bf1f0]
movq xmm0, qword [eax + esi]
mov eax, dword [eax + esi + 8]
movq qword [ebp - 0x28], xmm0
movss xmm1, dword [ebp - 0x24]
movss xmm0, dword [ebp - 0x28]
mulss xmm0, xmm0
mov dword [ebp - 0x20], eax
mulss xmm1, xmm1
addss xmm0, xmm1
call fcn.10002540
movss xmm1, dword [0x1009a278]
comiss xmm1, xmm0
movss dword [ebp - 0x10], xmm0
ja 0x10014a27
fld dword [ebp - 0x24]
sub esp, 8
fstp dword [esp + 4]
fld dword [ebp - 0x28]
fstp dword [esp]
call sub.api_ms_win_crt_math_l1_1_0.dll__hypotf
movss xmm0, dword [ebp - 0x20]
add esp, 8
xorps xmm0, xmmword [0x1009b100]
fstp dword [ebp - 0x14]
movss xmm1, dword [ebp - 0x14]
call fcn.1000dfa0
mulss xmm0, dword [0x1009a2ac]
mulss xmm0, dword [0x1009a130]
call fcn.1000dfe0
movss xmm1, dword [ebp - 0x28]
movss dword [ebp - 0x14], xmm0
movss xmm0, dword [ebp - 0x24]
call fcn.1000dfa0
mulss xmm0, dword [0x1009a2ac]
mov esi, dword [ebp + 8]
movss xmm1, dword [esi + 0x10]
subss xmm1, xmm0
movss xmm0, dword [ebp - 0x10]
xorps xmm0, xmmword [0x1009b100]
movss dword [ebp - 0x10], xmm0
mulss xmm1, dword [0x1009a130]
movaps xmm0, xmm1
movss dword [ebp - 0x18], xmm1
call fcn.1000dfe0
mulss xmm0, dword [ebp - 0x14]
mulss xmm0, dword [ebp - 0x10]
movss dword [ebp - 0x1c], xmm0
movss xmm0, dword [ebp - 0x18]
call fcn.1000e000
mulss xmm0, dword [ebp - 0x14]
movss xmm1, dword [ebp - 0x1c]
movss dword [esi + 0x24], xmm1
mulss xmm0, dword [ebp - 0x10]
movss dword [esi + 0x28], xmm0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [esi]
test eax, eax
je 0x100148cd
push ecx
push str.m_vecVelocity_0_
push eax
mov ecx, 0x100be8f8
call fcn.10078f80
mov esi, eax
test esi, esi
je 0x100148cd
mov cl, 0x76
mov dword [ebp - 0x2c], 0x4c055376
mov dword [ebp - 0x28], 0x530e4656
xor eax, eax
mov dword [ebp - 0x24], 0x7c2e4446
mov byte [ebp - 0x20], 0
nop word [eax + eax]
xor byte [ebp + eax - 0x2b], cl
inc eax
cmp eax, 0xb
jae 0x10014a8f
mov cl, byte [ebp - 0x2c]
jmp 0x10014a80
push esi
lea eax, [ebp - 0x2b]
mov byte [ebp - 0x20], 0
push str.m_vecVelocity_0_
push eax
call fcn.10002690
add esp, 0xc
jmp 0x10014904