Function at 0x4013c0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x258
push esi
mov eax, ecx
mov ecx, dword [ebp + 0x14]
mov dword [esp + 0x1c], eax
push edi
mov edi, edx
mov dword [esp + 0x28], edi
cmp eax, 0x100
jb 0x401e50
movd xmm0, dword [edi]
pshufd xmm1, xmm0, 0
movd xmm0, dword [edi + 4]
pshufd xmm2, xmm0, 0
movd xmm0, dword [edi + 8]
pshufd xmm3, xmm0, 0
movd xmm0, dword [edi + 0xc]
pshufd xmm4, xmm0, 0
movd xmm0, dword [edi + 0x10]
pshufd xmm5, xmm0, 0
movd xmm0, dword [edi + 0x14]
mov esi, dword [ebp + 8]
pshufd xmm6, xmm0, 0
movd xmm0, dword [edi + 0x18]
mov edx, dword [ebp + 0xc]
pshufd xmm7, xmm0, 0
lea ecx, [esi + 0xc0]
movd xmm0, dword [edi + 0x1c]
pshufd xmm0, xmm0, 0
movaps xmmword [esp + 0x130], xmm0
movd xmm0, dword [edi + 0x20]
pshufd xmm0, xmm0, 0
movaps xmmword [esp + 0x140], xmm0
movd xmm0, dword [edi + 0x24]
pshufd xmm0, xmm0, 0
movaps xmmword [esp + 0x150], xmm0
movd xmm0, dword [edi + 0x28]
pshufd xmm0, xmm0, 0
movaps xmmword [esp + 0x160], xmm0
movd xmm0, dword [edi + 0x2c]
mov dword [esp + 0xc], ecx
lea ecx, [edx + 0xc0]
pshufd xmm0, xmm0, 0
mov dword [esp + 0x1c], ecx
lea ecx, [esi + 0x80]
movaps xmmword [esp + 0x170], xmm0
movd xmm0, dword [edi + 0x38]
mov dword [esp + 0x14], ecx
lea ecx, [edx + 0x80]
pshufd xmm0, xmm0, 0
mov dword [esp + 0x18], ecx
lea ecx, [esi + 0x40]
movaps xmmword [esp + 0x180], xmm0
movd xmm0, dword [edi + 0x3c]
mov dword [esp + 0x2c], ecx
lea ecx, [edx + 0x40]
pshufd xmm0, xmm0, 0
shr eax, 8
movaps xmmword [esp + 0x1a0], xmm1
movaps xmmword [esp + 0x1b0], xmm2
movaps xmmword [esp + 0x1c0], xmm3
movaps xmmword [esp + 0x1d0], xmm4
movaps xmmword [esp + 0x1e0], xmm5
movaps xmmword [esp + 0x1f0], xmm6
movaps xmmword [esp + 0x200], xmm7
movaps xmmword [esp + 0x190], xmm0
mov dword [esp + 0x10], ecx
mov dword [esp + 0x24], eax
nop word [eax + eax]
movaps xmm0, xmmword [esp + 0x130]
xor eax, eax
or eax, dword [edi + 0x30]
mov ecx, dword [edi + 0x34]
movaps xmmword [esp + 0x80], xmm0
movaps xmm0, xmmword [esp + 0x140]
movaps xmmword [esp + 0x90], xmm0
movaps xmm0, xmmword [esp + 0x150]
movaps xmmword [esp + 0x60], xmm0
movaps xmm0, xmmword [esp + 0x160]
movaps xmmword [esp + 0x110], xmm0
movaps xmm0, xmmword [esp + 0x170]
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x48], eax
add eax, 4
movaps xmmword [esp + 0xd0], xmm1
movq xmm1, qword [esp + 0x48]
adc ecx, 0
movaps xmmword [esp + 0x120], xmm0
movaps xmm0, xmmword [esp + 0x190]
movaps xmmword [esp + 0xe0], xmm2
movaps xmm2, xmmword [0x41f5e0]
punpcklqdq xmm1, xmm1
movaps xmmword [esp + 0x30], xmm0
paddq xmm2, xmm1
movaps xmm0, xmmword [0x41f5f0]
movaps xmmword [esp + 0xa0], xmm4
paddq xmm0, xmm1
movaps xmm4, xmm2
movaps xmmword [esp + 0x100], xmm6
punpckldq xmm4, xmm0
punpckhdq xmm2, xmm0
movaps xmm6, xmm4
movaps xmmword [esp + 0xf0], xmm3
movaps xmm3, xmm5
movaps xmm5, xmmword [esp + 0x180]
punpckldq xmm6, xmm2
movaps xmmword [esp + 0x70], xmm7
movaps xmm7, xmm6
punpckhdq xmm4, xmm2
mov dword [edi + 0x34], ecx
mov ecx, dword [ebp + 0x14]
movaps xmmword [esp + 0x50], xmm3
movaps xmmword [esp + 0xc0], xmm5
movaps xmmword [esp + 0xb0], xmm4
movaps xmmword [esp + 0x240], xmm7
movaps xmmword [esp + 0x250], xmm4
mov dword [edi + 0x30], eax
test ecx, ecx
je 0x401ac9
movaps xmm7, xmmword [esp + 0x70]
mov eax, ecx
nop
movaps xmm2, xmm3
paddd xmm2, xmmword [esp + 0xd0]
pxor xmm6, xmm2
pshufb xmm6, xmmword [0x41f600]
movaps xmm3, xmm6
paddd xmm3, xmmword [esp + 0x90]
movaps xmm0, xmm3
pxor xmm0, xmmword [esp + 0x50]
movaps xmm1, xmm0
pslld xmm0, 0xc
psrld xmm1, 0x14
por xmm1, xmm0
movaps xmm0, xmm1
paddd xmm0, xmm2
movaps xmm2, xmmword [esp + 0x100]
paddd xmm2, xmmword [esp + 0xe0]
pxor xmm6, xmm0
pshufb xmm6, xmmword [0x41f610]
movaps xmmword [esp + 0x90], xmm0
pxor xmm4, xmm2
pshufb xmm4, xmmword [0x41f600]
movaps xmm0, xmm6
movaps xmmword [esp + 0x70], xmm6
paddd xmm0, xmm3
movaps xmm3, xmm4
paddd xmm3, xmmword [esp + 0x60]
movaps xmmword [esp + 0x210], xmm0
pxor xmm0, xmm1
movaps xmm1, xmm0
pslld xmm0, 7
psrld xmm1, 0x19
por xmm1, xmm0
movaps xmm0, xmm3
pxor xmm0, xmmword [esp + 0x100]
movaps xmmword [esp + 0x220], xmm1
movaps xmm1, xmm0
pslld xmm0, 0xc
psrld xmm1, 0x14
por xmm1, xmm0
movaps xmm0, xmm1
paddd xmm0, xmm2
movaps xmm2, xmm7
paddd xmm2, xmmword [esp + 0xf0]
pxor xmm4, xmm0
pshufb xmm4, xmmword [0x41f610]
movaps xmmword [esp + 0x60], xmm0
pxor xmm5, xmm2
pshufb xmm5, xmmword [0x41f600]
movaps xmm0, xmm4
movaps xmmword [esp + 0xb0], xmm4
paddd xmm0, xmm3
movaps xmm3, xmm5
paddd xmm3, xmmword [esp + 0x110]
movaps xmmword [esp + 0x230], xmm0
pxor xmm0, xmm1
movaps xmm6, xmm0
pslld xmm0, 7
psrld xmm6, 0x19
por xmm6, xmm0
movaps xmm0, xmm3
pxor xmm0, xmm7
movaps xmm1, xmm0
pslld xmm0, 0xc
psrld xmm1, 0x14
por xmm1, xmm0
movaps xmm0, xmm1
paddd xmm0, xmm2
movaps xmm2, xmmword [esp + 0x80]
paddd xmm2, xmmword [esp + 0xa0]
pxor xmm5, xmm0
pshufb xmm5, xmmword [0x41f610]
movaps xmmword [esp + 0x50], xmm0
movaps xmm4, xmm5
movaps xmmword [esp + 0xc0], xmm5
paddd xmm4, xmm3
movaps xmm0, xmm4
pxor xmm0, xmm1
movaps xmm7, xmm0
pslld xmm0, 7
psrld xmm7, 0x19
por xmm7, xmm0
movaps xmm5, xmmword [esp + 0x30]
pxor xmm5, xmm2
pshufb xmm5, xmmword [0x41f600]
movaps xmm3, xmm5
paddd xmm3, xmmword [esp + 0x120]
movaps xmm0, xmm3
pxor xmm0, xmmword [esp + 0x80]
movaps xmm1, xmm0
pslld xmm0, 0xc
psrld xmm1, 0x14
por xmm1, xmm0
movaps xmm0, xmm1
paddd xmm0, xmm2
movaps xmm2, xmm6
pxor xmm5, xmm0
paddd xmm2, xmmword [esp + 0x90]
pshufb xmm5, xmmword [0x41f610]
movaps xmmword [esp + 0xa0], xmm0
movaps xmmword [esp + 0x30], xmm5
paddd xmm5, xmm3
movaps xmm0, xmm5
pxor xmm0, xmm1
movaps xmm1, xmm0
pslld xmm0, 7
psrld xmm1, 0x19
por xmm1, xmm0
movaps xmm0, xmmword [esp + 0x30]
pxor xmm0, xmm2
movaps xmmword [esp + 0x80], xmm1
pshufb xmm0, xmmword [0x41f600]
movaps xmm3, xmm0
movaps xmmword [esp + 0x30], xmm0
paddd xmm3, xmm4
movaps xmm0, xmm3
pxor xmm0, xmm6
movaps xmm6, xmmword [esp + 0x70]
movaps xmm1, xmm0
pslld xmm0, 0xc
psrld xmm1, 0x14
por xmm1, xmm0
movaps xmm0, xmmword [esp + 0x30]
movaps xmm4, xmm1
paddd xmm4, xmm2
movaps xmm2, xmm7
paddd xmm2, xmmword [esp + 0x60]
pxor xmm0, xmm4
pshufb xmm0, xmmword [0x41f610]
pxor xmm6, xmm2
movaps xmmword [esp + 0xd0], xmm4
pshufb xmm6, xmmword [0x41f600]
movaps xmmword [esp + 0x30], xmm0
paddd xmm0, xmm3
movaps xmmword [esp + 0x110], xmm0
movaps xmm3, xmm6
pxor xmm0, xmm1
paddd xmm3, xmm5
movaps xmm1, xmm0
pslld xmm0, 7
psrld xmm1, 0x19
por xmm1, xmm0
movaps xmm0, xmm3
pxor xmm0, xmm7
movaps xmmword [esp + 0x100], xmm1
movaps xmm1, xmm0
pslld xmm0, 0xc
psrld xmm1, 0x14
por xmm1, xmm0
movaps xmm0, xmm1
paddd xmm0, xmm2
movaps xmm2, xmmword [esp + 0x80]
pxor xmm6, xmm0
movaps xmmword [esp + 0xe0], xmm0
pshufb xmm6, xmmword [0x41f610]
movaps xmm0, xmm6
paddd xmm0, xmm3
movaps xmmword [esp + 0x120], xmm0
pxor xmm0, xmm1
movaps xmm7, xmm0
pslld xmm0, 7
psrld xmm7, 0x19
por xmm7, xmm0
paddd xmm2, xmmword [esp + 0x50]
movaps xmm4, xmmword [esp + 0xb0]
movaps xmm5, xmmword [esp + 0xc0]
pxor xmm4, xmm2
pshufb xmm4, xmmword [0x41f600]
movaps xmm3, xmm4
paddd xmm3, xmmword [esp + 0x210]
movaps xmm0, xmm3
pxor xmm0, xmmword [esp + 0x80]
movaps xmm1, xmm0
pslld xmm0, 0xc
psrld xmm1, 0x14
por xmm1, xmm0
movaps xmm0, xmm1
paddd xmm0, xmm2
movaps xmm2, xmmword [esp + 0x220]
paddd xmm2, xmmword [esp + 0xa0]
pxor xmm4, xmm0
movaps xmmword [esp + 0xf0], xmm0
pxor xmm5, xmm2
pshufb xmm4, xmmword [0x41f610]
pshufb xmm5, xmmword [0x41f600]
movaps xmmword [esp + 0xb0], xmm4
movaps xmm0, xmm4
paddd xmm0, xmm3
movaps xmm3, xmm5
paddd xmm3, xmmword [esp + 0x230]
movaps xmmword [esp + 0x90], xmm0
pxor xmm0, xmm1
movaps xmm1, xmm0
pslld xmm0, 7
psrld xmm1, 0x19
por xmm1, xmm0
movaps xmm0, xmm3
pxor xmm0, xmmword [esp + 0x220]
movaps xmmword [esp + 0x80], xmm1
movaps xmm1, xmm0
pslld xmm0, 0xc
psrld xmm1, 0x14
por xmm1, xmm0
movaps xmm0, xmm1
paddd xmm0, xmm2
movaps xmmword [esp + 0xa0], xmm0
pxor xmm5, xmm0
pshufb xmm5, xmmword [0x41f610]
movaps xmmword [esp + 0xc0], xmm5
movaps xmm0, xmm5
paddd xmm0, xmm3
movaps xmmword [esp + 0x60], xmm0
pxor xmm0, xmm1
movaps xmm3, xmm0
pslld xmm0, 7
psrld xmm3, 0x19
por xmm3, xmm0
movaps xmmword [esp + 0x50], xmm3
sub eax, 1
jne 0x401650
movaps xmmword [esp + 0x70], xmm7
movaps xmm7, xmmword [esp + 0x240]
movaps xmm5, xmmword [esp + 0x1a0]
paddd xmm5, xmmword [esp + 0xd0]
movaps xmm4, xmmword [esp + 0x1c0]
movaps xmm3, xmm5
paddd xmm4, xmmword [esp + 0xf0]
movaps xmm1, xmmword [esp + 0x1b0]
movaps xmm2, xmm4
paddd xmm1, xmmword [esp + 0xe0]
movaps xmm0, xmmword [esp + 0x1d0]
paddd xmm0, xmmword [esp + 0xa0]
mov eax, dword [esp + 0x2c]
mov edi, dword [esp + 0x14]
punpckldq xmm3, xmm1
punpckhdq xmm5, xmm1
movaps xmm1, xmm3
punpckhdq xmm4, xmm0
punpckldq xmm2, xmm0
movups xmm0, xmmword [esi]
add dword [esp + 0x14], 0x10
punpcklqdq xmm1, xmm2
pxor xmm1, xmm0
punpckhqdq xmm3, xmm2
movups xmmword [edx], xmm1
movups xmm0, xmmword [eax]
mov eax, dword [esp + 0x10]
movaps xmm1, xmm5
punpckhqdq xmm5, xmm4
pxor xmm3, xmm0
punpcklqdq xmm1, xmm4
movaps xmm4, xmmword [esp + 0x200]
movups xmmword [eax], xmm3
add eax, 0x10
movups xmm0, xmmword [edi]
mov edi, dword [esp + 0x18]
paddd xmm4, xmmword [esp + 0x70]
pxor xmm1, xmm0
add dword [esp + 0x18], 0x10
movaps xmm2, xmm4
mov dword [esp + 0x10], eax
movups xmmword [edi], xmm1
mov edi, dword [esp + 0xc]
movaps xmm1, xmmword [esp + 0x1f0]
paddd xmm1, xmmword [esp + 0x100]
add dword [esp + 0xc], 0x10
movups xmm0, xmmword [edi]
mov edi, dword [esp + 0x1c]
add dword [esp + 0x1c], 0x10
pxor xmm5, xmm0
movaps xmm0, xmmword [esp + 0x130]
paddd xmm0, xmmword [esp + 0x80]
movups xmmword [edi], xmm5
mov edi, dword [esp + 0x2c]
movaps xmm5, xmmword [esp + 0x1e0]
paddd xmm5, xmmword [esp + 0x50]
movaps xmm3, xmm5
punpckldq xmm2, xmm0
punpckldq xmm3, xmm1
punpckhdq xmm5, xmm1
movaps xmm1, xmm3
punpckhdq xmm4, xmm0
movups xmm0, xmmword [esi + 0x10]
punpcklqdq xmm1, xmm2
pxor xmm1, xmm0
punpckhqdq xmm3, xmm2
movups xmmword [edx + 0x10], xmm1
movups xmm0, xmmword [edi + 0x10]
movaps xmm1, xmm5
punpckhqdq xmm5, xmm4
pxor xmm3, xmm0
punpcklqdq xmm1, xmm4
movups xmmword [eax], xmm3
mov eax, dword [esp + 0x14]
movups xmm0, xmmword [eax]
mov eax, dword [esp + 0x18]
pxor xmm1, xmm0
movups xmmword [eax], xmm1
mov eax, dword [esp + 0xc]
movups xmm0, xmmword [eax]
mov eax, dword [esp + 0x1c]
pxor xmm5, xmm0
movups xmmword [eax], xmm5
movaps xmm5, xmmword [esp + 0x140]
paddd xmm7, xmm6
paddd xmm5, xmmword [esp + 0x90]
movaps xmm4, xmmword [esp + 0x160]
movaps xmm3, xmm5
paddd xmm4, xmmword [esp + 0x110]
movaps xmm1, xmmword [esp + 0x150]
movaps xmm2, xmm4
paddd xmm1, xmmword [esp + 0x60]
movaps xmm0, xmmword [esp + 0x170]
paddd xmm0, xmmword [esp + 0x120]
add dword [esp + 0x10], 0x10
mov eax, dword [esp + 0x10]
add dword [esp + 0x14], 0x10
punpckldq xmm3, xmm1
add dword [esp + 0x18], 0x10
punpckhdq xmm5, xmm1
movaps xmm1, xmm3
punpckhdq xmm4, xmm0
punpckldq xmm2, xmm0
movups xmm0, xmmword [esi + 0x20]
add dword [esp + 0xc], 0x10
punpcklqdq xmm1, xmm2
pxor xmm1, xmm0
add dword [esp + 0x1c], 0x10
movups xmmword [edx + 0x20], xmm1
movups xmm0, xmmword [edi + 0x20]
punpckhqdq xmm3, xmm2
movaps xmm1, xmm5
pxor xmm3, xmm0
punpcklqdq xmm1, xmm4
movups xmmword [eax], xmm3
mov eax, dword [esp + 0x14]
add dword [esp + 0x14], 0x10
movaps xmm3, xmm7
punpckhqdq xmm5, xmm4
movaps xmm4, xmmword [esp + 0x180]
movups xmm0, xmmword [eax]
mov eax, dword [esp + 0x18]
paddd xmm4, xmmword [esp + 0xc0]
pxor xmm1, xmm0
add dword [esp + 0x18], 0x10
movaps xmm2, xmm4
movups xmmword [eax], xmm1
mov eax, dword [esp + 0xc]
movaps xmm1, xmmword [esp + 0x250]
paddd xmm1, xmmword [esp + 0xb0]
add dword [esp + 0xc], 0x10
movups xmm0, xmmword [eax]
mov eax, dword [esp + 0x1c]
punpckldq xmm3, xmm1
pxor xmm5, xmm0
punpckhdq xmm7, xmm1
movaps xmm0, xmmword [esp + 0x190]
movaps xmm1, xmm3
paddd xmm0, xmmword [esp + 0x30]
movups xmmword [eax], xmm5
mov eax, dword [esp + 0x10]
punpckldq xmm2, xmm0
add eax, 0x10
punpckhdq xmm4, xmm0
movups xmm0, xmmword [esi + 0x30]
add dword [esp + 0x1c], 0x10
punpcklqdq xmm1, xmm2
pxor xmm1, xmm0
punpckhqdq xmm3, xmm2
movups xmmword [edx + 0x30], xmm1
mov dword [esp + 0x10], eax
movups xmm0, xmmword [edi + 0x30]
movaps xmm1, xmm7
punpckhqdq xmm7, xmm4
pxor xmm3, xmm0
punpcklqdq xmm1, xmm4
movups xmmword [eax], xmm3
mov eax, dword [esp + 0x14]
movups xmm0, xmmword [eax]
mov eax, dword [esp + 0x18]
pxor xmm1, xmm0
movups xmmword [eax], xmm1
mov eax, dword [esp + 0xc]
movups xmm0, xmmword [eax]
mov eax, dword [esp + 0x1c]
pxor xmm7, xmm0
add dword [esp + 0x10], 0xd0
add edi, 0x100
add dword [esp + 0x18], 0xd0
add edx, 0x100
add dword [esp + 0x1c], 0xd0
add esi, 0x100
add dword [esp + 0x14], 0xd0
add dword [esp + 0xc], 0xd0
movaps xmm1, xmmword [esp + 0x1a0]
movaps xmm2, xmmword [esp + 0x1b0]
movaps xmm3, xmmword [esp + 0x1c0]
movaps xmm4, xmmword [esp + 0x1d0]
movaps xmm5, xmmword [esp + 0x1e0]
movaps xmm6, xmmword [esp + 0x1f0]
movups xmmword [eax], xmm7
mov eax, dword [esp + 0x20]
movaps xmm7, xmmword [esp + 0x200]
sub eax, 0x100
sub dword [esp + 0x24], 1
mov dword [esp + 0x2c], edi
mov edi, dword [esp + 0x28]
mov dword [esp + 0x20], eax
jne 0x401530
jmp 0x401e56
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [esp + 0x10], edx
cmp eax, 0x40
jb 0x401ffd
shr eax, 6
mov dword [esp + 0x24], eax
nop word [eax + eax]
movups xmm6, xmmword [edi]
movups xmm2, xmmword [edi + 0x10]
movups xmm7, xmmword [edi + 0x20]
movups xmm5, xmmword [edi + 0x30]
test ecx, ecx
je 0x401f7d
mov eax, ecx
nop dword [eax]
movaps xmm3, xmm2
paddd xmm3, xmm6
pxor xmm5, xmm3
pshufb xmm5, xmmword [0x41f600]
movaps xmm4, xmm5
paddd xmm4, xmm7
movaps xmm0, xmm4
pxor xmm0, xmm2
movaps xmm1, xmm0
pslld xmm0, 0xc
psrld xmm1, 0x14
pxor xmm1, xmm0
movaps xmm2, xmm1
paddd xmm2, xmm3
pxor xmm5, xmm2
pshufd xmm2, xmm2, 0x93
pshufb xmm5, xmmword [0x41f610]
movaps xmm3, xmm5
pshufd xmm5, xmm5, 0x4e
paddd xmm3, xmm4
pshufd xmm4, xmm3, 0x39
movaps xmm0, xmm3
pxor xmm0, xmm1
movaps xmm1, xmm0
pslld xmm0, 7
psrld xmm1, 0x19
pxor xmm1, xmm0
paddd xmm2, xmm1
pxor xmm5, xmm2
pshufb xmm5, xmmword [0x41f600]
paddd xmm4, xmm5
movaps xmm0, xmm4
pxor xmm0, xmm1
movaps xmm3, xmm0
pslld xmm0, 0xc
psrld xmm3, 0x14
pxor xmm3, xmm0
movaps xmm0, xmm3
paddd xmm0, xmm2
pshufd xmm6, xmm0, 0x39
pxor xmm5, xmm0
pshufb xmm5, xmmword [0x41f610]
movaps xmm0, xmm5
pshufd xmm5, xmm5, 0x4e
paddd xmm0, xmm4
pshufd xmm7, xmm0, 0x93
movaps xmm1, xmm0
pxor xmm1, xmm3
movaps xmm2, xmm1
pslld xmm1, 7
psrld xmm2, 0x19
pxor xmm2, xmm1
sub eax, 1
jne 0x401e90
movups xmm4, xmmword [edi + 0x10]
movups xmm0, xmmword [esi + 0x10]
movups xmm3, xmmword [edi + 0x20]
movups xmm1, xmmword [edi]
paddd xmm4, xmm2
paddd xmm3, xmm7
movups xmm2, xmmword [edi + 0x30]
pxor xmm4, xmm0
paddd xmm1, xmm6
movups xmm0, xmmword [esi + 0x20]
paddd xmm2, xmm5
pxor xmm3, xmm0
movups xmm0, xmmword [esi + 0x30]
pxor xmm2, xmm0
movups xmm0, xmmword [esi]
pxor xmm1, xmm0
movups xmmword [edx], xmm1
movups xmmword [edx + 0x10], xmm4
movups xmmword [edx + 0x20], xmm3
movups xmmword [edx + 0x30], xmm2
mov ecx, dword [edi + 0x34]
add dword [edi + 0x30], 1
lea eax, [ecx + 1]
cmovne eax, ecx
mov ecx, dword [ebp + 0x14]
mov dword [edi + 0x34], eax
add edx, 0x40
mov eax, dword [esp + 0x20]
add esi, 0x40
sub eax, 0x40
sub dword [esp + 0x24], 1
mov dword [esp + 0x20], eax
jne 0x401e70
mov dword [esp + 0x10], edx
test eax, eax
je 0x402232
lea eax, [edx + 0x3f]
mov ecx, 0xffffffc1
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 0x10]
sub ecx, eax
mov dword [esp + 0x14], ecx
mov ecx, 0xfffffff0
sub ecx, eax
mov dword [esp + 0x2c], ecx
push dword [ebp + 0x14]
mov edx, edi
mov ecx, eax
call fcn.00401130
add esp, 4
add dword [edi + 0x30], 1
jne 0x40203d
inc dword [edi + 0x34]
cmp dword [esp + 0x20], 0x40
jbe 0x402109
mov eax, dword [ebp + 0x10]
mov ecx, dword [esp + 0x10]
add eax, 0x3f
mov edx, dword [esp + 0xc]
cmp ecx, eax
ja 0x402061
mov eax, dword [ebp + 0x10]
cmp edx, eax
jae 0x40206f
lea eax, [esi + 0x3f]
cmp ecx, eax
ja 0x4020ae
cmp edx, esi
jb 0x4020ae
mov eax, dword [ebp + 0x10]
mov edi, dword [esp + 0xc]
mov edx, eax
mov dword [esp + 0x24], 0x40
nop dword [eax]
mov eax, dword [esp + 0x2c]
add eax, edx
mov cl, byte [eax + esi + 0x10]
mov eax, dword [esp + 0x14]
xor cl, byte [edx]
add eax, edi
mov byte [eax + edx], cl
inc edx
sub dword [esp + 0x24], 1
jne 0x402080
mov edi, dword [esp + 0x28]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
mov eax, dword [ebp + 0x10]
jmp 0x4020ee
mov eax, dword [ebp + 0x10]
movups xmm1, xmmword [esi]
movups xmm0, xmmword [eax]
pxor xmm1, xmm0
movups xmm0, xmmword [eax + 0x10]
movups xmmword [ecx], xmm1
movups xmm1, xmmword [esi + 0x10]
pxor xmm1, xmm0
movups xmm0, xmmword [eax + 0x20]
movups xmmword [edx - 0x2f], xmm1
movups xmm1, xmmword [esi + 0x20]
pxor xmm1, xmm0
movups xmm0, xmmword [eax + 0x30]
movups xmmword [edx - 0x1f], xmm1
movups xmm1, xmmword [esi + 0x30]
pxor xmm1, xmm0
movups xmmword [edx - 0xf], xmm1
sub dword [esp + 0x20], 0x40
add ecx, 0x40
add edx, 0x40
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], edx
add esi, 0x40
jmp 0x402025
mov edi, dword [esp + 0x20]
xor eax, eax
test edi, edi
je 0x402232
mov ecx, dword [esp + 0x10]
mov edx, dword [ebp + 0x10]
cmp edi, 0x40
jb 0x402208
lea eax, [edx - 1]
add eax, edi
cmp ecx, eax
ja 0x40213d
lea eax, [ecx - 1]
add eax, edi
cmp eax, edx
jae 0x402206
lea eax, [edi - 1]
add eax, esi
cmp ecx, eax
ja 0x402153
lea eax, [ecx - 1]
add eax, edi
cmp eax, esi
jae 0x402206
mov eax, edi
mov edi, esi
sub edi, edx
and eax, 0xffffffc0
mov dword [esp + 0x28], edi
mov edi, ecx
mov dword [esp + 0x14], eax
sub edi, edx
lea eax, [ecx + 0x20]
mov dword [esp + 0x2c], edi
mov dword [esp + 0x24], eax
lea eax, [edx + 0x10]
mov edx, esi
sub edx, ecx
mov ecx, dword [esp + 0x24]
mov dword [esp + 0xc], edx
xor edi, edi
mov edx, dword [esp + 0x28]
nop dword [eax + eax]
movups xmm0, xmmword [eax - 0x10]
lea eax, [eax + 0x40]
movups xmm1, xmmword [edi + esi]
lea ecx, [ecx + 0x40]
pxor xmm1, xmm0
movups xmm0, xmmword [eax - 0x40]
movups xmmword [ecx - 0x60], xmm1
movups xmm1, xmmword [eax + edx - 0x40]
mov edx, dword [esp + 0x2c]
pxor xmm1, xmm0
movups xmm0, xmmword [eax - 0x30]
movups xmmword [eax + edx - 0x40], xmm1
mov edx, dword [esp + 0xc]
movups xmm1, xmmword [edx + ecx - 0x40]
mov edx, dword [esp + 0x28]
pxor xmm1, xmm0
movups xmm0, xmmword [eax - 0x20]
movups xmmword [ecx - 0x40], xmm1
movups xmm1, xmmword [esi + edi + 0x30]
add edi, 0x40
pxor xmm1, xmm0
movups xmmword [ecx - 0x30], xmm1
cmp edi, dword [esp + 0x14]
jb 0x402190
mov edx, dword [ebp + 0x10]
mov ecx, edi
cmp ecx, dword [esp + 0x20]
mov eax, ecx
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x28], edi
jae 0x402232
jmp 0x402208
xor eax, eax
lea edi, [eax + edx]
sub esi, edx
mov dword [esp + 0x28], edi
sub ecx, edx
mov edi, dword [esp + 0x20]
mov edx, dword [esp + 0x28]
sub edi, eax
nop dword [eax]
mov al, byte [esi + edx]
lea edx, [edx + 1]
xor al, byte [edx - 1]
mov byte [ecx + edx - 1], al
sub edi, 1
jne 0x402220
pop edi
pop esi
mov esp, ebp
pop ebp
ret