Function at 0x42fed9
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push esi
mov esi, dword [ebx + 0x10]
push 0xfffffffffffffffd
lea eax, [esi + 0x1c]
push eax
push ebx
mov dword [ebp - 0x10], esi
mov byte [esi + 0x14], 0x43
call fcn.0042f970
xor eax, eax
add esp, 0xc
mov dword [ebp - 0xc], eax
cmp dword [esi + 8], eax
jle 0x42ff1e
push edi
jmp 0x42fd53
mov esi, ecx
mov edx, dword [esi]
mov edi, dword [ebx + 0x10]
mov esi, dword [edx + eax*4]
lea eax, [edx + eax*4]
movzx edx, byte [edi + 0x14]
xor edx, 3
mov ecx, 0xfffffffd
mov dword [ebp - 4], eax
mov dword [ebp - 8], edi
mov dword [ebp - 0x18], edx
test esi, esi
je 0x42ff0a
jmp 0x42fd83
mov ecx, dword [ebp - 0x14]
mov eax, ecx
dec ecx
mov dword [ebp - 0x14], ecx
test eax, eax
je 0x42ff0a
cmp byte [esi + 4], 8
jne 0x42fda6
push 0xfffffffffffffffd
lea ecx, [esi + 0x68]
push ecx
push ebx
call fcn.0042f970
add esp, 0xc
mov al, byte [esi + 5]
movzx edx, al
xor edx, 3
test dword [ebp - 0x18], edx
je 0x42fdc9
mov dl, byte [edi + 0x14]
and dl, 3
and al, 0xf8
or dl, al
mov byte [esi + 5], dl
mov dword [ebp - 4], esi
jmp case.default.0x42fdea
mov eax, dword [esi]
mov ecx, dword [ebp - 4]
mov dword [ecx], eax
cmp esi, dword [edi + 0x1c]
jne 0x42fdda
mov edx, dword [esi]
mov dword [edi + 0x1c], edx
movzx eax, byte [esi + 4]
add eax, 0xfffffffc
cmp eax, 6
ja case.default.0x42fdea
jmp dword [eax*4 + 0x42ff24]
mov edi, ebx
call fcn.004327d0
mov edi, dword [ebp - 8]
jmp case.default.0x42fdea
cmp byte [esi + 6], 0
movzx eax, byte [esi + 7]
je 0x42fe18
shl eax, 4
add eax, 0x18
push 0
push eax
jmp 0x42fef3
lea eax, [eax*4 + 0x14]
push 0
push eax
jmp 0x42fef3
lea eax, [esi + 0x10]
cmp dword [esi + 8], eax
je 0x42fe3f
mov ecx, dword [esi + 0x14]
mov edx, dword [eax]
mov dword [ecx + 0x10], edx
mov eax, dword [eax]
mov ecx, dword [esi + 0x14]
mov dword [eax + 0x14], ecx
push 0
push 0x20
jmp 0x42fef3
mov eax, dword [esi + 0x10]
cmp eax, 0x4a3b38
je 0x42fe6c
mov cl, byte [esi + 7]
mov edx, 1
shl edx, cl
push 0
shl edx, 5
push edx
push eax
push ebx
call fcn.00434870
add esp, 0x10
mov eax, dword [esi + 0x1c]
mov ecx, dword [esi + 0xc]
push 0
shl eax, 4
push eax
push ecx
push ebx
call fcn.00434870
push 0
push 0x20
push esi
push ebx
call fcn.00434870
add esp, 0x20
jmp case.default.0x42fdea
mov edx, dword [esi + 0x20]
push edx
mov edi, esi
call fcn.004326e0
mov eax, dword [esi + 0x30]
mov ecx, dword [esi + 0x28]
lea eax, [eax + eax*2]
add eax, eax
add eax, eax
push 0
add eax, eax
push eax
push ecx
push ebx
call fcn.00434870
mov edx, dword [esi + 0x2c]
mov eax, dword [esi + 0x20]
push 0
shl edx, 4
push edx
push eax
push ebx
call fcn.00434870
push 0
push 0x78
push esi
push ebx
call fcn.00434870
mov edi, dword [ebp - 8]
add esp, 0x34
jmp case.default.0x42fdea
mov eax, dword [ebx + 0x10]
dec dword [eax + 4]
mov ecx, dword [esi + 0xc]
push 0
add ecx, 0x11
push ecx
jmp 0x42fef3
mov edx, dword [esi + 0x10]
push 0
add edx, 0x18
push edx
push esi
push ebx
call fcn.00434870
add esp, 0x10
mov eax, dword [ebp - 4]
mov esi, dword [eax]
test esi, esi
jne 0x42fd80
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
inc eax
mov dword [ebp - 0xc], eax
cmp eax, dword [ecx + 8]
jl 0x42fd51
pop edi
pop esi
mov esp, ebp
pop ebp
ret