Function at 0xe1ae20
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x50
mov esi, dword [ebp + 0x14]
mov edi, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
xor ecx, ecx
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp word [eax + ecx], 0
lea ecx, [ecx + 2]
jne 0xe1ae40
add ecx, 0xfffffffe
and ecx, 0xfffe
mov word [esp + 0x18], cx
add ecx, 2
mov word [esp + 0x1a], cx
mov dword [esp + 0x1c], eax
mov word [esp + 0x30], 0
mov dword [esp + 0x2c], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x24], 0
mov dword [esp + 0x20], 0x8a858487
mov dword [esp + 0xc], 0
mov eax, dword [esp + 0xc]
cmp eax, 0x11
ja 0xe1aed8
nop
nop
nop
nop
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 0xc]
movzx edx, byte [esp + eax + 0x20]
lea eax, [ecx + edx]
add eax, 0x70342415
add ecx, 0x70342415
and ecx, edx
add ecx, ecx
sub eax, ecx
add al, 0x6d
mov ecx, dword [esp + 0xc]
mov byte [esp + ecx + 0x20], al
inc dword [esp + 0xc]
mov eax, dword [esp + 0xc]
cmp eax, 0x12
jb 0xe1aea0
mov ebx, dword [esp + 0x20]
mov eax, dword [0xe2a1f0]
test eax, eax
je 0xe1af28
xor ecx, ecx
mov edx, dword [0xe2a1f4]
nop
nop
nop
cmp dword [edx + ecx*8], 0x15bd542c
je 0xe1af00
inc ecx
cmp eax, ecx
jne 0xe1aef0
jmp 0xe1af28
mov eax, dword [edx + ecx*8 + 4]
cmp eax, ebx
je 0xe1af28
lea ecx, [esp + 0x14]
lea edx, [esp + 0x18]
push ecx
push 0
push 0
push 2
push edx
push dword [ebp + 8]
push 6
push eax
call fcn.00e15120
add esp, 0x20
mov ebx, eax
cmp ebx, 0xc0000023
jne 0xe1b159
push dword [esp + 0x14]
call fcn.00e14fa0
add esp, 4
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x14]
mov word [esp + 0x30], 0
mov dword [esp + 0x2c], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x24], 0
mov dword [esp + 0x20], 0x8a858487
mov dword [esp + 0xc], 0
mov ecx, dword [esp + 0xc]
cmp ecx, 0x11
ja 0xe1afba
mov edx, dword [esp + 0xc]
mov ecx, dword [esp + 0xc]
movzx ebx, byte [esp + ecx + 0x20]
lea ecx, [edx + ebx]
add ecx, 0x70342415
add edx, 0x70342415
and edx, ebx
add edx, edx
sub ecx, edx
add cl, 0x6d
mov edx, dword [esp + 0xc]
mov byte [esp + edx + 0x20], cl
inc dword [esp + 0xc]
mov ecx, dword [esp + 0xc]
cmp ecx, 0x12
jb 0xe1af80
mov ebx, dword [esp + 0x20]
mov ecx, dword [0xe2a1f0]
test ecx, ecx
je 0xe1b023
mov edi, ebx
xor edx, edx
mov ebx, dword [0xe2a1f4]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp dword [ebx + edx*8], 0x15bd542c
je 0xe1aff5
inc edx
cmp ecx, edx
jne 0xe1afe0
mov ebx, edi
mov edi, dword [ebp + 0x10]
jmp 0xe1b023
mov ecx, dword [ebx + edx*8 + 4]
mov ebx, edi
cmp ecx, edi
mov edi, dword [ebp + 0x10]
je 0xe1b023
lea edx, [esp + 0x14]
lea ebx, [esp + 0x18]
push edx
push eax
push dword [esp + 0x18]
push 2
push ebx
push dword [ebp + 8]
push 6
push ecx
call fcn.00e15120
add esp, 0x20
mov ebx, eax
test ebx, ebx
js 0xe1b14d
test edi, edi
je 0xe1b038
mov eax, dword [esp + 0x10]
mov eax, dword [eax + 4]
mov dword [edi], eax
cmp dword [ebp + 0x18], 0
je 0xe1b14d
mov dword [esp + 0x48], ebx
test esi, esi
je 0xe1b13d
mov eax, dword [ebp + 0x18]
mov ebx, dword [eax]
mov eax, dword [esp + 0x10]
mov eax, dword [eax + 8]
cmp ebx, eax
jb 0xe1b060
mov ebx, eax
mov edx, dword [esp + 0x10]
lea eax, [edx + 0xc]
mov ecx, ebx
shr ecx, 2
mov edi, esi
xchg esi, eax
rep movsd dword es:[edi], dword [esi]
xchg esi, eax
mov eax, ebx
and eax, 0xfffffffc
add esi, eax
add eax, edx
add eax, 0xc
mov ecx, ebx
xor ecx, 0xfffffffc
or ebx, 3
and ebx, ecx
mov ecx, ebx
shr ecx, 1
mov edx, eax
mov edi, esi
xchg esi, edx
rep movsw word es:[edi], word [esi]
xchg esi, edx
mov edx, ebx
not edx
or edx, 1
lea ecx, [ebx + edx]
mov edi, ecx
inc edi
je 0xe1b13d
and ebx, 0xfffffffe
not edx
or edx, ebx
add eax, edx
add esi, ebx
mov ebx, edi
and ebx, 7
je 0xe1b0e6
mov dword [esp + 0x44], ecx
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx ecx, byte [eax + edx]
mov byte [esi + edx], cl
inc edx
cmp ebx, edx
jne 0xe1b0d0
add eax, edx
add esi, edx
sub edi, edx
mov ecx, dword [esp + 0x44]
cmp ecx, 7
jb 0xe1b13d
xor edx, edx
nop
nop
nop
movzx ecx, byte [eax + edx]
mov byte [esi + edx], cl
movzx ecx, byte [eax + edx + 1]
mov byte [esi + edx + 1], cl
movzx ecx, byte [eax + edx + 2]
mov byte [esi + edx + 2], cl
movzx ecx, byte [eax + edx + 3]
mov byte [esi + edx + 3], cl
movzx ecx, byte [eax + edx + 4]
mov byte [esi + edx + 4], cl
movzx ecx, byte [eax + edx + 5]
mov byte [esi + edx + 5], cl
movzx ecx, byte [eax + edx + 6]
mov byte [esi + edx + 6], cl
movzx ecx, byte [eax + edx + 7]
mov byte [esi + edx + 7], cl
add edx, 8
cmp edi, edx
jne 0xe1b0f0
mov eax, dword [esp + 0x10]
mov eax, dword [eax + 8]
mov ecx, dword [ebp + 0x18]
mov dword [ecx], eax
mov ebx, dword [esp + 0x48]
push dword [esp + 0x10]
call fcn.00e15050
add esp, 4
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret