Function at 0x420480
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x20
mov ebx, ecx
mov esi, dword [esp + 0x34]
mov byte [esp + 2], 0
xor eax, eax
mov dword [esp + 0x14], ecx
nop
nop
nop
nop
nop
nop
nop
nop
mov dword [esp + 0x1c], eax
push 0xadeee8f4
push dword [0x44bf94]
call fcn.0043f550
add esp, 8
push 0
push 1
lea ecx, [esp + 0xa]
push ecx
push dword [ebx]
call eax
test eax, eax
setg cl
jg 0x4204d4
cmp dword [ebx], 0xffffffff
jne 0x420692
test eax, eax
jle 0x4206c8
movzx eax, byte [esp + 2]
mov ebp, dword [esi]
mov edi, dword [esi + 4]
mov edx, edi
sub edx, ebp
cmp edi, dword [esi + 8]
jne 0x420675
mov dword [esp + 8], ebp
mov byte [esp + 3], al
mov dword [esp + 0x18], ecx
lea eax, [edx + 1]
mov esi, edx
shr esi, 1
mov ecx, esi
and ecx, edx
mov ebx, edx
mov edx, esi
mov dword [esp + 4], ebx
xor edx, ebx
lea ebx, [edx + ecx*2]
cmp ebx, eax
ja 0x42051d
mov ebx, eax
push ebx
call fcn.00408380
add esp, 4
mov ebp, eax
mov eax, dword [esp + 8]
test eax, eax
je 0x420653
mov dword [esp + 0x10], ebx
cmp ebp, eax
mov ebx, dword [esp + 4]
mov dword [esp + 0xc], ebp
jbe 0x4205ff
cmp edi, ebp
jbe 0x4205ff
test ebx, ebx
je 0x42063d
mov edx, dword [esp + 4]
mov ebp, dword [esp + 8]
lea eax, [edx + ebp]
dec eax
mov ecx, dword [esp + 0xc]
add ecx, edx
dec ecx
mov esi, edx
and esi, 7
je 0x420594
neg esi
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx ebx, byte [eax + edx]
mov byte [ecx + edx], bl
dec edx
cmp esi, edx
jne 0x420580
add eax, edx
add ecx, edx
add edx, dword [esp + 4]
sub ebp, edi
cmp ebp, 0xfffffff8
ja 0x42063d
neg edx
xor esi, esi
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx ebx, byte [eax + esi]
mov byte [ecx + esi], bl
movzx ebx, byte [eax + esi - 1]
mov byte [ecx + esi - 1], bl
movzx ebx, byte [eax + esi - 2]
mov byte [ecx + esi - 2], bl
movzx ebx, byte [eax + esi - 3]
mov byte [ecx + esi - 3], bl
movzx ebx, byte [eax + esi - 4]
mov byte [ecx + esi - 4], bl
movzx ebx, byte [eax + esi - 5]
mov byte [ecx + esi - 5], bl
movzx ebx, byte [eax + esi - 6]
mov byte [ecx + esi - 6], bl
movzx ebx, byte [eax + esi - 7]
mov byte [ecx + esi - 7], bl
add esi, 0xfffffff8
cmp edx, esi
jne 0x4205b0
jmp 0x42063d
mov ecx, ebx
shr ecx, 2
mov eax, dword [esp + 8]
mov edi, ebp
xchg esi, eax
rep movsd dword es:[edi], dword [esi]
xchg esi, eax
mov edx, ebx
and edx, 0xfffffffc
lea eax, [edx + ebp]
add edx, dword [esp + 8]
and esi, 1
mov ebp, edx
mov edi, eax
mov ecx, esi
xchg esi, ebp
rep movsw word es:[edi], word [esi]
xchg esi, ebp
test bl, 1
je 0x42063d
mov ecx, dword [esp + 4]
and ecx, 2
movzx edx, byte [edx + ecx]
mov byte [eax + ecx], dl
mov eax, dword [esp + 0x34]
push dword [eax]
call fcn.00408390
add esp, 4
mov ebx, dword [esp + 0x10]
mov ebp, dword [esp + 0xc]
mov esi, dword [esp + 0x34]
mov dword [esi], ebp
mov edx, dword [esp + 4]
lea eax, [edx + ebp]
mov dword [esi + 4], eax
add ebx, ebp
mov dword [esi + 8], ebx
mov ecx, dword [esp + 0x18]
movzx eax, byte [esp + 3]
mov ebx, dword [esp + 0x14]
mov byte [ebp + edx], al
inc dword [esi + 4]
cmp byte [esp + 0x1c], 0xd
je 0x4206ca
movzx eax, byte [esp + 2]
cmp al, 0xa
jne 0x4204a0
jmp 0x4206ca
push 0x59ea2086
push dword [0x44bf94]
call fcn.0043f550
add esp, 8
push 2
push dword [ebx]
call eax
push 0x2e775759
push dword [0x44bf94]
call fcn.0043f550
add esp, 8
push dword [ebx]
call eax
mov dword [ebx], 0xffffffff
xor ecx, ecx
mov eax, ecx
add esp, 0x20
pop esi
pop edi
pop ebx
pop ebp
ret 4