Function at 0x415160
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov dword [ebp - 4], 0x441b02
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x88], eax
mov eax, 0x24
mov ecx, dword [ebp - 0x38]
cdq
idiv ecx
mov ecx, eax
mov eax, dword [ebp - 0x88]
xor edx, edx
div ecx
mov dword [ebp - 0x8c], eax
mov dword [ebp - 0x58], eax
mov eax, 0x27
mov ecx, dword [ebp - 0x14]
cdq
idiv ecx
mov edi, eax
add edi, dword [ebp - 0x48]
mov dword [ebp - 0x24], edi
jb fcn.00415127
inc dword [ebp - 0x3c]
mov ebx, 0x4cd000
mov eax, dword [ebp - 0xc]
sub eax, 2
cmp dword [ebp - 0x3c], eax
jbe 0x4150e4
mov dword [ebp - 0x5c], 0x468f02
mov esi, dword [ebp - 0x14]
sub esi, 0xd
cmp esi, 0x2731c
jae 0x41519a
mov eax, dword [ebp - 4]
mov al, byte [eax + esi]
mov byte [ebx + esi], al
inc esi
jmp 0x415186
mov dword [ebp - 0x60], 0x5e0000
mov eax, dword [ebp - 0xc]
sub eax, 6
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
mov edx, dword [ebp - 0x5c]
mov al, byte [edx + eax]
mov byte [ebp - 0x1d], al
mov eax, dword [ebp - 0x28]
mov edx, dword [ebp - 0x60]
mov cl, byte [ebp - 0x1d]
mov byte [edx + eax], cl
inc dword [ebp - 0x28]
cmp dword [ebp - 0x28], 0xd5d0
jb 0x4151aa
mov dword [ebp - 0x64], 0x479d82
mov dword [ebp - 0x68], 0x10000000
mov dword [ebp - 0x10], 0x476902
mov dword [ebp - 0x80], 0x114000
mov dword [ebp - 0x2c], 0x3f1
mov eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov dword [ebp - 0x74], eax
mov eax, dword [ebp - 0x38]
sub eax, 9
mov dword [ebp - 0x30], eax
mov eax, 4
mul dword [ebp - 0x2c]
mov dword [ebp - 0x90], eax
mov dword [ebp - 0x2c], eax
add dword [ebp - 0x2c], 0x3c
mov eax, ebx
sub eax, dword [ebp - 0x2c]
inc ebp
aam 0x89
inc ebp
mov al, 0x8b
jge fcn.0041521d
shl edi, 3
add edi, dword [ebp - 0x10]
add edi, dword [ebp - 0x30]
mov dword [ebp - 0x6c], edi
mov eax, edi
mov ax, word [eax]
mov word [ebp - 0x4a], ax
movzx edi, word [ebp - 0x4a]
mov edx, dword [ebp - 0xc]
shl edx, 1
mov ecx, edx
sar edi, cl
mov word [ebp - 0x6e], di
mov eax, dword [ebp - 0x34]
add eax, dword [ebp - 8]
sub eax, 0xd
movzx edx, word [ebp - 0x4a]
cmp eax, edx
je 0x4152fa
movzx edi, word [ebp - 0x4a]
mov ecx, dword [ebp - 0x14]
sub ecx, 9
shl edi, cl
mov word [ebp - 0x3e], di
movzx edi, word [ebp - 0x3e]
mov ecx, dword [ebp - 8]
add ecx, 3
sar edi, cl
mov word [ebp - 0x3e], di
mov eax, dword [ebp - 0xc]
add eax, dword [ebp - 8]
sub eax, 7
cmp dword [ebp - 0x30], eax
je 0x41529c
mov eax, dword [ebp - 0x34]
sub eax, 0xc
movzx edx, word [ebp - 0x3e]
cmp eax, edx
je 0x4152fa
mov eax, dword [ebp - 0x50]
sub eax, dword [ebp - 0x68]
mov dword [ebp - 0x7c], eax
movzx eax, word [ebp - 0x6e]
mov edx, dword [ebp - 0xc]
add edx, dword [ebp - 0x38]
sub edx, 0xc
cmp eax, edx
jne 0x4152d5
mov eax, dword [ebp - 0x74]
movzx edx, word [ebp - 0x3e]
add eax, edx
add eax, dword [ebp - 0x50]
mov dword [ebp - 0x78], eax
mov edi, eax
mov edx, dword [ebp - 0x14]
sub edx, 0xd
mov ecx, dword [ebp - 0x7c]
add ecx, dword [edi]
mov dword [edi + edx*4], ecx
mov eax, 2
mov ecx, dword [ebp - 8]
cdq
idiv ecx
add dword [ebp - 0x30], eax
mov edi, dword [ebp - 0x34]
add edi, ecx
sub edi, 0xc
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x30]
cmp dword [edx + edi*4], ecx
ja 0x41521a
mov eax, dword [ebp - 0x10]
mov edi, dword [ebp - 0xc]
add edi, dword [ebp - 0x14]
sub edi, 0x12
mov edx, eax
add edx, dword [eax + edi*4]
mov dword [ebp - 0x10], edx
mov eax, edx
cmp dword [ebp - 0x64], eax
jbe 0x415331
mov edx, dword [ebp - 0x14]
mov ecx, edx
add ecx, dword [ebp - 8]
sub ecx, 0xe
mov edi, edx
add edi, dword [ebp - 0xc]
sub edi, 0x12
cmp ecx, dword [eax + edi*4]
jne 0x4151e3
leave
mov eax, 0x4da769
add eax, 0x3b0
push eax
ret