Function at 0x4216c0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x1c
mov ebx, ecx
mov byte [esp + 2], 0
mov dword [esp + 0x10], ecx
jmp 0x421728
mov eax, dword [esp + 0x30]
push dword [eax]
call fcn.004086f0
add esp, 4
mov ebx, dword [esp + 4]
mov ecx, dword [esp + 0x30]
mov dword [ecx], ebx
lea eax, [ebx + esi]
mov dword [ecx + 4], eax
mov eax, dword [esp + 0x14]
add eax, ebx
mov dword [ecx + 8], eax
mov edx, dword [esp + 0x18]
movzx eax, byte [esp + 3]
mov ebp, ebx
mov ebx, dword [esp + 0x10]
mov byte [ebp + esi], al
inc dword [ecx + 4]
cmp byte [esp + 2], 0xa
je 0x4218fe
push 0xadeee8f4
push dword [0x34bab0]
call fcn.0043fdc0
add esp, 8
push 8
push 1
lea ecx, [esp + 0xa]
push ecx
push dword [ebx]
call eax
test eax, eax
setg dl
jg 0x421758
cmp dword [ebx], 0xffffffff
jne 0x4218c6
test eax, eax
jle 0x4218fc
movzx eax, byte [esp + 2]
mov ecx, dword [esp + 0x30]
mov ebp, dword [ecx]
mov edi, dword [ecx + 4]
mov esi, edi
sub esi, ebp
cmp edi, dword [ecx + 8]
jne 0x421716
mov byte [esp + 3], al
mov dword [esp + 0x18], edx
lea eax, [esi + 1]
mov ecx, edi
xor ecx, ebp
mov edx, ebp
not edx
and edx, edi
mov dword [esp + 8], edx
add edx, edx
sub edx, ecx
mov ecx, edx
shr ecx, 1
add ecx, edx
cmp ecx, eax
ja 0x4217a0
mov ecx, eax
mov dword [esp + 0x14], ecx
push ecx
call fcn.004086e0
add esp, 4
mov ebx, eax
test ebp, ebp
je 0x4216f2
not edi
and edi, ebp
mov edx, dword [esp + 8]
sub edx, edi
cmp ebx, ebp
mov dword [esp + 4], ebx
jbe 0x421882
lea eax, [edx + ebp]
cmp eax, ebx
jbe 0x421882
test edx, edx
je 0x4216e0
mov ebx, edx
lea eax, [edx + ebp]
dec eax
mov ecx, dword [esp + 4]
add ecx, edx
dec ecx
and edx, 7
je 0x421816
mov dword [esp + 0xc], ebx
neg edx
xor ebp, ebp
nop
nop
nop
nop
nop
nop
movzx ebx, byte [eax + ebp]
mov byte [ecx + ebp], bl
dec ebp
cmp edx, ebp
jne 0x421800
add eax, ebp
add ecx, ebp
mov ebx, dword [esp + 0xc]
add ebx, ebp
sub edi, dword [esp + 8]
cmp edi, 0xfffffff8
ja 0x4216e0
neg ebx
xor edi, edi
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx edx, byte [eax + edi]
mov byte [ecx + edi], dl
movzx edx, byte [eax + edi - 1]
mov byte [ecx + edi - 1], dl
movzx edx, byte [eax + edi - 2]
mov byte [ecx + edi - 2], dl
movzx edx, byte [eax + edi - 3]
mov byte [ecx + edi - 3], dl
movzx edx, byte [eax + edi - 4]
mov byte [ecx + edi - 4], dl
movzx edx, byte [eax + edi - 5]
mov byte [ecx + edi - 5], dl
movzx edx, byte [eax + edi - 6]
mov byte [ecx + edi - 6], dl
movzx edx, byte [eax + edi - 7]
mov byte [ecx + edi - 7], dl
add edi, 0xfffffff8
cmp ebx, edi
jne 0x421830
jmp 0x4216e0
mov ecx, edx
shr ecx, 2
mov eax, ebp
mov edi, ebx
xchg esi, eax
rep movsd dword es:[edi], dword [esi]
xchg esi, eax
mov eax, edx
and eax, 0xfffffffc
lea ecx, [ebx + eax]
add eax, ebp
mov ebp, ecx
mov ecx, edx
shr ecx, 1
and ecx, 1
mov ebx, eax
mov edi, ebp
xchg esi, ebx
rep movsw word es:[edi], word [esi]
xchg esi, ebx
test dl, 1
je 0x4216e0
and edx, 2
movzx ecx, byte [eax + edx]
mov byte [ebp + edx], cl
jmp 0x4216e0
push 0x59ea2086
push dword [0x34bab0]
call fcn.0043fdc0
add esp, 8
push 2
push dword [ebx]
call eax
push 0x2e775759
push dword [0x34bab0]
call fcn.0043fdc0
add esp, 8
push dword [ebx]
call eax
mov dword [ebx], 0xffffffff
xor edx, edx
mov eax, edx
add esp, 0x1c
pop esi
pop edi
pop ebx
pop ebp
ret 4