Function at 0x101056e0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
mov eax, dword [0x10216634]
sub esp, 0x114
cmp byte [eax + 0x380f], 0
push ebx
push esi
push edi
je 0x10105fe0
push 0x10425ff8
call fcn.1015f330
add esp, 4
test eax, eax
jne 0x10105fe7
cmp dword [0x10426024], 0x7fffffff
je 0x10105fee
cmp byte [0x104edab8], al
mov eax, dword [0x10216964]
je 0x1010573c
cmp byte [0x104edab9], 0
jne 0x10105746
cmp byte [eax + 0xc], 0
je 0x10105fd3
movss xmm0, dword [0x104edaf8]
comiss xmm0, dword [0x101ecb90]
jb 0x10105761
cmp byte [eax + 0xc], 0
je 0x10105fd3
cmp byte [eax + 0xc], 0
xorps xmm1, xmm1
mov ecx, dword [0x10423820]
mov eax, ecx
je 0x10105782
mov dword [ecx + 0x1cb8], 0x3e99999a
mov esi, ecx
mov edi, ecx
jmp 0x10105790
mov dword [ecx + 0x1cb8], 0
mov esi, eax
mov edi, eax
movss xmm0, dword [eax + 0x54]
subss xmm0, dword [0x101ecdec]
or dword [ecx + 0x1c64], 0x40
mov edx, dword [ecx + 0x1c64]
or edx, 3
mov dword [ecx + 0x1c78], 0x43820000
mov dword [ecx + 0x1c7c], 0
mulss xmm0, dword [0x101ecb34]
mov dword [ecx + 0x1c80], 0
mov dword [ecx + 0x1c68], 2
mov dword [ecx + 0x1c64], edx
movss dword [ecx + 0x1c74], xmm0
movss xmm0, dword [0x102165e4]
movss dword [ecx + 0x1c84], xmm0
mov dword [ecx + 0x1c88], 0
mov dword [ecx + 0x1c6c], 2
mov eax, dword [0x10216964]
cmp byte [eax + 0xc], 0
jne 0x1010582e
movss dword [ecx + 0x1c84], xmm0
mov esi, edi
mov dword [ecx + 0x1c6c], 1
movss xmm0, dword [0x101ececc]
lea eax, [esp + 0x10]
movss xmm2, dword [0x101ece94]
or edx, 0x10
mov dword [ecx + 0x1c64], edx
movss dword [esp + 0x10], xmm1
mov dword [ecx + 0x1ca0], 0
movss dword [ecx + 0x1ca4], xmm0
movss dword [ecx + 0x1ca8], xmm2
movss dword [ecx + 0x1cac], xmm0
mov dword [ecx + 0x1cb0], 0
mov dword [ecx + 0x1cb4], 0
lea ecx, [esi + 0x1ce4]
movss xmm0, dword [esi + 0x156c]
push eax
mov dword [esp + 0x14], 2
movss dword [esp + 0x18], xmm0
call fcn.101299a0
mov dword [esi + 0x156c], 0x40900000
lea eax, [esp + 0x10]
mov esi, dword [0x10423820]
push eax
mov dword [esp + 0x14], 7
movups xmm0, xmmword [esi + 0x1694]
lea ecx, [esi + 0x1cd8]
movups xmmword [esp + 0x18], xmm0
call fcn.10129a50
mov dword [esi + 0x1694], 0
mov ecx, 1
mov dword [esi + 0x1698], 0
mov dword [esi + 0x169c], 0
mov dword [esi + 0x16a0], 0x3f800000
mov esi, 0xc022b
mov eax, dword [0x10216964]
movq xmm0, qword [str._DC]
mov edi, dword [0x10217ca4]
cmp byte [eax + 0xc], 0
mov eax, dword [0x101e5228]
mov dword [esp + 0x18], eax
cmovne esi, ecx
mov ax, word [0x101e522c]
xor ebx, ebx
mov word [esp + 0x1c], ax
mov al, byte [0x101e522e]
movq qword [esp + 0x10], xmm0
mov byte [esp + 0x1e], al
cmp edi, 2
jl 0x10105a51
movaps xmm2, xmmword [0x101ed000]
mov ebx, 8
movaps xmm3, xmmword [0x101ed410]
movaps xmm1, xmm2
punpckldq xmm1, xmm2
movaps xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm1, xmm3
pmuldq xmm0, xmm3
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm2
psrad xmm1, 5
movaps xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x101ed0c0]
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._DC]
packuswb xmm1, xmm1
paddb xmm1, xmmword [str.4444444444444444]
xorps xmm1, xmm0
movaps xmm0, xmm2
movd dword [esp + 0x10], xmm1
movaps xmm1, xmm2
punpckldq xmm1, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm1, xmm3
pmuldq xmm0, xmm3
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm2
psrad xmm1, 5
movaps xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x101ed0c0]
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm0, xmm0, 0xd8
pshufd xmm1, xmm0, 0xd8
andps xmm1, xmmword [0x101ed130]
movd xmm0, dword [esp + 0x14]
packuswb xmm1, xmm1
paddb xmm1, xmmword [str.4444444444444444]
xorps xmm1, xmm0
movd dword [esp + 0x14], xmm1
mov eax, 0x8d3dcb09
mov cl, bl
imul ebx
add edx, ebx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
movsx eax, al
imul eax, eax, 0x3a
sub cl, al
add cl, 0x34
xor byte [esp + ebx + 0x10], cl
inc ebx
cmp ebx, 0xf
jl 0x10105a51
push esi
xor edx, edx
lea ecx, [esp + 0x14]
call fcn.10120b40
push ecx
lea ecx, [esp + 0x8c]
call fcn.10020f00
mov eax, dword [0x101e5364]
xor ebx, ebx
movq xmm0, qword [str.gYY___]
mov dword [esp + 0x18], eax
mov al, byte [0x101e5368]
movq qword [esp + 0x10], xmm0
mov byte [esp + 0x1c], al
cmp edi, 2
jl 0x10105bc0
movaps xmm2, xmmword [0x101ed000]
mov ebx, 8
movaps xmm4, xmmword [0x101ed410]
movaps xmm1, xmm2
punpckldq xmm1, xmm2
movaps xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm4
pmuldq xmm1, xmm4
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm2
mov eax, dword [str.4444444444444444]
psrad xmm1, 5
movaps xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x101ed0c0]
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
movaps xmm2, xmmword [0x101ed030]
pshufhw xmm0, xmm0, 0xd8
pshufd xmm1, xmm0, 0xd8
andps xmm1, xmmword [0x101ed130]
packuswb xmm1, xmm1
movd xmm0, eax
paddb xmm1, xmm0
movd xmm0, dword [str.gYY___]
xorps xmm1, xmm0
movaps xmm0, xmm2
movd dword [esp + 0x10], xmm1
movaps xmm1, xmm2
punpckldq xmm1, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm4
pmuldq xmm1, xmm4
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm2
psrad xmm1, 5
movaps xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x101ed0c0]
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm0, xmm0, 0xd8
pshufd xmm1, xmm0, 0xd8
andps xmm1, xmmword [0x101ed130]
packuswb xmm1, xmm1
movd xmm0, eax
paddb xmm1, xmm0
movd xmm0, dword [esp + 0x14]
xorps xmm1, xmm0
movd dword [esp + 0x14], xmm1
nop
mov eax, 0x8d3dcb09
mov cl, bl
imul ebx
add edx, ebx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
movsx eax, al
imul eax, eax, 0x3a
sub cl, al
add cl, 0x34
xor byte [esp + ebx + 0x10], cl
inc ebx
cmp ebx, 0xd
jl 0x10105bc0
lea edx, [esp + 0x10]
lea ecx, [esp + 0x88]
call fcn.100af840
movss xmm0, dword [0x104edaf8]
mulss xmm0, dword [0x101ecdd0]
cvttss2si ecx, xmm0
push ecx
mov ecx, eax
call fcn.10020f80
mov edx, 0x101e4bc4
mov ecx, eax
call fcn.100af840
lea eax, [esp + 0x70]
push eax
lea ecx, [esp + 0x8c]
call fcn.10020e60
mov esi, eax
cmp dword [esi + 0x14], 0xf
jbe 0x10105c3d
mov esi, dword [esi]
mov edi, dword [0x10423820]
mov eax, dword [edi + 0x1bdc]
movss xmm0, dword [eax + 0x14]
movss dword [esp + 0x28], xmm0
test esi, esi
jne 0x10105c5d
xorps xmm2, xmm2
jmp 0x10105ca9
movss xmm3, dword [0x101ece94]
lea eax, [esp + 0x10]
movss xmm2, dword [edi + 0x1978]
push 0
push 0
push esi
push ecx
mov ecx, dword [edi + 0x1974]
mov dword [esp], 0xbf800000
push eax
call fcn.1012f330
movss xmm0, dword [esp + 0x10]
addss xmm0, dword [0x101ecb98]
cvttss2si eax, xmm0
movss xmm0, dword [esp + 0x28]
movd xmm2, eax
cvtdq2ps xmm2, xmm2
mov eax, dword [edi + 0x1bdc]
subss xmm0, xmm2
push 1
xor edx, edx
mov ecx, esi
mov byte [eax + 0x8c], 1
mov eax, dword [edi + 0x1bdc]
mulss xmm0, dword [0x101ecb34]
movss xmm1, dword [eax + 0xc]
subss xmm1, dword [eax + 0x58]
addss xmm1, xmm0
movss xmm0, dword [eax + 0xe4]
maxss xmm0, xmm1
movss dword [eax + 0xcc], xmm1
movss dword [eax + 0xe4], xmm0
call fcn.10131c10
mov ecx, dword [esp + 0x84]
cmp ecx, 0xf
jbe 0x10105d36
mov edx, dword [esp + 0x70]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10105d2c
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10105fff
push ecx
push edx
call fcn.1015fe24
add esp, 8
mov ecx, dword [0x10216634]
cmp byte [ecx + 0x380e], 0
movups xmm0, xmmword [ecx + 0x37da]
mov eax, dword [ecx + 0x380a]
mov dword [esp + 0x60], eax
movups xmmword [esp + 0x30], xmm0
movups xmm0, xmmword [ecx + 0x37ea]
movups xmmword [esp + 0x40], xmm0
movups xmm0, xmmword [ecx + 0x37fa]
movups xmmword [esp + 0x50], xmm0
je 0x10105e22
mov eax, dword [0x10216630]
movss xmm0, dword [esp + 0x60]
mov eax, dword [eax + 0xc]
mulss xmm0, dword [eax]
movss dword [esp + 0x28], xmm0
cvtps2pd xmm0, xmm0
call fcn.10187d90
xorps xmm1, xmm1
cvtsd2ss xmm1, xmm0
movss xmm0, dword [esp + 0x28]
addss xmm0, dword [0x101ecc58]
mulss xmm1, dword [0x101ecb34]
addss xmm1, dword [0x101ecb34]
cvtps2pd xmm0, xmm0
movss dword [esp + 0x2c], xmm1
call fcn.10187d90
xorps xmm1, xmm1
cvtsd2ss xmm1, xmm0
movss xmm0, dword [esp + 0x28]
addss xmm0, dword [0x101eccd4]
mulss xmm1, dword [0x101ecb34]
addss xmm1, dword [0x101ecb34]
cvtps2pd xmm0, xmm0
movss dword [esp + 0x10], xmm1
call fcn.10187d90
movss xmm2, dword [0x101ecb34]
xorps xmm5, xmm5
movss xmm3, dword [esp + 0x2c]
movss xmm4, dword [esp + 0x10]
cvtsd2ss xmm5, xmm0
mulss xmm5, xmm2
addss xmm5, xmm2
jmp 0x10105e3c
movss xmm3, dword [esp + 0x30]
movss xmm4, dword [esp + 0x34]
movss xmm5, dword [esp + 0x38]
movss xmm2, dword [0x101ecb34]
movss xmm6, dword [0x101ecba0]
xorps xmm0, xmm0
comiss xmm0, xmm3
movaps xmm7, xmm6
jbe 0x10105e54
xorps xmm1, xmm1
jmp 0x10105e5b
movaps xmm1, xmm6
minss xmm1, xmm3
movss xmm3, dword [0x101ece10]
mulss xmm1, xmm3
addss xmm1, xmm2
cvttss2si ecx, xmm1
shl ecx, 0x10
comiss xmm0, xmm4
jbe 0x10105e7c
xorps xmm1, xmm1
jmp 0x10105e83
movaps xmm1, xmm6
minss xmm1, xmm4
mulss xmm1, xmm3
addss xmm1, xmm2
cvttss2si eax, xmm1
shl eax, 8
or ecx, eax
comiss xmm0, xmm5
jbe 0x10105e9e
xorps xmm1, xmm1
jmp 0x10105ea5
movaps xmm1, xmm6
minss xmm1, xmm5
mulss xmm1, xmm3
addss xmm1, xmm2
cvttss2si eax, xmm1
or ecx, eax
comiss xmm0, xmm7
ja 0x10105ebf
movaps xmm0, xmm6
minss xmm0, xmm7
mulss xmm0, xmm3
addss xmm0, xmm2
cvttss2si edx, xmm0
shl edx, 0x18
or edx, ecx
mov ecx, 0x28
call fcn.10119350
movss xmm1, dword [0x101ecba0]
movss xmm0, dword [0x104edaf8]
call fcn.100b35d0
mov edi, dword [0x10423820]
mov eax, dword [edi + 0x1bdc]
mov byte [eax + 0x8c], 1
mov eax, dword [edi + 0x1bdc]
movss xmm0, dword [eax + 0x1c]
mov eax, dword [0x10216634]
movss dword [0x102165e4], xmm0
cmp byte [eax + 0x3458], 0
je 0x10105f4b
mov eax, dword [edi + 0x1cd8]
mov edx, dword [edi + 0x1ce0]
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 + 0x1cd8]
mov ecx, 1
call fcn.10119490
call fcn.10122da0
mov eax, dword [esp + 0x88]
mov eax, dword [eax + 4]
mov dword [esp + eax + 0x88], 0x10197ca4
mov eax, dword [esp + 0x88]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x50]
mov dword [esp + ecx + 0x84], eax
lea ecx, [esp + 0x8c]
call fcn.10020aa0
mov eax, dword [esp + 0x88]
mov eax, dword [eax + 4]
mov dword [esp + eax + 0x88], 0x101986a0
mov eax, dword [esp + 0x88]
mov ecx, dword [eax + 4]
lea eax, [ecx - 8]
mov dword [esp + ecx + 0x84], eax
lea eax, [esp + 0xd8]
push eax
mov dword [esp + 0xdc], 0x10197cd8
call fcn.1015ed9f
add esp, 4
push 0x10425ff8
call fcn.1015f362
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 5
call fcn.1015f571
push 6
mov dword [0x10426024], 0x7ffffffe
call fcn.1015f571
call fcn.10164f66
int3