Function at 0x49b110
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov ecx, dword [0x5915c4]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x49b3ce
sub esp, 0x30
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x38]
xor edx, edx
xor ebx, ebx
xor ebp, ebp
xor esi, esi
xor edi, edi
jmp 0x49b168
dec ebp
mov dword [esp + 0x28], ebp
xchg ebp, ebx
neg ebx
xchg ebp, ebx
sar ebp, 0x1f
and ebp, 1
add ebp, esi
mov esi, dword [esp + 0x28]
mov esi, eax
mov eax, ebp
mov ebp, ecx
mov ecx, dword [esp + 0x28]
mov ecx, edx
mov edx, edi
mov edi, ebx
mov ebx, ecx
mov ecx, dword [esp + 0x28]
test ecx, ecx
je 0x49b38e
xchg edi, eax
mov byte [esp + 0x22], al
xchg edi, eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x28], ecx
movzx eax, byte [eax]
mov byte [esp + 0x23], al
cmp al, 0x20
jbe 0x49b2b2
cmp al, 0x22
je 0x49b1b4
cmp al, 0x5c
jne 0x49b2c2
inc edx
mov edi, edx
mov edx, ebx
mov ecx, ebp
mov eax, esi
movzx ebx, byte [esp + 0x22]
mov ebp, dword [esp + 0x28]
mov esi, dword [esp + 0x2c]
jmp 0x49b13b
mov dword [esp + 0x24], edx
mov dword [esp], esi
mov dword [esp + 4], ebx
mov dword [esp + 8], ebp
mov eax, edx
shr edx, 0x1f
lea ecx, [edx + eax]
sar ecx, 1
mov dword [esp + 0xc], ecx
call fcn.0049b080
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
mov ebx, dword [esp + 0x24]
test ebx, 1
jne 0x49b266
movzx ebx, byte [esp + 0x22]
test bl, bl
je 0x49b259
mov ebp, dword [esp + 0x28]
cmp ebp, 1
jle 0x49b253
mov esi, dword [esp + 0x2c]
cmp byte [esi + 1], 0x22
jne 0x49b261
inc edx
cmp ecx, edx
jae 0x49b24a
mov dword [esp], eax
mov dword [esp + 4], edx
mov dword [esp + 8], ecx
mov dword [esp + 0xc], 1
lea eax, [0x4b7120]
mov dword [esp + 0x10], eax
call fcn.00453590
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
movzx ebx, byte [esp + 0x22]
mov ebp, dword [esp + 0x28]
mov esi, dword [esp + 0x2c]
mov byte [edx + eax - 1], 0x22
dec ebp
inc esi
jmp 0x49b261
mov esi, dword [esp + 0x2c]
jmp 0x49b261
mov ebp, dword [esp + 0x28]
mov esi, dword [esp + 0x2c]
xor ebx, 1
jmp 0x49b2ab
inc edx
cmp ecx, edx
jae 0x49b299
mov dword [esp], eax
mov dword [esp + 4], edx
mov dword [esp + 8], ecx
mov dword [esp + 0xc], 1
lea eax, [0x4b7120]
mov dword [esp + 0x10], eax
call fcn.00453590
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov byte [edx + eax - 1], 0x22
mov ebp, dword [esp + 0x28]
mov esi, dword [esp + 0x2c]
movzx ebx, byte [esp + 0x22]
xor edi, edi
jmp 0x49b13b
cmp al, 9
je 0x49b2bc
cmp al, 0x20
jne 0x49b2c2
xchg edi, eax
test al, al
xchg edi, eax
je 0x49b341
mov dword [esp], esi
mov dword [esp + 4], ebx
mov dword [esp + 8], ebp
mov dword [esp + 0xc], edx
call fcn.0049b080
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
inc ecx
mov edx, dword [esp + 0x10]
cmp eax, ecx
jae 0x49b315
mov dword [esp], edx
mov dword [esp + 4], ecx
mov dword [esp + 8], eax
mov dword [esp + 0xc], 1
lea eax, [0x4b7120]
mov dword [esp + 0x10], eax
call fcn.00453590
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
movzx edi, byte [esp + 0x23]
xchg edi, eax
mov byte [ecx + edx - 1], al
xchg edi, eax
mov ebp, dword [esp + 0x28]
mov esi, dword [esp + 0x2c]
xor edi, edi
movzx ebx, byte [esp + 0x22]
mov ebx, edx
mov edx, ecx
mov ecx, eax
mov eax, ebx
movzx ebx, byte [esp + 0x22]
jmp 0x49b13b
mov dword [esp], esi
mov dword [esp + 4], ebx
mov dword [esp + 8], ebp
mov dword [esp + 0xc], edx
call fcn.0049b080
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], ecx
mov dword [esp + 0x44], edx
mov eax, dword [esp + 0x28]
dec eax
mov ecx, eax
neg eax
sar eax, 0x1f
and eax, 1
mov edx, dword [esp + 0x2c]
add eax, edx
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], ecx
add esp, 0x30
ret
mov dword [esp], esi
mov dword [esp + 4], ebx
mov dword [esp + 8], ebp
mov dword [esp + 0xc], edx
call fcn.0049b080
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], ecx
mov dword [esp + 0x44], edx
mov dword [esp + 0x48], 0
mov dword [esp + 0x4c], 0
add esp, 0x30
ret
call fcn.0046c370
jmp fcn.0049b110