Function at 0x1013e080
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0xe8
mov eax, dword [0x1020c0c0]
xor eax, esp
mov dword [esp + 0xe4], eax
mov eax, dword [0x10229c78]
push esi
push edi
cmp byte [eax + 0x36bf], 0
je 0x1013e98f
push 0x1045647c
call fcn.1019f887
add esp, 4
test eax, eax
jne 0x1013e9a3
cmp byte [0x1051df38], al
mov eax, dword [0x10229c84]
je 0x1013e0d9
cmp byte [0x1051df39], 0
jne 0x1013e0e3
cmp byte [eax + 0x5c], 0
je 0x1013e982
movss xmm0, dword [0x1051df78]
comiss xmm0, dword [0x10202050]
jb 0x1013e0fe
cmp byte [eax + 0x5c], 0
je 0x1013e982
mov esi, dword [0x10453c48]
cmp byte [eax + 0x5c], 0
mov eax, esi
je 0x1013e118
mov dword [esi + 0x1cc8], 0x3e99999a
jmp 0x1013e122
mov dword [esi + 0x1cc8], 0
movss xmm0, dword [eax + 0x54]
subss xmm0, dword [0x10202314]
or dword [esi + 0x1c74], 0x40
mov ecx, dword [esi + 0x1c74]
or ecx, 3
mov dword [esi + 0x1c88], 0x43820000
mov dword [esi + 0x1c8c], 0
mulss xmm0, dword [0x10201ff4]
mov dword [esi + 0x1c90], 0
mov dword [esi + 0x1c78], 2
mov dword [esi + 0x1c74], ecx
movss dword [esi + 0x1c84], xmm0
movss xmm0, dword [0x10229c0c]
movss dword [esi + 0x1c94], xmm0
mov dword [esi + 0x1c98], 0
mov dword [esi + 0x1c7c], 2
mov eax, dword [0x10229c84]
cmp byte [eax + 0x5c], 0
jne 0x1013e1be
movss dword [esi + 0x1c94], xmm0
mov dword [esi + 0x1c7c], 1
movaps xmm0, xmmword [0x10202b40]
lea eax, [esp + 0xb0]
or ecx, 0x10
mov dword [esi + 0x1cc0], 0
mov dword [esi + 0x1c74], ecx
lea ecx, [esi + 0x1cf4]
movups xmmword [esi + 0x1cb0], xmm0
mov dword [esi + 0x1cc4], 0
movss xmm0, dword [esi + 0x156c]
push eax
mov dword [esp + 0xb4], 2
movss dword [esp + 0xb8], xmm0
call fcn.10167cd0
mov dword [esi + 0x156c], 0x40900000
lea eax, [esp + 0xb0]
mov esi, dword [0x10453c48]
push eax
mov dword [esp + 0xb4], 8
movups xmm0, xmmword [esi + 0x16a4]
lea ecx, [esi + 0x1ce8]
movups xmmword [esp + 0xb8], xmm0
call fcn.10167d80
movaps xmm0, xmmword [0x10202890]
mov ecx, 1
movups xmmword [esi + 0x16a4], xmm0
mov eax, dword [0x10229c84]
mov esi, 0xc022b
movq xmm0, qword [str.zFFA]
mov edi, dword [0x1022b6e0]
cmp byte [eax + 0x5c], 0
mov eax, dword [0x101f9f8c]
mov dword [esp + 0xb8], eax
cmovne esi, ecx
mov ax, word [0x101f9f90]
xor edx, edx
mov word [esp + 0xbc], ax
mov al, byte [0x101f9f92]
mov byte [esp + 0xbe], al
lea eax, [ecx + 3]
movq qword [esp + 0xb0], xmm0
lea ecx, [edx + 0x1f]
mov dword [esp + 0x10], edx
cmp edi, 2
jl 0x1013e3d2
movaps xmm2, xmmword [0x102025e0]
mov edx, 8
movaps xmm3, xmmword [0x10202aa0]
movaps xmm1, xmm2
punpckldq xmm1, xmm2
movaps xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm3
pmuldq xmm1, xmm3
shufps xmm1, xmm0, 0xdd
movd xmm4, eax
psrad xmm1, xmm4
movd xmm5, ecx
movaps xmm0, xmm1
mov dword [esp + 0x10], edx
psrld xmm0, xmm5
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x10202660]
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
movaps xmm2, xmmword [0x10202620]
pshufhw xmm0, xmm0, 0xd8
pshufd xmm1, xmm0, 0xd8
pand xmm1, xmmword [0x10202710]
movd xmm0, dword [str.zFFA]
packuswb xmm1, xmm1
paddb xmm1, xmmword [str.2222222222222222777777777777777788888888888888889999999999999999]
pxor xmm1, xmm0
movaps xmm0, xmm2
movd dword [esp + 0xb0], xmm1
movaps xmm1, xmm2
punpckldq xmm1, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm3
pmuldq xmm1, xmm3
shufps xmm1, xmm0, 0xdd
psrad xmm1, xmm4
movaps xmm0, xmm1
psrld xmm0, xmm5
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x10202660]
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm0, xmm0, 0xd8
pshufd xmm1, xmm0, 0xd8
pand xmm1, xmmword [0x10202710]
movd xmm0, dword [esp + 0xb4]
packuswb xmm1, xmm1
paddb xmm1, xmmword [str.2222222222222222777777777777777788888888888888889999999999999999]
pxor xmm1, xmm0
movd dword [esp + 0xb4], xmm1
mov eax, 0x4d4873ed
imul edx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, dword [esp + 0x10]
movsx eax, al
mov cl, dl
imul eax, eax, 0x35
sub cl, al
add cl, 0x32
xor byte [esp + edx + 0xb0], cl
inc edx
mov dword [esp + 0x10], edx
cmp edx, 0xf
jl 0x1013e3d2
push esi
xor edx, edx
lea ecx, [esp + 0xb4]
call fcn.1015ee50
push ecx
lea ecx, [esp + 0x1c]
call fcn.10020360
mov eax, dword [0x101fa360]
xor edx, edx
movq xmm0, qword [str.a__BSS]
mov dword [esp + 0xb8], eax
mov al, byte [0x101fa364]
movq qword [esp + 0xb0], xmm0
mov byte [esp + 0xbc], al
mov dword [esp + 0x10], edx
cmp edi, 2
jl 0x1013e570
movaps xmm2, xmmword [0x102025e0]
mov eax, 4
movaps xmm4, xmmword [0x10202aa0]
movaps xmm1, xmm2
punpckldq xmm1, xmm2
movaps xmm0, xmm2
punpckhdq xmm0, xmm2
mov edx, 8
pmuldq xmm0, xmm4
pmuldq xmm1, xmm4
shufps xmm1, xmm0, 0xdd
movd xmm5, eax
mov eax, 0x1f
psrad xmm1, xmm5
mov dword [esp + 0x10], edx
movaps xmm0, xmm1
movd xmm6, eax
mov eax, dword [str.2222222222222222777777777777777788888888888888889999999999999999]
psrld xmm0, xmm6
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x10202660]
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
movaps xmm2, xmmword [0x10202620]
pshufhw xmm0, xmm0, 0xd8
pshufd xmm1, xmm0, 0xd8
pand xmm1, xmmword [0x10202710]
packuswb xmm1, xmm1
movd xmm0, eax
paddb xmm1, xmm0
movd xmm0, dword [str.a__BSS]
pxor xmm1, xmm0
movaps xmm0, xmm2
movd dword [esp + 0xb0], xmm1
movaps xmm1, xmm2
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm4
pmuldq xmm1, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, xmm5
movaps xmm0, xmm1
psrld xmm0, xmm6
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x10202660]
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm0, xmm0, 0xd8
pshufd xmm1, xmm0, 0xd8
pand xmm1, xmmword [0x10202710]
packuswb xmm1, xmm1
movd xmm0, eax
paddb xmm1, xmm0
movd xmm0, dword [esp + 0xb4]
pxor xmm1, xmm0
movd dword [esp + 0xb4], xmm1
nop dword [eax]
mov eax, 0x4d4873ed
imul edx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, dword [esp + 0x10]
movsx eax, al
mov cl, dl
imul eax, eax, 0x35
sub cl, al
add cl, 0x32
xor byte [esp + edx + 0xb0], cl
inc edx
mov dword [esp + 0x10], edx
cmp edx, 0xd
jl 0x1013e570
lea edx, [esp + 0xb0]
lea ecx, [esp + 0x18]
call fcn.100be240
movss xmm0, dword [0x1051df78]
mulss xmm0, dword [0x102022e8]
cvttss2si ecx, xmm0
push ecx
mov ecx, eax
call fcn.10020400
mov edx, 0x101f9ad0
mov ecx, eax
call fcn.100be240
lea eax, [esp + 0xd4]
push eax
lea ecx, [esp + 0x1c]
call fcn.100202c0
mov esi, eax
cmp dword [esi + 0x14], 0x10
jb 0x1013e5f6
mov esi, dword [esi]
mov edi, dword [0x10453c48]
mov eax, dword [edi + 0x1bec]
movss xmm2, dword [edi + 0x1988]
movss xmm0, dword [eax + 0x18]
movss dword [esp + 0x10], xmm0
test esi, esi
jne 0x1013e627
xorps xmm3, xmm3
movss dword [esp + 0xb4], xmm2
jmp 0x1013e683
movss xmm3, dword [0x10202414]
lea eax, [esp + 0xb0]
push 0
push 0
push esi
push ecx
mov ecx, dword [edi + 0x1984]
mov dword [esp], 0xbf800000
push eax
call fcn.1016dac0
movss xmm0, dword [esp + 0xb0]
addss xmm0, dword [0x10202058]
cvttss2si eax, xmm0
movss xmm0, dword [esp + 0xb4]
movss dword [esp + 0xb4], xmm0
movss xmm0, dword [esp + 0x10]
movd xmm3, eax
cvtdq2ps xmm3, xmm3
mov eax, dword [edi + 0x1bec]
subss xmm0, xmm3
push 1
xor edx, edx
mov ecx, esi
mov byte [eax + 0xa8], 1
mov eax, dword [edi + 0x1bec]
mulss xmm0, dword [0x10201ff4]
movss xmm1, dword [eax + 0x10]
subss xmm1, dword [eax + 0x74]
addss xmm1, xmm0
movss xmm0, dword [eax + 0x104]
maxss xmm0, xmm1
movss dword [eax + 0xec], xmm1
movss dword [eax + 0x104], xmm0
call fcn.10170460
mov ecx, dword [esp + 0xe8]
cmp ecx, 0x10
jb 0x1013e713
mov edx, dword [esp + 0xd4]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1013e709
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1013e9a9
push ecx
push edx
call fcn.101a043c
add esp, 8
mov eax, dword [0x10229c78]
movups xmm0, xmmword [eax + 0x36ae]
mov al, byte [eax + 0x36be]
movups xmmword [esp + 0xb0], xmm0
test al, al
je 0x1013e7e9
mov eax, dword [0x10229c74]
movss xmm0, dword [esp + 0xbc]
mov eax, dword [eax + 0x10]
mulss xmm0, dword [eax]
movss dword [esp + 0x10], xmm0
cvtps2pd xmm0, xmm0
call fcn.101c9130
xorps xmm1, xmm1
cvtsd2ss xmm1, xmm0
movss xmm0, dword [esp + 0x10]
addss xmm0, dword [0x10202138]
mulss xmm1, dword [0x10201ff4]
addss xmm1, dword [0x10201ff4]
cvtps2pd xmm0, xmm0
movss dword [esp + 0x14], xmm1
call fcn.101c9130
xorps xmm1, xmm1
cvtsd2ss xmm1, xmm0
movss xmm0, dword [esp + 0x10]
addss xmm0, dword [0x102021c4]
mulss xmm1, dword [0x10201ff4]
addss xmm1, dword [0x10201ff4]
cvtps2pd xmm0, xmm0
movss dword [esp + 0xb0], xmm1
call fcn.101c9130
movss xmm3, dword [0x10201ff4]
xorps xmm6, xmm6
movss xmm4, dword [esp + 0x14]
movss xmm5, dword [esp + 0xb0]
cvtsd2ss xmm6, xmm0
mulss xmm6, xmm3
addss xmm6, xmm3
jmp 0x1013e80c
movss xmm4, dword [esp + 0xb0]
movss xmm5, dword [esp + 0xb4]
movss xmm6, dword [esp + 0xb8]
movss xmm3, dword [0x10201ff4]
movss xmm2, dword [0x10202060]
xorps xmm0, xmm0
comiss xmm0, xmm4
movaps xmm7, xmm2
jbe 0x1013e824
xorps xmm1, xmm1
jmp 0x1013e82b
movaps xmm1, xmm2
minss xmm1, xmm4
movss xmm4, dword [0x10202378]
mulss xmm1, xmm4
addss xmm1, xmm3
cvttss2si ecx, xmm1
shl ecx, 0x10
comiss xmm0, xmm5
jbe 0x1013e84c
xorps xmm1, xmm1
jmp 0x1013e853
movaps xmm1, xmm2
minss xmm1, xmm5
mulss xmm1, xmm4
addss xmm1, xmm3
cvttss2si eax, xmm1
shl eax, 8
or ecx, eax
comiss xmm0, xmm6
jbe 0x1013e86e
xorps xmm1, xmm1
jmp 0x1013e875
movaps xmm1, xmm2
minss xmm1, xmm6
mulss xmm1, xmm4
addss xmm1, xmm3
cvttss2si eax, xmm1
or ecx, eax
comiss xmm0, xmm7
ja 0x1013e88f
movaps xmm0, xmm2
minss xmm0, xmm7
mulss xmm0, xmm4
addss xmm0, xmm3
cvttss2si edx, xmm0
shl edx, 0x18
or edx, ecx
mov ecx, 0x29
call fcn.10156ba0
movss xmm1, dword [0x10202060]
movss xmm0, dword [0x1051df78]
call fcn.100c16b0
mov edi, dword [0x10453c48]
mov eax, dword [edi + 0x1bec]
mov byte [eax + 0xa8], 1
mov eax, dword [edi + 0x1bec]
movss xmm0, dword [eax + 0x20]
mov eax, dword [0x10229c78]
movss dword [0x10229c0c], xmm0
cmp byte [eax + 0x3344], 0
je 0x1013e91b
mov eax, dword [edi + 0x1ce8]
mov edx, dword [edi + 0x1cf0]
lea esi, [eax + eax*4]
mov eax, dword [edx + esi*4 - 0x14]
movups xmm0, xmmword [edx + esi*4 - 0x10]
add eax, eax
movups xmmword [edi + eax*8 + 0x1624], xmm0
dec dword [edi + 0x1ce8]
mov ecx, 1
call fcn.10156c90
call fcn.101610e0
mov eax, dword [esp + 0x18]
mov eax, dword [eax + 4]
mov dword [esp + eax + 0x18], 0x101dc6e4
mov eax, dword [esp + 0x18]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x50]
mov dword [esp + ecx + 0x14], eax
lea ecx, [esp + 0x1c]
call fcn.1001ff40
mov eax, dword [esp + 0x18]
mov eax, dword [eax + 4]
mov dword [esp + eax + 0x18], 0x101dd0c8
mov eax, dword [esp + 0x18]
mov ecx, dword [eax + 4]
lea eax, [ecx - 8]
mov dword [esp + ecx + 0x14], eax
lea eax, [esp + 0x68]
push eax
mov dword [esp + 0x6c], 0x101dc718
call fcn.1019f0e5
add esp, 4
push 0x1045647c
call fcn.1019f8ce
add esp, 4
mov ecx, dword [esp + 0xec]
pop edi
pop esi
xor ecx, esp
call fcn.101a0143
mov esp, ebp
pop ebp
ret
push eax
call fcn.1019f9be
call fcn.101a56c6
int3