Function at 0x4bcc57
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x32c
mov eax, dword [0x5c9040]
xor eax, esp
mov dword [esp + 0x328], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, edx
push edi
mov edi, ecx
mov dword [esp + 0xc], edi
cmp ebx, 0x180
jbe 0x4bcc8f
push 0xffffffffffffffc8
pop eax
jmp 0x4bced5
push 0x1a0
lea eax, [esp + 0x194]
push 0
push eax
call fcn.0051c010
lea ecx, [esp + 0x24]
call fcn.004d8a17
mov eax, ebx
mov byte [esp + 0x1af], bl
shr eax, 0x18
mov byte [esp + 0x1ac], al
mov eax, ebx
shr eax, 0x10
mov byte [esp + 0x1ad], al
mov eax, ebx
shr eax, 8
push ebx
mov byte [esp + 0x1b2], al
lea eax, [esp + 0x1b8]
push esi
push eax
mov byte [esp + 0x1bf], 0x30
call fcn.0051c650
mov byte [esp + ebx + 0x1c0], 0x80
add esp, 0x18
add ebx, 0x19
xor eax, eax
mov dword [esp + 0x14], ebx
movd xmm0, eax
pshufd xmm0, xmm0, 0
paddd xmm0, xmmword [0x5b2120]
andps xmm0, xmmword [0x5b2130]
packuswb xmm0, xmm0
packuswb xmm0, xmm0
movd dword [esp + eax + 0x170], xmm0
add eax, 4
cmp eax, 0x20
jl 0x4bcd02
push 0x100
lea edx, [esp + 0x174]
lea ecx, [esp + 0x1c]
call fcn.004d8a3f
pop ecx
mov esi, eax
push 0x10
pop eax
test esi, esi
jne 0x4bce68
xor edi, edi
push eax
lea eax, [esp + 0x134]
push 0
push eax
call fcn.0051c010
add esp, 0xc
mov dword [esp + 0x10], ebx
test ebx, ebx
je 0x4bcdd9
lea ebx, [esp + 0x190]
lea eax, [esp + 0x130]
sub ebx, eax
push 0x10
xor edx, edx
pop esi
lea ecx, [esp + 0x130]
add ecx, edx
mov al, byte [ebx + ecx]
xor byte [ecx], al
inc edx
cmp edx, esi
jl 0x4bcd88
mov esi, dword [esp + 0x10]
mov eax, esi
push 0x10
pop ecx
add ebx, ecx
cmp esi, ecx
cmovae eax, ecx
lea ecx, [esp + 0x18]
sub esi, eax
lea eax, [esp + 0x130]
push eax
mov edx, eax
mov dword [esp + 0x14], esi
call fcn.004d8eb3
mov esi, eax
pop ecx
test esi, esi
jne 0x4bce64
cmp dword [esp + 0x10], eax
jne 0x4bcd83
mov ebx, dword [esp + 0x14]
push 0x10
lea eax, [esp + 0x134]
push eax
lea eax, [esp + 0x148]
add eax, edi
push eax
call fcn.0051c650
add esp, 0xc
inc byte [esp + 0x193]
push 0x10
pop eax
add edi, eax
cmp edi, 0x30
jl 0x4bcd58
push 0x100
lea edx, [esp + 0x144]
lea ecx, [esp + 0x1c]
call fcn.004d8a3f
mov edi, dword [esp + 0x10]
mov esi, eax
pop ecx
test esi, esi
jne 0x4bce68
xor ebx, ebx
lea eax, [esp + 0x160]
push eax
mov edx, eax
lea ecx, [esp + 0x1c]
call fcn.004d8eb3
mov esi, eax
pop ecx
test esi, esi
jne 0x4bce64
push 0x10
lea eax, [esp + 0x164]
push eax
push edi
call fcn.0051c650
add ebx, 0x10
add esp, 0xc
add edi, 0x10
cmp ebx, 0x30
jl 0x4bce2c
mov edi, dword [esp + 0xc]
lea ecx, [esp + 0x18]
call fcn.004d8a28
push 0x1a0
xor ebx, ebx
lea eax, [esp + 0x194]
push ebx
push eax
mov eax, dword [fcn.0051c010]
call eax
push 0x30
lea eax, [esp + 0x150]
push ebx
push eax
mov eax, dword [fcn.0051c010]
call eax
push 0x20
lea eax, [esp + 0x18c]
push ebx
push eax
mov eax, dword [fcn.0051c010]
call eax
push 0x10
lea eax, [esp + 0x158]
push ebx
push eax
mov eax, dword [fcn.0051c010]
call eax
add esp, 0x30
test esi, esi
je 0x4bced3
mov eax, dword [fcn.0051c010]
push 0x30
push ebx
push edi
call eax
add esp, 0xc
mov eax, esi
mov ecx, dword [esp + 0x334]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0051b034
mov esp, ebp
pop ebp
ret