Function at 0x40d680
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
movups xmm0, xmmword [0x440ce0]
mov ax, word [0x440cf8]
push ebx
push esi
xor esi, esi
mov word [ebp - 2], ax
push edi
mov edi, dword [0x4527a8]
movups xmmword [ebp - 0x1a], xmm0
lea ebx, [esi + 5]
movq xmm0, qword [0x440cf0]
lea eax, [esi + 0x1f]
movq qword [ebp - 0xa], xmm0
cmp edi, 2
jl 0x40d7b0
movaps xmm2, xmmword [0x440580]
mov esi, 8
movaps xmm3, xmmword [0x440a00]
movaps xmm1, xmm2
punpckldq xmm1, xmm2
movaps xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm3
pmuldq xmm1, xmm3
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm2
movd xmm4, ebx
psrad xmm1, xmm4
movd xmm5, eax
mov eax, 0x440ce0
movaps xmm0, xmm1
psrld xmm0, xmm5
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x4409f0]
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
movaps xmm2, xmmword [0x4406f0]
pshufhw xmm0, xmm0, 0xd8
pshufd xmm1, xmm0, 0xd8
paddw xmm1, xmmword [0x4405a0]
movq xmm0, qword [eax]
pxor xmm1, xmm0
movaps xmm0, xmm2
movq qword [ebp - 0x1a], xmm1
movaps xmm1, xmm2
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm3
pmuldq xmm1, xmm3
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm2
psrad xmm1, xmm4
movaps xmm0, xmm1
psrld xmm0, xmm5
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x4409f0]
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm0, xmm0, 0xd8
pshufd xmm1, xmm0, 0xd8
movq xmm0, qword [ebp - 0x12]
paddw xmm1, xmmword [0x4405a0]
pxor xmm1, xmm0
movq qword [ebp - 0x12], xmm1
nop dword [eax]
mov eax, 0x8d3dcb09
mov ecx, esi
imul esi
add edx, esi
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
imul eax, eax, 0x3a
sub ecx, eax
add ecx, 0x33
xor word [ebp + esi*2 - 0x1a], cx
inc esi
cmp esi, 0xd
jl 0x40d7b0
lea ecx, [ebp - 0x1a]
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x44], 0
lea edx, [ecx + 2]
mov dword [ebp - 0x40], 7
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40d7f3
sub ecx, edx
lea eax, [ebp - 0x1a]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x54]
call fcn.004032f0
movups xmm0, xmmword [0x440cc0]
movups xmmword [ebp - 0x20], xmm0
movups xmm0, xmmword [0x440cd0]
pextrw eax, xmm0, 7
movups xmmword [ebp - 0x10], xmm0
test ax, ax
je 0x40d972
xor esi, esi
cmp edi, 2
jl 0x40d953
movaps xmm4, xmmword [0x440580]
mov eax, 0x1f
movaps xmm3, xmmword [0x440a00]
xor ecx, ecx
movaps xmm6, xmmword [0x4409f0]
movd xmm5, ebx
movd xmm7, eax
movd xmm0, ecx
lea eax, [ecx + 4]
pshufd xmm2, xmm0, 0
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
paddd xmm1, xmm2
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 [0x4405a0]
paddw xmm1, xmm0
movq xmm0, qword [ebp + ecx*2 - 0x20]
pxor xmm1, xmm0
movd xmm0, eax
pshufd xmm2, xmm0, 0
movq qword [ebp + ecx*2 - 0x20], 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
paddd xmm1, xmm2
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 [0x4405a0]
paddw xmm1, xmm0
movq xmm0, qword [ebp + ecx*2 - 0x18]
pxor xmm1, xmm0
movq qword [ebp + ecx*2 - 0x18], xmm1
add ecx, 8
cmp ecx, 0x10
jl 0x40d862
jmp 0x40d972
mov eax, 0x8d3dcb09
mov ecx, esi
mul esi
shr edx, 5
imul eax, edx, 0x3a
sub ecx, eax
add ecx, 0x33
xor word [ebp + esi*2 - 0x20], cx
inc esi
cmp esi, 0x10
jl 0x40d953
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x28], 0
lea edx, [ecx + 2]
mov dword [ebp - 0x24], 7
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40d990
sub ecx, edx
lea eax, [ebp - 0x20]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x38]
call fcn.004032f0
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0xfc]
push eax
call fcn.0040a4a0
mov edx, dword [ebp - 0x24]
add esp, 0xc
cmp edx, 8
jb 0x40d9fd
mov ecx, dword [ebp - 0x38]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40d9f3
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40ecc7
push edx
push ecx
call fcn.0042142c
add esp, 8
mov edx, dword [ebp - 0x40]
xor eax, eax
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 7
mov word [ebp - 0x38], ax
cmp edx, 8
jb 0x40da4b
mov ecx, dword [ebp - 0x54]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40da41
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40ecc7
push edx
push ecx
call fcn.0042142c
add esp, 8
cmp word [0x440d32], 0
movups xmm0, xmmword [0x440d1c]
movups xmmword [ebp - 0x54], xmm0
movq xmm0, qword [0x440d2c]
movq qword [ebp - 0x44], xmm0
je 0x40db98
xor esi, esi
cmp edi, 2
jl 0x40db70
movaps xmm2, xmmword [0x440580]
mov eax, 0x1f
movaps xmm3, xmmword [0x440a00]
movaps xmm1, xmm2
punpckldq xmm1, xmm2
movaps xmm0, xmm2
punpckhdq xmm0, xmm2
mov esi, 8
pmuldq xmm0, xmm3
pmuldq xmm1, xmm3
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm2
movaps xmm7, xmmword [0x4405a0]
movd xmm4, ebx
psrad xmm1, xmm4
movd xmm5, eax
mov eax, 0x440d1c
movaps xmm0, xmm1
psrld xmm0, xmm5
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x4409f0]
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
movaps xmm2, xmmword [0x4406f0]
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 [ebp - 0x54], xmm1
movaps xmm1, xmm2
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm3
pmuldq xmm1, xmm3
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm2
psrad xmm1, xmm4
movaps xmm0, xmm1
psrld xmm0, xmm5
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x4409f0]
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm0, xmm0, 0xd8
pshufd xmm1, xmm0, 0xd8
movq xmm0, xmm7
paddw xmm1, xmm0
movq xmm0, qword [ebp - 0x4c]
pxor xmm1, xmm0
movq qword [ebp - 0x4c], xmm1
mov eax, 0x8d3dcb09
mov ecx, esi
imul esi
add edx, esi
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
imul eax, eax, 0x3a
sub ecx, eax
add ecx, 0x33
xor word [ebp + esi*2 - 0x54], cx
inc esi
cmp esi, 0xc
jl 0x40db70
lea ecx, [ebp - 0x54]
mov dword [ebp - 0x6c], 0
mov dword [ebp - 0x5c], 0
lea edx, [ecx + 2]
mov dword [ebp - 0x58], 7
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40dbb3
sub ecx, edx
lea eax, [ebp - 0x54]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x6c]
call fcn.004032f0
movups xmm0, xmmword [0x440cfc]
movups xmmword [ebp - 0x20], xmm0
movups xmm0, xmmword [0x440d0c]
pextrw eax, xmm0, 7
movups xmmword [ebp - 0x10], xmm0
test ax, ax
je 0x40dd32
xor esi, esi
cmp edi, 2
jl 0x40dd13
movaps xmm4, xmmword [0x440580]
mov eax, 0x1f
movaps xmm3, xmmword [0x440a00]
xor ecx, ecx
movaps xmm6, xmmword [0x4409f0]
movd xmm5, ebx
movd xmm7, eax
movd xmm0, ecx
lea eax, [ecx + 4]
pshufd xmm2, xmm0, 0
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
paddd xmm1, xmm2
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 [0x4405a0]
paddw xmm1, xmm0
movq xmm0, qword [ebp + ecx*2 - 0x20]
pxor xmm1, xmm0
movd xmm0, eax
pshufd xmm2, xmm0, 0
movq qword [ebp + ecx*2 - 0x20], 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
paddd xmm1, xmm2
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 [0x4405a0]
paddw xmm1, xmm0
movq xmm0, qword [ebp + ecx*2 - 0x18]
pxor xmm1, xmm0
movq qword [ebp + ecx*2 - 0x18], xmm1
add ecx, 8
cmp ecx, 0x10
jl 0x40dc22
jmp 0x40dd32
mov eax, 0x8d3dcb09
mov ecx, esi
mul esi
shr edx, 5
imul eax, edx, 0x3a
sub ecx, eax
add ecx, 0x33
xor word [ebp + esi*2 - 0x20], cx
inc esi
cmp esi, 0x10
jl 0x40dd13
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x28], 0
lea edx, [ecx + 2]
mov dword [ebp - 0x24], 7
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40dd50
sub ecx, edx
lea eax, [ebp - 0x20]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x38]
call fcn.004032f0
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0xcc]
push eax
call fcn.0040a4a0
mov edx, dword [ebp - 0x24]
add esp, 0xc
cmp edx, 8
jb 0x40ddbd
mov ecx, dword [ebp - 0x38]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40ddb3
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40eccc
push edx
push ecx
call fcn.0042142c
add esp, 8
mov edx, dword [ebp - 0x58]
xor eax, eax
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 7
mov word [ebp - 0x38], ax
cmp edx, 8
jb 0x40de0b
mov ecx, dword [ebp - 0x6c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40de01
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40eccc
push edx
push ecx
call fcn.0042142c
add esp, 8
movups xmm0, xmmword [0x440d54]
mov ax, word [0x440d6c]
xor esi, esi
mov word [ebp - 2], ax
movups xmmword [ebp - 0x1a], xmm0
movq xmm0, qword [0x440d64]
movq qword [ebp - 0xa], xmm0
cmp edi, 2
jl 0x40df30
movaps xmm2, xmmword [0x440580]
mov eax, 0x1f
movaps xmm3, xmmword [0x440a00]
movaps xmm1, xmm2
punpckldq xmm1, xmm2
movaps xmm0, xmm2
punpckhdq xmm0, xmm2
mov esi, 8
pmuldq xmm0, xmm3
pmuldq xmm1, xmm3
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm2
movaps xmm7, xmmword [0x4405a0]
movd xmm4, ebx
psrad xmm1, xmm4
movd xmm5, eax
mov eax, 0x440d54
movaps xmm0, xmm1
psrld xmm0, xmm5
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x4409f0]
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
movaps xmm2, xmmword [0x4406f0]
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 [ebp - 0x1a], xmm1
movaps xmm1, xmm2
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm3
pmuldq xmm1, xmm3
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm2
psrad xmm1, xmm4
movaps xmm0, xmm1
psrld xmm0, xmm5
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x4409f0]
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm0, xmm0, 0xd8
pshufd xmm1, xmm0, 0xd8
movq xmm0, xmm7
paddw xmm1, xmm0
movq xmm0, qword [ebp - 0x12]
pxor xmm1, xmm0
movq qword [ebp - 0x12], xmm1
nop dword [eax]
mov eax, 0x8d3dcb09
mov ecx, esi
imul esi
add edx, esi
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
imul eax, eax, 0x3a
sub ecx, eax
add ecx, 0x33
xor word [ebp + esi*2 - 0x1a], cx
inc esi
cmp esi, 0xd
jl 0x40df30
lea ecx, [ebp - 0x1a]
mov dword [ebp - 0x6c], 0
mov dword [ebp - 0x5c], 0
lea edx, [ecx + 2]
mov dword [ebp - 0x58], 7
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40df73
sub ecx, edx
lea eax, [ebp - 0x1a]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x6c]
call fcn.004032f0
movups xmm0, xmmword [0x440d34]
movups xmmword [ebp - 0x20], xmm0
movups xmm0, xmmword [0x440d44]
pextrw eax, xmm0, 7
movups xmmword [ebp - 0x10], xmm0
test ax, ax
je 0x40e0f2
xor esi, esi
cmp edi, 2
jl 0x40e0d3
movaps xmm4, xmmword [0x440580]
mov eax, 0x1f
movaps xmm3, xmmword [0x440a00]
xor ecx, ecx
movaps xmm6, xmmword [0x4409f0]
movd xmm5, ebx
movd xmm7, eax
movd xmm0, ecx
lea eax, [ecx + 4]
pshufd xmm2, xmm0, 0
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
paddd xmm1, xmm2
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 [0x4405a0]
paddw xmm1, xmm0
movq xmm0, qword [ebp + ecx*2 - 0x20]
pxor xmm1, xmm0
movd xmm0, eax
pshufd xmm2, xmm0, 0
movq qword [ebp + ecx*2 - 0x20], 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
paddd xmm1, xmm2
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 [0x4405a0]
paddw xmm1, xmm0
movq xmm0, qword [ebp + ecx*2 - 0x18]
pxor xmm1, xmm0
movq qword [ebp + ecx*2 - 0x18], xmm1
add ecx, 8
cmp ecx, 0x10
jl 0x40dfe2
jmp 0x40e0f2
mov eax, 0x8d3dcb09
mov ecx, esi
mul esi
shr edx, 5
imul eax, edx, 0x3a
sub ecx, eax
add ecx, 0x33
xor word [ebp + esi*2 - 0x20], cx
inc esi
cmp esi, 0x10
jl 0x40e0d3
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x28], 0
lea edx, [ecx + 2]
mov dword [ebp - 0x24], 7
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40e110
sub ecx, edx
lea eax, [ebp - 0x20]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x38]
call fcn.004032f0
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0xb4]
push eax
call fcn.0040a4a0
mov edx, dword [ebp - 0x24]
add esp, 0xc
cmp edx, 8
jb 0x40e17d
mov ecx, dword [ebp - 0x38]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40e173
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40ecd1
push edx
push ecx
call fcn.0042142c
add esp, 8
mov edx, dword [ebp - 0x58]
xor eax, eax
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 7
mov word [ebp - 0x38], ax
cmp edx, 8
jb 0x40e1cb
mov ecx, dword [ebp - 0x6c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40e1c1
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40ecd1
push edx
push ecx
call fcn.0042142c
add esp, 8
movups xmm0, xmmword [0x440da8]
movups xmmword [ebp - 0x20], xmm0
movups xmm0, xmmword [0x440db8]
pextrw eax, xmm0, 7
movups xmmword [ebp - 0x10], xmm0
test ax, ax
je 0x40e330
xor esi, esi
cmp edi, 2
jl 0x40e311
movaps xmm4, xmmword [0x440580]
mov eax, 0x1f
movaps xmm3, xmmword [0x440a00]
xor ecx, ecx
movaps xmm6, xmmword [0x4409f0]
movd xmm5, ebx
movd xmm7, eax
nop
movd xmm0, ecx
lea eax, [ecx + 4]
pshufd xmm2, xmm0, 0
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
paddd xmm1, xmm2
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 [0x4405a0]
paddw xmm1, xmm0
movq xmm0, qword [ebp + ecx*2 - 0x20]
pxor xmm1, xmm0
movd xmm0, eax
pshufd xmm2, xmm0, 0
movq qword [ebp + ecx*2 - 0x20], 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
paddd xmm1, xmm2
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 [0x4405a0]
paddw xmm1, xmm0
movq xmm0, qword [ebp + ecx*2 - 0x18]
pxor xmm1, xmm0
movq qword [ebp + ecx*2 - 0x18], xmm1
add ecx, 8
cmp ecx, 0x10
jl 0x40e220
jmp 0x40e330
mov eax, 0x8d3dcb09
mov ecx, esi
mul esi
shr edx, 5
imul eax, edx, 0x3a
sub ecx, eax
add ecx, 0x33
xor word [ebp + esi*2 - 0x20], cx
inc esi
cmp esi, 0x10
jl 0x40e311
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x84], 0
mov dword [ebp - 0x74], 0
lea edx, [ecx + 2]
mov dword [ebp - 0x70], 7
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40e350
sub ecx, edx
lea eax, [ebp - 0x20]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x84]
call fcn.004032f0
cmp word [str._OyZB__KXT_OZv], 0
movups xmm0, xmmword [0x440d8c]
mov eax, dword [0x440da4]
mov dword [ebp - 4], eax
movups xmmword [ebp - 0x1c], xmm0
movq xmm0, qword [0x440d9c]
movq qword [ebp - 0xc], xmm0
je 0x40e4c8
xor esi, esi
cmp edi, 2
jl 0x40e4a0
movaps xmm2, xmmword [0x440580]
mov eax, 0x1f
movaps xmm3, xmmword [0x440a00]
movaps xmm1, xmm2
punpckldq xmm1, xmm2
movaps xmm0, xmm2
punpckhdq xmm0, xmm2
mov esi, 8
pmuldq xmm0, xmm3
pmuldq xmm1, xmm3
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm2
movaps xmm7, xmmword [0x4405a0]
movd xmm4, ebx
psrad xmm1, xmm4
movd xmm5, eax
mov eax, 0x440d8c
movaps xmm0, xmm1
psrld xmm0, xmm5
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x4409f0]
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
movaps xmm2, xmmword [0x4406f0]
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 [ebp - 0x1c], xmm1
movaps xmm1, xmm2
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm3
pmuldq xmm1, xmm3
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm2
psrad xmm1, xmm4
movaps xmm0, xmm1
psrld xmm0, xmm5
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x4409f0]
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm0, xmm0, 0xd8
pshufd xmm1, xmm0, 0xd8
movq xmm0, xmm7
paddw xmm1, xmm0
movq xmm0, qword [ebp - 0x14]
pxor xmm1, xmm0
movq qword [ebp - 0x14], xmm1
nop dword [eax]
mov eax, 0x8d3dcb09
mov ecx, esi
imul esi
add edx, esi
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
imul eax, eax, 0x3a
sub ecx, eax
add ecx, 0x33
xor word [ebp + esi*2 - 0x1c], cx
inc esi
cmp esi, 0xe
jl 0x40e4a0
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0xe4], 0
mov dword [ebp - 0xd4], 0
lea edx, [ecx + 2]
mov dword [ebp - 0xd0], 7
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40e4f0
sub ecx, edx
lea eax, [ebp - 0x1c]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0xe4]
call fcn.004032f0
movups xmm0, xmmword [str.wF_RkHR_Q]
mov ax, word [0x440d88]
xor esi, esi
mov word [ebp - 2], ax
movups xmmword [ebp - 0x1a], xmm0
movq xmm0, qword [0x440d80]
movq qword [ebp - 0xa], xmm0
cmp edi, 2
jl 0x40e630
movaps xmm2, xmmword [0x440580]
mov eax, 0x1f
movaps xmm3, xmmword [0x440a00]
movaps xmm1, xmm2
punpckldq xmm1, xmm2
movaps xmm0, xmm2
punpckhdq xmm0, xmm2
mov esi, 8
pmuldq xmm0, xmm3
pmuldq xmm1, xmm3
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm2
movaps xmm7, xmmword [0x4405a0]
movd xmm4, ebx
psrad xmm1, xmm4
movd xmm5, eax
mov eax, str.wF_RkHR_Q
movaps xmm0, xmm1
psrld xmm0, xmm5
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x4409f0]
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
movaps xmm2, xmmword [0x4406f0]
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 [ebp - 0x1a], xmm1
movaps xmm1, xmm2
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm3
pmuldq xmm1, xmm3
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm2
psrad xmm1, xmm4
movaps xmm0, xmm1
psrld xmm0, xmm5
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x4409f0]
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm0, xmm0, 0xd8
pshufd xmm1, xmm0, 0xd8
movq xmm0, xmm7
paddw xmm1, xmm0
movq xmm0, qword [ebp - 0x12]
pxor xmm1, xmm0
movq qword [ebp - 0x12], xmm1
mov eax, 0x8d3dcb09
mov ecx, esi
imul esi
add edx, esi
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
imul eax, eax, 0x3a
sub ecx, eax
add ecx, 0x33
xor word [ebp + esi*2 - 0x1a], cx
inc esi
cmp esi, 0xd
jl 0x40e630
lea ecx, [ebp - 0x1a]
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x28], 0
lea edx, [ecx + 2]
mov dword [ebp - 0x24], 7
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40e673
sub ecx, edx
lea eax, [ebp - 0x1a]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x38]
call fcn.004032f0
cmp dword [ebp - 0xe8], 8
lea eax, [ebp - 0xfc]
push dword [ebp - 0xec]
cmovae eax, dword [ebp - 0xfc]
lea ecx, [ebp - 0x38]
push eax
call fcn.0040ab50
xor ecx, ecx
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x18], xmm0
movq xmm0, qword [eax + 0x10]
mov word [eax], cx
lea ecx, [ebp - 0x54]
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
lea eax, [ebp - 0xe4]
push eax
lea eax, [ebp - 0x18]
movq qword [ebp - 8], xmm0
push eax
push dword [ebp - 0x3c]
call fcn.0040c950
cmp dword [ebp - 0xb8], 8
lea eax, [ebp - 0xcc]
push dword [ebp - 0xbc]
cmovae eax, dword [ebp - 0xcc]
lea ecx, [ebp - 0x54]
push eax
call fcn.0040ab50
xor ecx, ecx
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x114], xmm0
movq xmm0, qword [eax + 0x10]
mov word [eax], cx
lea ecx, [ebp - 0x6c]
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
lea eax, [ebp - 0x84]
push eax
lea eax, [ebp - 0x114]
movq qword [ebp - 0x104], xmm0
push eax
push dword [ebp - 0x3c]
call fcn.0040c950
cmp dword [ebp - 0xa0], 8
lea eax, [ebp - 0xb4]
push dword [ebp - 0xa4]
cmovae eax, dword [ebp - 0xb4]
lea ecx, [ebp - 0x6c]
push eax
call fcn.0040ab50
xor ecx, ecx
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x9c], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x8c], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
mov edx, dword [ebp - 0x58]
cmp edx, 8
jb 0x40e7d9
mov ecx, dword [ebp - 0x6c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40e7cf
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40ecd6
push edx
push ecx
call fcn.0042142c
add esp, 8
mov edx, dword [ebp - 0x100]
xor eax, eax
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x58], 7
mov word [ebp - 0x6c], ax
cmp edx, 8
jb 0x40e82d
mov ecx, dword [ebp - 0x114]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40e823
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40ecd6
push edx
push ecx
call fcn.0042142c
add esp, 8
mov edx, dword [ebp - 0x40]
cmp edx, 8
jb 0x40e867
mov ecx, dword [ebp - 0x54]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40e85d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40ecd6
push edx
push ecx
call fcn.0042142c
add esp, 8
mov edx, dword [ebp - 4]
xor eax, eax
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x40], 7
mov word [ebp - 0x54], ax
cmp edx, 8
jb 0x40e8b5
mov ecx, dword [ebp - 0x18]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40e8ab
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40ecd6
push edx
push ecx
call fcn.0042142c
add esp, 8
mov edx, dword [ebp - 0x24]
cmp edx, 8
jb 0x40e8ef
mov ecx, dword [ebp - 0x38]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40e8e5
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40ecd6
push edx
push ecx
call fcn.0042142c
add esp, 8
mov edx, dword [ebp - 0xd0]
xor eax, eax
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 7
mov word [ebp - 0x38], ax
cmp edx, 8
jb 0x40e943
mov ecx, dword [ebp - 0xe4]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40e939
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40ecd6
push edx
push ecx
call fcn.0042142c
add esp, 8
mov edx, dword [ebp - 0x70]
cmp edx, 8
jb 0x40e980
mov ecx, dword [ebp - 0x84]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40e976
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40ecd6
push edx
push ecx
call fcn.0042142c
add esp, 8
cmp dword [ebp - 0x88], 8
lea ecx, [ebp - 0x9c]
mov eax, dword [ebp - 0x8c]
lea ebx, [ebp - 0x9c]
cmovae ecx, dword [ebp - 0x9c]
cmovae ebx, dword [ebp - 0x9c]
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x28], 0
lea esi, [ecx + eax*2]
mov dword [ebp - 0x24], 0xf
mov eax, esi
lea ecx, [ebp - 0x38]
sub eax, ebx
sar eax, 1
push eax
call fcn.0040a240
mov byte [ebp - 0x3c], 0
lea ecx, [ebp - 0x38]
push dword [ebp - 0x3c]
push esi
push ebx
call fcn.0040b070
cmp dword [ebp - 0x24], 0x10
lea eax, [ebp - 0x38]
mov esi, dword [ebp - 0x28]
lea ecx, [ebp - 0x54]
cmovae eax, dword [ebp - 0x38]
mov dword [ebp - 0x3c], eax
cmp esi, 0x10
jae 0x40ea10
movups xmm0, xmmword [eax]
mov edi, 0xf
mov dword [ebp - 0x44], esi
mov ebx, ecx
mov dword [ebp - 0x40], edi
movups xmmword [ebp - 0x54], xmm0
mov esi, ebx
jmp 0x40ea56
mov edi, esi
mov eax, SysReAllocString
or edi, 0xf
cmp edi, eax
cmova edi, eax
lea eax, [edi + 1]
push eax
call fcn.004017c0
lea ecx, [esi + 1]
mov ebx, eax
push ecx
push dword [ebp - 0x3c]
mov dword [ebp - 0x54], ebx
push ebx
call fcn.00422410
add esp, 0xc
mov dword [ebp - 0x44], esi
mov dword [ebp - 0x40], edi
lea esi, [ebp - 0x54]
cmp edi, 0x10
jb 0x40ea51
mov esi, ebx
mov ecx, ebx
jmp 0x40ea56
lea ecx, [ebp - 0x54]
mov ebx, esi
mov eax, dword [ebp - 0x28]
add eax, ecx
mov dword [ebp - 0x3c], eax
cmp ebx, eax
je 0x40ea7a
mov edi, eax
movsx eax, byte [esi]
push eax
call fcn.00429452
mov byte [esi], al
add esp, 4
inc esi
cmp esi, edi
jne 0x40ea64
mov edi, dword [ebp - 0x40]
cmp edi, 0x10
mov dword [ebp - 0x84], 0
lea edx, [ebp - 0x54]
mov dword [ebp - 0x74], 0
cmovae edx, dword [ebp - 0x54]
mov ecx, edx
mov dword [ebp - 0x70], 0xf
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40eaa1
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x84]
call fcn.00401820
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x84]
push eax
push esi
call fcn.0040ed00
mov edx, dword [ebp - 0x70]
add esp, 8
cmp edx, 0x10
jb 0x40eb01
mov ecx, dword [ebp - 0x84]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40eaf7
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40ecdb
push edx
push ecx
call fcn.0042142c
add esp, 8
mov edx, dword [ebp - 0x40]
cmp edx, 0x10
jb 0x40eb35
mov ecx, dword [ebp - 0x54]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40eb2b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40ecdb
push edx
push ecx
call fcn.0042142c
add esp, 8
mov eax, dword [ebp - 0x24]
cmp eax, 0x10
jb 0x40eb6b
mov ecx, dword [ebp - 0x38]
lea edx, [eax + 1]
mov eax, ecx
cmp edx, 0x1000
jb 0x40eb61
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40ecdb
push edx
push ecx
call fcn.0042142c
add esp, 8
mov edx, dword [ebp - 0x88]
cmp edx, 8
jb 0x40ebab
mov ecx, dword [ebp - 0x9c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40eba1
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40ecdb
push edx
push ecx
call fcn.0042142c
add esp, 8
mov edx, dword [ebp - 0xa0]
xor eax, eax
mov dword [ebp - 0x8c], 0
mov dword [ebp - 0x88], 7
mov word [ebp - 0x9c], ax
cmp edx, 8
jb 0x40ec08
mov ecx, dword [ebp - 0xb4]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40ebfe
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40ecdb
push edx
push ecx
call fcn.0042142c
add esp, 8
mov edx, dword [ebp - 0xb8]
xor eax, eax
mov dword [ebp - 0xa4], 0
mov dword [ebp - 0xa0], 7
mov word [ebp - 0xb4], ax
cmp edx, 8
jb 0x40ec65
mov ecx, dword [ebp - 0xcc]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40ec5b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40ecdb
push edx
push ecx
call fcn.0042142c
add esp, 8
mov edx, dword [ebp - 0xe8]
xor eax, eax
mov dword [ebp - 0xbc], 0
mov dword [ebp - 0xb8], 7
mov word [ebp - 0xcc], ax
cmp edx, 8
jb 0x40ecbe
mov ecx, dword [ebp - 0xfc]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40ecb4
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40ecdb
push edx
push ecx
call fcn.0042142c
add esp, 8
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.0042596f
call fcn.0042596f
call fcn.0042596f
call fcn.0042596f
call fcn.0042596f
int3