Function at 0x4212a0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x20
mov esi, ecx
mov edi, dword [esp + 0x34]
mov byte [esp + 2], 0
xor eax, eax
mov dword [esp + 0x18], ecx
nop
nop
nop
nop
nop
nop
nop
nop
mov dword [esp + 0x1c], eax
push 0xadeee8f4
push dword [0x44cd9c]
call fcn.00440990
add esp, 8
push 0
push 1
lea ecx, [esp + 0xa]
push ecx
push dword [esi]
call eax
test eax, eax
setg cl
mov dword [esp + 0x10], ecx
jg 0x4212f8
cmp dword [esi], 0xffffffff
jne 0x421530
test eax, eax
jle 0x421566
mov ch, byte [esp + 2]
mov edx, dword [edi]
mov esi, dword [edi + 4]
mov ebx, esi
sub ebx, edx
mov ebp, edx
cmp esi, dword [edi + 8]
mov dword [esp + 8], edx
je 0x421330
cmp ebx, ebx
jb 0x42149c
jmp 0x42150e
mov byte [esp + 3], ch
lea eax, [ebx + 0x3f8710ff]
add eax, 0xc078ef02
mov ecx, esi
xor ecx, edx
not edx
mov dword [esp + 0xc], esi
and edx, esi
add edx, edx
sub edx, ecx
mov esi, edx
shr esi, 1
add esi, edx
cmp esi, eax
ja 0x42135b
mov esi, eax
push esi
call fcn.004083f0
add esp, 4
mov ebp, eax
mov edx, dword [esp + 8]
test edx, edx
je 0x421483
cmp ebp, edx
mov dword [esp + 4], ebx
jbe 0x42142f
cmp dword [esp + 0xc], ebp
jbe 0x42142f
test ebx, ebx
je 0x421471
mov edx, dword [esp + 4]
mov eax, dword [esp + 8]
add eax, edx
dec eax
lea ecx, [edx + ebp]
dec ecx
mov edi, edx
and edi, 7
je 0x4213c4
neg edi
xor edx, edx
nop
nop
nop
nop
nop
nop
movzx ebx, byte [eax + edx]
mov byte [ecx + edx], bl
dec edx
cmp edi, edx
jne 0x4213b0
add eax, edx
add ecx, edx
add edx, dword [esp + 4]
mov edi, dword [esp + 8]
sub edi, dword [esp + 0xc]
cmp edi, 0xfffffff8
ja 0x421471
neg edx
xor edi, edi
nop
nop
nop
nop
nop
nop
nop
movzx ebx, byte [eax + edi]
mov byte [ecx + edi], bl
movzx ebx, byte [eax + edi - 1]
mov byte [ecx + edi - 1], bl
movzx ebx, byte [eax + edi - 2]
mov byte [ecx + edi - 2], bl
movzx ebx, byte [eax + edi - 3]
mov byte [ecx + edi - 3], bl
movzx ebx, byte [eax + edi - 4]
mov byte [ecx + edi - 4], bl
movzx ebx, byte [eax + edi - 5]
mov byte [ecx + edi - 5], bl
movzx ebx, byte [eax + edi - 6]
mov byte [ecx + edi - 6], bl
movzx ebx, byte [eax + edi - 7]
mov byte [ecx + edi - 7], bl
add edi, 0xfffffff8
cmp edx, edi
jne 0x4213e0
jmp 0x421471
mov ecx, ebx
shr ecx, 2
mov eax, edx
mov edi, ebp
xchg esi, eax
rep movsd dword es:[edi], dword [esi]
xchg esi, eax
mov eax, edx
mov edx, ebx
and edx, 0xfffffffc
lea edi, [edx + ebp]
add edx, eax
mov ecx, ebx
shr ecx, 1
and ecx, 1
mov eax, edx
mov dword [esp + 0x14], edi
xchg esi, eax
rep movsw word es:[edi], word [esi]
xchg esi, eax
test bl, 1
je 0x421471
mov eax, dword [esp + 4]
and eax, 2
movzx ecx, byte [edx + eax]
mov edx, dword [esp + 0x14]
mov byte [edx + eax], cl
mov edi, dword [esp + 0x34]
push dword [edi]
call fcn.00408400
add esp, 4
mov ebx, dword [esp + 4]
mov dword [edi], ebp
lea eax, [ebx + ebp]
mov dword [edi + 4], eax
add esi, ebp
mov dword [edi + 8], esi
mov ch, byte [esp + 3]
mov esi, dword [esp + 0xc]
cmp ebx, ebx
jae 0x42150e
add ebp, ebx
mov edx, dword [esp + 8]
add edx, ebx
sub edx, esi
cmp edx, 1
jle 0x4214c0
lea eax, [edx + ebp]
add edx, ebp
dec edx
jmp 0x42150a
lea edi, [ebp + 1]
mov dword [esp + 4], ebx
mov bl, ch
mov ecx, edx
shr ecx, 2
mov eax, ebp
xchg esi, eax
rep movsd dword es:[edi], dword [esi]
xchg esi, eax
mov eax, edx
and edx, 0xfffffffc
lea edi, [edx + ebp]
inc edi
add edx, ebp
mov ecx, eax
shr ecx, 1
and ecx, 1
mov esi, edx
mov ebp, edi
xchg esi, esi
rep movsw word es:[edi], word [esi]
xchg esi, esi
mov ch, bl
mov ebx, dword [esp + 4]
mov edi, dword [esp + 0x34]
test al, 1
je 0x42150e
mov esi, eax
and esi, 2
mov eax, ebp
add eax, esi
add edx, esi
mov cl, byte [edx]
mov byte [eax], cl
mov eax, dword [edi]
mov byte [eax + ebx], ch
inc dword [edi + 4]
cmp byte [esp + 0x1c], 0xd
je 0x42156e
movzx eax, byte [esp + 2]
cmp al, 0xa
mov esi, dword [esp + 0x18]
jne 0x4212c0
jmp 0x42156e
push 0x59ea2086
push dword [0x44cd9c]
call fcn.00440990
add esp, 8
push 2
push dword [esi]
call eax
push 0x2e775759
push dword [0x44cd9c]
call fcn.00440990
add esp, 8
push dword [esi]
call eax
mov dword [esi], 0xffffffff
mov dword [esp + 0x10], 0
mov eax, dword [esp + 0x10]
add esp, 0x20
pop esi
pop edi
pop ebx
pop ebp
ret 4