Function at 0x4b4310
Capabilities:
Encode data using xor

Disassembly:
push ecx
mov eax, dword [0x5b3300]
push ebp
test eax, eax
mov dword [esp + 4], 0
mov ebp, 2
je 0x4b45c9
mov edx, dword [0x5b32f8]
mov ecx, dword [0x5b6c24]
push ebx
push esi
push edi
xor eax, eax
and edx, 0x3ff
mov al, byte [ecx + 0x5c6c62]
mov esi, ecx
and eax, 0x7fff
mov edi, dword [0x5d6c64]
shl edx, 5
xor edx, eax
xor eax, eax
and esi, 0x7fff
mov dword [0x5b32f8], edx
mov ax, word [edx*2 + 0x5d6c80]
mov word [edx*2 + 0x5d6c80], cx
mov word [esi*2 + 0x5b6c40], ax
mov esi, ebp
test eax, eax
mov dword [0x5b6c20], esi
mov ebp, 2
je 0x4b43ee
cmp esi, dword [0x5b32f4]
jae 0x4b43ee
mov ebx, ecx
sub ebx, eax
cmp ebx, 0x7efa
ja 0x4b43ee
push eax
call fcn.004b4130
mov ebp, eax
mov eax, dword [0x5b3300]
add esp, 4
cmp ebp, eax
jbe 0x4b43bc
mov ebp, eax
cmp ebp, 3
jne 0x4b44ae
mov ecx, dword [0x5b6c24]
mov esi, dword [0x5d6c64]
mov edx, ecx
sub edx, esi
cmp edx, 0x1000
jbe 0x4b43e2
mov ebp, 2
mov edx, dword [0x5b32f8]
mov esi, dword [0x5b6c20]
cmp esi, 3
jb 0x4b44e6
cmp ebp, esi
ja 0x4b44e6
sub ecx, edi
add esi, 0xfffffffd
dec ecx
push esi
push ecx
call fcn.004b3d10
mov esi, dword [0x5b6c20]
mov ecx, dword [0x5b3300]
mov edi, eax
mov edx, dword [0x5b32f8]
mov eax, 1
add esp, 8
sub eax, esi
add ecx, eax
sub esi, 2
mov dword [0x5b3300], ecx
mov ecx, dword [0x5b6c24]
inc ecx
xor eax, eax
and edx, 0x3ff
mov al, byte [ecx + 0x5c6c62]
and eax, 0x7fff
shl edx, 5
xor edx, eax
mov eax, ecx
and eax, 0x7fff
dec esi
mov bx, word [edx*2 + 0x5d6c80]
mov word [edx*2 + 0x5d6c80], cx
mov word [eax*2 + 0x5b6c40], bx
jne 0x4b443b
mov dword [0x5b6c20], esi
xor esi, esi
inc ecx
mov dword [0x5b32f8], edx
test edi, edi
mov dword [esp + 0x10], esi
mov ebp, 2
mov dword [0x5b6c24], ecx
je 0x4b4576
mov edx, dword [0x5d6c68]
test edx, edx
jl 0x4b44bf
lea eax, [edx + 0x5c6c60]
jmp 0x4b44c1
mov edx, dword [0x5b32f8]
mov ecx, dword [0x5b6c24]
jmp 0x4b43e8
xor eax, eax
sub ecx, edx
push 0
push ecx
push eax
call fcn.004b33e0
mov ecx, dword [0x5b6c24]
mov edx, dword [0x5b32f8]
add esp, 0xc
mov dword [0x5d6c68], ecx
jmp 0x4b4576
mov esi, dword [esp + 0x10]
test esi, esi
je 0x4b455b
xor edx, edx
mov dl, byte [ecx + 0x5c6c5f]
push edx
push 0
call fcn.004b3d10
add esp, 8
test eax, eax
je 0x4b453b
mov ecx, dword [0x5d6c68]
test ecx, ecx
jl 0x4b4517
lea eax, [ecx + 0x5c6c60]
jmp 0x4b4519
xor eax, eax
mov edx, dword [0x5b6c24]
push 0
sub edx, ecx
push edx
push eax
call fcn.004b33e0
mov ecx, dword [0x5b6c24]
add esp, 0xc
mov dword [0x5d6c68], ecx
jmp 0x4b4541
mov ecx, dword [0x5b6c24]
mov eax, dword [0x5b3300]
mov edx, dword [0x5b32f8]
inc ecx
dec eax
mov dword [0x5b6c24], ecx
mov dword [0x5b3300], eax
jmp 0x4b4576
mov eax, dword [0x5b3300]
inc ecx
mov esi, 1
dec eax
mov dword [esp + 0x10], esi
mov dword [0x5b6c24], ecx
mov dword [0x5b3300], eax
mov eax, dword [0x5b3300]
cmp eax, 0x106
jae 0x4b45a9
mov edi, dword [0x5b32fc]
test edi, edi
jne 0x4b45a9
call fcn.004b4230
mov eax, dword [0x5b3300]
mov edx, dword [0x5b32f8]
mov ecx, dword [0x5b6c24]
cmp eax, 0x106
jb 0x4b4582
test eax, eax
jne 0x4b433b
pop edi
test esi, esi
pop esi
pop ebx
je 0x4b45cf
mov al, byte [ecx + 0x5c6c5f]
push eax
push 0
call fcn.004b3d10
add esp, 8
mov ecx, dword [0x5b6c24]
mov edx, dword [0x5d6c68]
pop ebp
test edx, edx
jl 0x4b45ef
sub ecx, edx
lea eax, [edx + 0x5c6c60]
push 1
push ecx
push eax
call fcn.004b33e0
add esp, 0x10
ret
sub ecx, edx
xor eax, eax
push 1
push ecx
push eax
call fcn.004b33e0
add esp, 0x10
ret