Function at 0x10097d50
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x54
mov eax, dword [0x102187c8]
push ebx
mov dword [esp + 0x14], ecx
push esi
mov ecx, dword [eax]
push edi
test ecx, ecx
je 0x100985a6
mov eax, dword [ecx]
mov eax, dword [eax + 0x270]
call eax
test al, al
je 0x100985a6
mov eax, dword [0x102187c8]
mov ecx, 0x394634f0
mov esi, dword [eax]
call fcn.100c3de0
mov ecx, 0xad2bbff4
mov eax, dword [eax + esi]
mov dword [0x104236c8], eax
call fcn.100c3de0
movq xmm0, qword [eax + esi]
mov eax, dword [eax + esi + 8]
mov dword [0x104236d4], eax
mov eax, dword [0x10216630]
movq qword [0x104236cc], xmm0
mov eax, dword [eax + 0x84]
mov dword [eax], 0
mov eax, dword [0x10216630]
mov ecx, dword [eax + 0x1f8]
mov eax, dword [0x102187c8]
mov eax, dword [eax]
mov dword [ecx], eax
mov eax, dword [0x10216630]
mov ecx, dword [eax + 0xc]
mov eax, dword [0x1021663c]
movss xmm0, dword [ecx + 0x10]
mov eax, dword [eax + 0x54]
movss dword [esp + 0x28], xmm0
movss xmm0, dword [ecx + 0x14]
movss dword [esp + 0x2c], xmm0
movd xmm0, dword [0x104eee88]
mov dl, byte [eax + 0xa]
mov al, byte [eax + 8]
cvtdq2ps xmm0, xmm0
mov byte [esp + 0x1b], al
mov byte [esp + 0x1a], dl
mulss xmm0, dword [ecx + 0x20]
movss dword [ecx + 0x10], xmm0
xorps xmm0, xmm0
mov eax, dword [0x1021663c]
mov eax, dword [eax + 0x54]
cmp byte [eax + 0xb], 0
mov eax, dword [0x10216630]
jne 0x10097e46
mov ecx, dword [eax + 0xc]
movss xmm0, dword [ecx + 0x20]
mov eax, dword [eax + 0xc]
xor ebx, ebx
movss dword [eax + 0x14], xmm0
mov eax, dword [0x1021663c]
movq xmm0, qword [str.GCiQWVNHHXNL_]
mov eax, dword [eax + 0x54]
mov byte [eax + 0xa], 0
mov eax, dword [0x1021663c]
mov eax, dword [eax + 0x54]
mov byte [eax + 8], 1
mov eax, dword [0x1021663c]
mov esi, dword [0x10217ca4]
mov edi, dword [eax + 8]
mov eax, dword [0x101ae268]
mov dword [esp + 0x38], eax
mov al, byte [0x101ae26c]
movq qword [esp + 0x30], xmm0
mov byte [esp + 0x3c], al
cmp esi, 2
jl 0x10097f91
movaps xmm2, xmmword [0x101ed000]
mov ebx, 8
movaps xmm3, xmmword [0x101ed3a0]
movaps xmm1, xmm2
punpckldq xmm1, xmm2
movaps xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm3
pmuldq xmm1, xmm3
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movaps xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x101ed090]
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
movaps xmm2, xmmword [0x101ed030]
pshufhw xmm0, xmm0, 0xd8
pshufd xmm1, xmm0, 0xd8
andps xmm1, xmmword [0x101ed130]
movd xmm0, dword [str.GCiQWVNHHXNL_]
packuswb xmm1, xmm1
paddb xmm1, xmmword [str.4444444444444444]
xorps xmm1, xmm0
movaps xmm0, xmm2
movd dword [esp + 0x30], xmm1
movaps xmm1, xmm2
punpckldq xmm1, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm3
pmuldq xmm1, xmm3
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movaps xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x101ed090]
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm0, xmm0, 0xd8
pshufd xmm1, xmm0, 0xd8
andps xmm1, xmmword [0x101ed130]
movd xmm0, dword [esp + 0x34]
packuswb xmm1, xmm1
paddb xmm1, xmmword [str.4444444444444444]
xorps xmm1, xmm0
movd dword [esp + 0x34], xmm1
mov eax, 0x4ec4ec4f
imul ebx
mov al, 1
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
sub al, cl
movsx eax, al
imul eax, eax, 0x34
add al, bl
xor byte [esp + ebx + 0x30], al
inc ebx
cmp ebx, 0xd
jl 0x10097f91
mov eax, dword [edi]
lea ecx, [esp + 0x30]
push ecx
mov ecx, edi
mov eax, dword [eax + 0x3c]
call eax
mov ecx, dword [0x1021663c]
movups xmm0, xmmword [str.GCiZQWeQIPN______]
mov dword [esp + 0x24], eax
mov edi, dword [ecx + 8]
mov cx, word [0x101ae288]
mov word [esp + 0x5e], cx
movups xmmword [esp + 0x46], xmm0
movq xmm0, qword [0x101ae280]
movq qword [esp + 0x56], xmm0
test ch, ch
je 0x10098157
xor ebx, ebx
cmp esi, 2
jl 0x10098130
movaps xmm0, xmmword [str.4444444444444444]
movaps xmm4, xmmword [0x101ed000]
movaps xmm3, xmmword [0x101ed3a0]
movaps xmm5, xmmword [0x101ed090]
movaps xmmword [esp + 0x30], xmm0
mov ecx, dword [esp + 0x30]
movd xmm0, ebx
lea eax, [ebx + 4]
pshufd xmm2, xmm0, 0
paddd xmm2, xmm4
movaps xmm1, xmm2
movaps xmm0, xmm2
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm3
pmuldq xmm1, xmm3
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movaps xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm5
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm0, xmm0, 0xd8
pshufd xmm1, xmm0, 0xd8
andps xmm1, xmmword [0x101ed130]
packuswb xmm1, xmm1
movd xmm0, ecx
paddb xmm1, xmm0
movd xmm0, dword [esp + ebx + 0x46]
xorps xmm1, xmm0
movd xmm0, eax
pshufd xmm2, xmm0, 0
movd dword [esp + ebx + 0x46], xmm1
paddd xmm2, xmm4
movaps xmm1, xmm2
movaps xmm0, xmm2
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm3
pmuldq xmm1, xmm3
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movaps xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm5
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm0, xmm0, 0xd8
pshufd xmm1, xmm0, 0xd8
andps xmm1, xmmword [0x101ed130]
packuswb xmm1, xmm1
movd xmm0, ecx
paddb xmm1, xmm0
movd xmm0, dword [esp + ebx + 0x4a]
xorps xmm1, xmm0
movd dword [esp + ebx + 0x4a], xmm1
add ebx, 8
cmp ebx, 0x18
jl 0x10098031
cmp ebx, 0x1a
jge 0x10098157
nop dword [eax]
mov eax, 0x4ec4ec4f
imul ebx
mov al, 1
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
sub al, cl
movsx eax, al
imul eax, eax, 0x34
add al, bl
xor byte [esp + ebx + 0x46], al
inc ebx
cmp ebx, 0x1a
jl 0x10098130
mov eax, dword [edi]
lea ecx, [esp + 0x46]
push ecx
mov ecx, edi
mov eax, dword [eax + 0x3c]
call eax
mov edx, dword [esp + 0x1c]
mov al, byte [edx + 0x34]
test al, al
je 0x10098180
movsx ecx, al
mov eax, dword [0x102187c8]
mov eax, dword [eax]
mov dword [eax + 0x320c], ecx
mov eax, dword [0x102187c8]
mov eax, dword [eax]
mov ecx, dword [eax + 0x3344]
or ecx, dword [edx + 0x30]
mov dword [edx + 0x30], ecx
mov eax, dword [0x102187c8]
mov eax, dword [eax]
mov edi, dword [eax + 0x3340]
not edi
and edi, ecx
mov dword [edx + 0x30], edi
mov eax, dword [0x102187c8]
mov ebx, dword [eax]
mov ecx, ebx
call fcn.10097ad0
mov ecx, ebx
mov esi, dword [eax]
call fcn.10097b40
mov ecx, ebx
mov dword [eax], esi
call fcn.10097ad0
mov ecx, ebx
mov dword [eax], edi
call fcn.10097ad0
mov ecx, ebx
mov esi, eax
call fcn.10097b40
mov ecx, ebx
mov edi, dword [eax]
xor edi, dword [esi]
call fcn.10097ad0
mov ecx, dword [0x10217cb0]
mov esi, edi
and esi, dword [eax]
mov eax, dword fs:[0x2c]
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x10423708]
mov dword [esp + 0x20], ecx
cmp eax, dword [ecx + 4]
jle 0x10098245
push 0x10423708
call fcn.1015fec1
add esp, 4
cmp dword [0x10423708], 0xffffffff
jne 0x10098245
mov eax, dword [ebx]
mov ecx, ebx
mov eax, dword [eax + 0x44]
call eax
mov edx, str.m_afButtonPressed
mov ecx, eax
call fcn.1008ce70
push 0x10423708
mov dword [0x10423710], eax
call fcn.1015fe70
add esp, 4
mov eax, dword [0x10423710]
mov ecx, ebx
mov dword [ebx + eax], esi
call fcn.10097ad0
mov ecx, dword [esp + 0x20]
mov esi, dword [eax]
mov eax, dword [0x10423700]
not esi
and esi, edi
cmp eax, dword [ecx + 4]
jle 0x100982a8
push 0x10423700
call fcn.1015fec1
add esp, 4
cmp dword [0x10423700], 0xffffffff
jne 0x100982a8
mov eax, dword [ebx]
mov ecx, ebx
mov eax, dword [eax + 0x44]
call eax
mov edx, str.m_afButtonReleased
mov ecx, eax
call fcn.1008ce70
push 0x10423700
mov dword [0x1042370c], eax
call fcn.1015fe70
add esp, 4
mov eax, dword [0x1042370c]
mov dword [ebx + eax], esi
mov eax, dword [0x1021663c]
mov ecx, dword [eax + 0x28]
mov eax, dword [0x102187c8]
mov edx, dword [ecx]
push dword [eax]
mov eax, dword [edx + 0xc]
call eax
mov eax, dword [0x1021663c]
sub esp, 8
mov ecx, dword [eax + 0x54]
mov eax, dword [0x10216630]
mov edx, dword [ecx]
mov eax, dword [eax + 0xc]
movss xmm0, dword [eax + 0x14]
mov eax, dword [0x102187c8]
cvtps2pd xmm0, xmm0
movsd qword [esp], xmm0
push dword [eax]
mov eax, dword [edx + 0x48]
call eax
mov eax, dword [0x102187c8]
push 0
mov esi, dword [eax]
mov ecx, esi
mov eax, dword [0x10216630]
mov eax, dword [eax + 0x1e8]
call eax
test al, al
je 0x1009831c
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax + 0x4f8]
call eax
mov esi, dword [0x102187c8]
mov edi, dword [esi]
mov ebx, dword [edi + 0xfc]
cmp ebx, 0xffffffff
je 0x1009836f
test ebx, ebx
jle 0x1009836f
mov ecx, 0x8d4eb58d
call fcn.100c3de0
cmp ebx, dword [eax + edi]
jg 0x1009836f
mov dword [edi + 0xfc], 0xffffffff
mov ecx, edi
mov eax, dword [0x10216630]
push 0
mov eax, dword [eax + 0x1ec]
call eax
mov eax, dword [edi]
mov ecx, edi
mov eax, dword [eax + 0x22c]
call eax
mov esi, dword [0x102187c8]
mov eax, dword [0x10216630]
push dword [esi]
mov ecx, dword [eax + 0x8c]
mov eax, dword [ecx]
mov eax, dword [eax + 4]
call eax
mov eax, dword [0x1021663c]
mov esi, dword [esp + 0x1c]
mov ecx, dword [eax + 0x54]
mov eax, dword [0x10216630]
mov edx, dword [ecx]
push dword [eax + 0x88]
push dword [eax + 0x8c]
mov eax, dword [0x102187c8]
push esi
push dword [eax]
mov eax, dword [edx + 0x50]
call eax
mov eax, dword [0x1021663c]
mov ecx, dword [eax + 0x28]
mov eax, dword [0x10216630]
mov edx, dword [ecx]
push dword [eax + 0x88]
mov eax, dword [0x102187c8]
push dword [eax]
mov eax, dword [edx + 4]
call eax
mov eax, dword [0x1021663c]
mov ecx, dword [eax + 0x54]
mov eax, dword [0x10216630]
mov edx, dword [ecx]
push dword [eax + 0x88]
mov eax, dword [0x102187c8]
push esi
push dword [eax]
mov eax, dword [edx + 0x54]
call eax
mov eax, dword [0x10216630]
mov ecx, dword [eax + 0x8c]
mov eax, dword [ecx]
mov eax, dword [eax + 0x10]
call eax
mov eax, dword [0x102187c8]
mov esi, dword [eax]
mov eax, dword [0x1021663c]
mov ecx, dword [eax + 0x3c]
mov eax, dword [ecx]
mov eax, dword [eax + 0x84]
call eax
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax + 0x270]
call eax
test al, al
je 0x10098493
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax + 0x550]
call eax
mov ecx, 0x394634f0
call fcn.100c3de0
test byte [eax + esi], 1
je 0x1009845a
mov ecx, 0xefdfd33d
call fcn.100c3de0
mov dword [eax + esi], 0
mov ecx, 0x5323b915
call fcn.100c3de0
cmp dword [eax + esi], 0xffffffff
jne 0x10098478
mov eax, dword [esi]
mov ecx, esi
push 0
mov eax, dword [eax + 0x36c]
call eax
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax + 0x370]
call eax
mov eax, dword [0x10216630]
mov ecx, esi
mov eax, dword [eax + 0x1f0]
call eax
mov eax, dword [0x10216630]
mov ecx, esi
mov eax, dword [eax + 0x1f4]
call eax
mov eax, dword [0x1021663c]
mov ecx, dword [eax + 0x3c]
mov eax, dword [ecx]
mov eax, dword [eax + 0x88]
call eax
mov eax, dword [esp + 0x24]
test eax, eax
je 0x100984c3
mov dword [eax + 0x2c], 0
mov eax, dword [0x1021663c]
mov ecx, dword [eax + 0x28]
mov eax, dword [0x102187c8]
mov edx, dword [ecx]
push dword [eax]
mov eax, dword [edx + 0x10]
call eax
mov eax, dword [0x10216630]
push 0
mov ecx, dword [eax + 0x8c]
mov eax, dword [ecx]
mov eax, dword [eax + 4]
call eax
mov eax, dword [0x1021663c]
mov ecx, dword [eax + 0x28]
mov eax, dword [ecx]
mov eax, dword [eax + 8]
call eax
mov eax, dword [0x10216630]
movss xmm0, dword [esp + 0x28]
mov cl, byte [esp + 0x1a]
mov eax, dword [eax + 0x84]
mov dword [eax], 0xffffffff
mov eax, dword [0x10216630]
mov eax, dword [eax + 0x1f8]
mov dword [eax], 0
mov eax, dword [0x10216630]
mov eax, dword [eax + 0xc]
movss dword [eax + 0x10], xmm0
mov eax, dword [0x10216630]
movss xmm0, dword [esp + 0x2c]
mov eax, dword [eax + 0xc]
movss dword [eax + 0x14], xmm0
mov eax, dword [0x1021663c]
mov eax, dword [eax + 0x54]
mov byte [eax + 0xa], cl
mov eax, dword [0x1021663c]
mov cl, byte [esp + 0x1b]
mov eax, dword [eax + 0x54]
mov byte [eax + 8], cl
mov eax, dword [0x102187c8]
mov ecx, dword [eax]
mov eax, dword [ecx]
mov eax, dword [eax + 0x430]
call eax
mov esi, eax
test esi, esi
je 0x100985a6
mov ecx, dword [esi]
mov edx, dword [ecx + 0x71c]
mov ecx, esi
call edx
cmp eax, 9
je 0x100985a6
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax + 0x71c]
call eax
test eax, eax
je 0x100985a6
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax + 0x790]
call eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret