Function at 0x419e60
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x2c
mov esi, ecx
mov edi, dword [esp + 0x40]
mov byte [esp + 3], 0
mov dword [esp + 0x24], ecx
jmp 0x419ea0
mov eax, dword [edi]
movzx ecx, byte [esp + 0xf]
mov edx, dword [esp + 8]
mov byte [eax + edx], cl
inc dword [edi + 4]
cmp byte [esp + 3], 0xa
mov esi, dword [esp + 0x24]
je 0x41a1b5
push 0x1006c792
push dword [0x447080]
call fcn.0043aff0
add esp, 8
push 8
push 1
lea ecx, [esp + 0xb]
push ecx
push dword [esi]
call eax
test eax, eax
setg cl
jg 0x419ed0
cmp dword [esi], 0xffffffff
jne 0x41a177
test eax, eax
jle 0x41a1ad
movzx eax, byte [esp + 3]
mov byte [esp + 0xf], al
mov eax, dword [edi]
mov ebp, dword [edi + 4]
mov ebx, eax
xor ebx, ebp
mov esi, eax
not esi
and esi, ebp
add esi, esi
mov edx, esi
mov dword [esp + 0x28], ebx
sub edx, ebx
cmp ebp, dword [edi + 8]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x10], ebp
je 0x419f20
mov ebx, ebp
sub ebx, eax
mov ebp, eax
jmp 0x41a08a
mov dword [esp + 0x20], edx
mov ecx, eax
lea eax, [edx + 1]
mov ebx, ebp
mov dword [esp + 4], ecx
sub ebx, ecx
mov ecx, ebx
shr ecx, 1
mov dword [esp + 0x14], ecx
add ecx, ebx
cmp ecx, eax
ja 0x419f41
mov ecx, eax
mov dword [esp + 0x1c], ecx
push ecx
call fcn.00408160
add esp, 4
mov ebp, eax
cmp dword [esp + 4], 0
je 0x41a071
mov eax, dword [esp + 4]
cmp ebp, eax
mov dword [esp + 8], ebx
jbe 0x41a01f
cmp dword [esp + 0x10], ebp
jbe 0x41a01f
test ebx, ebx
je 0x41a05f
mov edx, dword [esp + 8]
mov eax, dword [esp + 4]
add eax, edx
dec eax
lea ecx, [edx + ebp]
dec ecx
mov edi, edx
and edi, 7
je 0x419fb4
neg edi
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx ebx, byte [eax + edx]
mov byte [ecx + edx], bl
dec edx
cmp edi, edx
jne 0x419fa0
add eax, edx
add ecx, edx
add edx, dword [esp + 8]
mov edi, dword [esp + 4]
sub edi, dword [esp + 0x10]
cmp edi, 0xfffffff8
ja 0x41a05f
neg edx
xor edi, edi
nop
nop
nop
nop
nop
nop
nop
movzx ebx, byte [eax + edi]
mov byte [ecx + edi], bl
movzx ebx, byte [eax + edi - 1]
mov byte [ecx + edi - 1], bl
movzx ebx, byte [eax + edi - 2]
mov byte [ecx + edi - 2], bl
movzx ebx, byte [eax + edi - 3]
mov byte [ecx + edi - 3], bl
movzx ebx, byte [eax + edi - 4]
mov byte [ecx + edi - 4], bl
movzx ebx, byte [eax + edi - 5]
mov byte [ecx + edi - 5], bl
movzx ebx, byte [eax + edi - 6]
mov byte [ecx + edi - 6], bl
movzx ebx, byte [eax + edi - 7]
mov byte [ecx + edi - 7], bl
add edi, 0xfffffff8
cmp edx, edi
jne 0x419fd0
jmp 0x41a05f
mov ecx, ebx
shr ecx, 2
mov edi, ebp
xchg esi, eax
rep movsd dword es:[edi], dword [esi]
xchg esi, eax
mov edx, ebx
and edx, 0xfffffffc
lea edi, [edx + ebp]
add edx, dword [esp + 4]
mov ecx, dword [esp + 0x14]
and ecx, 1
mov eax, edx
mov dword [esp + 0x14], edi
xchg esi, eax
rep movsw word es:[edi], word [esi]
xchg esi, eax
test bl, 1
je 0x41a05f
mov eax, dword [esp + 8]
and eax, 2
movzx ecx, byte [edx + eax]
mov edx, dword [esp + 0x14]
mov byte [edx + eax], cl
mov edi, dword [esp + 0x40]
push dword [edi]
call fcn.00408170
add esp, 4
mov ebx, dword [esp + 8]
mov dword [edi], ebp
mov edx, dword [esp + 0x20]
lea eax, [edx + ebp]
mov dword [edi + 4], eax
mov eax, dword [esp + 0x1c]
add eax, ebp
mov dword [edi + 8], eax
mov eax, dword [esp + 4]
mov dword [esp + 8], ebx
cmp ebx, edx
jae 0x419e80
add edx, eax
sub edx, dword [esp + 0x10]
add ebp, dword [esp + 8]
cmp edx, 1
mov ebx, edx
jle 0x41a130
mov dword [esp + 4], eax
add ebp, ebx
mov eax, ebx
and eax, 7
je 0x41a0d2
neg eax
xor ecx, ecx
nop
nop
nop
nop
movzx edx, byte [ebp + ecx - 1]
mov byte [ebp + ecx], dl
dec ecx
cmp eax, ecx
jne 0x41a0c0
add ebp, ecx
add ebx, ecx
mov eax, dword [esp + 4]
add eax, esi
mov ecx, dword [esp + 0x28]
add ecx, dword [esp + 0x10]
not ecx
add ecx, eax
cmp ecx, 7
jb 0x419e80
neg ebx
xor eax, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov ecx, dword [ebp + eax - 4]
mov dword [ebp + eax - 3], ecx
movzx ecx, word [ebp + eax - 8]
movzx edx, word [ebp + eax - 6]
mov word [ebp + eax - 5], dx
mov word [ebp + eax - 7], cx
add eax, 0xfffffff8
cmp ebx, eax
jne 0x41a100
jmp 0x419e80
lea edi, [ebp + 1]
mov ecx, ebx
shr ecx, 2
mov eax, ebp
xchg esi, eax
rep movsd dword es:[edi], dword [esi]
xchg esi, eax
mov edx, ebx
and edx, 0xfffffffc
lea eax, [edx + ebp]
inc eax
add edx, ebp
mov ecx, ebx
shr ecx, 1
and ecx, 1
mov esi, edx
mov edi, eax
xchg esi, esi
rep movsw word es:[edi], word [esi]
xchg esi, esi
mov edi, dword [esp + 0x40]
test bl, 1
je 0x419e80
and ebx, 2
movzx ecx, byte [edx + ebx]
mov byte [eax + ebx], cl
jmp 0x419e80
push 0xea8d1240
push dword [0x447080]
call fcn.0043aff0
add esp, 8
push 2
push dword [esi]
call eax
push 0xa3d60213
push dword [0x447080]
call fcn.0043aff0
add esp, 8
push dword [esi]
call eax
mov dword [esi], 0xffffffff
mov dword [esp + 0x18], 0
mov eax, dword [esp + 0x18]
add esp, 0x2c
pop esi
pop edi
pop ebx
pop ebp
ret 4