Function at 0x1013f34b
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x134
mov eax, dword [0x102070c0]
xor eax, esp
mov dword [esp + 0x130], eax
mov eax, dword [0x10224ca0]
push ebx
push esi
push edi
cmp byte [eax + 0x35a3], 0
je 0x1013f971
mov dword [esp + 0x10], ecx
lea ecx, [esp + 0x10]
push 2
mov dword [esp + 0x18], edx
call fcn.1013f250
mov ecx, dword [0x10224ca8]
push eax
mov ecx, dword [ecx + 0x18]
mov edx, dword [ecx]
mov edx, dword [edx + 0xc]
call edx
mov edi, eax
test edi, edi
je 0x1013f971
mov ecx, dword [edi]
mov edx, dword [ecx + 0x278]
mov ecx, edi
call edx
test al, al
je 0x1013f971
push 3
lea ecx, [esp + 0x14]
call fcn.1013f250
cmp eax, 0xd
ja case.0x1013f328.2
movzx eax, byte [eax + 0x1013f9a4]
jmp dword [eax*4 + 0x1013f990]
mov esi, str.Kick
jmp 0x1013f350
mov esi, str.Change_Level
jmp 0x1013f350
mov esi, str.Surrender
jmp 0x1013f350
mov esi, str.Start_TimeOut
jmp 0x1013f350
mov esi, 0x101d04ee
mov ax, word [0x101f0738]
xor ebx, ebx
cmp dword [0x10225d40], 2
movups xmm0, xmmword [0x101f0728]
mov word [esp + 0x28], ax
mov al, byte [0x101f073a]
movups xmmword [esp + 0x18], xmm0
mov byte [esp + 0x2a], al
jl 0x1013f4a0
movaps xmm0, xmmword [0x101f8f00]
movaps xmm4, xmmword [0x101f8d60]
movaps xmm3, xmmword [0x101f91b0]
movaps xmm5, xmmword [0x101f8e10]
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 [0x101f8eb0]
packuswb xmm1, xmm1
movd xmm0, ecx
paddb xmm1, xmm0
movd xmm0, dword [esp + ebx + 0x18]
xorps xmm1, xmm0
movd xmm0, eax
pshufd xmm2, xmm0, 0
movd dword [esp + ebx + 0x18], 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 + 0x1c]
xorps xmm1, xmm0
movd dword [esp + ebx + 0x1c], xmm1
add ebx, 8
cmp ebx, 0x10
jl 0x1013f3a4
cmp ebx, 0x13
jge 0x1013f4c8
mov eax, 0x4bda12f7
mov cl, bl
imul ebx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
movsx eax, al
imul eax, eax, 0x36
sub cl, al
add cl, 0x32
xor byte [esp + ebx + 0x18], cl
inc ebx
cmp ebx, 0x13
jl 0x1013f4a0
xorps xmm0, xmm0
mov dword [esp + 0x98], 0
lea ecx, [esp + 0x18]
mov dword [esp + 0x9c], 0
movups xmmword [esp + 0x88], xmm0
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1013f4f0
sub ecx, edx
lea eax, [esp + 0x18]
push ecx
push eax
lea ecx, [esp + 0x90]
call fcn.10027940
cmp dword [esp + 0x9c], 0xf
lea eax, [esp + 0x88]
mov ecx, edi
cmova eax, dword [esp + 0x88]
mov dword [esp + 0x10], eax
lea eax, [esp + 0xb8]
push eax
call fcn.1018dd70
xorps xmm0, xmm0
mov dword [esp + 0x68], 0
lea ecx, [esp + 0xb8]
mov dword [esp + 0x6c], 0
movups xmmword [esp + 0x58], xmm0
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1013f557
sub ecx, edx
lea eax, [esp + 0xb8]
push ecx
push eax
lea ecx, [esp + 0x60]
call fcn.10027940
mov eax, dword [0x101f05c4]
xor ebx, ebx
cmp dword [0x10225d40], 2
movq xmm0, qword [0x101f05bc]
mov dword [esp + 0x38], eax
mov al, byte [0x101f05c8]
movq qword [esp + 0x30], xmm0
mov byte [esp + 0x3c], al
jl 0x1013f6a0
movaps xmm2, xmmword [0x101f8d60]
mov ebx, 8
movaps xmm4, xmmword [0x101f91b0]
movaps xmm1, xmm2
punpckldq xmm1, xmm2
movaps xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm4
pmuldq xmm1, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
mov eax, dword [0x101f8f00]
movaps xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x101f8e10]
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
movaps xmm2, xmmword [0x101f8da0]
pshufhw xmm0, xmm0, 0xd8
pshufd xmm1, xmm0, 0xd8
andps xmm1, xmmword [0x101f8eb0]
packuswb xmm1, xmm1
movd xmm0, eax
paddb xmm1, xmm0
movd xmm0, dword [0x101f05bc]
xorps xmm1, xmm0
movaps xmm0, xmm2
movd dword [esp + 0x30], xmm1
movaps xmm1, xmm2
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm4
pmuldq xmm1, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movaps xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x101f8e10]
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm0, xmm0, 0xd8
pshufd xmm1, xmm0, 0xd8
andps xmm1, xmmword [0x101f8eb0]
packuswb xmm1, xmm1
movd xmm0, eax
paddb xmm1, xmm0
movd xmm0, dword [esp + 0x34]
xorps xmm1, xmm0
movd dword [esp + 0x34], xmm1
nop dword [eax + eax]
mov eax, 0x4bda12f7
mov cl, bl
imul ebx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
movsx eax, al
imul eax, eax, 0x36
sub cl, al
add cl, 0x32
xor byte [esp + ebx + 0x30], cl
inc ebx
cmp ebx, 0xd
jl 0x1013f6a0
xorps xmm0, xmm0
mov dword [esp + 0x28], 0
lea ecx, [esp + 0x30]
mov dword [esp + 0x2c], 0
movups xmmword [esp + 0x18], xmm0
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1013f6e7
sub ecx, edx
lea eax, [esp + 0x30]
push ecx
push eax
lea ecx, [esp + 0x20]
call fcn.10027940
cmp dword [esp + 0x2c], 0xf
lea eax, [esp + 0x58]
lea edx, [esp + 0x18]
cmova edx, dword [esp + 0x18]
lea ecx, [esp + 0xa0]
push eax
call fcn.100247f0
push dword [esp + 0x10]
mov ecx, eax
call fcn.10020800
mov dword [esp + 0x50], 0
lea ecx, [esp + 0x40]
mov dword [esp + 0x54], 0
xorps xmm0, xmm0
movups xmmword [esp + 0x40], xmm0
push esi
movups xmm0, xmmword [eax]
movups xmmword [esp + 0x44], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [esp + 0x54], xmm0
mov dword [eax + 0x14], 0xf
mov dword [eax + 0x10], 0
mov byte [eax], 0
call fcn.10020800
mov dword [esp + 0x80], 0
xorps xmm0, xmm0
movups xmmword [esp + 0x70], xmm0
mov dword [esp + 0x84], 0
movups xmm0, xmmword [eax]
movups xmmword [esp + 0x70], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [esp + 0x80], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
mov ecx, dword [esp + 0x54]
cmp ecx, 0xf
jbe 0x1013f7ea
mov edx, dword [esp + 0x40]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1013f7e0
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1013f986
push ecx
push edx
call fcn.1019a58d
add esp, 8
mov ecx, dword [esp + 0xb4]
mov dword [esp + 0x50], 0
mov dword [esp + 0x54], 0xf
mov byte [esp + 0x40], 0
cmp ecx, 0xf
jbe 0x1013f83b
mov edx, dword [esp + 0xa0]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1013f831
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1013f986
push ecx
push edx
call fcn.1019a58d
add esp, 8
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0xb0], 0
mov dword [esp + 0xb4], 0xf
mov byte [esp + 0xa0], 0
cmp ecx, 0xf
jbe 0x1013f88f
mov edx, dword [esp + 0x18]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1013f885
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1013f986
push ecx
push edx
call fcn.1019a58d
add esp, 8
mov ecx, dword [esp + 0x6c]
cmp ecx, 0xf
jbe 0x1013f8c5
mov edx, dword [esp + 0x58]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1013f8bb
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1013f986
push ecx
push edx
call fcn.1019a58d
add esp, 8
mov ecx, dword [esp + 0x9c]
mov dword [esp + 0x68], 0
mov dword [esp + 0x6c], 0xf
mov byte [esp + 0x58], 0
cmp ecx, 0xf
jbe 0x1013f912
mov edx, dword [esp + 0x88]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1013f908
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1013f986
push ecx
push edx
call fcn.1019a58d
add esp, 8
mov eax, dword [0x10224c9c]
lea ecx, [esp + 0x70]
cmp dword [esp + 0x84], 0xf
cmova ecx, dword [esp + 0x70]
mov eax, dword [eax + 8]
push ecx
push 0
mov edx, dword [eax + 0x1c]
push edx
mov eax, dword [edx]
mov eax, dword [eax + 0x68]
call eax
mov ecx, dword [esp + 0x90]
add esp, 0xc
cmp ecx, 0xf
jbe 0x1013f971
mov edx, dword [esp + 0x70]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1013f967
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1013f98b
push ecx
push edx
call fcn.1019a58d
add esp, 8
mov ecx, dword [esp + 0x13c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1019a294
mov esp, ebp
pop ebp
ret
call fcn.1019f6c6
call fcn.1019f6c6
das
adc edx, dword [eax]
adc edx, dword ss:[eax]
cmp eax, 1141904371
adc edx, dword [eax]
dec ebx
adc edx, dword [eax]
add byte [ecx], al
add al, 4
add al, 4
add al, byte [esp + eax]
add al, 4
add al, 4
add ecx, esp
int3