Function at 0x10099b60
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x54
mov eax, dword [0x102090c0]
xor eax, esp
mov dword [esp + 0x50], eax
mov eax, dword [0x10228e54]
push ebx
mov ebx, ecx
push esi
mov ecx, dword [eax]
mov dword [esp + 0x1c], ebx
push edi
test ecx, ecx
je 0x1009a604
mov eax, dword [ecx]
mov eax, dword [eax + 0x270]
call eax
test al, al
je 0x1009a604
mov eax, dword [0x10228e54]
mov byte [0x104508e4], 1
mov ecx, dword [eax]
call fcn.1007de60
mov ecx, dword [0x1022867c]
mov eax, dword [eax]
mov dword [0x10446c08], eax
mov eax, dword [0x10228e54]
mov esi, dword [eax]
mov eax, dword fs:[0x2c]
mov edi, dword [eax + ecx*4]
mov eax, dword [0x10446dc4]
cmp eax, dword [edi + 4]
jle 0x10099c19
push 0x10446dc4
call fcn.1019bffa
add esp, 4
cmp dword [0x10446dc4], 0xffffffff
jne 0x10099c19
mov edx, 0xc60bf9f2
mov ecx, 0x101ea5f1
call fcn.1007da20
mov ecx, eax
call fcn.100d1920
push 0x10446dc4
mov dword [0x10446d18], eax
call fcn.1019bfa6
add esp, 4
mov eax, dword [0x10446d18]
movq xmm0, qword [eax + esi]
mov eax, dword [eax + esi + 8]
mov dword [0x10446c14], eax
mov eax, dword [0x10226ca4]
movq qword [0x10446c0c], xmm0
mov eax, dword [eax + 0x88]
mov dword [eax], 0
mov eax, dword [0x10226ca4]
mov ecx, dword [eax + 0x1f8]
mov eax, dword [0x10228e54]
mov eax, dword [eax]
mov dword [ecx], eax
mov eax, dword [0x10226ca4]
mov ecx, dword [eax + 0x10]
mov eax, dword [0x10226cb0]
movss xmm0, dword [ecx + 0x10]
mov eax, dword [eax + 0x54]
movss dword [esp + 0x24], xmm0
movss xmm0, dword [ecx + 0x14]
movss dword [esp + 0x28], xmm0
movd xmm0, dword [0x1051c3ac]
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 [0x10226cb0]
mov eax, dword [eax + 0x54]
cmp byte [eax + 0xb], 0
mov eax, dword [0x10226ca4]
jne 0x10099cc0
mov ecx, dword [eax + 0x10]
movss xmm0, dword [ecx + 0x20]
mov eax, dword [eax + 0x10]
movss dword [eax + 0x14], xmm0
mov eax, dword [0x10226cb0]
mov eax, dword [eax + 0x54]
mov byte [eax + 0xa], 0
mov eax, dword [0x10226cb0]
mov eax, dword [eax + 0x54]
mov byte [eax + 8], 1
mov eax, dword [0x10228e54]
mov esi, dword [eax]
mov eax, dword [0x10450864]
cmp eax, dword [edi + 4]
jle 0x10099d32
push 0x10450864
call fcn.1019bffa
add esp, 4
cmp dword [0x10450864], 0xffffffff
jne 0x10099d32
mov edx, 0xc60bf9f2
mov ecx, 0x101ebf45
call fcn.1007da20
mov ecx, eax
call fcn.100d1920
push 0x10450864
mov dword [0x1045085c], eax
call fcn.1019bfa6
add esp, 4
mov eax, dword [0x1045085c]
mov eax, dword [eax + esi]
mov esi, dword [ebx + 0x30]
mov dword [esp + 0x2c], eax
mov eax, dword [0x10228e54]
mov ebx, dword [eax]
mov eax, dword [0x10450874]
cmp eax, dword [edi + 4]
jle 0x10099d92
push 0x10450874
call fcn.1019bffa
add esp, 4
cmp dword [0x10450874], 0xffffffff
jne 0x10099d92
mov eax, dword [ebx]
mov ecx, ebx
mov eax, dword [eax + 0x44]
call eax
mov edx, str.m_nButtons
mov ecx, eax
call fcn.1008ccb0
push 0x10450874
mov dword [0x10450868], eax
call fcn.1019bfa6
add esp, 4
mov eax, dword [0x10450868]
mov eax, dword [eax + ebx]
mov ebx, eax
mov dword [esp + 0x1c], eax
xor ebx, esi
mov eax, dword [0x10228e54]
mov eax, dword [eax]
mov dword [esp + 0x14], eax
mov eax, dword [0x1045089c]
cmp eax, dword [edi + 4]
jle 0x10099df9
push 0x1045089c
call fcn.1019bffa
add esp, 4
cmp dword [0x1045089c], 0xffffffff
jne 0x10099df9
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx]
mov eax, dword [eax + 0x44]
call eax
mov edx, str.m_afButtonLast
mov ecx, eax
call fcn.1008ccb0
push 0x1045089c
mov dword [0x10450880], eax
call fcn.1019bfa6
add esp, 4
mov eax, dword [0x10450880]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x1c]
mov dword [eax + ecx], edx
mov eax, dword [0x10228e54]
mov eax, dword [eax]
mov dword [esp + 0x14], eax
mov eax, dword [0x10450874]
cmp eax, dword [edi + 4]
jle 0x10099e60
push 0x10450874
call fcn.1019bffa
add esp, 4
cmp dword [0x10450874], 0xffffffff
jne 0x10099e60
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx]
mov eax, dword [eax + 0x44]
call eax
mov edx, str.m_nButtons
mov ecx, eax
call fcn.1008ccb0
push 0x10450874
mov dword [0x10450868], eax
call fcn.1019bfa6
add esp, 4
mov eax, dword [0x10450868]
mov ecx, dword [esp + 0x14]
mov dword [eax + ecx], esi
mov eax, dword [0x10228e54]
mov eax, dword [eax]
mov dword [esp + 0x14], eax
mov eax, dword [0x104508a0]
cmp eax, dword [edi + 4]
jle 0x10099ec3
push 0x104508a0
call fcn.1019bffa
add esp, 4
cmp dword [0x104508a0], 0xffffffff
jne 0x10099ec3
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx]
mov eax, dword [eax + 0x44]
call eax
mov edx, str.m_afButtonPressed
mov ecx, eax
call fcn.1008ccb0
push 0x104508a0
mov dword [0x104508b4], eax
call fcn.1019bfa6
add esp, 4
mov eax, dword [0x104508b4]
mov ecx, ebx
mov edx, dword [esp + 0x14]
and ecx, esi
mov dword [edx + eax], ecx
mov eax, dword [0x10228e54]
mov eax, dword [eax]
mov dword [esp + 0x14], eax
mov eax, dword [0x10450898]
cmp eax, dword [edi + 4]
jle 0x10099f2a
push 0x10450898
call fcn.1019bffa
add esp, 4
cmp dword [0x10450898], 0xffffffff
jne 0x10099f2a
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx]
mov eax, dword [eax + 0x44]
call eax
mov edx, str.m_afButtonReleased
mov ecx, eax
call fcn.1008ccb0
push 0x10450898
mov dword [0x104508a8], eax
call fcn.1019bfa6
add esp, 4
mov eax, dword [0x104508a8]
not esi
mov ecx, dword [esp + 0x14]
and esi, ebx
push 0
mov dword [ecx + eax], esi
mov eax, dword [0x10228e54]
mov ecx, dword [eax]
mov eax, dword [0x10226ca4]
mov eax, dword [eax + 0x1e8]
call eax
test al, al
je 0x10099f65
mov eax, dword [0x10228e54]
mov ecx, dword [eax]
mov eax, dword [ecx]
mov eax, dword [eax + 0x4f8]
call eax
mov eax, dword [0x10226cb0]
xor ebx, ebx
cmp dword [0x10228670], 2
movq xmm0, qword [str.EAg_UTHNJZ02B]
mov esi, dword [eax + 8]
mov eax, dword [0x101ec084]
mov dword [esp + 0x38], eax
mov al, byte [0x101ec088]
mov byte [esp + 0x3c], al
movq qword [esp + 0x30], xmm0
jl 0x1009a090
movaps xmm2, xmmword [0x101fadd0]
mov ebx, 8
movaps xmm3, xmmword [0x101faf20]
movaps xmm1, xmm2
punpckldq xmm1, xmm2
movaps xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm3
pmuldq xmm1, xmm3
shufps xmm1, xmm0, 0xdd
psrad xmm1, 1
movaps xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x101fae60]
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
movaps xmm2, xmmword [0x101fae10]
pshufhw xmm0, xmm0, 0xd8
pshufd xmm1, xmm0, 0xd8
andps xmm1, xmmword [0x101faf00]
movd xmm0, dword [str.EAg_UTHNJZ02B]
packuswb xmm1, xmm1
paddb xmm1, xmmword [0x101faf60]
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, 1
movaps xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x101fae60]
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm0, xmm0, 0xd8
pshufd xmm1, xmm0, 0xd8
andps xmm1, xmmword [0x101faf00]
movd xmm0, dword [esp + 0x34]
packuswb xmm1, xmm1
paddb xmm1, xmmword [0x101faf60]
xorps xmm1, xmm0
movd dword [esp + 0x34], xmm1
nop
mov eax, 0x94f2095
mov cl, bl
imul ebx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
movsx eax, al
imul eax, eax, 0x37
sub cl, al
add cl, 0x36
xor byte [esp + ebx + 0x30], cl
inc ebx
cmp ebx, 0xd
jl 0x1009a090
mov eax, dword [esi]
lea ecx, [esp + 0x30]
push ecx
mov ecx, esi
mov eax, dword [eax + 0x3c]
call eax
mov ecx, dword [0x10226cb0]
movups xmm0, xmmword [str.EAgTSUcWKR0]
mov dword [esp + 0x1c], eax
mov esi, dword [ecx + 8]
mov cx, word [0x101ec078]
mov word [esp + 0x58], cx
movups xmmword [esp + 0x40], xmm0
movq xmm0, qword [0x101ec070]
movq qword [esp + 0x50], xmm0
test ch, ch
je 0x1009a257
xor ebx, ebx
cmp dword [0x10228670], 2
jl 0x1009a230
movaps xmm0, xmmword [0x101faf60]
movaps xmm4, xmmword [0x101fadd0]
movaps xmm3, xmmword [0x101faf20]
movaps xmm5, xmmword [0x101fae60]
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, 1
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 [0x101faf00]
packuswb xmm1, xmm1
movd xmm0, ecx
paddb xmm1, xmm0
movd xmm0, dword [esp + ebx + 0x40]
xorps xmm1, xmm0
movd xmm0, eax
pshufd xmm2, xmm0, 0
movd dword [esp + ebx + 0x40], 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, 1
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 [0x101faf00]
packuswb xmm1, xmm1
movd xmm0, ecx
paddb xmm1, xmm0
movd xmm0, dword [esp + ebx + 0x44]
xorps xmm1, xmm0
movd dword [esp + ebx + 0x44], xmm1
add ebx, 8
cmp ebx, 0x18
jl 0x1009a134
cmp ebx, 0x1a
jge 0x1009a257
mov eax, 0x94f2095
mov cl, bl
imul ebx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
movsx eax, al
imul eax, eax, 0x37
sub cl, al
add cl, 0x36
xor byte [esp + ebx + 0x40], cl
inc ebx
cmp ebx, 0x1a
jl 0x1009a230
mov eax, dword [esi]
lea ecx, [esp + 0x40]
push ecx
mov ecx, esi
mov eax, dword [eax + 0x3c]
call eax
mov edx, dword [esp + 0x20]
mov al, byte [edx + 0x34]
test al, al
je 0x1009a280
movsx ecx, al
mov eax, dword [0x10228e54]
mov eax, dword [eax]
mov dword [eax + 0x320c], ecx
mov eax, dword [0x10228e54]
mov eax, dword [eax]
mov eax, dword [eax + 0x3344]
or dword [edx + 0x30], eax
mov eax, dword [0x10228e54]
mov eax, dword [eax]
mov eax, dword [eax + 0x3340]
not eax
and eax, dword [edx + 0x30]
mov dword [edx + 0x30], eax
mov ecx, dword [0x10228e54]
push eax
mov ecx, dword [ecx]
call fcn.10099100
mov eax, dword [0x10226cb0]
mov ecx, dword [eax + 0x28]
mov eax, dword [0x10228e54]
mov edx, dword [ecx]
push dword [eax]
mov eax, dword [edx + 0xc]
call eax
mov eax, dword [0x10226cb0]
sub esp, 8
mov ecx, dword [eax + 0x54]
mov eax, dword [0x10226ca4]
mov edx, dword [ecx]
mov eax, dword [eax + 0x10]
movss xmm0, dword [eax + 0x14]
mov eax, dword [0x10228e54]
cvtps2pd xmm0, xmm0
movsd qword [esp], xmm0
push dword [eax]
mov eax, dword [edx + 0x48]
call eax
mov eax, dword [0x10228e54]
push 0
mov esi, dword [eax]
mov ecx, esi
mov eax, dword [0x10226ca4]
mov eax, dword [eax + 0x1e8]
call eax
test al, al
je 0x1009a31f
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax + 0x4f8]
call eax
mov eax, dword [0x10228e54]
mov esi, dword [eax]
mov ebx, dword [esi + 0xfc]
cmp ebx, 0xffffffff
je 0x1009a367
test ebx, ebx
jle 0x1009a367
mov ecx, esi
call fcn.10099480
cmp ebx, dword [eax]
jg 0x1009a367
mov dword [esi + 0xfc], 0xffffffff
mov ecx, esi
mov eax, dword [0x10226ca4]
push 0
mov eax, dword [eax + 0x1ec]
call eax
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax + 0x22c]
call eax
mov eax, dword [0x10226ca4]
mov ecx, dword [eax + 0x90]
mov eax, dword [0x10228e54]
mov edx, dword [ecx]
push dword [eax]
mov eax, dword [edx + 4]
call eax
mov eax, dword [0x10226cb0]
mov ebx, dword [esp + 0x20]
mov ecx, dword [eax + 0x54]
mov eax, dword [0x10226ca4]
mov edx, dword [ecx]
push dword [eax + 0x8c]
push dword [eax + 0x90]
mov eax, dword [0x10228e54]
push ebx
push dword [eax]
mov eax, dword [edx + 0x50]
call eax
mov eax, dword [0x10226cb0]
mov ecx, dword [eax + 0x28]
mov eax, dword [0x10226ca4]
mov edx, dword [ecx]
push dword [eax + 0x8c]
mov eax, dword [0x10228e54]
push dword [eax]
mov eax, dword [edx + 4]
call eax
mov eax, dword [0x10226cb0]
mov ecx, dword [eax + 0x54]
mov eax, dword [0x10226ca4]
mov edx, dword [ecx]
push dword [eax + 0x8c]
mov eax, dword [0x10228e54]
push ebx
push dword [eax]
mov eax, dword [edx + 0x54]
call eax
mov eax, dword [0x10226ca4]
mov ecx, dword [eax + 0x90]
mov eax, dword [ecx]
mov eax, dword [eax + 0x10]
call eax
mov eax, dword [0x10228e54]
mov esi, dword [eax]
mov eax, dword [0x10226cb0]
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 0x1009a484
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax + 0x550]
call eax
mov ecx, esi
call fcn.1007de60
test byte [eax], 1
je 0x1009a44f
mov ecx, esi
call fcn.10099800
mov dword [eax], 0
mov ecx, esi
call fcn.10099410
cmp dword [eax], 0xffffffff
jne 0x1009a469
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 [0x10226ca4]
mov ecx, esi
mov eax, dword [eax + 0x1f0]
call eax
mov eax, dword [0x10226ca4]
mov ecx, esi
mov eax, dword [eax + 0x1f4]
call eax
mov eax, dword [0x10226cb0]
mov ecx, dword [eax + 0x3c]
mov eax, dword [ecx]
mov eax, dword [eax + 0x88]
call eax
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x1009a4b4
mov dword [eax + 0x2c], 0
mov eax, dword [0x10226cb0]
mov ecx, dword [eax + 0x28]
mov eax, dword [0x10228e54]
mov edx, dword [ecx]
push dword [eax]
mov eax, dword [edx + 0x10]
call eax
mov eax, dword [0x10226ca4]
push 0
mov ecx, dword [eax + 0x90]
mov eax, dword [ecx]
mov eax, dword [eax + 4]
call eax
mov eax, dword [0x10226cb0]
mov ecx, dword [eax + 0x28]
mov eax, dword [ecx]
mov eax, dword [eax + 8]
call eax
mov eax, dword [0x10226ca4]
movss xmm0, dword [esp + 0x24]
mov cl, byte [esp + 0x1a]
mov eax, dword [eax + 0x88]
mov dword [eax], 0xffffffff
mov eax, dword [0x10226ca4]
mov eax, dword [eax + 0x1f8]
mov dword [eax], 0
mov eax, dword [0x10226ca4]
mov eax, dword [eax + 0x10]
movss dword [eax + 0x10], xmm0
mov eax, dword [0x10226ca4]
movss xmm0, dword [esp + 0x28]
mov eax, dword [eax + 0x10]
movss dword [eax + 0x14], xmm0
mov eax, dword [0x10226cb0]
mov eax, dword [eax + 0x54]
mov byte [eax + 0xa], cl
mov eax, dword [0x10226cb0]
mov cl, byte [esp + 0x1b]
mov eax, dword [eax + 0x54]
mov byte [eax + 8], cl
mov eax, dword [0x10228e54]
mov ecx, dword [eax]
mov eax, dword [ecx]
mov eax, dword [eax + 0x430]
call eax
mov esi, eax
test esi, esi
je 0x1009a604
mov ecx, dword [esi]
mov edx, dword [ecx + 0x71c]
mov ecx, esi
call edx
cmp eax, 9
je 0x1009a604
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax + 0x71c]
call eax
test eax, eax
je 0x1009a604
mov eax, dword [0x10228e54]
mov ebx, dword [eax]
mov eax, dword [0x10450864]
cmp eax, dword [edi + 4]
jle 0x1009a5e5
push 0x10450864
call fcn.1019bffa
add esp, 4
cmp dword [0x10450864], 0xffffffff
jne 0x1009a5e5
mov edx, 0xc60bf9f2
mov ecx, 0x101ebf45
call fcn.1007da20
mov ecx, eax
call fcn.100d1920
push 0x10450864
mov dword [0x1045085c], eax
call fcn.1019bfa6
add esp, 4
mov eax, dword [0x1045085c]
mov ecx, dword [esp + 0x2c]
mov dword [ebx + eax], ecx
mov ecx, esi
mov eax, dword [esi]
mov eax, dword [eax + 0x790]
call eax
mov byte [0x104508e4], 0
mov ecx, dword [esp + 0x5c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1019ba64
mov esp, ebp
pop ebp
ret