Function at 0x5215f0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x9c
mov eax, dword [0x613384]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0x24]
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
push dword [eax]
mov edi, dword [ebp + 0x14]
mov dword [ebp - 0x98], eax
mov dword [ebp - 0x9c], edi
mov dword [ebp - 0x90], ecx
call fcn.0050fb90
push dword [ebp + 0x10]
mov dword [ebp - 0x8c], 0
push esi
mov esi, dword [ebp - 0x98]
push esi
mov byte [ebp - 0x85], al
mov byte [ebp - 0x89], 1
call fcn.0050fee0
mov ebx, eax
add esp, 0x10
test ebx, ebx
jne 0x52184f
cmp dword [ebp + 0x20], eax
je 0x521831
push dword [ebp + 0x18]
push edi
push esi
call fcn.005100e0
mov ebx, eax
add esp, 0xc
test ebx, ebx
jne 0x521831
push 4
lea eax, [ebp - 0x8c]
push eax
push esi
call fcn.005100e0
mov ebx, eax
add esp, 0xc
test ebx, ebx
jne 0x521831
lea eax, [ebp - 0x44]
push eax
push esi
call fcn.0050fde0
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x521831
push esi
call fcn.0050fe90
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x521831
movzx edi, byte [ebp - 0x85]
lea eax, [ebp - 0x44]
push edi
push eax
lea eax, [ebp - 0x84]
push eax
call fcn.005478f0
add esp, 0xc
mov dword [ebp - 0x94], 1
cmp dword [ebp + 0x1c], 1
jbe 0x5217d6
push edi
lea eax, [ebp - 0x84]
push eax
push esi
call fcn.005100e0
mov ebx, eax
add esp, 0xc
test ebx, ebx
jne 0x521831
lea eax, [ebp - 0x84]
push eax
push esi
call fcn.0050fde0
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x521831
push esi
call fcn.0050fe90
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x521831
test edi, edi
je 0x5217a6
cmp edi, 0x40
jb 0x5217a6
mov ecx, edi
and ecx, 0xffffffc0
nop word [eax + eax]
movups xmm0, xmmword [ebp + eax - 0x44]
movups xmm1, xmmword [ebp + eax - 0x84]
pxor xmm1, xmm0
movups xmmword [ebp + eax - 0x44], xmm1
movups xmm0, xmmword [ebp + eax - 0x34]
movups xmm1, xmmword [ebp + eax - 0x74]
pxor xmm1, xmm0
movups xmmword [ebp + eax - 0x34], xmm1
movups xmm0, xmmword [ebp + eax - 0x24]
movups xmm1, xmmword [ebp + eax - 0x64]
pxor xmm1, xmm0
movups xmmword [ebp + eax - 0x24], xmm1
movups xmm0, xmmword [ebp + eax - 0x14]
movups xmm1, xmmword [ebp + eax - 0x54]
pxor xmm1, xmm0
movups xmmword [ebp + eax - 0x14], xmm1
add eax, 0x40
cmp eax, ecx
jl 0x521750
cmp eax, edi
jge 0x5217c0
nop word [eax + eax]
mov cl, byte [ebp + eax - 0x84]
xor byte [ebp + eax - 0x44], cl
inc eax
cmp eax, edi
jl 0x5217b0
mov eax, dword [ebp - 0x94]
inc eax
mov dword [ebp - 0x94], eax
cmp eax, dword [ebp + 0x1c]
jb 0x5216f4
mov esi, dword [ebp + 0x20]
lea eax, [ebp - 0x44]
cmp esi, edi
cmovae esi, edi
push esi
push eax
push dword [ebp - 0x90]
call fcn.005478f0
mov edi, dword [ebp + 0x20]
lea ecx, [ebp - 0x89]
add dword [ebp - 0x90], esi
sub edi, esi
mov edx, 4
mov dword [ebp + 0x20], edi
mov eax, ecx
add esp, 0xc
sub edx, eax
nop
add byte [ecx], 1
jne 0x52181d
dec ecx
lea eax, [edx + ecx]
test eax, eax
jne 0x521810
mov esi, dword [ebp - 0x98]
test edi, edi
mov edi, dword [ebp - 0x9c]
jne 0x521668
lea eax, [ebp - 0x44]
push 0x40
push eax
call fcn.0050f8d0
lea eax, [ebp - 0x84]
push 0x40
push eax
call fcn.0050f8d0
add esp, 0x10
mov eax, ebx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00544c5a
mov esp, ebp
pop ebp
ret