Function at 0x41e540
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebx
push esi
mov esi, eax
push edi
push ebp
add esp, 0xfffffff0
mov edi, 0x43e080
lea eax, [esi + 0x60b0]
call fcn.0042242c
mov byte [esp], 0
mov edx, dword [esi + 0x990]
mov dword [esp + 4], edx
jmp 0x41e81f
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 0x41e5c6
xor eax, eax
mov dword [esi + 0x58], eax
mov eax, dword [esi + 0x149c]
jmp 0x41e5a8
and edx, dword [esi + 0x24]
mov ecx, dword [esi]
cmp bl, byte [ecx + edx]
jne 0x41e5b9
inc dword [esi + 0x58]
inc eax
mov edx, eax
cmp edx, dword [esp + 4]
jae 0x41e5b9
cmp dword [esi + 0x58], 0x101
jl 0x41e59a
cmp dword [esi + 0x58], 0xa
jle 0x41e5c6
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 0x41e65c
cmp byte [esp], 0
je 0x41e682
cmp dword [esi + 0x54], 0
jne 0x41e682
mov dword [esi + 0x58], 0x40
mov ecx, edx
mov eax, esi
mov edx, 1
call fcn.0041d658
cmp dword [esi + 0x58], 0x40
jge 0x41e682
xor eax, eax
mov dword [esi + 0x54], eax
cmp dword [esi + 0x54], 0
je 0x41e7d6
mov edx, dword [esp + 4]
sub edx, dword [esi + 0x149c]
and edx, dword [esi + 0x24]
cmp edx, dword [esi + 0x58]
jbe 0x41e7d6
cmp byte [esi + 0x14a1], 0
jne 0x41e6ba
mov ecx, dword [esi + 0x54]
cmp ecx, dword [esi + 0x149c]
ja 0x41e7d6
mov ecx, dword [esi + 0x54]
mov edx, dword [esi + 0x58]
mov eax, esi
call fcn.0041dfe4
mov eax, dword [esi + 0x149c]
inc eax
and eax, dword [esi + 0x24]
mov dword [esi + 0x149c], eax
xor edx, edx
jmp 0x41e7c4
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 0x41e7a7
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 0x41e6de
mov byte [esp], 1
jmp 0x41e81f
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 0x41e80f
call fcn.0042242c
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 0x41e83a
mov eax, ebx
call fcn.00420b98
mov dl, 1
jmp 0x41e83c
xor edx, edx
test dl, dl
je 0x41e56c
lea eax, [esi + 0x60b0]
call fcn.0042242c
add esp, 0x10
pop ebp
pop edi
pop esi
pop ebx
ret