Function at 0x4bbbc2
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
mov eax, dword [0x5ac640]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
push esi
mov esi, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x5c], edi
mov edx, dword [edi + 8]
movzx ecx, word [edx + 4]
movzx eax, word [edx + 2]
shl ecx, 0x10
or ecx, eax
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x54], ecx
mov ecx, dword [ebp + 0xc]
test ecx, ecx
cmove eax, edx
mov edx, dword [ebp - 0x54]
xor ebx, ebx
mov dword [ebp - 0x48], eax
mov eax, dword [esi + 8]
test ecx, ecx
sete bl
test eax, eax
je 0x4bbc8d
mov esi, eax
mov eax, dword [ebp - 0x58]
test eax, eax
je 0x4bbc27
and dword [ebp - 0x58], 0
mov edi, eax
jmp 0x4bbc6d
cmp byte [esi], 0
je 0x4bbc52
mov eax, dword [ebp - 0x5c]
mov edi, dword [esi + 4]
mov eax, dword [eax + 8]
mov al, byte [eax]
jmp 0x4bbc3c
add edi, 6
cmp byte [edi], al
jne 0x4bbc39
mov al, byte [edi + 1]
cmp al, 0x73
jae 0x4bbc6d
inc al
mov byte [edi + 1], al
inc word [esi + 2]
jmp 0x4bbc6d
mov eax, dword [esi + 8]
lea edi, [esi + 2]
mov edx, dword [ebp - 0x54]
cmp byte [eax], 0
sete cl
cmp byte [edi + 1], 0x18
setb al
and cl, al
add byte [edi + 1], cl
movzx ecx, word [edi + 4]
movzx eax, word [edi + 2]
shl ecx, 0x10
or ecx, eax
cmp ecx, edx
jne 0x4bbcca
mov eax, dword [esi + 8]
mov dword [ebp + ebx*4 - 0x48], edi
inc ebx
test eax, eax
jne 0x4bbc16
mov edi, dword [ebp - 0x5c]
mov cl, byte [edx]
lea eax, [edx + 1]
mov word [ebp - 0x52], ax
shr eax, 0x10
mov dword [ebp - 0x58], eax
mov eax, dword [edi + 8]
mov byte [ebp - 0x54], cl
cmp byte [eax], 0x40
setb dl
dec dl
and dl, 0x10
cmp cl, 0x40
setb al
dec al
and al, 8
add dl, al
mov al, byte [esi]
mov byte [ebp - 0x4a], dl
mov byte [ebp - 0x49], al
test al, al
jne 0x4bbcd7
mov al, byte [esi + 3]
jmp 0x4bbd12
mov esi, ecx
test ebx, ebx
jne 0x4bbc8a
mov eax, ecx
jmp 0x4bbd87
mov eax, dword [esi + 4]
jmp 0x4bbcdf
add eax, 6
cmp byte [eax], cl
jne 0x4bbcdc
movzx edx, byte [eax + 1]
movzx eax, byte [ebp - 0x49]
dec edx
movzx ecx, word [esi + 2]
sub ecx, eax
sub ecx, edx
lea eax, [edx + edx]
cmp eax, ecx
ja 0x4bbd06
imul eax, edx, 5
cmp ecx, eax
sbb eax, eax
neg eax
jmp 0x4bbd10
lea eax, [edx - 3]
xor edx, edx
lea eax, [eax + ecx*2]
div ecx
inc al
mov byte [ebp - 0x53], al
mov edx, dword [edi + 0x34]
cmp edx, dword [edi + 0x30]
je 0x4bbd25
add edx, 0xfffffff4
mov dword [edi + 0x34], edx
jmp 0x4bbd50
mov edx, dword [edi + 0x100]
test edx, edx
je 0x4bbd40
mov eax, dword [edx + 4]
dec dword [edi + 0x198]
mov dword [edi + 0x100], eax
jmp 0x4bbd50
push 0
push edi
call fcn.004bbb3a
mov edx, eax
pop ecx
pop ecx
test edx, edx
je 0x4bbd85
mov al, byte [ebp - 0x4a]
dec ebx
mov byte [edx + 1], al
mov eax, dword [ebp - 0x54]
mov dword [edx + 2], eax
mov eax, dword [ebp - 0x58]
mov ecx, dword [ebp + ebx*4 - 0x48]
mov word [edx + 6], ax
mov eax, edx
mov dword [edx + 8], esi
mov esi, edx
shr eax, 0x10
mov byte [edx], 0
mov word [ecx + 2], dx
mov word [ecx + 4], ax
test ebx, ebx
jne 0x4bbd15
mov eax, esi
jmp 0x4bbd87
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.007dac04
leave
ret