Function at 0x417eb0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebx
push esi
mov esi, eax
push edi
push ebp
add esp, 0xfffffff0
mov edi, 0x445874
lea eax, [esi + 0x60b0]
call fcn.0041c33c
mov byte [esp], 0
mov edx, dword [esi + 0x990]
mov dword [esp + 4], edx
jmp 0x41818f
mov ecx, dword [esi]
mov eax, dword [esi + 0x149c]
mov bl, byte [ecx + eax]
xor eax, eax
mov dword [esi + 0x54], eax
mov edx, dword [esi + 0x149c]
dec edx
and edx, dword [esi + 0x24]
mov ecx, dword [esi]
cmp bl, byte [ecx + edx]
jne 0x417f36
xor eax, eax
mov dword [esi + 0x58], eax
mov eax, dword [esi + 0x149c]
jmp 0x417f18
and edx, dword [esi + 0x24]
mov ecx, dword [esi]
cmp bl, byte [ecx + edx]
jne 0x417f29
inc dword [esi + 0x58]
inc eax
mov edx, eax
cmp edx, dword [esp + 4]
jae 0x417f29
cmp dword [esi + 0x58], 0x101
jl 0x417f0a
cmp dword [esi + 0x58], 0xa
jle 0x417f36
mov dword [esi + 0x54], 1
mov eax, dword [esi + 0x149c]
mov edx, dword [esi]
xor ecx, ecx
mov cl, byte [edx + eax + 2]
mov edx, dword [edi + ecx*4]
mov ecx, dword [esi]
shl edx, 0xa
movzx ecx, byte [ecx + eax + 1]
mov ecx, dword [edi + ecx*4]
shl ecx, 4
add edx, ecx
mov ecx, dword [esi]
movzx ecx, byte [ecx + eax]
add edx, ecx
and edx, 0x3ffff
mov dword [esp + 8], edx
mov edx, dword [esi]
movzx edx, byte [edx + eax + 3]
mov ecx, dword [edi + edx*4]
shl ecx, 6
add ecx, dword [esp + 8]
and ecx, 0x3ffff
mov dword [esp + 0xc], ecx
mov edx, dword [esi]
mov ebp, dword [esi + 0x149c]
movzx eax, byte [edx + eax + 4]
mov edx, dword [esi + 0x10]
mov ecx, dword [edi + eax*4]
shl ecx, 8
add ecx, dword [esp + 0xc]
and ecx, dword [esi + 0x1c]
mov eax, ecx
mov ecx, dword [esi + 0x10]
mov edx, dword [edx + eax*4]
and edx, dword [esi + 0x24]
mov dword [ecx + eax*4], ebp
mov eax, dword [esi + 0x14]
mov ecx, dword [esi + 0x149c]
mov dword [eax + ecx*4], edx
test byte [esi + 0x149c], 0xf
je 0x417fcc
cmp byte [esp], 0
je 0x417ff2
cmp dword [esi + 0x54], 0
jne 0x417ff2
mov dword [esi + 0x58], 0x40
mov ecx, edx
mov eax, esi
mov edx, 1
call fcn.00416fc8
cmp dword [esi + 0x58], 0x40
jge 0x417ff2
xor eax, eax
mov dword [esi + 0x54], eax
cmp dword [esi + 0x54], 0
je 0x418146
mov edx, dword [esp + 4]
sub edx, dword [esi + 0x149c]
and edx, dword [esi + 0x24]
cmp edx, dword [esi + 0x58]
jbe 0x418146
cmp byte [esi + 0x14a1], 0
jne 0x41802a
mov ecx, dword [esi + 0x54]
cmp ecx, dword [esi + 0x149c]
ja 0x418146
mov ecx, dword [esi + 0x54]
mov edx, dword [esi + 0x58]
mov eax, esi
call fcn.00417954
mov eax, dword [esi + 0x149c]
inc eax
and eax, dword [esi + 0x24]
mov dword [esi + 0x149c], eax
xor edx, edx
jmp 0x418134
mov eax, dword [esi + 0x149c]
mov ecx, dword [esi]
mov ebx, dword [esi]
movzx ecx, byte [ecx + eax]
inc eax
and eax, dword [esi + 0x24]
movzx eax, byte [ebx + eax]
shl eax, 8
mov bl, byte [esi + 0x149c]
add ecx, eax
mov eax, ecx
mov ecx, dword [esi + 4]
and eax, 0x3fff
mov byte [ecx + eax], bl
mov eax, dword [esi + 0x149c]
mov ecx, dword [esi]
mov ebx, dword [esi]
movzx ecx, byte [ecx + eax + 2]
movzx ebx, byte [ebx + eax + 1]
mov ecx, dword [edi + ecx*4]
shl ecx, 0xa
mov ebx, dword [edi + ebx*4]
shl ebx, 4
add ecx, ebx
mov ebx, dword [esi]
movzx eax, byte [ebx + eax]
add ecx, eax
mov bx, word [esi + 0x149c]
and ecx, 0x3ffff
mov eax, ecx
mov ecx, dword [esi + 8]
mov word [ecx + eax*2], bx
mov ecx, dword [esi + 0x149c]
mov ebx, dword [esi]
movzx ebx, byte [ebx + ecx + 3]
mov ebx, dword [edi + ebx*4]
shl ebx, 6
add eax, ebx
mov ebx, dword [esi + 0xc]
and eax, 0x3ffff
mov dword [ebx + eax*4], ecx
mov ecx, dword [esi]
mov ebx, dword [esi + 0x149c]
mov ebp, dword [esi + 0x149c]
movzx ecx, byte [ecx + ebx + 4]
mov ebx, dword [esi + 0x10]
mov ecx, dword [edi + ecx*4]
shl ecx, 8
add eax, ecx
mov ecx, dword [esi + 0x10]
and eax, dword [esi + 0x1c]
mov ecx, dword [ecx + eax*4]
and ecx, dword [esi + 0x24]
mov dword [ebx + eax*4], ebp
mov ebx, dword [esi]
movzx ebx, byte [ebx + ecx]
xor eax, ebx
test al, 0xf
je 0x418117
xor ecx, ecx
mov eax, dword [esi + 0x14]
mov ebx, dword [esi + 0x149c]
mov dword [eax + ebx*4], ecx
mov eax, dword [esi + 0x149c]
inc eax
and eax, dword [esi + 0x24]
mov dword [esi + 0x149c], eax
inc edx
mov ecx, dword [esi + 0x58]
dec ecx
cmp edx, ecx
jl 0x41804e
mov byte [esp], 1
jmp 0x41818f
mov byte [esp], 0
lea eax, [esi + 0x60b0]
mov edx, ebx
mov ecx, dword [eax + 0x1c]
lea ecx, [ecx + ecx*2]
mov ebx, dword [eax + 0x18]
mov byte [ebx + ecx*4], 0
mov ecx, dword [eax + 0x1c]
lea ecx, [ecx + ecx*2]
mov ebx, dword [eax + 0x18]
mov byte [ebx + ecx*4 + 1], dl
inc dword [eax + 0x1c]
mov edx, dword [eax + 0x1c]
cmp edx, 0x4000
jb 0x41817f
call fcn.0041c33c
mov eax, dword [esi + 0x149c]
inc eax
and eax, dword [esi + 0x24]
mov dword [esi + 0x149c], eax
lea ebx, [esi + 0x990]
mov ebp, dword [esi + 0x149c]
cmp ebp, dword [ebx]
jne 0x4181aa
mov eax, ebx
call fcn.0041a970
mov dl, 1
jmp 0x4181ac
xor edx, edx
test dl, dl
je 0x417edc
lea eax, [esi + 0x60b0]
call fcn.0041c33c
add esp, 0x10
pop ebp
pop edi
pop esi
pop ebx
ret