Function at 0x422887
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49a6c7
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
sub esp, 0x80
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
movzx eax, byte [ebp + 0x14]
test eax, eax
je 0x4229e7
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x30], eax
lea eax, [ebp + 0x24]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x60], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x50]
movzx eax, byte [eax]
test eax, eax
je 0x4229c7
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x60]
mov dword [ebp - 0x78], eax
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x88], eax
mov eax, dword [ebp - 0x78]
mov dword [ebp - 0x40], eax
and dword [ebp - 0x18], 0
jmp 0x422906
mov eax, dword [ebp - 0x18]
inc eax
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0x3543
jge 0x4229c5
and dword [ebp - 0x1c], 0
jmp 0x422920
mov eax, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0x2faf
jge 0x4229c0
mov eax, dword [ebp - 0x40]
mov eax, dword [eax]
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x12], 0x8b
movzx eax, byte [ebp - 0x12]
mov ecx, dword [ebp - 0x68]
sub ecx, eax
mov dword [ebp - 0x48], ecx
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x20], eax
mov byte [ebp - 0x11], 0xc2
movzx eax, byte [ebp - 0x11]
mov ecx, dword [ebp - 0x48]
sub ecx, eax
imul ecx, dword [ebp - 0x20]
movzx eax, byte [ebp - 0x11]
mov edx, dword [ebp - 0x20]
imul edx, eax
add ecx, edx
movzx eax, byte [ebp - 0x12]
mov edx, dword [ebp - 0x24]
imul edx, eax
add ecx, edx
mov eax, dword [ebp - 0x88]
mov eax, dword [eax]
shl eax, cl
xor eax, dword [ebp - 0x1c]
cdq
mov dword [ebp - 0x90], eax
mov dword [ebp - 0x8c], edx
push 0xefa
push 0x7fa6
push 0x575d
push 1
push 0x57ac
lea eax, [ebp - 0x90]
push eax
push 1
call fcn.00421ec4
add esp, 0x1c
jmp 0x422919
jmp 0x4228ff
jmp 0x4229e2
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x70], eax
mov eax, dword [ebp - 0x70]
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 0x58]
mov edx, dword [eax]
mov ecx, 0xa938d8
call fcn.0042633b
jmp 0x422ab2
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x5c], eax
lea eax, [ebp + 0x28]
mov dword [ebp - 0x80], eax
mov eax, dword [ebp + 0x2c]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x64], eax
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x80]
movzx eax, byte [eax]
test eax, eax
je 0x422a3f
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x4c]
cmp dword [eax], 0x7737
jge 0x422a3d
mov eax, dword [ebp - 0x54]
push dword [eax]
call fcn.00484a5a
pop ecx
jmp 0x422ab2
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp - 0x64]
mov dword [ebp - 0x74], eax
mov eax, dword [ebp - 0x6c]
mov dword [ebp - 0x7c], eax
mov eax, dword [ebp - 0x74]
mov dword [ebp - 0x84], eax
and dword [ebp - 4], 0
mov eax, dword [ebp - 0x7c]
cmp dword [eax], 0x257c
jge 0x422a8f
push 0x31c5
push 0x6c74
push dword [ebp - 0x84]
push 0x22bc
push 1
push 0xa91
push 0
call fcn.0041fc26
add esp, 0x1c
jmp 0x422aa8
or dword [ebp - 4], 0xffffffff
jmp 0x422ab2
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret