Function at 0x100563f0
Capabilities:
Encode data using xor

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 0x1009bbe5
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0xa8
mov eax, dword [0x100b1010]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0xa0], edx
mov esi, ecx
mov dword [ebp - 0xa4], esi
mov edi, dword [0x100b10e0]
mov eax, dword [ebx + 8]
mov dword [ebp - 0xb0], eax
mov eax, dword [edi + 0x1718]
mov byte [eax + 0x86], 1
mov eax, dword [edi + 0x1718]
mov dword [ebp - 0x78], eax
cmp byte [eax + 0x88], 0
jne 0x10056eb2
mov ecx, dword [eax + 0x1c0]
xor edx, edx
mov eax, dword [eax + 0x1c8]
push dword [eax + ecx*4 - 4]
mov ecx, esi
call fcn.1004c6a0
add esp, 4
mov dword [ebp - 0x8c], eax
cmp dword [edi + 0x1740], eax
jne 0x100564a2
mov byte [edi + 0x1748], 1
mov dword [ebp - 0x88], eax
mov ecx, esi
cmp esi, 0xffffffff
jae 0x100564c6
nop
mov dl, byte [ecx]
test dl, dl
je 0x100564c6
cmp dl, 0x23
jne 0x100564c0
cmp byte [ecx + 1], dl
je 0x100564c6
inc ecx
cmp ecx, 0xffffffff
jb 0x100564b0
movss xmm2, dword [edi + 0x16e0]
mov eax, dword [ebp - 0xa4]
mov esi, dword [edi + 0x16dc]
movss dword [ebp - 0x7c], xmm2
cmp eax, ecx
jne 0x100564e8
xorps xmm1, xmm1
jmp 0x10056546
movss xmm3, dword [0x100a6574]
push ecx
push ecx
push eax
push ecx
lea eax, [ebp - 0x84]
mov dword [esp], 0xbf800000
push eax
mov ecx, esi
call fcn.1006f2d0
movss xmm0, dword [ebp - 0x84]
xorps xmm1, xmm1
comiss xmm0, xmm1
movss xmm2, dword [ebp - 0x7c]
divss xmm2, dword [esi]
jbe 0x10056526
subss xmm0, xmm2
addss xmm0, dword [0x100a63b8]
movss xmm2, dword [ebp - 0x80]
cvttss2si eax, xmm0
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movss dword [ebp - 0x94], xmm0
mov eax, dword [ebx + 0xc]
movss xmm7, dword [edi + 0x13dc]
movaps xmm5, xmm7
addss xmm5, xmm7
movss xmm4, dword [eax]
movss xmm3, dword [eax + 4]
mov eax, dword [edi + 0x1718]
addss xmm5, xmm2
movss xmm2, dword [eax + 0x120]
comiss xmm1, xmm2
jbe 0x100565c1
cmp dword [eax + 0x194], 1
movss xmm6, dword [eax + 0xb8]
subss xmm6, dword [eax + 0x18]
movss xmm0, dword [eax + 0x48]
je 0x100565ad
mov ecx, dword [eax + 0x190]
inc ecx
call fcn.10062540
mov eax, dword [edi + 0x1718]
xorps xmm1, xmm1
subss xmm0, dword [eax + 0x50]
subss xmm0, xmm6
addss xmm0, xmm2
movss xmm2, dword [0x100a63c0]
maxss xmm2, xmm0
comiss xmm1, xmm4
cvttss2si esi, xmm2
xorps xmm2, xmm2
xorps xmm0, xmm0
ja 0x100565d5
comiss xmm1, xmm3
jbe 0x10056612
cmp dword [eax + 0x194], 1
movss xmm0, dword [eax + 0x48]
movss xmm2, dword [eax + 0x4c]
je 0x10056602
mov ecx, dword [eax + 0x190]
inc ecx
call fcn.10062540
mov eax, dword [edi + 0x1718]
xorps xmm1, xmm1
subss xmm0, dword [eax + 0x50]
mov eax, dword [edi + 0x1718]
addss xmm0, dword [eax + 0x18]
addss xmm2, dword [eax + 0x1c]
comiss xmm1, xmm4
movss xmm6, dword [0x100a6468]
jb 0x10056647
ucomiss xmm4, xmm1
lahf
test ah, 0x44
jp 0x10056631
movd xmm4, esi
cvtdq2ps xmm4, xmm4
jmp 0x10056647
mov eax, dword [edi + 0x1718]
subss xmm0, dword [eax + 0xb8]
maxss xmm0, xmm6
addss xmm4, xmm0
comiss xmm1, xmm3
jb 0x10056670
ucomiss xmm3, xmm1
lahf
test ah, 0x44
jp 0x1005665a
movaps xmm3, xmm5
jmp 0x10056670
mov eax, dword [edi + 0x1718]
subss xmm2, dword [eax + 0xbc]
maxss xmm2, xmm6
addss xmm3, xmm2
mov eax, dword [ebp - 0x78]
lea ecx, [ebp - 0x40]
movss xmm0, dword [eax + 0xb8]
movss xmm5, dword [eax + 0xbc]
movss dword [ebp - 0x30], xmm0
movaps xmm2, xmm5
addss xmm0, xmm4
movss dword [ebp - 0x80], xmm2
movaps xmm4, xmm5
movss dword [ebp - 0x24], xmm2
addss xmm4, xmm3
movss dword [ebp - 0xb4], xmm5
subss xmm0, dword [0x100a64c0]
subss xmm4, xmm1
movaps xmm1, xmm0
movss dword [ebp - 0xac], xmm0
subss xmm1, dword [0x100a6514]
movaps xmm2, xmm0
movss dword [ebp - 0x9c], xmm0
movss dword [ebp - 0x20], xmm0
movaps xmm0, xmm4
subss xmm0, xmm5
movss dword [ebp - 0x7c], xmm4
movss dword [ebp - 0x98], xmm4
subss xmm2, xmm1
movss dword [ebp - 0xa8], xmm1
movss dword [ebp - 0x84], xmm1
movss dword [ebp - 0x28], xmm1
movaps xmm1, xmm7
movss dword [ebp - 0x1c], xmm4
movss dword [ebp - 0x3c], xmm0
movss dword [ebp - 0x40], xmm2
call fcn.1004d820
lea edx, [ebp - 0x88]
lea ecx, [ebp - 0x28]
call fcn.1004d920
test al, al
je 0x10056eb2
mov esi, dword [ebp - 0x8c]
xor cl, cl
mov byte [ebp - 0x73], 0
mov byte [ebp - 0x72], cl
cmp dword [edi + 0x1740], esi
jne 0x10056838
cmp byte [edi + 0x1749], cl
jne 0x1005679a
xor eax, eax
nop dword [eax]
cmp byte [edi + eax + 0xdd], cl
jne 0x10056771
inc eax
cmp eax, 0x7c
jl 0x10056760
jmp 0x1005679a
mov edx, dword [ebp - 0xa0]
mov dword [edi + 0x1740], 0
mov word [edi + 0x1749], 1
mov dword [edi + 0x1754], 0
mov dword [edx], eax
mov byte [ebp - 0x73], 1
mov esi, 0x100a4164
movzx ecx, cl
add ecx, 7
movss xmm1, dword [0x100a63c0]
call fcn.1004b940
push dword [ebp - 0x98]
movss xmm2, dword [edi + 0x13e0]
mov dl, 1
push dword [ebp - 0x9c]
mov ecx, eax
push dword [ebp - 0x80]
push dword [ebp - 0x84]
call fcn.1004fe50
add esp, 0x10
test esi, esi
je 0x10056998
mov ecx, esi
cmp esi, 0xffffffff
jae 0x10056806
nop word [eax + eax]
mov dl, byte [ecx]
test dl, dl
je 0x10056806
cmp dl, 0x23
jne 0x10056800
cmp byte [ecx + 1], dl
je 0x10056806
inc ecx
cmp ecx, 0xffffffff
jb 0x100567f0
mov edx, dword [0x100b10e0]
movss xmm0, dword [edx + 0x16e0]
mov eax, dword [edx + 0x16dc]
mov dword [ebp - 0x88], eax
movss dword [ebp - 0x8c], xmm0
cmp esi, ecx
jne 0x100568db
xorps xmm1, xmm1
jmp 0x10056938
push 0
mov edx, esi
lea ecx, [ebp - 0x28]
call fcn.1004da40
mov cl, al
add esp, 4
mov byte [ebp - 0x71], cl
test cl, cl
je 0x10056899
mov dword [edi + 0x1734], esi
mov byte [edi + 0x1738], 0
cmp byte [edi + 0xcc], 0
je 0x10056877
mov ecx, dword [ebp - 0x78]
mov byte [ebp - 0x72], 1
call fcn.10055010
mov cl, byte [ebp - 0x71]
jmp 0x10056899
cmp byte [edi + 0x371], 0
je 0x10056899
mov dword [edi + 0x1740], esi
mov word [edi + 0x1749], 1
mov dword [edi + 0x1754], 0
mov edx, dword [ebp - 0xa0]
mov eax, dword [edx]
cmp eax, 0x7c
jbe 0x100568ad
mov esi, 0x100b1368
jmp 0x100568b7
lea eax, [eax + eax*2]
lea esi, [eax*8 + 0x100b1368]
cmp dword [esi + 0x14], 0x10
jb 0x100568bf
mov esi, dword [esi]
test cl, cl
je 0x1005679f
cmp byte [ebp - 0x72], 0
je 0x1005679f
mov ecx, 9
jmp 0x100567a5
movss xmm3, dword [0x100a6574]
movaps xmm2, xmm0
push ecx
push ecx
push esi
push ecx
lea ecx, [ebp - 0x40]
mov dword [esp], 0xbf800000
push ecx
mov ecx, eax
call fcn.1006f2d0
mov eax, dword [ebp - 0x88]
movss xmm0, dword [ebp - 0x40]
comiss xmm0, dword [0x100a62c4]
movss xmm1, dword [ebp - 0x8c]
divss xmm1, dword [eax]
jbe 0x10056920
subss xmm0, xmm1
addss xmm0, dword [0x100a63b8]
cvttss2si eax, xmm0
movss xmm0, dword [ebp - 0x3c]
movd xmm1, eax
cvtdq2ps xmm1, xmm1
push 0
push ecx
push 0x12
lea eax, [ebp - 0x94]
movss dword [ebp - 0x94], xmm1
push eax
push 0
push esi
lea edx, [ebp - 0x9c]
movss dword [ebp - 0x90], xmm0
lea ecx, [ebp - 0x84]
call fcn.1004fb30
movss xmm0, dword [ebp - 0x98]
add esp, 0x18
movss dword [ebp - 0x7c], xmm0
movss xmm0, dword [ebp - 0x9c]
movss dword [ebp - 0xac], xmm0
movss xmm0, dword [ebp - 0x84]
movss dword [ebp - 0xa8], xmm0
movss xmm0, dword [ebp - 0xb4]
xor edx, edx
addss xmm0, dword [edi + 0x13dc]
movss xmm1, dword [ebp - 0x30]
mov esi, dword [ebp - 0xa4]
mov ecx, esi
movss dword [ebp - 0x94], xmm1
movss dword [ebp - 0x90], xmm0
push dword [ebp - 0x90]
push dword [ebp - 0x94]
push 1
call fcn.1004fa00
movss xmm0, dword [ebp - 0xa8]
mov ecx, esi
movss dword [ebp - 0x28], xmm0
add esp, 0xc
movss xmm0, dword [ebp - 0x80]
movss dword [ebp - 0x24], xmm0
movss xmm0, dword [ebp - 0xac]
lea edx, [ecx + 1]
movss dword [ebp - 0x20], xmm0
movss xmm0, dword [ebp - 0x7c]
movss dword [ebp - 0x1c], xmm0
xorps xmm0, xmm0
movups xmmword [ebp - 0x58], xmm0
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10056a25
sub ecx, edx
push ecx
push esi
lea ecx, [ebp - 0x58]
call fcn.1003d4b0
mov dword [ebp - 4], 0
mov cl, 0x6e
mov byte [ebp - 0x40], 5
mov al, 0x5a
xor al, byte [ebp - 0x40]
mov ch, 0x67
xor cl, byte [ebp - 0x40]
mov dl, 0x60
mov byte [ebp - 0x3f], al
mov dh, 0x6c
mov byte [ebp - 0x3e], cl
mov ah, 0x7c
mov cl, byte [ebp - 0x40]
mov byte [ebp - 0x71], 0x6b
xor dl, cl
mov al, byte [ebp - 0x71]
xor ch, cl
xor al, cl
mov byte [ebp - 0x72], 0x61
xor dh, cl
mov byte [ebp - 0x39], al
mov al, byte [ebp - 0x72]
xor ah, cl
xor al, cl
mov byte [ebp - 0x3b], ch
lea ecx, [ebp - 0x3f]
mov byte [ebp - 0x37], 0
mov byte [ebp - 0x3d], dl
mov byte [ebp - 0x3a], dh
lea edx, [ecx + 1]
mov byte [ebp - 0x3c], ah
mov byte [ebp - 0x38], al
mov byte [ebp - 0x37], 0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10056a98
sub ecx, edx
lea eax, [ebp - 0x3f]
push ecx
push eax
lea ecx, [ebp - 0x58]
call fcn.1003cbd0
mov eax, dword [ebp - 0x78]
lea ecx, [ebp - 0x58]
cmp dword [ebp - 0x44], 0x10
cmovae ecx, dword [ebp - 0x58]
mov edx, dword [eax + 0x1c0]
mov eax, dword [eax + 0x1c8]
push dword [eax + edx*4 - 4]
xor edx, edx
call fcn.1004c6a0
mov esi, eax
add esp, 4
mov eax, dword [0x100b10e0]
mov dword [ebp - 0x78], esi
cmp dword [eax + 0x1740], esi
jne 0x10056aef
mov byte [eax + 0x1748], 1
lea edx, [ebp - 0x30]
mov dword [ebp - 0x30], esi
lea ecx, [ebp - 0x28]
call fcn.1004d920
test al, al
jne 0x10056b09
mov byte [ebp - 0x73], al
jmp 0x10056e77
lea edi, [ebp - 0x17]
nop dword [eax]
mov eax, 0xcccccccd
dec edi
mul esi
shr edx, 3
mov al, dl
mov cl, dl
shl al, 2
mov esi, edx
add cl, al
mov eax, dword [ebp - 0x78]
add cl, cl
sub al, cl
add al, 0x30
mov byte [edi], al
mov eax, edx
mov dword [ebp - 0x78], eax
test eax, eax
jne 0x10056b10
push ecx
lea eax, [ebp - 0x17]
push eax
push edi
lea ecx, [ebp - 0x70]
call fcn.1003d620
mov byte [ebp - 4], 1
lea eax, [ebp - 0x70]
mov edi, dword [ebp - 0x5c]
mov ch, 0x4d
mov esi, dword [ebp - 0x70]
cmp edi, 0x10
mov byte [ebp - 0x34], ch
cmovae eax, esi
mov byte [ebp - 0x30], 0
mov byte [ebp - 0x30], 0
mov cl, byte [eax + 1]
mov dl, byte [eax]
xor cl, ch
mov al, byte [eax + 2]
xor dl, ch
xor al, ch
xor cl, ch
xor al, ch
mov byte [ebp - 0x32], cl
xor dl, ch
mov byte [ebp - 0x31], al
mov ecx, dword [0x100b10e0]
mov byte [ebp - 0x33], dl
mov eax, dword [ecx + 0x1718]
mov al, byte [eax + 0x105]
test al, al
je 0x10056bba
movss xmm0, dword [ecx + 0x380]
ucomiss xmm0, dword [0x100a62c4]
lahf
test ah, 0x44
jp 0x10056bba
mov dl, 1
lea ecx, [ebp - 0x33]
call fcn.10050410
lea ecx, [ebp - 0x33]
call fcn.10050940
mov byte [ebp - 0x71], al
mov byte [ebp - 4], 0
cmp edi, 0x10
jb 0x10056bfc
lea ecx, [edi + 1]
mov eax, esi
cmp ecx, 0x1000
jb 0x10056bef
mov esi, dword [eax - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10056e9d
push ecx
push esi
call fcn.1009827d
mov al, byte [ebp - 0x71]
add esp, 8
test al, al
je 0x10056e77
movaps xmm0, xmmword [0x100a6aa0]
xor ecx, ecx
movups xmmword [ebp - 0x2c], xmm0
mov word [ebp - 0x1c], 0x453d
mov byte [ebp - 0x1a], 0
nop dword [eax + eax]
mov al, byte [ebp - 0x2c]
xor byte [ebp + ecx - 0x2b], al
inc ecx
cmp ecx, 0x11
jb 0x10056c20
lea eax, [ebp - 0x2b]
mov byte [ebp - 0x1a], 0
push eax
call fcn.10055700
add esp, 4
call fcn.10061f10
mov ch, 0x4c
mov byte [ebp - 0x2f], 0
mov cl, 0x23
mov byte [ebp - 0x34], ch
mov dl, 0x20
mov dword [ebp - 0x40], 0x43020000
xor dl, ch
mov dword [ebp - 0x3c], 0
xor cl, ch
mov byte [ebp - 0x31], dl
mov al, 4
mov byte [ebp - 0x32], cl
mov ah, 0x28
mov byte [ebp - 0x2f], 0
xor al, ch
lea edx, [ebp - 0x40]
xor ah, ch
mov byte [ebp - 0x33], al
push 0
lea ecx, [ebp - 0x33]
mov byte [ebp - 0x30], ah
call fcn.100560e0
mov esi, dword [ebp - 0xb0]
add esp, 4
test al, al
je 0x10056c9e
mov dword [esi], str.Hold
call fcn.100506e0
mov byte [ebp - 0x34], 0x42
mov al, 0x16
xor al, byte [ebp - 0x34]
mov dl, 0x25
mov ah, dl
mov byte [ebp - 0x33], al
mov al, byte [ebp - 0x34]
mov cl, 0x2d
mov ch, 0x2e
mov byte [ebp - 0x2d], 0
mov dh, 0x27
mov dword [ebp - 0x40], 0x43020000
xor cl, al
mov dword [ebp - 0x3c], 0
xor dl, al
mov byte [ebp - 0x32], cl
xor ch, al
mov byte [ebp - 0x31], dl
xor dh, al
mov byte [ebp - 0x2f], ch
xor ah, al
mov byte [ebp - 0x2e], dh
push 0
lea edx, [ebp - 0x40]
mov byte [ebp - 0x30], ah
lea ecx, [ebp - 0x33]
mov byte [ebp - 0x2d], 0
call fcn.100560e0
add esp, 4
test al, al
je 0x10056d05
mov dword [esi], str.Toggle
call fcn.100506e0
mov byte [ebp - 0x34], 0x79
mov al, 0x38
xor al, byte [ebp - 0x34]
xor ch, ch
mov byte [ebp - 0x33], al
mov cl, 0x15
mov al, byte [ebp - 0x34]
mov dl, 0xe
mov dh, 0xa
mov dword [ebp - 0x40], 0x43020000
xor cl, al
mov dword [ebp - 0x3c], 0
xor dl, al
mov byte [ebp - 0x32], cl
xor ch, al
mov byte [ebp - 0x31], dl
xor dh, al
mov byte [ebp - 0x2f], ch
mov ah, 0x18
mov byte [ebp - 0x2e], dh
xor ah, al
mov byte [ebp - 0x2d], 0
push 0
lea edx, [ebp - 0x40]
mov byte [ebp - 0x30], ah
lea ecx, [ebp - 0x33]
call fcn.100560e0
add esp, 4
test al, al
je 0x10056d68
mov dword [esi], str.Always
call fcn.100506e0
call fcn.10061f10
push dword [esi]
mov byte [ebp - 0x40], 0x1f
mov al, 0x4b
xor al, byte [ebp - 0x40]
mov cl, 0x66
xor cl, byte [ebp - 0x40]
mov ah, 0x7a
mov byte [ebp - 0x3f], al
mov dl, 0x6f
mov byte [ebp - 0x3e], cl
mov ch, 0x25
mov cl, byte [ebp - 0x40]
mov dh, 0x3f
mov byte [ebp - 0x71], 0x3a
xor ah, cl
mov al, byte [ebp - 0x71]
xor dl, cl
xor al, cl
mov byte [ebp - 0x72], 0x6c
mov byte [ebp - 0x39], al
xor ch, cl
mov al, byte [ebp - 0x72]
xor dh, cl
xor al, cl
mov byte [ebp - 0x3c], ah
mov byte [ebp - 0x38], al
lea eax, [ebp - 0x3f]
mov byte [ebp - 0x37], 0
push eax
mov byte [ebp - 0x3d], dl
mov byte [ebp - 0x3b], ch
mov byte [ebp - 0x3a], dh
mov byte [ebp - 0x37], 0
call fcn.10055700
mov esi, dword [ebx + 0x10]
add esp, 8
mov ecx, 0x100a083d
mov eax, esi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x10056df8
test dl, dl
je 0x10056df4
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x10056df8
add eax, 2
add ecx, 2
test dl, dl
jne 0x10056dd8
xor eax, eax
jmp 0x10056dfd
sbb eax, eax
or eax, 1
test eax, eax
je 0x10056e46
call fcn.10061f10
cmp esi, str.Thirdperson_Distance
jne 0x10056e46
push esi
call fcn.10055700
mov edx, dword [0x100b7740]
mov ecx, 0x100a083d
movss xmm3, dword [0x100a6540]
movss xmm2, dword [0x100a64e4]
mov dword [esp], 0x3f800000
push str._.3f
lea edx, [edx + 0x20]
call fcn.10059130
add esp, 8
mov esi, dword [0x100b10e0]
mov eax, dword [esi + 0x1718]
mov byte [eax + 0x86], 1
mov esi, dword [esi + 0x1718]
call fcn.10054740
test dword [esi + 8], 0x4000000
jne 0x10056e77
mov ecx, 1
call fcn.100554b0
mov ecx, dword [ebp - 0x44]
cmp ecx, 0x10
jb 0x10056ead
mov edx, dword [ebp - 0x58]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10056ea3
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10056ea3
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.1009827d
add esp, 8
mov al, byte [ebp - 0x73]
jmp 0x10056eb4
xor al, al
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.1009823a
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret