Function at 0x100038a0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x8f8
mov eax, dword [0x10017004]
xor eax, esp
mov dword [esp + 0x8f4], eax
push esi
push edi
call fcn.10001310
test eax, eax
je 0x1000491d
lea eax, [esp + 0xc0]
xor edi, edi
push eax
push 8
push 0x29
lea edx, [edi + 1]
xor esi, esi
call fcn.10001030
add esp, 4
call eax
push eax
push 0x5f
lea edx, [edi + 4]
call fcn.10001030
add esp, 4
call eax
test eax, eax
je 0x1000488c
lea eax, [esp + 0xd0]
push eax
push 4
lea eax, [esp + 0xd4]
push eax
push 0x14
push dword [esp + 0xd0]
lea edx, [edi + 4]
push 0x3a
call fcn.10001030
add esp, 4
call eax
push dword [esp + 0xc0]
test eax, eax
lea edx, [edi + 1]
push 4
cmovne esi, dword [esp + 0xd4]
call fcn.10001030
add esp, 4
call eax
test esi, esi
je 0x1000488c
push 0x104
lea eax, [esp + 0x6f4]
xor edx, edx
push eax
push 0x80
call fcn.10001030
add esp, 4
call eax
push 0x104
lea eax, [esp + 0x6f4]
push eax
push dword [0x100182b8]
lea edx, [edi + 1]
push 0x32
call fcn.10001030
add esp, 4
call eax
test eax, eax
je 0x1000488c
push 0xf003f
push edi
push edi
push 0x60
lea edx, [edi + 4]
call fcn.10001030
add esp, 4
call eax
mov dword [esp + 0xcc], eax
test eax, eax
je 0x1000488e
push 0x104
lea eax, [esp + 0xdc]
xor edx, edx
push eax
push 0x80
call fcn.10001030
add esp, 4
call eax
movups xmm0, xmmword [0x10015820]
mov ax, word [0x10015868]
lea ecx, [edi + 0x1f]
mov edi, dword [0x10017bfc]
xor esi, esi
movups xmmword [esp + 0x30], xmm0
mov word [esp + 0x78], ax
mov eax, 2
movups xmm0, xmmword [0x10015830]
movups xmmword [esp + 0x40], xmm0
movups xmm0, xmmword [0x10015840]
movups xmmword [esp + 0x50], xmm0
movups xmm0, xmmword [0x10015850]
movups xmmword [esp + 0x60], xmm0
movq xmm0, qword [0x10015860]
movq qword [esp + 0x70], xmm0
cmp edi, eax
jl 0x10003b50
movaps xmm4, xmmword [0x10015870]
movaps xmm3, xmmword [0x100158f0]
movaps xmm6, xmmword [0x10015890]
movd xmm5, eax
movd xmm7, ecx
nop dword [eax]
movd xmm0, esi
lea eax, [esi + 4]
pshufd xmm2, xmm0, 0
paddd xmm2, xmm4
movaps xmm1, xmm2
movaps xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm3
punpckldq xmm1, xmm2
pmuldq xmm1, xmm3
shufps xmm1, xmm0, 0xdd
psrad xmm1, xmm5
movaps xmm0, xmm1
psrld xmm0, xmm7
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm0, xmm0, 0xd8
pshufd xmm1, xmm0, 0xd8
movq xmm0, qword [0x100158b0]
paddw xmm1, xmm0
movq xmm0, qword [esp + esi*2 + 0x30]
pxor xmm1, xmm0
movd xmm0, eax
pshufd xmm2, xmm0, 0
movq qword [esp + esi*2 + 0x30], 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, xmm5
movaps xmm0, xmm1
psrld xmm0, xmm7
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm0, xmm0, 0xd8
pshufd xmm1, xmm0, 0xd8
movq xmm0, qword [0x100158b0]
paddw xmm1, xmm0
movq xmm0, qword [esp + esi*2 + 0x38]
pxor xmm1, xmm0
movq qword [esp + esi*2 + 0x38], xmm1
add esi, 8
cmp esi, 0x20
jl 0x10003a60
cmp esi, 0x25
jge 0x10003b78
nop dword [eax]
mov eax, 0x66666667
mov ecx, esi
imul esi
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
lea eax, [eax + eax*4]
add eax, eax
sub ecx, eax
add ecx, 0x34
xor word [esp + esi*2 + 0x30], cx
inc esi
cmp esi, 0x25
jl 0x10003b50
lea eax, [esp + 0x30]
mov edx, 1
push eax
lea eax, [esp + 0xdc]
push eax
push 0x50
call fcn.10001030
add esp, 4
call eax
lea eax, [esp + 0x6f0]
mov edx, 1
push eax
lea eax, [esp + 0xdc]
push eax
push 0x4e
call fcn.10001030
add esp, 4
call eax
cmp word [0x100155b2], 0
movups xmm0, xmmword [0x10015598]
mov eax, dword [0x100155b0]
mov dword [esp + 0x28], eax
movups xmmword [esp + 0x10], xmm0
movq xmm0, qword [0x100155a8]
movq qword [esp + 0x20], xmm0
je 0x10003d0f
xor esi, esi
cmp edi, 2
jl 0x10003ce7
movaps xmm2, xmmword [0x10015870]
mov eax, 2
movaps xmm3, xmmword [0x100158f0]
movaps xmm1, xmm2
punpckldq xmm1, xmm2
movaps xmm0, xmm2
punpckhdq xmm0, xmm2
mov esi, 8
pmuldq xmm0, xmm3
movaps xmm7, xmmword [0x100158b0]
pmuldq xmm1, xmm3
shufps xmm1, xmm0, 0xdd
movd xmm4, eax
mov eax, 0x1f
psrad xmm1, xmm4
movaps xmm0, xmm1
movd xmm5, eax
mov eax, 0x10015598
psrld xmm0, xmm5
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x10015890]
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
movaps xmm2, xmmword [0x10015880]
pshufhw xmm0, xmm0, 0xd8
pshufd xmm1, xmm0, 0xd8
movq xmm0, xmm7
paddw xmm1, xmm0
movq xmm0, qword [eax]
pxor xmm1, xmm0
movaps xmm0, xmm2
movq qword [esp + 0x10], xmm1
movaps xmm1, xmm2
punpckhdq xmm0, xmm2
punpckldq xmm1, 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 [0x10015890]
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm0, xmm0, 0xd8
pshufd xmm1, xmm0, 0xd8
movq xmm0, xmm7
paddw xmm1, xmm0
movq xmm0, qword [esp + 0x18]
pxor xmm1, xmm0
movq qword [esp + 0x18], xmm1
mov eax, 0x66666667
mov ecx, esi
imul esi
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
lea eax, [eax + eax*4]
add eax, eax
sub ecx, eax
add ecx, 0x34
xor word [esp + esi*2 + 0x10], cx
inc esi
cmp esi, 0xe
jl 0x10003ce7
lea eax, [esp + 0x10]
mov edx, 1
push eax
lea eax, [esp + 0xdc]
push eax
push 0x4e
call fcn.10001030
add esp, 4
call eax
cmp word [0x10015736], 0
movups xmm0, xmmword [str.aERVLiNK_VS7dTDVUNNN4]
mov eax, dword [0x10015734]
mov dword [esp + 0x98], eax
movups xmmword [esp + 0x80], xmm0
movq xmm0, qword [0x1001572c]
movq qword [esp + 0x90], xmm0
je 0x10003e9b
xor esi, esi
cmp edi, 2
jl 0x10003e70
movaps xmm2, xmmword [0x10015870]
mov eax, 2
movaps xmm3, xmmword [0x100158f0]
movaps xmm1, xmm2
punpckldq xmm1, xmm2
movaps xmm0, xmm2
punpckhdq xmm0, xmm2
mov esi, 8
pmuldq xmm0, xmm3
movaps xmm7, xmmword [0x100158b0]
pmuldq xmm1, xmm3
shufps xmm1, xmm0, 0xdd
movd xmm4, eax
mov eax, 0x1f
psrad xmm1, xmm4
movaps xmm0, xmm1
movd xmm5, eax
mov eax, str.aERVLiNK_VS7dTDVUNNN4
psrld xmm0, xmm5
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x10015890]
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
movaps xmm2, xmmword [0x10015880]
pshufhw xmm0, xmm0, 0xd8
pshufd xmm1, xmm0, 0xd8
movq xmm0, xmm7
paddw xmm1, xmm0
movq xmm0, qword [eax]
pxor xmm1, xmm0
movaps xmm0, xmm2
movq qword [esp + 0x80], xmm1
movaps xmm1, xmm2
punpckhdq xmm0, xmm2
punpckldq xmm1, 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 [0x10015890]
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm0, xmm0, 0xd8
pshufd xmm1, xmm0, 0xd8
movq xmm0, xmm7
paddw xmm1, xmm0
movq xmm0, qword [esp + 0x88]
pxor xmm1, xmm0
movq qword [esp + 0x88], xmm1
nop
mov eax, 0x66666667
mov ecx, esi
imul esi
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
lea eax, [eax + eax*4]
add eax, eax
sub ecx, eax
add ecx, 0x34
xor word [esp + esi*2 + 0x80], cx
inc esi
cmp esi, 0xe
jl 0x10003e70
cmp word [0x10015736], 0
movups xmm0, xmmword [str.aERVLiNK_VS7dTDVUNNN4]
mov eax, dword [0x10015734]
mov dword [esp + 0xb8], eax
movups xmmword [esp + 0xa0], xmm0
movq xmm0, qword [0x1001572c]
movq qword [esp + 0xb0], xmm0
je 0x1000400b
xor esi, esi
cmp edi, 2
jl 0x10003fe0
movaps xmm2, xmmword [0x10015870]
mov eax, 2
movaps xmm3, xmmword [0x100158f0]
movaps xmm1, xmm2
punpckldq xmm1, xmm2
movaps xmm0, xmm2
punpckhdq xmm0, xmm2
mov esi, 8
pmuldq xmm0, xmm3
movaps xmm7, xmmword [0x100158b0]
pmuldq xmm1, xmm3
shufps xmm1, xmm0, 0xdd
movd xmm4, eax
mov eax, 0x1f
psrad xmm1, xmm4
movaps xmm0, xmm1
movd xmm5, eax
mov eax, str.aERVLiNK_VS7dTDVUNNN4
psrld xmm0, xmm5
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x10015890]
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
movaps xmm2, xmmword [0x10015880]
pshufhw xmm0, xmm0, 0xd8
pshufd xmm1, xmm0, 0xd8
movq xmm0, xmm7
paddw xmm1, xmm0
movq xmm0, qword [eax]
pxor xmm1, xmm0
movaps xmm0, xmm2
movq qword [esp + 0xa0], xmm1
movaps xmm1, xmm2
punpckhdq xmm0, xmm2
punpckldq xmm1, 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 [0x10015890]
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm0, xmm0, 0xd8
pshufd xmm1, xmm0, 0xd8
movq xmm0, xmm7
paddw xmm1, xmm0
movq xmm0, qword [esp + 0xa8]
pxor xmm1, xmm0
movq qword [esp + 0xa8], xmm1
nop dword [eax]
mov eax, 0x66666667
mov ecx, esi
imul esi
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
lea eax, [eax + eax*4]
add eax, eax
sub ecx, eax
add ecx, 0x34
xor word [esp + esi*2 + 0xa0], cx
inc esi
cmp esi, 0xe
jl 0x10003fe0
push 0
push 0
push 0
push 0
push 0
lea eax, [esp + 0xec]
mov edx, 4
push eax
push 1
push 2
push 0x10
push 0xf01ff
lea eax, [esp + 0xa8]
push eax
lea eax, [esp + 0xcc]
push eax
push dword [esp + 0xfc]
push 0xe
call fcn.10001030
add esp, 4
call eax
mov edi, eax
test edi, edi
jne 0x10004078
push dword [esp + 0xcc]
lea edx, [eax + 4]
push 5
call fcn.10001030
add esp, 4
call eax
mov eax, dword [esp + 0xcc]
jmp 0x1000488e
push 0x104
lea eax, [esp + 0x2e4]
xor edx, edx
push eax
push 0x80
call fcn.10001030
add esp, 4
call eax
movups xmm0, xmmword [str.glectfxIOFPXCVTONRXfSCdj_IJTWPEk8]
mov eax, dword [0x10015600]
xor esi, esi
cmp dword [0x10017bfc], 2
movups xmmword [esp + 0x30], xmm0
mov dword [esp + 0x70], eax
movups xmm0, xmmword [0x100155d0]
mov ax, word [0x10015604]
mov word [esp + 0x74], ax
movups xmmword [esp + 0x40], xmm0
movups xmm0, xmmword [0x100155e0]
movups xmmword [esp + 0x50], xmm0
movups xmm0, xmmword [0x100155f0]
movups xmmword [esp + 0x60], xmm0
jl 0x10004200
movaps xmm4, xmmword [0x10015870]
mov eax, 2
movaps xmm3, xmmword [0x100158f0]
movaps xmm6, xmmword [0x10015890]
movd xmm5, eax
mov eax, 0x1f
movd xmm7, eax
movd xmm0, esi
lea eax, [esi + 4]
pshufd xmm2, xmm0, 0
paddd xmm2, xmm4
movaps xmm1, xmm2
movaps xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm3
punpckldq xmm1, xmm2
pmuldq xmm1, xmm3
shufps xmm1, xmm0, 0xdd
psrad xmm1, xmm5
movaps xmm0, xmm1
psrld xmm0, xmm7
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm0, xmm0, 0xd8
pshufd xmm1, xmm0, 0xd8
movq xmm0, qword [0x100158b0]
paddw xmm1, xmm0
movq xmm0, qword [esp + esi*2 + 0x30]
pxor xmm1, xmm0
movd xmm0, eax
pshufd xmm2, xmm0, 0
movq qword [esp + esi*2 + 0x30], 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, xmm5
movaps xmm0, xmm1
psrld xmm0, xmm7
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm0, xmm0, 0xd8
pshufd xmm1, xmm0, 0xd8
movq xmm0, qword [0x100158b0]
paddw xmm1, xmm0
movq xmm0, qword [esp + esi*2 + 0x38]
pxor xmm1, xmm0
movq qword [esp + esi*2 + 0x38], xmm1
add esi, 8
cmp esi, 0x20
jl 0x10004110
cmp esi, 0x23
jge 0x10004228
nop dword [eax]
mov eax, 0x66666667
mov ecx, esi
imul esi
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
lea eax, [eax + eax*4]
add eax, eax
sub ecx, eax
add ecx, 0x34
xor word [esp + esi*2 + 0x30], cx
inc esi
cmp esi, 0x23
jl 0x10004200
lea eax, [esp + 0x30]
mov edx, 1
push eax
lea eax, [esp + 0x2e4]
push eax
push 0x50
call fcn.10001030
add esp, 4
call eax
cmp word [0x10015736], 0
movups xmm0, xmmword [str.aERVLiNK_VS7dTDVUNNN4]
mov eax, dword [0x10015734]
mov dword [esp + 0x28], eax
movups xmmword [esp + 0x10], xmm0
movq xmm0, qword [0x1001572c]
movq qword [esp + 0x20], xmm0
je 0x100043a8
xor esi, esi
cmp dword [0x10017bfc], 2
jl 0x10004380
movaps xmm2, xmmword [0x10015870]
mov eax, 2
movaps xmm3, xmmword [0x100158f0]
movaps xmm1, xmm2
punpckldq xmm1, xmm2
movaps xmm0, xmm2
punpckhdq xmm0, xmm2
mov esi, 8
pmuldq xmm0, xmm3
movaps xmm7, xmmword [0x100158b0]
pmuldq xmm1, xmm3
shufps xmm1, xmm0, 0xdd
movd xmm4, eax
mov eax, 0x1f
psrad xmm1, xmm4
movaps xmm0, xmm1
movd xmm5, eax
mov eax, str.aERVLiNK_VS7dTDVUNNN4
psrld xmm0, xmm5
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x10015890]
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
movaps xmm2, xmmword [0x10015880]
pshufhw xmm0, xmm0, 0xd8
pshufd xmm1, xmm0, 0xd8
movq xmm0, xmm7
paddw xmm1, xmm0
movq xmm0, qword [eax]
pxor xmm1, xmm0
movaps xmm0, xmm2
movq qword [esp + 0x10], xmm1
movaps xmm1, xmm2
punpckhdq xmm0, xmm2
punpckldq xmm1, 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 [0x10015890]
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm0, xmm0, 0xd8
pshufd xmm1, xmm0, 0xd8
movq xmm0, xmm7
paddw xmm1, xmm0
movq xmm0, qword [esp + 0x18]
pxor xmm1, xmm0
movq qword [esp + 0x18], xmm1
nop word [eax + eax]
mov eax, 0x66666667
mov ecx, esi
imul esi
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
lea eax, [eax + eax*4]
add eax, eax
sub ecx, eax
add ecx, 0x34
xor word [esp + esi*2 + 0x10], cx
inc esi
cmp esi, 0xe
jl 0x10004380
lea eax, [esp + 0x10]
mov edx, 1
push eax
lea eax, [esp + 0x2e4]
push eax
push 0x4e
call fcn.10001030
add esp, 4
call eax
lea eax, [esp + 0xc8]
mov edx, 4
push eax
push 0xf003f
push 0
lea eax, [esp + 0x2ec]
push eax
push 0x80000002
push 0x6e
call fcn.10001030
add esp, 4
call eax
test eax, eax
jne 0x1000406c
mov eax, dword [0x10015748]
xor esi, esi
movups xmm0, xmmword [0x10015738]
mov dword [esp + 0x20], eax
mov ax, word [0x1001574c]
movups xmmword [esp + 0x10], xmm0
mov word [esp + 0x24], ax
nop dword [eax]
mov eax, 0xcccccccd
mov ecx, esi
mul esi
shr edx, 3
lea eax, [edx + edx*4]
add eax, eax
sub ecx, eax
add ecx, 0x34
xor word [esp + esi*2 + 0x10], cx
inc esi
cmp esi, 0xb
jl 0x10004420
lea eax, [esp + 0xd4]
mov edx, 4
push eax
lea eax, [esp + 0xc8]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
lea eax, [esp + 0x2c]
push eax
push dword [esp + 0xe8]
push 0x6c
call fcn.10001030
add esp, 4
call eax
test eax, eax
jne 0x1000406c
push 0x104
lea eax, [esp + 0x4ec]
xor edx, edx
push eax
push 0x80
call fcn.10001030
add esp, 4
call eax
movups xmm0, xmmword [0x100156d0]
mov ax, word [0x10015718]
xor esi, esi
cmp dword [0x10017bfc], 2
movups xmmword [esp + 0x30], xmm0
mov word [esp + 0x78], ax
movups xmm0, xmmword [0x100156e0]
movups xmmword [esp + 0x40], xmm0
movups xmm0, xmmword [0x100156f0]
movups xmmword [esp + 0x50], xmm0
movups xmm0, xmmword [0x10015700]
movups xmmword [esp + 0x60], xmm0
movq xmm0, qword [0x10015710]
movq qword [esp + 0x70], xmm0
jl 0x10004610
movaps xmm4, xmmword [0x10015870]
mov eax, 2
movaps xmm3, xmmword [0x100158f0]
movaps xmm6, xmmword [0x10015890]
movd xmm5, eax
mov eax, 0x1f
movd xmm7, eax
movd xmm0, esi
lea eax, [esi + 4]
pshufd xmm2, xmm0, 0
paddd xmm2, xmm4
movaps xmm1, xmm2
movaps xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm3
punpckldq xmm1, xmm2
pmuldq xmm1, xmm3
shufps xmm1, xmm0, 0xdd
psrad xmm1, xmm5
movaps xmm0, xmm1
psrld xmm0, xmm7
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm0, xmm0, 0xd8
pshufd xmm1, xmm0, 0xd8
movq xmm0, qword [0x100158b0]
paddw xmm1, xmm0
movq xmm0, qword [esp + esi*2 + 0x30]
pxor xmm1, xmm0
movd xmm0, eax
pshufd xmm2, xmm0, 0
movq qword [esp + esi*2 + 0x30], 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, xmm5
movaps xmm0, xmm1
psrld xmm0, xmm7
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm0, xmm0, 0xd8
pshufd xmm1, xmm0, 0xd8
movq xmm0, qword [0x100158b0]
paddw xmm1, xmm0
movq xmm0, qword [esp + esi*2 + 0x38]
pxor xmm1, xmm0
movq qword [esp + esi*2 + 0x38], xmm1
add esi, 8
cmp esi, 0x20
jl 0x10004520
cmp esi, 0x25
jge 0x10004638
nop dword [eax]
mov eax, 0x66666667
mov ecx, esi
imul esi
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
lea eax, [eax + eax*4]
add eax, eax
sub ecx, eax
add ecx, 0x34
xor word [esp + esi*2 + 0x30], cx
inc esi
cmp esi, 0x25
jl 0x10004610
lea eax, [esp + 0x30]
mov edx, 1
push eax
lea eax, [esp + 0x4ec]
push eax
push 0x50
call fcn.10001030
add esp, 4
call eax
movups xmm0, xmmword [str.fPPRJH_ABG]
pextrw eax, xmm0, 7
movups xmmword [esp + 0x10], xmm0
test ax, ax
je 0x10004791
xor esi, esi
cmp dword [0x10017bfc], 2
jl 0x10004770
movaps xmm2, xmmword [0x10015870]
mov eax, 2
movaps xmm3, xmmword [0x100158f0]
movaps xmm1, xmm2
punpckldq xmm1, xmm2
movaps xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm3
movaps xmm7, xmmword [0x100158b0]
pmuldq xmm1, xmm3
shufps xmm1, xmm0, 0xdd
movd xmm4, eax
mov eax, 0x1f
psrad xmm1, xmm4
movaps xmm0, xmm1
movd xmm5, eax
mov eax, str.fPPRJH_ABG
psrld xmm0, xmm5
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x10015890]
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
movaps xmm2, xmmword [0x10015880]
pshufhw xmm0, xmm0, 0xd8
pshufd xmm1, xmm0, 0xd8
movq xmm0, xmm7
paddw xmm1, xmm0
movq xmm0, qword [eax]
pxor xmm1, xmm0
movaps xmm0, xmm2
movq qword [esp + 0x10], xmm1
movaps xmm1, xmm2
punpckhdq xmm0, xmm2
punpckldq xmm1, 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 [0x10015890]
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm0, xmm0, 0xd8
pshufd xmm1, xmm0, 0xd8
movq xmm0, xmm7
paddw xmm1, xmm0
movq xmm0, qword [esp + 0x18]
pxor xmm1, xmm0
movq qword [esp + 0x18], xmm1
jmp 0x10004791
mov eax, 0xcccccccd
mov ecx, esi
mul esi
shr edx, 3
lea eax, [edx + edx*4]
add eax, eax
sub ecx, eax
add ecx, 0x34
xor word [esp + esi*2 + 0x10], cx
inc esi
cmp esi, 8
jl 0x10004770
lea eax, [esp + 0x4e8]
mov edx, 1
push eax
push 0x52
call fcn.10001030
add esp, 4
call eax
mov edx, 4
lea eax, [eax*2 + 2]
push eax
lea eax, [esp + 0x4ec]
push eax
push 1
push 0
lea eax, [esp + 0x20]
push eax
push dword [esp + 0xd8]
push 0x70
call fcn.10001030
add esp, 4
call eax
test eax, eax
jne 0x1000406c
push dword [esp + 0xc4]
lea edx, [eax + 4]
push 0x6b
call fcn.10001030
add esp, 4
call eax
push dword [esp + 0xc8]
mov edx, 4
push 0x6b
call fcn.10001030
add esp, 4
call eax
push 0
push 0
push edi
push 0x89
mov edx, 4
call fcn.10001030
add esp, 4
call eax
test eax, eax
je 0x1000406c
cmp word [0x100155b6], 0
mov eax, dword [0x100155b4]
mov dword [esp + 0xc0], eax
je 0x10004874
xor esi, esi
nop word [eax + eax]
mov eax, 0xcccccccd
mov ecx, esi
mul esi
shr edx, 3
lea eax, [edx + edx*4]
add eax, eax
sub ecx, eax
add ecx, 0x34
xor word [esp + esi*2 + 0xc0], cx
inc esi
cmp esi, 2
jl 0x10004850
push 0
mov edx, 0x10015248
lea ecx, [esp + 0xc4]
call fcn.10001f70
add esp, 4
jmp 0x100048ee
xor eax, eax
cmp word [0x100155b6], 0
mov dword [esp + 0xcc], eax
mov eax, dword [0x100155b4]
mov dword [esp + 0xc0], eax
je 0x100048d4
xor esi, esi
nop dword [eax]
mov eax, 0xcccccccd
mov ecx, esi
mul esi
shr edx, 3
lea eax, [edx + edx*4]
add eax, eax
sub ecx, eax
add ecx, 0x34
xor word [esp + esi*2 + 0xc0], cx
inc esi
cmp esi, 2
jl 0x100048b0
push 0
mov edx, 0x1001524c
lea ecx, [esp + 0xc4]
call fcn.10001f70
add esp, 4
test edi, edi
je 0x10004900
push edi
push 5
mov edx, 4
call fcn.10001030
add esp, 4
call eax
mov eax, dword [esp + 0xcc]
test eax, eax
je 0x1000491d
push eax
push 5
mov edx, 4
call fcn.10001030
add esp, 4
call eax
mov ecx, dword [esp + 0x8fc]
pop edi
pop esi
xor ecx, esp
call fcn.100055ab
mov esp, ebp
pop ebp
ret