Function at 0x41d410
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x110
mov dword [esp + 0x20], 0xabdead81
mov dword [esp + 0x24], 0xd7b9a93b
mov dword [esp + 0x28], 0xd346d5b5
mov dword [esp + 0x2c], 0xdf4ed191
mov dword [esp + 0x30], 0xdb96dd4c
mov dword [esp + 0x34], 0xc75ad9b9
mov dword [esp + 0x38], 0xc3efc5a5
lea eax, [esp + 0x3c]
mov word [esp + 0x3c], 0xc1c0
mov dword [esp + 0x3e], 0
mov dword [esp + 8], 0
mov ecx, dword [esp + 8]
cmp ecx, 0x21
ja 0x41d4c4
nop
nop
nop
nop
nop
mov ecx, dword [esp + 8]
mov edx, dword [esp + 8]
movzx edx, byte [esp + edx + 0x20]
lea esi, [ecx + 0x3a]
and esi, edx
add ecx, edx
add esi, esi
sub ecx, esi
add ecx, 0x9001c83a
mov dword [esp + 0xa0], ecx
mov ecx, dword [esp + 0xa0]
add cl, 0x6a
mov edx, dword [esp + 8]
mov byte [esp + edx + 0x20], cl
inc dword [esp + 8]
mov ecx, dword [esp + 8]
cmp ecx, 0x22
jb 0x41d480
lea esi, [esp + 0xee]
lea edx, [esp + 0x20]
mov ecx, 7
mov edi, esi
xchg esi, edx
rep movsd dword es:[edi], dword [esi]
xchg esi, edx
lea edi, [esp + 0x10a]
mov ecx, 1
xchg esi, eax
rep movsw word es:[edi], word [esi]
xchg esi, eax
lea edi, [esp + 0x7c]
push edi
push 0
push 0
push 0xe
push esi
push 0
call dword [0x445f38]
mov ebx, dword [esp + 0x7c]
test ebx, ebx
jns 0x41d510
mov eax, 0xffffffff
jmp 0x41d513
lea eax, [ebx + ebx]
push eax
call fcn.00409060
add esp, 4
push edi
push ebx
mov ebx, eax
push eax
push 0xe
push esi
push 0
call dword [0x445f38]
mov dword [esp + 0x20], 0x4b24553a
mov dword [esp + 0x24], 0x4f2d492d
mov dword [esp + 0x28], 0x432b4dd3
mov dword [esp + 0x2c], 0x47db41db
mov dword [esp + 0x30], 0x7b4445d3
lea eax, [esp + 0x34]
mov dword [esp + 0x34], 0
mov dword [esp + 0x38], 0
mov dword [esp + 0x3c], 0
mov dword [esp + 8], 0
mov ecx, dword [esp + 8]
cmp ecx, 0x1f
ja 0x41d5d4
nop
nop
nop
nop
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 + 0x4d]
and esi, edx
add ecx, edx
add esi, esi
sub ecx, esi
add ecx, 0xd204c34d
mov dword [esp + 0xa0], ecx
mov ecx, dword [esp + 0xa0]
add cl, 0xe5
mov edx, dword [esp + 8]
mov byte [esp + edx + 0x20], cl
inc dword [esp + 8]
mov ecx, dword [esp + 8]
cmp ecx, 0x20
jb 0x41d590
lea edi, [esp + 0x8c]
lea edx, [esp + 0x20]
mov ecx, 5
xchg esi, edx
rep movsd dword es:[edi], dword [esi]
xchg esi, edx
lea edi, [esp + 0xa0]
xor ecx, ecx
xchg esi, eax
rep movsw word es:[edi], word [esi]
xchg esi, eax
mov eax, dword [esp + 0x7c]
mov ecx, eax
add ecx, 9
jns 0x41d60a
mov eax, 0xffffffff
jmp 0x41d60f
add eax, eax
add eax, 0x12
push eax
call fcn.00409060
add esp, 4
mov esi, eax
movzx ecx, word [ebx]
test cx, cx
je 0x41d641
lea edx, [ebx + 2]
mov eax, esi
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 0x41d630
mov word [eax], 0
movzx ecx, word [esp + 0x8c]
test cx, cx
je 0x41d671
lea edx, [esp + 0x8e]
nop
nop
nop
nop
nop
nop
mov word [eax], cx
add eax, 2
movzx ecx, word [edx]
add edx, 2
test cx, cx
jne 0x41d660
mov edi, dword [ebp + 8]
mov word [eax], 0
lea eax, [esp + 0x88]
push eax
push esi
call fcn.004398b0
add esp, 8
not eax
shr eax, 0x1f
mov dword [esp + 0x80], ebx
jmp dword [eax*4 + 0x441690]