Function at 0x10003810
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 0x1000488d
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 0x100047fc
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 0x100047fc
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 0x100047fc
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 0x100047fe
push 0x104
lea eax, [esp + 0xdc]
xor edx, edx
push eax
push 0x80
call fcn.10001030
add esp, 4
call eax
movups xmm0, xmmword [0x10015720]
mov ax, word [0x10015768]
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 [0x10015730]
movups xmmword [esp + 0x40], xmm0
movups xmm0, xmmword [0x10015740]
movups xmmword [esp + 0x50], xmm0
movups xmm0, xmmword [0x10015750]
movups xmmword [esp + 0x60], xmm0
movq xmm0, qword [0x10015760]
movq qword [esp + 0x70], xmm0
cmp edi, eax
jl 0x10003ac0
movaps xmm4, xmmword [0x10015890]
movaps xmm3, xmmword [0x10015910]
movaps xmm6, xmmword [0x100158b0]
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 [0x100158c0]
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 [0x100158c0]
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 0x100039d0
cmp esi, 0x25
jge 0x10003ae8
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, 0x30
xor word [esp + esi*2 + 0x30], cx
inc esi
cmp esi, 0x25
jl 0x10003ac0
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 [0x100155ea], 0
movups xmm0, xmmword [0x100155d0]
mov eax, dword [0x100155e8]
mov dword [esp + 0x28], eax
movups xmmword [esp + 0x10], xmm0
movq xmm0, qword [0x100155e0]
movq qword [esp + 0x20], xmm0
je 0x10003c7f
xor esi, esi
cmp edi, 2
jl 0x10003c57
movaps xmm2, xmmword [0x10015890]
mov eax, 2
movaps xmm3, xmmword [0x10015910]
movaps xmm1, xmm2
punpckldq xmm1, xmm2
movaps xmm0, xmm2
punpckhdq xmm0, xmm2
mov esi, 8
pmuldq xmm0, xmm3
movaps xmm7, xmmword [0x100158c0]
pmuldq xmm1, xmm3
shufps xmm1, xmm0, 0xdd
movd xmm4, eax
mov eax, 0x1f
psrad xmm1, xmm4
movaps xmm0, xmm1
movd xmm5, eax
mov eax, 0x100155d0
psrld xmm0, xmm5
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x100158b0]
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
movaps xmm2, xmmword [0x100158a0]
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 [0x100158b0]
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, 0x30
xor word [esp + esi*2 + 0x10], cx
inc esi
cmp esi, 0xe
jl 0x10003c57
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 [0x100156ce], 0
movups xmm0, xmmword [0x100156b4]
mov eax, dword [0x100156cc]
mov dword [esp + 0x98], eax
movups xmmword [esp + 0x80], xmm0
movq xmm0, qword [0x100156c4]
movq qword [esp + 0x90], xmm0
je 0x10003e0b
xor esi, esi
cmp edi, 2
jl 0x10003de0
movaps xmm2, xmmword [0x10015890]
mov eax, 2
movaps xmm3, xmmword [0x10015910]
movaps xmm1, xmm2
punpckldq xmm1, xmm2
movaps xmm0, xmm2
punpckhdq xmm0, xmm2
mov esi, 8
pmuldq xmm0, xmm3
movaps xmm7, xmmword [0x100158c0]
pmuldq xmm1, xmm3
shufps xmm1, xmm0, 0xdd
movd xmm4, eax
mov eax, 0x1f
psrad xmm1, xmm4
movaps xmm0, xmm1
movd xmm5, eax
mov eax, 0x100156b4
psrld xmm0, xmm5
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x100158b0]
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
movaps xmm2, xmmword [0x100158a0]
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 [0x100158b0]
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, 0x30
xor word [esp + esi*2 + 0x80], cx
inc esi
cmp esi, 0xe
jl 0x10003de0
cmp word [0x100156ce], 0
movups xmm0, xmmword [0x100156b4]
mov eax, dword [0x100156cc]
mov dword [esp + 0xb8], eax
movups xmmword [esp + 0xa0], xmm0
movq xmm0, qword [0x100156c4]
movq qword [esp + 0xb0], xmm0
je 0x10003f7b
xor esi, esi
cmp edi, 2
jl 0x10003f50
movaps xmm2, xmmword [0x10015890]
mov eax, 2
movaps xmm3, xmmword [0x10015910]
movaps xmm1, xmm2
punpckldq xmm1, xmm2
movaps xmm0, xmm2
punpckhdq xmm0, xmm2
mov esi, 8
pmuldq xmm0, xmm3
movaps xmm7, xmmword [0x100158c0]
pmuldq xmm1, xmm3
shufps xmm1, xmm0, 0xdd
movd xmm4, eax
mov eax, 0x1f
psrad xmm1, xmm4
movaps xmm0, xmm1
movd xmm5, eax
mov eax, 0x100156b4
psrld xmm0, xmm5
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x100158b0]
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
movaps xmm2, xmmword [0x100158a0]
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 [0x100158b0]
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, 0x30
xor word [esp + esi*2 + 0xa0], cx
inc esi
cmp esi, 0xe
jl 0x10003f50
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 0x10003fe8
push dword [esp + 0xcc]
lea edx, [eax + 4]
push 5
call fcn.10001030
add esp, 4
call eax
mov eax, dword [esp + 0xcc]
jmp 0x100047fe
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.chagqxjtMKBTGwZXCJV_bWGhfSENPSTAo4]
mov eax, dword [0x10015718]
xor esi, esi
cmp dword [0x10017bfc], 2
movups xmmword [esp + 0x30], xmm0
mov dword [esp + 0x70], eax
movups xmm0, xmmword [0x100156e8]
mov ax, word [0x1001571c]
mov word [esp + 0x74], ax
movups xmmword [esp + 0x40], xmm0
movups xmm0, xmmword [0x100156f8]
movups xmmword [esp + 0x50], xmm0
movups xmm0, xmmword [0x10015708]
movups xmmword [esp + 0x60], xmm0
jl 0x10004170
movaps xmm4, xmmword [0x10015890]
mov eax, 2
movaps xmm3, xmmword [0x10015910]
movaps xmm6, xmmword [0x100158b0]
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 [0x100158c0]
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 [0x100158c0]
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 0x10004080
cmp esi, 0x23
jge 0x10004198
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, 0x30
xor word [esp + esi*2 + 0x30], cx
inc esi
cmp esi, 0x23
jl 0x10004170
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 [0x100156ce], 0
movups xmm0, xmmword [0x100156b4]
mov eax, dword [0x100156cc]
mov dword [esp + 0x28], eax
movups xmmword [esp + 0x10], xmm0
movq xmm0, qword [0x100156c4]
movq qword [esp + 0x20], xmm0
je 0x10004318
xor esi, esi
cmp dword [0x10017bfc], 2
jl 0x100042f0
movaps xmm2, xmmword [0x10015890]
mov eax, 2
movaps xmm3, xmmword [0x10015910]
movaps xmm1, xmm2
punpckldq xmm1, xmm2
movaps xmm0, xmm2
punpckhdq xmm0, xmm2
mov esi, 8
pmuldq xmm0, xmm3
movaps xmm7, xmmword [0x100158c0]
pmuldq xmm1, xmm3
shufps xmm1, xmm0, 0xdd
movd xmm4, eax
mov eax, 0x1f
psrad xmm1, xmm4
movaps xmm0, xmm1
movd xmm5, eax
mov eax, 0x100156b4
psrld xmm0, xmm5
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x100158b0]
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
movaps xmm2, xmmword [0x100158a0]
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 [0x100158b0]
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, 0x30
xor word [esp + esi*2 + 0x10], cx
inc esi
cmp esi, 0xe
jl 0x100042f0
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 0x10003fdc
mov eax, dword [0x100155c8]
xor esi, esi
movups xmm0, xmmword [str._P_RYPBRJJ0]
mov dword [esp + 0x20], eax
mov ax, word [0x100155cc]
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, 0x30
xor word [esp + esi*2 + 0x10], cx
inc esi
cmp esi, 0xb
jl 0x10004390
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 0x10003fdc
push 0x104
lea eax, [esp + 0x4ec]
xor edx, edx
push eax
push 0x80
call fcn.10001030
add esp, 4
call eax
movups xmm0, xmmword [0x10015840]
mov ax, word [0x10015888]
xor esi, esi
cmp dword [0x10017bfc], 2
movups xmmword [esp + 0x30], xmm0
mov word [esp + 0x78], ax
movups xmm0, xmmword [0x10015850]
movups xmmword [esp + 0x40], xmm0
movups xmm0, xmmword [0x10015860]
movups xmmword [esp + 0x50], xmm0
movups xmm0, xmmword [0x10015870]
movups xmmword [esp + 0x60], xmm0
movq xmm0, qword [0x10015880]
movq qword [esp + 0x70], xmm0
jl 0x10004580
movaps xmm4, xmmword [0x10015890]
mov eax, 2
movaps xmm3, xmmword [0x10015910]
movaps xmm6, xmmword [0x100158b0]
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 [0x100158c0]
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 [0x100158c0]
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 0x10004490
cmp esi, 0x25
jge 0x100045a8
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, 0x30
xor word [esp + esi*2 + 0x30], cx
inc esi
cmp esi, 0x25
jl 0x10004580
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 [0x10015830]
pextrw eax, xmm0, 7
movups xmmword [esp + 0x10], xmm0
test ax, ax
je 0x10004701
xor esi, esi
cmp dword [0x10017bfc], 2
jl 0x100046e0
movaps xmm2, xmmword [0x10015890]
mov eax, 2
movaps xmm3, xmmword [0x10015910]
movaps xmm1, xmm2
punpckldq xmm1, xmm2
movaps xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm3
movaps xmm7, xmmword [0x100158c0]
pmuldq xmm1, xmm3
shufps xmm1, xmm0, 0xdd
movd xmm4, eax
mov eax, 0x1f
psrad xmm1, xmm4
movaps xmm0, xmm1
movd xmm5, eax
mov eax, 0x10015830
psrld xmm0, xmm5
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x100158b0]
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
movaps xmm2, xmmword [0x100158a0]
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 [0x100158b0]
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 0x10004701
mov eax, 0xcccccccd
mov ecx, esi
mul esi
shr edx, 3
lea eax, [edx + edx*4]
add eax, eax
sub ecx, eax
add ecx, 0x30
xor word [esp + esi*2 + 0x10], cx
inc esi
cmp esi, 8
jl 0x100046e0
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 0x10003fdc
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 0x10003fdc
cmp word [0x100156d2], 0
mov eax, dword [0x100156d0]
mov dword [esp + 0xc0], eax
je 0x100047e4
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, 0x30
xor word [esp + esi*2 + 0xc0], cx
inc esi
cmp esi, 2
jl 0x100047c0
push 0
mov edx, 0x10015264
lea ecx, [esp + 0xc4]
call fcn.10002030
add esp, 4
jmp 0x1000485e
xor eax, eax
cmp word [0x100156d2], 0
mov dword [esp + 0xcc], eax
mov eax, dword [0x100156d0]
mov dword [esp + 0xc0], eax
je 0x10004844
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, 0x30
xor word [esp + esi*2 + 0xc0], cx
inc esi
cmp esi, 2
jl 0x10004820
push 0
mov edx, 0x10015268
lea ecx, [esp + 0xc4]
call fcn.10002030
add esp, 4
test edi, edi
je 0x10004870
push edi
push 5
mov edx, 4
call fcn.10001030
add esp, 4
call eax
mov eax, dword [esp + 0xcc]
test eax, eax
je 0x1000488d
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.1000552b
mov esp, ebp
pop ebp
ret