Function at 0x4bca30
Capabilities:
Encode data using xor

Disassembly:
push ecx
mov eax, dword [0x5c09d8]
push ebp
test eax, eax
mov dword [esp + 4], 0
mov ebp, 2
je 0x4bcce9
mov edx, dword [0x5c09d0]
mov ecx, dword [0x5c431c]
push ebx
push esi
push edi
xor eax, eax
and edx, 0x3ff
mov al, byte [ecx + 0x5d4342]
mov esi, ecx
and eax, 0x7fff
mov edi, dword [0x5e4344]
shl edx, 5
xor edx, eax
xor eax, eax
and esi, 0x7fff
mov dword [0x5c09d0], edx
mov ax, word [edx*2 + 0x5e4360]
mov word [edx*2 + 0x5e4360], cx
mov word [esi*2 + 0x5c4320], ax
mov esi, ebp
test eax, eax
mov dword [0x5c4318], esi
mov ebp, 2
je 0x4bcb0e
cmp esi, dword [0x5c09cc]
jae 0x4bcb0e
mov ebx, ecx
sub ebx, eax
cmp ebx, 0x7efa
ja 0x4bcb0e
push eax
call fcn.004bc850
mov ebp, eax
mov eax, dword [0x5c09d8]
add esp, 4
cmp ebp, eax
jbe 0x4bcadc
mov ebp, eax
cmp ebp, 3
jne 0x4bcbce
mov ecx, dword [0x5c431c]
mov esi, dword [0x5e4344]
mov edx, ecx
sub edx, esi
cmp edx, 0x1000
jbe 0x4bcb02
mov ebp, 2
mov edx, dword [0x5c09d0]
mov esi, dword [0x5c4318]
cmp esi, 3
jb 0x4bcc06
cmp ebp, esi
ja 0x4bcc06
sub ecx, edi
add esi, 0xfffffffd
dec ecx
push esi
push ecx
call fcn.004bc430
mov esi, dword [0x5c4318]
mov ecx, dword [0x5c09d8]
mov edi, eax
mov edx, dword [0x5c09d0]
mov eax, 1
add esp, 8
sub eax, esi
add ecx, eax
sub esi, 2
mov dword [0x5c09d8], ecx
mov ecx, dword [0x5c431c]
inc ecx
xor eax, eax
and edx, 0x3ff
mov al, byte [ecx + 0x5d4342]
and eax, 0x7fff
shl edx, 5
xor edx, eax
mov eax, ecx
and eax, 0x7fff
dec esi
mov bx, word [edx*2 + 0x5e4360]
mov word [edx*2 + 0x5e4360], cx
mov word [eax*2 + 0x5c4320], bx
jne 0x4bcb5b
mov dword [0x5c4318], esi
xor esi, esi
inc ecx
mov dword [0x5c09d0], edx
test edi, edi
mov dword [esp + 0x10], esi
mov ebp, 2
mov dword [0x5c431c], ecx
je 0x4bcc96
mov edx, dword [0x5e4348]
test edx, edx
jl 0x4bcbdf
lea eax, [edx + 0x5d4340]
jmp 0x4bcbe1
mov edx, dword [0x5c09d0]
mov ecx, dword [0x5c431c]
jmp 0x4bcb08
xor eax, eax
sub ecx, edx
push 0
push ecx
push eax
call fcn.004bbb00
mov ecx, dword [0x5c431c]
mov edx, dword [0x5c09d0]
add esp, 0xc
mov dword [0x5e4348], ecx
jmp 0x4bcc96
mov esi, dword [esp + 0x10]
test esi, esi
je 0x4bcc7b
xor edx, edx
mov dl, byte [ecx + 0x5d433f]
push edx
push 0
call fcn.004bc430
add esp, 8
test eax, eax
je 0x4bcc5b
mov ecx, dword [0x5e4348]
test ecx, ecx
jl 0x4bcc37
lea eax, [ecx + 0x5d4340]
jmp 0x4bcc39
xor eax, eax
mov edx, dword [0x5c431c]
push 0
sub edx, ecx
push edx
push eax
call fcn.004bbb00
mov ecx, dword [0x5c431c]
add esp, 0xc
mov dword [0x5e4348], ecx
jmp 0x4bcc61
mov ecx, dword [0x5c431c]
mov eax, dword [0x5c09d8]
mov edx, dword [0x5c09d0]
inc ecx
dec eax
mov dword [0x5c431c], ecx
mov dword [0x5c09d8], eax
jmp 0x4bcc96
mov eax, dword [0x5c09d8]
inc ecx
mov esi, 1
dec eax
mov dword [esp + 0x10], esi
mov dword [0x5c431c], ecx
mov dword [0x5c09d8], eax
mov eax, dword [0x5c09d8]
cmp eax, 0x106
jae 0x4bccc9
mov edi, dword [0x5c09d4]
test edi, edi
jne 0x4bccc9
call fcn.004bc950
mov eax, dword [0x5c09d8]
mov edx, dword [0x5c09d0]
mov ecx, dword [0x5c431c]
cmp eax, 0x106
jb 0x4bcca2
test eax, eax
jne 0x4bca5b
pop edi
test esi, esi
pop esi
pop ebx
je 0x4bccef
mov al, byte [ecx + 0x5d433f]
push eax
push 0
call fcn.004bc430
add esp, 8
mov ecx, dword [0x5c431c]
mov edx, dword [0x5e4348]
pop ebp
test edx, edx
jl 0x4bcd0f
sub ecx, edx
lea eax, [edx + 0x5d4340]
push 1
push ecx
push eax
call fcn.004bbb00
add esp, 0x10
ret
sub ecx, edx
xor eax, eax
push 1
push ecx
push eax
call fcn.004bbb00
add esp, 0x10
ret