Function at 0x1100f530
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
and ecx, 7
je 0x1100f59a
mov edx, dword [ebp + 8]
mov eax, dword [edx + 8]
and eax, 7
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 8]
cmp edx, dword [ebp - 0x18]
jge 0x1100f564
mov eax, dword [ebp + 8]
push eax
call fcn.1100e7f0
add esp, 4
mov edx, 1
mov ecx, dword [ebp - 0x18]
shl edx, cl
sub edx, 1
mov eax, dword [ebp + 8]
and edx, dword [eax + 0xc]
mov dword [ebp - 0x14], edx
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0xc]
mov ecx, dword [ebp - 0x18]
shr edx, cl
mov eax, dword [ebp + 8]
mov dword [eax + 0xc], edx
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 8]
sub edx, dword [ebp - 0x18]
mov eax, dword [ebp + 8]
mov dword [eax + 8], edx
mov dword [ebp - 0xc], 0
mov ecx, dword [ebp + 8]
cmp dword [ecx + 8], 0
jle 0x1100f5e5
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0xc]
and eax, 0xff
mov ecx, dword [ebp - 0xc]
mov byte [ebp + ecx - 0x10], al
mov edx, dword [ebp - 0xc]
add edx, 1
mov dword [ebp - 0xc], edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0xc]
shr ecx, 8
mov edx, dword [ebp + 8]
mov dword [edx + 0xc], ecx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
sub ecx, 8
mov edx, dword [ebp + 8]
mov dword [edx + 8], ecx
jmp 0x1100f5a1
cmp dword [ebp - 0xc], 4
jge 0x1100f634
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 8]
mov edx, dword [eax]
cmp edx, dword [ecx + 4]
jb 0x1100f601
mov dword [ebp - 0x1c], 0
jmp 0x1100f61f
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov dl, byte [ecx]
mov byte [ebp - 0x1d], dl
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
add ecx, 1
mov edx, dword [ebp + 8]
mov dword [edx], ecx
movzx eax, byte [ebp - 0x1d]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0xc]
mov dl, byte [ebp - 0x1c]
mov byte [ebp + ecx - 0x10], dl
mov eax, dword [ebp - 0xc]
add eax, 1
mov dword [ebp - 0xc], eax
jmp 0x1100f5e5
movzx ecx, byte [ebp - 0xf]
shl ecx, 8
movzx edx, byte [ebp - 0x10]
add ecx, edx
mov dword [ebp - 8], ecx
movzx eax, byte [ebp - 0xd]
shl eax, 8
movzx ecx, byte [ebp - 0xe]
add eax, ecx
mov dword [ebp - 4], eax
mov edx, dword [ebp - 8]
xor edx, 0xffff
cmp dword [ebp - 4], edx
je 0x1100f674
push str.zlib_corrupt
call fcn.11009ff0
add esp, 4
jmp 0x1100f6f6
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
add ecx, dword [ebp - 8]
mov edx, dword [ebp + 8]
cmp ecx, dword [edx + 4]
jbe 0x1100f693
push str.read_past_buffer
call fcn.11009ff0
add esp, 4
jmp 0x1100f6f6
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x10]
add ecx, dword [ebp - 8]
mov edx, dword [ebp + 8]
cmp ecx, dword [edx + 0x18]
jbe 0x1100f6bc
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.1100ede0
add esp, 8
test eax, eax
jne 0x1100f6bc
xor eax, eax
jmp 0x1100f6f6
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x10]
push eax
call fcn.110676b0
add esp, 0xc
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
add edx, dword [ebp - 8]
mov eax, dword [ebp + 8]
mov dword [eax], edx
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x10]
add edx, dword [ebp - 8]
mov eax, dword [ebp + 8]
mov dword [eax + 0x10], edx
mov eax, 1
mov esp, ebp
pop ebp
ret