Function at 0x41a170
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x98
mov ebx, dword [ebp + 0x10]
mov dword [esp + 0x20], 0xb321b11c
mov dword [esp + 0x24], 0xb729b520
mov dword [esp + 0x28], 0xab0ba93a
mov dword [esp + 0x2c], 0xaf0bad0b
mov dword [esp + 0x30], 0xa306a10c
mov dword [esp + 0x34], 0xa700a501
mov dword [esp + 0x38], 0x9b0f9939
mov dword [esp + 0x3c], 0x9f0a9d00
lea eax, [esp + 0x40]
mov word [esp + 0x40], 0x9190
mov dword [esp + 0x42], 0
mov dword [esp + 0x46], 0
mov word [esp + 0x4a], 0
mov dword [esp + 8], 0
mov ecx, dword [esp + 8]
cmp ecx, 0x2b
ja 0x41a242
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov ecx, dword [esp + 8]
mov edx, dword [esp + 8]
movzx edx, byte [esp + edx + 0x20]
lea esi, [ecx + edx]
add esi, 0x30cbd348
add ecx, 0x30cbd348
and ecx, edx
add ecx, ecx
sub esi, ecx
mov dword [esp + 0x70], esi
mov ecx, dword [esp + 0x70]
add cl, 8
mov edx, dword [esp + 8]
mov byte [esp + edx + 0x20], cl
inc dword [esp + 8]
mov ecx, dword [esp + 8]
cmp ecx, 0x2c
jb 0x41a200
mov esi, dword [ebp + 0xc]
lea edi, [esp + 0x70]
lea edx, [esp + 0x20]
mov ecx, 8
xchg esi, edx
rep movsd dword es:[edi], dword [esi]
xchg esi, edx
lea edi, [esp + 0x90]
mov ecx, 1
xchg esi, eax
rep movsw word es:[edi], word [esi]
xchg esi, eax
mov edi, dword [ebx + 4]
mov eax, 0xfffffffe
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp word [edi + eax + 2], 0
lea eax, [eax + 2]
jne 0x41a280
mov ebx, esi
cmp eax, 0xffffffdd
jge 0x41a299
mov eax, 0xffffffff
jmp 0x41a29c
add eax, 0x22
push eax
call fcn.00408d40
add esp, 4
mov esi, eax
movzx ecx, word [edi]
test cx, cx
je 0x41a2d1
add edi, 2
mov eax, esi
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov word [eax], cx
add eax, 2
movzx ecx, word [edi]
add edi, 2
test cx, cx
jne 0x41a2c0
mov word [eax], 0
movzx ecx, word [esp + 0x70]
test cx, cx
je 0x41a301
lea edx, [esp + 0x72]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov word [eax], cx
add eax, 2
movzx ecx, word [edx]
add edx, 2
test cx, cx
jne 0x41a2f0
mov word [eax], 0
mov eax, dword [ebp + 8]
mov dword [esp + 8], eax
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], ebx
mov eax, dword [ebp + 0x10]
mov dword [esp + 0x14], eax
mov eax, dword [ebp + 0x14]
mov dword [esp + 0x18], eax
mov dword [esp + 0x20], 0x1bed19ed
mov dword [esp + 0x24], 0x1723159e
mov dword [esp + 0x28], 0x139a11ed
mov dword [esp + 0x2c], 0x2fd32da0
mov dword [esp + 0x30], 0x2bd929de
mov dword [esp + 0x34], 0x27d125dd
mov dword [esp + 0x38], 0x231921d6
mov dword [esp + 0x3c], 0x3f053d07
mov dword [esp + 0x40], 0x3bdc3902
mov dword [esp + 0x44], 0x37c535b9
mov dword [esp + 0x48], 0x33c031cd
mov dword [esp + 0x4c], 0xcf39cd0f
mov dword [esp + 0x50], 0xcb46c93e
mov dword [esp + 0x54], 0xc74ec539
mov dword [esp + 0x58], 0xc31bc14c
mov dword [esp + 0x5c], 0xdf1bdd20
mov dword [esp + 0x60], 0xdbdad9e2
mov word [esp + 0x68], 0
mov dword [esp + 0x64], 0
mov dword [esp + 4], 0
mov eax, dword [esp + 4]
cmp eax, 0x49
ja 0x41a410
nop
nop
nop
nop
nop
mov eax, dword [esp + 4]
mov ecx, dword [esp + 4]
movzx ecx, byte [esp + ecx + 0x20]
lea edx, [eax + ecx]
add edx, 0x594b0754
add eax, 0x594b0754
and eax, ecx
add eax, eax
sub edx, eax
mov dword [esp + 0x1c], edx
mov eax, dword [esp + 0x1c]
add al, 0xb4
mov ecx, dword [esp + 4]
mov byte [esp + ecx + 0x20], al
inc dword [esp + 4]
mov eax, dword [esp + 4]
cmp eax, 0x4a
jb 0x41a3d0
lea eax, [esp + 8]
push eax
push 0x41a760
lea eax, [esp + 0x28]
push eax
push esi
call fcn.0041ac70
add esp, 0x10
mov ebx, eax
mov eax, dword [0x442f90]
mov ecx, 0xb529c30c
xor ecx, dword [0x442f98]
add eax, ecx
inc eax
nop
nop
nop
jmp eax