Function at 0x4175dc
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebx
push esi
mov esi, eax
push edi
push ebp
add esp, 0xfffffff0
mov edi, 0x4436fc
lea eax, [esi + 0x60b0]
call fcn.0041b960
mov byte [esp], 0
mov edx, dword [esi + 0x990]
mov dword [esp + 4], edx
jmp 0x4178bb
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 0x417662
xor eax, eax
mov dword [esi + 0x58], eax
mov eax, dword [esi + 0x149c]
jmp 0x417644
and edx, dword [esi + 0x24]
mov ecx, dword [esi]
cmp bl, byte [ecx + edx]
jne 0x417655
inc dword [esi + 0x58]
inc eax
mov edx, eax
cmp edx, dword [esp + 4]
jae 0x417655
cmp dword [esi + 0x58], 0x101
jl 0x417636
cmp dword [esi + 0x58], 0xa
jle 0x417662
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 0x4176f8
cmp byte [esp], 0
je 0x41771e
cmp dword [esi + 0x54], 0
jne 0x41771e
mov dword [esi + 0x58], 0x40
mov ecx, edx
mov eax, esi
mov edx, 1
call fcn.004166f4
cmp dword [esi + 0x58], 0x40
jge 0x41771e
xor eax, eax
mov dword [esi + 0x54], eax
cmp dword [esi + 0x54], 0
je 0x417872
mov edx, dword [esp + 4]
sub edx, dword [esi + 0x149c]
and edx, dword [esi + 0x24]
cmp edx, dword [esi + 0x58]
jbe 0x417872
cmp byte [esi + 0x14a1], 0
jne 0x417756
mov ecx, dword [esi + 0x54]
cmp ecx, dword [esi + 0x149c]
ja 0x417872
mov ecx, dword [esi + 0x54]
mov edx, dword [esi + 0x58]
mov eax, esi
call fcn.00417080
mov eax, dword [esi + 0x149c]
inc eax
and eax, dword [esi + 0x24]
mov dword [esi + 0x149c], eax
xor edx, edx
jmp 0x417860
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 0x417843
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 0x41777a
mov byte [esp], 1
jmp 0x4178bb
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 0x4178ab
call fcn.0041b960
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 0x4178d6
mov eax, ebx
call fcn.00419cc8
mov dl, 1
jmp 0x4178d8
xor edx, edx
test dl, dl
je 0x417608
lea eax, [esi + 0x60b0]
call fcn.0041b960
add esp, 0x10
pop ebp
pop edi
pop esi
pop ebx
ret