Function at 0x1012d370
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0xe8
mov eax, dword [0x101f90c0]
xor eax, esp
mov dword [esp + 0xe4], eax
mov eax, dword [0x10214408]
push esi
push edi
cmp byte [eax + 0x35b3], 0
je 0x1012dcc6
push 0x103db39c
call fcn.1018d7fb
add esp, 4
test eax, eax
jne 0x1012dcda
cmp dword [0x103db3c8], 0x7fffffff
je 0x1012dce1
cmp byte [0x103db528], al
mov eax, dword [0x10214414]
je 0x1012d3d9
cmp byte [0x103db529], 0
jne 0x1012d3e3
cmp byte [eax + 0x5c], 0
je 0x1012dcb9
movss xmm0, dword [0x103db568]
comiss xmm0, dword [0x101eb344]
jb 0x1012d3fe
cmp byte [eax + 0x5c], 0
je 0x1012dcb9
cmp byte [eax + 0x5c], 0
xorps xmm1, xmm1
mov ecx, dword [0x103d8bec]
mov eax, ecx
je 0x1012d41f
mov dword [ecx + 0x1cb8], 0x3e99999a
mov esi, ecx
mov edi, ecx
jmp 0x1012d42d
mov dword [ecx + 0x1cb8], 0
mov esi, eax
mov edi, eax
movss xmm0, dword [eax + 0x54]
subss xmm0, dword [0x101eb5c8]
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 [0x101eb2e4]
mov dword [ecx + 0x1c80], 0
mov dword [ecx + 0x1c68], 2
mov dword [ecx + 0x1c64], edx
movss dword [ecx + 0x1c74], xmm0
movss xmm0, dword [0x1021439c]
movss dword [ecx + 0x1c84], xmm0
mov dword [ecx + 0x1c88], 0
mov dword [ecx + 0x1c6c], 2
mov eax, dword [0x10214414]
cmp byte [eax + 0x5c], 0
jne 0x1012d4cb
movss dword [ecx + 0x1c84], xmm0
mov esi, edi
mov dword [ecx + 0x1c6c], 1
movss xmm0, dword [0x101eb704]
lea eax, [esp + 0xb0]
movss xmm2, dword [0x101eb6cc]
or edx, 0x10
mov dword [ecx + 0x1c64], edx
movss dword [esp + 0xb0], 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 + 0xb4], 2
movss dword [esp + 0xb8], xmm0
call fcn.10156bf0
mov dword [esi + 0x156c], 0x40900000
lea eax, [esp + 0xb0]
mov esi, dword [0x103d8bec]
push eax
mov dword [esp + 0xb4], 7
movups xmm0, xmmword [esi + 0x1694]
lea ecx, [esi + 0x1cd8]
movups xmmword [esp + 0xb8], xmm0
call fcn.10156ca0
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 [0x10214414]
movq xmm0, qword [str._DC]
mov edi, dword [0x10215510]
cmp byte [eax + 0x5c], 0
mov eax, dword [0x101e3248]
mov dword [esp + 0xb8], eax
cmovne esi, ecx
mov ax, word [0x101e324c]
xor edx, edx
mov word [esp + 0xbc], ax
mov al, byte [0x101e324e]
movq qword [esp + 0xb0], xmm0
mov byte [esp + 0xbe], al
mov dword [esp + 0x10], edx
cmp edi, 2
jl 0x1012d720
movaps xmm2, xmmword [0x101eb880]
mov edx, 8
movaps xmm3, xmmword [0x101ebc30]
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
mov dword [esp + 0x10], edx
movaps xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x101eb8e0]
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
movaps xmm2, xmmword [0x101eb8c0]
pshufhw xmm0, xmm0, 0xd8
pshufd xmm1, xmm0, 0xd8
andps xmm1, xmmword [0x101eb990]
movd xmm0, dword [str._DC]
packuswb xmm1, xmm1
paddb xmm1, xmmword [str.4444444444444444]
xorps 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, 4
movaps xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x101eb8e0]
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm0, xmm0, 0xd8
pshufd xmm1, xmm0, 0xd8
andps xmm1, xmmword [0x101eb990]
movd xmm0, dword [esp + 0xb4]
packuswb xmm1, xmm1
paddb xmm1, xmmword [str.4444444444444444]
xorps xmm1, xmm0
movd dword [esp + 0xb4], xmm1
nop dword [eax + eax]
mov eax, 0x5397829d
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, 0x31
sub cl, al
add cl, 0x34
xor byte [esp + edx + 0xb0], cl
inc edx
mov dword [esp + 0x10], edx
cmp edx, 0xf
jl 0x1012d720
push esi
xor edx, edx
lea ecx, [esp + 0xb4]
call fcn.1014dcf0
push ecx
lea ecx, [esp + 0x1c]
call fcn.1001f3a0
mov eax, dword [0x101e3ba0]
xor edx, edx
movq xmm0, qword [str.gYY___]
mov dword [esp + 0xb8], eax
mov al, byte [0x101e3ba4]
movq qword [esp + 0xb0], xmm0
mov byte [esp + 0xbc], al
mov dword [esp + 0x10], edx
cmp edi, 2
jl 0x1012d8b0
movaps xmm2, xmmword [0x101eb880]
mov edx, 8
movaps xmm4, xmmword [0x101ebc30]
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 [str.4444444444444444]
movaps xmm0, xmm1
mov dword [esp + 0x10], edx
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x101eb8e0]
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
movaps xmm2, xmmword [0x101eb8c0]
pshufhw xmm0, xmm0, 0xd8
pshufd xmm1, xmm0, 0xd8
andps xmm1, xmmword [0x101eb990]
packuswb xmm1, xmm1
movd xmm0, eax
paddb xmm1, xmm0
movd xmm0, dword [str.gYY___]
xorps 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, 4
movaps xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x101eb8e0]
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm0, xmm0, 0xd8
pshufd xmm1, xmm0, 0xd8
andps xmm1, xmmword [0x101eb990]
packuswb xmm1, xmm1
movd xmm0, eax
paddb xmm1, xmm0
movd xmm0, dword [esp + 0xb4]
xorps xmm1, xmm0
movd dword [esp + 0xb4], xmm1
nop dword [eax + eax]
mov eax, 0x5397829d
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, 0x31
sub cl, al
add cl, 0x34
xor byte [esp + edx + 0xb0], cl
inc edx
mov dword [esp + 0x10], edx
cmp edx, 0xd
jl 0x1012d8b0
lea edx, [esp + 0xb0]
lea ecx, [esp + 0x18]
call fcn.100b2220
movss xmm0, dword [0x103db568]
mulss xmm0, dword [0x101eb5a0]
cvttss2si ecx, xmm0
push ecx
mov ecx, eax
call fcn.1001f420
mov edx, 0x101e2f50
mov ecx, eax
call fcn.100b2220
lea eax, [esp + 0xd4]
push eax
lea ecx, [esp + 0x1c]
call fcn.1001f300
mov esi, eax
cmp dword [esi + 0x14], 0xf
jbe 0x1012d936
mov esi, dword [esi]
mov edi, dword [0x103d8bec]
mov eax, dword [edi + 0x1bdc]
movss xmm0, dword [eax + 0x14]
movss dword [esp + 0x10], xmm0
test esi, esi
jne 0x1012d956
xorps xmm2, xmm2
jmp 0x1012d9ba
movss xmm3, dword [0x101eb6cc]
lea eax, [esp + 0xb0]
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.1015cd90
movss xmm0, dword [esp + 0xb0]
addss xmm0, dword [0x101eb34c]
cvttss2si eax, xmm0
movss xmm0, dword [esp + 0xb4]
movss dword [esp + 0xb4], xmm0
movss xmm0, dword [esp + 0x10]
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 [0x101eb2e4]
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.1015f760
mov ecx, dword [esp + 0xe8]
cmp ecx, 0xf
jbe 0x1012da4a
mov edx, dword [esp + 0xd4]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1012da40
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1012dcf2
push ecx
push edx
call fcn.1018e3c3
add esp, 8
mov eax, dword [0x10214408]
movups xmm0, xmmword [eax + 0x35a2]
mov al, byte [eax + 0x35b2]
movups xmmword [esp + 0xb0], xmm0
test al, al
je 0x1012db20
mov eax, dword [0x10214404]
movss xmm0, dword [esp + 0xbc]
mov eax, dword [eax + 0x10]
mulss xmm0, dword [eax]
movss dword [esp + 0x10], xmm0
cvtps2pd xmm0, xmm0
call fcn.101b62b0
xorps xmm1, xmm1
cvtsd2ss xmm1, xmm0
movss xmm0, dword [esp + 0x10]
addss xmm0, dword [0x101eb408]
mulss xmm1, dword [0x101eb2e4]
addss xmm1, dword [0x101eb2e4]
cvtps2pd xmm0, xmm0
movss dword [esp + 0x14], xmm1
call fcn.101b62b0
xorps xmm1, xmm1
cvtsd2ss xmm1, xmm0
movss xmm0, dword [esp + 0x10]
addss xmm0, dword [0x101eb48c]
mulss xmm1, dword [0x101eb2e4]
addss xmm1, dword [0x101eb2e4]
cvtps2pd xmm0, xmm0
movss dword [esp + 0xb0], xmm1
call fcn.101b62b0
movss xmm2, dword [0x101eb2e4]
xorps xmm5, xmm5
movss xmm3, dword [esp + 0x14]
movss xmm4, dword [esp + 0xb0]
cvtsd2ss xmm5, xmm0
mulss xmm5, xmm2
addss xmm5, xmm2
jmp 0x1012db43
movss xmm3, dword [esp + 0xb0]
movss xmm4, dword [esp + 0xb4]
movss xmm5, dword [esp + 0xb8]
movss xmm2, dword [0x101eb2e4]
movss xmm6, dword [0x101eb354]
xorps xmm0, xmm0
comiss xmm0, xmm3
movaps xmm7, xmm6
jbe 0x1012db5b
xorps xmm1, xmm1
jmp 0x1012db62
movaps xmm1, xmm6
minss xmm1, xmm3
movss xmm3, dword [0x101eb62c]
mulss xmm1, xmm3
addss xmm1, xmm2
cvttss2si ecx, xmm1
shl ecx, 0x10
comiss xmm0, xmm4
jbe 0x1012db83
xorps xmm1, xmm1
jmp 0x1012db8a
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 0x1012dba5
xorps xmm1, xmm1
jmp 0x1012dbac
movaps xmm1, xmm6
minss xmm1, xmm5
mulss xmm1, xmm3
addss xmm1, xmm2
cvttss2si eax, xmm1
or ecx, eax
comiss xmm0, xmm7
ja 0x1012dbc6
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.10145ba0
movss xmm1, dword [0x101eb354]
movss xmm0, dword [0x103db568]
call fcn.100b5830
mov edi, dword [0x103d8bec]
mov eax, dword [edi + 0x1bdc]
mov byte [eax + 0x8c], 1
mov eax, dword [edi + 0x1bdc]
movss xmm0, dword [eax + 0x1c]
mov eax, dword [0x10214408]
movss dword [0x1021439c], xmm0
cmp byte [eax + 0x326c], 0
je 0x1012dc52
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.10145c90
call fcn.1014ff80
mov eax, dword [esp + 0x18]
mov eax, dword [eax + 4]
mov dword [esp + eax + 0x18], 0x101c6bf4
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.1001ef40
mov eax, dword [esp + 0x18]
mov eax, dword [eax + 4]
mov dword [esp + eax + 0x18], 0x101c75f0
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], 0x101c6c28
call fcn.1018d27f
add esp, 4
push 0x103db39c
call fcn.1018d82d
add esp, 4
mov ecx, dword [esp + 0xec]
pop edi
pop esi
xor ecx, esp
call fcn.1018e0ca
mov esp, ebp
pop ebp
ret
push 5
call fcn.1018da3c
push 6
mov dword [0x103db3c8], 0x7ffffffe
call fcn.1018da3c
call fcn.101934f6
int3