Function at 0x10099d60
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x54
mov eax, dword [0x102070c0]
xor eax, esp
mov dword [esp + 0x50], eax
mov eax, dword [0x10226524]
push ebx
mov ebx, ecx
push esi
mov ecx, dword [eax]
mov dword [esp + 0x1c], ebx
push edi
test ecx, ecx
je 0x1009a863
mov eax, dword [ecx]
mov eax, dword [eax + 0x270]
call eax
test al, al
je 0x1009a863
mov eax, dword [0x10226524]
mov byte [0x1034d460], 1
mov ecx, dword [eax]
call fcn.1007d990
mov ecx, dword [0x10225d4c]
mov eax, dword [eax]
mov dword [0x103437a0], eax
mov eax, dword [0x10226524]
mov esi, dword [eax]
mov eax, dword fs:[0x2c]
mov edi, dword [eax + ecx*4]
mov eax, dword [0x10343940]
cmp eax, dword [edi + 4]
jle 0x10099e19
push 0x10343940
call fcn.1019a827
add esp, 4
cmp dword [0x10343940], 0xffffffff
jne 0x10099e19
mov edx, 0xc60bf9f2
mov ecx, 0x101e85d5
call fcn.1007d620
mov ecx, eax
call fcn.100d08c0
push 0x10343940
mov dword [0x10343894], eax
call fcn.1019a7d6
add esp, 4
mov eax, dword [0x10343894]
movq xmm0, qword [eax + esi]
mov eax, dword [eax + esi + 8]
mov dword [0x103437ac], eax
mov eax, dword [0x10224c9c]
movq qword [0x103437a4], xmm0
mov eax, dword [eax + 0x88]
mov dword [eax], 0
mov eax, dword [0x10224c9c]
mov ecx, dword [eax + 0x1f8]
mov eax, dword [0x10226524]
mov eax, dword [eax]
mov dword [ecx], eax
mov eax, dword [0x10224c9c]
mov ecx, dword [eax + 0x10]
mov eax, dword [0x10224ca8]
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 [0x10353c3c]
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 [0x10224ca8]
mov eax, dword [eax + 0x54]
cmp byte [eax + 0xb], 0
mov eax, dword [0x10224c9c]
jne 0x10099ec0
mov ecx, dword [eax + 0x10]
movss xmm0, dword [ecx + 0x20]
mov eax, dword [eax + 0x10]
movss dword [eax + 0x14], xmm0
mov eax, dword [0x10224ca8]
mov eax, dword [eax + 0x54]
mov byte [eax + 0xa], 0
mov eax, dword [0x10224ca8]
mov eax, dword [eax + 0x54]
mov byte [eax + 8], 1
mov eax, dword [0x10226524]
mov esi, dword [eax]
mov eax, dword [0x1034d3e0]
cmp eax, dword [edi + 4]
jle 0x10099f32
push 0x1034d3e0
call fcn.1019a827
add esp, 4
cmp dword [0x1034d3e0], 0xffffffff
jne 0x10099f32
mov edx, 0xc60bf9f2
mov ecx, 0x101e9f2d
call fcn.1007d620
mov ecx, eax
call fcn.100d08c0
push 0x1034d3e0
mov dword [0x1034d3d8], eax
call fcn.1019a7d6
add esp, 4
mov eax, dword [0x1034d3d8]
mov eax, dword [eax + esi]
mov esi, dword [ebx + 0x30]
mov dword [esp + 0x2c], eax
mov eax, dword [0x10226524]
mov ebx, dword [eax]
mov eax, dword [0x1034d3f0]
cmp eax, dword [edi + 4]
jle 0x10099f92
push 0x1034d3f0
call fcn.1019a827
add esp, 4
cmp dword [0x1034d3f0], 0xffffffff
jne 0x10099f92
mov eax, dword [ebx]
mov ecx, ebx
mov eax, dword [eax + 0x44]
call eax
mov edx, str.m_nButtons
mov ecx, eax
call fcn.1008cd30
push 0x1034d3f0
mov dword [0x1034d3e4], eax
call fcn.1019a7d6
add esp, 4
mov eax, dword [0x1034d3e4]
mov eax, dword [eax + ebx]
mov ebx, eax
mov dword [esp + 0x1c], eax
xor ebx, esi
mov eax, dword [0x10226524]
mov eax, dword [eax]
mov dword [esp + 0x14], eax
mov eax, dword [0x1034d418]
cmp eax, dword [edi + 4]
jle 0x10099ff9
push 0x1034d418
call fcn.1019a827
add esp, 4
cmp dword [0x1034d418], 0xffffffff
jne 0x10099ff9
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.1008cd30
push 0x1034d418
mov dword [0x1034d3fc], eax
call fcn.1019a7d6
add esp, 4
mov eax, dword [0x1034d3fc]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x1c]
mov dword [eax + ecx], edx
mov eax, dword [0x10226524]
mov eax, dword [eax]
mov dword [esp + 0x14], eax
mov eax, dword [0x1034d3f0]
cmp eax, dword [edi + 4]
jle 0x1009a060
push 0x1034d3f0
call fcn.1019a827
add esp, 4
cmp dword [0x1034d3f0], 0xffffffff
jne 0x1009a060
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.1008cd30
push 0x1034d3f0
mov dword [0x1034d3e4], eax
call fcn.1019a7d6
add esp, 4
mov eax, dword [0x1034d3e4]
mov ecx, dword [esp + 0x14]
mov dword [eax + ecx], esi
mov eax, dword [0x10226524]
mov eax, dword [eax]
mov dword [esp + 0x14], eax
mov eax, dword [0x1034d41c]
cmp eax, dword [edi + 4]
jle 0x1009a0c3
push 0x1034d41c
call fcn.1019a827
add esp, 4
cmp dword [0x1034d41c], 0xffffffff
jne 0x1009a0c3
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.1008cd30
push 0x1034d41c
mov dword [0x1034d430], eax
call fcn.1019a7d6
add esp, 4
mov eax, dword [0x1034d430]
mov ecx, ebx
mov edx, dword [esp + 0x14]
and ecx, esi
mov dword [edx + eax], ecx
mov eax, dword [0x10226524]
mov eax, dword [eax]
mov dword [esp + 0x14], eax
mov eax, dword [0x1034d414]
cmp eax, dword [edi + 4]
jle 0x1009a12a
push 0x1034d414
call fcn.1019a827
add esp, 4
cmp dword [0x1034d414], 0xffffffff
jne 0x1009a12a
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.1008cd30
push 0x1034d414
mov dword [0x1034d424], eax
call fcn.1019a7d6
add esp, 4
mov eax, dword [0x1034d424]
not esi
mov ecx, dword [esp + 0x14]
and esi, ebx
push 0
mov dword [ecx + eax], esi
mov eax, dword [0x10226524]
mov ecx, dword [eax]
mov eax, dword [0x10224c9c]
mov eax, dword [eax + 0x1e8]
call eax
test al, al
je 0x1009a165
mov eax, dword [0x10226524]
mov ecx, dword [eax]
mov eax, dword [ecx]
mov eax, dword [eax + 0x4f8]
call eax
mov eax, dword [0x10224ca8]
xor ebx, ebx
cmp dword [0x10225d40], 2
movq xmm0, qword [str.BDlRZYCKM_KO]
mov esi, dword [eax + 8]
mov eax, dword [0x101ea050]
mov dword [esp + 0x38], eax
mov al, byte [0x101ea054]
mov byte [esp + 0x3c], al
movq qword [esp + 0x30], xmm0
jl 0x1009a290
movaps xmm2, xmmword [0x101f8d60]
mov ebx, 8
movaps xmm3, xmmword [0x101f91d0]
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 [0x101f8df0]
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
movaps xmm2, xmmword [0x101f8da0]
pshufhw xmm0, xmm0, 0xd8
pshufd xmm1, xmm0, 0xd8
andps xmm1, xmmword [0x101f8eb0]
movd xmm0, dword [str.BDlRZYCKM_KO]
packuswb xmm1, xmm1
paddb xmm1, xmmword [0x101f8ef0]
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 [0x101f8df0]
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm0, xmm0, 0xd8
pshufd xmm1, xmm0, 0xd8
andps xmm1, xmmword [0x101f8eb0]
movd xmm0, dword [esp + 0x34]
packuswb xmm1, xmm1
paddb xmm1, xmmword [0x101f8ef0]
xorps xmm1, xmm0
movd dword [esp + 0x34], xmm1
nop
mov eax, 0x4ec4ec4f
mov cl, bl
imul ebx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
movsx eax, al
imul eax, eax, 0x34
sub cl, al
add cl, 0x31
xor byte [esp + ebx + 0x30], cl
inc ebx
cmp ebx, 0xd
jl 0x1009a290
mov eax, dword [esi]
lea ecx, [esp + 0x30]
push ecx
mov ecx, esi
mov eax, dword [eax + 0x3c]
call eax
mov ecx, dword [0x10224ca8]
movups xmm0, xmmword [str.BDlYXhRLWKcQ_Q____e6_2_J]
mov dword [esp + 0x1c], eax
mov esi, dword [ecx + 8]
mov cx, word [0x101ea070]
mov word [esp + 0x58], cx
movups xmmword [esp + 0x40], xmm0
movq xmm0, qword [0x101ea068]
movq qword [esp + 0x50], xmm0
test ch, ch
je 0x1009a468
xor ebx, ebx
cmp dword [0x10225d40], 2
jl 0x1009a440
movaps xmm0, xmmword [0x101f8ef0]
movaps xmm4, xmmword [0x101f8d60]
movaps xmm3, xmmword [0x101f91d0]
movaps xmm5, xmmword [0x101f8df0]
movaps xmmword [esp + 0x30], xmm0
mov ecx, dword [esp + 0x30]
nop word [eax + eax]
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 [0x101f8eb0]
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, 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 [0x101f8eb0]
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 0x1009a340
cmp ebx, 0x1a
jge 0x1009a468
nop dword [eax]
mov eax, 0x4ec4ec4f
mov cl, bl
imul ebx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
movsx eax, al
imul eax, eax, 0x34
sub cl, al
add cl, 0x31
xor byte [esp + ebx + 0x40], cl
inc ebx
cmp ebx, 0x1a
jl 0x1009a440
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 0x1009a491
movsx ecx, al
mov eax, dword [0x10226524]
mov eax, dword [eax]
mov dword [eax + 0x320c], ecx
mov eax, dword [0x10226524]
mov eax, dword [eax]
mov eax, dword [eax + 0x3344]
or dword [edx + 0x30], eax
mov eax, dword [0x10226524]
mov eax, dword [eax]
mov eax, dword [eax + 0x3340]
not eax
and eax, dword [edx + 0x30]
mov dword [edx + 0x30], eax
mov ecx, dword [0x10226524]
push eax
mov ecx, dword [ecx]
call fcn.10099300
mov eax, dword [0x10224ca8]
mov ecx, dword [eax + 0x28]
mov eax, dword [0x10226524]
mov edx, dword [ecx]
push dword [eax]
mov eax, dword [edx + 0xc]
call eax
mov eax, dword [0x10224ca8]
sub esp, 8
mov ecx, dword [eax + 0x54]
mov eax, dword [0x10224c9c]
mov edx, dword [ecx]
mov eax, dword [eax + 0x10]
movss xmm0, dword [eax + 0x14]
mov eax, dword [0x10226524]
cvtps2pd xmm0, xmm0
movsd qword [esp], xmm0
push dword [eax]
mov eax, dword [edx + 0x48]
call eax
mov eax, dword [0x10226524]
push 0
mov esi, dword [eax]
mov ecx, esi
mov eax, dword [0x10224c9c]
mov eax, dword [eax + 0x1e8]
call eax
test al, al
je 0x1009a530
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax + 0x4f8]
call eax
mov eax, dword [0x10226524]
mov esi, dword [eax]
mov ebx, dword [esi + 0xfc]
cmp ebx, 0xffffffff
je 0x1009a578
test ebx, ebx
jle 0x1009a578
mov ecx, esi
call fcn.10099610
cmp ebx, dword [eax]
jg 0x1009a578
mov dword [esi + 0xfc], 0xffffffff
mov ecx, esi
mov eax, dword [0x10224c9c]
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 [0x10224c9c]
mov ecx, dword [eax + 0x90]
mov eax, dword [0x10226524]
mov edx, dword [ecx]
push dword [eax]
mov eax, dword [edx + 4]
call eax
mov eax, dword [0x10224ca8]
mov ebx, dword [esp + 0x20]
mov ecx, dword [eax + 0x54]
mov eax, dword [0x10224c9c]
mov edx, dword [ecx]
push dword [eax + 0x8c]
push dword [eax + 0x90]
mov eax, dword [0x10226524]
push ebx
push dword [eax]
mov eax, dword [edx + 0x50]
call eax
mov eax, dword [0x10224ca8]
mov ecx, dword [eax + 0x28]
mov eax, dword [0x10224c9c]
mov edx, dword [ecx]
push dword [eax + 0x8c]
mov eax, dword [0x10226524]
push dword [eax]
mov eax, dword [edx + 4]
call eax
mov eax, dword [0x10224ca8]
mov ecx, dword [eax + 0x54]
mov eax, dword [0x10224c9c]
mov edx, dword [ecx]
push dword [eax + 0x8c]
mov eax, dword [0x10226524]
push ebx
push dword [eax]
mov eax, dword [edx + 0x54]
call eax
mov eax, dword [0x10224c9c]
mov ecx, dword [eax + 0x90]
mov eax, dword [ecx]
mov eax, dword [eax + 0x10]
call eax
mov eax, dword [0x10226524]
mov esi, dword [eax]
mov eax, dword [0x10224ca8]
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 0x1009a6e3
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax + 0x550]
call eax
mov ecx, esi
call fcn.1007d990
test byte [eax], 1
je 0x1009a664
mov ecx, esi
call fcn.10099a00
mov dword [eax], 0
mov eax, dword [0x1034d3e8]
cmp eax, dword [edi + 4]
jle 0x1009a6af
push 0x1034d3e8
call fcn.1019a827
add esp, 4
cmp dword [0x1034d3e8], 0xffffffff
jne 0x1009a6af
mov edx, 0xc60bf9f2
mov ecx, 0x101e9f11
call fcn.1007d620
mov ecx, eax
call fcn.100d08c0
push 0x1034d3e8
mov dword [0x1034d448], eax
call fcn.1019a7d6
add esp, 4
mov eax, dword [0x1034d448]
cmp dword [eax + esi], 0xffffffff
jne 0x1009a6c8
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 [0x10224c9c]
mov ecx, esi
mov eax, dword [eax + 0x1f0]
call eax
mov eax, dword [0x10224c9c]
mov ecx, esi
mov eax, dword [eax + 0x1f4]
call eax
mov eax, dword [0x10224ca8]
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 0x1009a713
mov dword [eax + 0x2c], 0
mov eax, dword [0x10224ca8]
mov ecx, dword [eax + 0x28]
mov eax, dword [0x10226524]
mov edx, dword [ecx]
push dword [eax]
mov eax, dword [edx + 0x10]
call eax
mov eax, dword [0x10224c9c]
push 0
mov ecx, dword [eax + 0x90]
mov eax, dword [ecx]
mov eax, dword [eax + 4]
call eax
mov eax, dword [0x10224ca8]
mov ecx, dword [eax + 0x28]
mov eax, dword [ecx]
mov eax, dword [eax + 8]
call eax
mov eax, dword [0x10224c9c]
movss xmm0, dword [esp + 0x24]
mov cl, byte [esp + 0x1a]
mov eax, dword [eax + 0x88]
mov dword [eax], 0xffffffff
mov eax, dword [0x10224c9c]
mov eax, dword [eax + 0x1f8]
mov dword [eax], 0
mov eax, dword [0x10224c9c]
mov eax, dword [eax + 0x10]
movss dword [eax + 0x10], xmm0
mov eax, dword [0x10224c9c]
movss xmm0, dword [esp + 0x28]
mov eax, dword [eax + 0x10]
movss dword [eax + 0x14], xmm0
mov eax, dword [0x10224ca8]
mov eax, dword [eax + 0x54]
mov byte [eax + 0xa], cl
mov eax, dword [0x10224ca8]
mov cl, byte [esp + 0x1b]
mov eax, dword [eax + 0x54]
mov byte [eax + 8], cl
mov eax, dword [0x10226524]
mov ecx, dword [eax]
mov eax, dword [ecx]
mov eax, dword [eax + 0x430]
call eax
mov esi, eax
test esi, esi
je 0x1009a863
mov ecx, dword [esi]
mov edx, dword [ecx + 0x71c]
mov ecx, esi
call edx
cmp eax, 9
je 0x1009a863
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax + 0x71c]
call eax
test eax, eax
je 0x1009a863
mov eax, dword [0x10226524]
mov ebx, dword [eax]
mov eax, dword [0x1034d3e0]
cmp eax, dword [edi + 4]
jle 0x1009a844
push 0x1034d3e0
call fcn.1019a827
add esp, 4
cmp dword [0x1034d3e0], 0xffffffff
jne 0x1009a844
mov edx, 0xc60bf9f2
mov ecx, 0x101e9f2d
call fcn.1007d620
mov ecx, eax
call fcn.100d08c0
push 0x1034d3e0
mov dword [0x1034d3d8], eax
call fcn.1019a7d6
add esp, 4
mov eax, dword [0x1034d3d8]
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 [0x1034d460], 0
mov ecx, dword [esp + 0x5c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1019a294
mov esp, ebp
pop ebp
ret