Function at 0x552a10
Capabilities:
Encrypt data using rc4 prga

Disassembly:
sub esp, 0x34
test eax, eax
push ebx
push ebp
mov ebp, dword [esp + 0x48]
push esi
mov esi, 0xffff8000
mov edx, 0x7fff
push edi
mov ebx, esi
mov edi, edx
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], ebx
mov dword [esp + 0x50], edx
mov dword [esp + 0x10], edi
je 0x552a83
xor ecx, ecx
mov cx, word [eax + 2]
cmp cx, si
jle 0x552a4e
mov esi, ecx
mov dword [esp + 0x14], esi
xor ecx, ecx
mov cx, word [eax + 6]
cmp cx, 0x7fff
jge 0x552a61
mov edx, ecx
mov dword [esp + 0x50], edx
xor ecx, ecx
mov cx, word [eax]
cmp cx, 0x8000
jle 0x552a73
mov ebx, ecx
mov dword [esp + 0x18], ebx
movsx eax, word [eax + 4]
cmp ax, 0x7fff
jge 0x552a83
mov edi, eax
mov dword [esp + 0x10], edi
test ebp, ebp
je 0x552acb
xor eax, eax
mov ax, word [ebp + 2]
cmp ax, si
jle 0x552a98
mov esi, eax
mov dword [esp + 0x14], esi
xor eax, eax
mov ax, word [ebp + 6]
cmp ax, dx
jge 0x552aa9
mov edx, eax
mov dword [esp + 0x50], edx
xor eax, eax
mov ax, word [ebp]
cmp ax, bx
jle 0x552aba
mov ebx, eax
mov dword [esp + 0x18], ebx
xor eax, eax
mov ax, word [ebp + 4]
cmp ax, di
jge 0x552acb
mov edi, eax
mov dword [esp + 0x10], edi
cmp si, dx
jge 0x552c7a
cmp bx, di
jge 0x552c7a
mov eax, dword [0x6dddcc]
mov dx, word [0x6dddd6]
mov ebx, dword [0x6dddd4]
mov ecx, dword [esp + 0x58]
push 0x6dddd8
push eax
lea esi, [esp + 0x30]
call fcn.005524e0
mov ax, word [esp + 0x64]
add esp, 8
cmp ax, word [esp + 0x60]
mov word [esp + 0x34], ax
jge 0x552c7a
lea ebx, [ebx]
cmp ax, word [0x6dde0a]
jl 0x552b41
cmp ax, word [0x6dde0c]
jge 0x552b41
mov eax, dword [esp + 0x54]
xor eax, 0xffffff
mov dword [esp + 0x20], eax
jmp 0x552b49
mov ecx, dword [esp + 0x54]
mov dword [esp + 0x20], ecx
lea edi, [esp + 0x28]
call fcn.00552590
movzx ecx, word [esp + 0x3a]
mov esi, dword [esp + 0x2c]
mov eax, ecx
shr eax, 8
lea edx, [eax + eax*2]
mov eax, dword [esi + 0x34]
lea eax, [eax + edx*4]
mov edx, dword [eax]
xor ebx, ebx
cmp edx, ebx
jle 0x552c6a
cmp edx, 0x100
jne 0x552b8b
mov edx, dword [eax + 4]
and ecx, 0xff
lea eax, [edx + ecx*2]
jmp 0x552b8d
xor eax, eax
mov ax, word [eax]
cmp ax, 0xffff
je 0x552c6a
mov ecx, dword [esi + 0x80]
movsx eax, ax
lea eax, [eax + eax*4]
lea eax, [ecx + eax*4]
cmp eax, ebx
je 0x552c6a
mov edx, dword [esp + 0x4c]
mov di, word [edx]
mov bp, word [eax + 2]
mov dx, word [edx + 2]
sub dx, word [eax + 0xa]
mov si, word [eax + 4]
add bp, di
mov cx, di
sub cx, word [eax + 8]
mov edi, dword [esp + 0x4c]
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x24], ebx
mov bx, word [eax + 6]
mov word [edi], bp
movsx ebp, cx
movsx edi, si
add edi, ebp
movsx ebp, word [esp + 0x50]
cmp edi, ebp
jle 0x552bfc
mov esi, dword [esp + 0x50]
sub esi, ecx
mov ebp, dword [esp + 0x14]
cmp cx, bp
jge 0x552c11
mov edi, ebp
sub edi, ecx
mov dword [esp + 0x1c], edi
mov ecx, ebp
sub esi, edi
movsx ebp, dx
movsx edi, bx
add edi, ebp
movsx ebp, word [esp + 0x10]
cmp edi, ebp
jle 0x552c28
mov ebx, dword [esp + 0x10]
sub ebx, edx
mov ebp, dword [esp + 0x18]
cmp dx, bp
jge 0x552c3b
mov edi, ebp
sub edi, edx
mov edx, ebp
sub ebx, edi
jmp 0x552c3f
mov edi, dword [esp + 0x24]
test si, si
jle 0x552c6a
test bx, bx
jle 0x552c6a
push ebx
push esi
mov esi, dword [esp + 0x24]
push edi
push esi
push edx
mov edx, dword [esp + 0x34]
push ecx
push edx
push eax
mov eax, dword [esp + 0x4c]
push eax
lea ecx, [esp + 0x4c]
push ecx
call dword [esp + 0x70]
add esp, 0x28
mov ax, word [esp + 0x34]
cmp ax, word [esp + 0x60]
jl 0x552b20
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x34
ret