Function at 0x49fb00
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x5e108c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, edx
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x34], eax
add eax, 0x388
push ebx
push esi
mov esi, ecx
mov dword [ebp - 0x30], eax
lea ecx, [eax + 3]
xor ebx, ebx
add eax, 0x424
mov dword [ebp - 0x24], ecx
push edi
mov dword [ebp - 0x20], eax
nop dword [eax]
mov dword [ebp - 0x1c], 8
lea eax, [ecx + ebx]
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], 3
nop word [eax + eax]
xor edi, edi
nop dword [eax]
nop word [eax + eax]
cmp dword [esi + 8], 0
movzx ecx, byte [ebx + edi + 0x5bfb00]
mov ebx, dword [esi + 4]
mov dword [ebp - 8], ecx
jge 0x49fc1b
cmp dword [esi + 0xc], 0
jne 0x49fba2
push 0x3b
push str.._src_utils_bit_reader_inl_utils.h
push str.br___NULL__br__buf____NULL
call fcn.0052059c
add esp, 0xc
mov eax, dword [esi + 0xc]
cmp eax, dword [esi + 0x14]
jae 0x49fbc6
mov ecx, dword [eax]
add eax, 3
mov dword [esi + 0xc], eax
mov eax, dword [esi]
bswap ecx
shr ecx, 8
shl eax, 0x18
or ecx, eax
add dword [esi + 8], 0x18
mov dword [esi], ecx
jmp 0x49fc1b
test eax, eax
jne 0x49fbde
push 0x58
push str.srcutils_bit_reader_utils.c
push str.br___NULL__br__buf____NULL
call fcn.0052059c
add esp, 0xc
mov edx, dword [esi + 0xc]
cmp edx, dword [esi + 0x10]
jae 0x49fbfe
mov ecx, dword [esi]
add dword [esi + 8], 8
movzx eax, byte [edx]
shl ecx, 8
or ecx, eax
lea eax, [edx + 1]
mov dword [esi], ecx
mov dword [esi + 0xc], eax
jmp 0x49fc1b
cmp dword [esi + 0x18], 0
jne 0x49fc14
shl dword [esi], 8
add dword [esi + 8], 8
mov dword [esi + 0x18], 1
jmp 0x49fc1b
mov dword [esi + 8], 0
mov ecx, dword [esi + 8]
mov edx, ebx
imul edx, dword [ebp - 8]
mov eax, dword [esi]
shr eax, cl
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x2c], eax
shr edx, 8
cmp eax, edx
jbe 0x49fc40
lea eax, [edx + 1]
sub ebx, edx
shl eax, cl
sub dword [esi], eax
jmp 0x49fc43
lea ebx, [edx + 1]
bsr eax, ebx
mov ecx, eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x28]
xor ecx, 7
shl ebx, cl
sub eax, ecx
dec ebx
mov dword [esi + 8], eax
mov dword [esi + 4], ebx
cmp dword [ebp - 0x2c], edx
jbe 0x49fc72
mov edx, 8
mov ecx, esi
call fcn.0049e360
mov ebx, dword [ebp - 0xc]
jmp 0x49fc7d
mov ebx, dword [ebp - 0xc]
movzx eax, byte [ebx + edi + 0x5c03b0]
mov ecx, dword [ebp - 0x14]
mov byte [ecx + edi], al
inc edi
cmp edi, 0xb
jl 0x49fb70
add ebx, 0xb
add ecx, 0xb
sub dword [ebp - 0x18], 1
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x14], ecx
jne 0x49fb60
sub dword [ebp - 0x1c], 1
mov ecx, dword [ebp - 0x24]
jne 0x49fb47
mov edi, dword [ebp - 0x20]
xor edx, edx
mov ebx, dword [ebp - 0x10]
nop dword [eax + eax]
movzx ecx, byte [edx + 0x5bfae0]
inc edx
add ecx, ebx
mov eax, ecx
shl eax, 5
add eax, 3
add eax, dword [ebp - 0x30]
add eax, ecx
mov dword [edi], eax
add edi, 4
cmp edx, 0x11
jl 0x49fcc0
add dword [ebp - 0x10], 8
mov ebx, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 0x20], edi
cmp ebx, 0x420
jl 0x49fb40
mov edx, 1
mov ecx, esi
call fcn.0049e360
mov edi, dword [ebp - 0x34]
mov dword [edi + 0x8bc], eax
test eax, eax
je 0x49fd25
mov edx, 8
mov ecx, esi
call fcn.0049e360
mov byte [edi + 0x8c0], al
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004f4655
mov esp, ebp
pop ebp
ret