Function at 0x552c90
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 0x552d03
xor ecx, ecx
mov cx, word [eax + 2]
cmp cx, si
jle 0x552cce
mov esi, ecx
mov dword [esp + 0x14], esi
xor ecx, ecx
mov cx, word [eax + 6]
cmp cx, 0x7fff
jge 0x552ce1
mov edx, ecx
mov dword [esp + 0x50], edx
xor ecx, ecx
mov cx, word [eax]
cmp cx, 0x8000
jle 0x552cf3
mov ebx, ecx
mov dword [esp + 0x18], ebx
movsx eax, word [eax + 4]
cmp ax, 0x7fff
jge 0x552d03
mov edi, eax
mov dword [esp + 0x10], edi
test ebp, ebp
je 0x552d4b
xor eax, eax
mov ax, word [ebp + 2]
cmp ax, si
jle 0x552d18
mov esi, eax
mov dword [esp + 0x14], esi
xor eax, eax
mov ax, word [ebp + 6]
cmp ax, dx
jge 0x552d29
mov edx, eax
mov dword [esp + 0x50], edx
xor eax, eax
mov ax, word [ebp]
cmp ax, bx
jle 0x552d3a
mov ebx, eax
mov dword [esp + 0x18], ebx
xor eax, eax
mov ax, word [ebp + 4]
cmp ax, di
jge 0x552d4b
mov edi, eax
mov dword [esp + 0x10], edi
cmp si, dx
jge 0x552efa
cmp bx, di
jge 0x552efa
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 0x552efa
lea ebx, [ebx]
cmp ax, word [0x6dde0a]
jl 0x552dc1
cmp ax, word [0x6dde0c]
jge 0x552dc1
mov eax, dword [esp + 0x54]
xor eax, 0xffffff
mov dword [esp + 0x20], eax
jmp 0x552dc9
mov ecx, dword [esp + 0x54]
mov dword [esp + 0x20], ecx
lea eax, [esp + 0x28]
call fcn.005528f0
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 edi, edi
cmp edx, edi
jle 0x552eea
cmp edx, 0x100
jne 0x552e0b
mov edx, dword [eax + 4]
and ecx, 0xff
lea eax, [edx + ecx*2]
jmp 0x552e0d
xor eax, eax
mov ax, word [eax]
cmp ax, 0xffff
je 0x552eea
mov ecx, dword [esi + 0x80]
movsx eax, ax
lea eax, [eax + eax*4]
lea eax, [ecx + eax*4]
cmp eax, edi
je 0x552eea
mov edx, dword [esp + 0x4c]
mov bx, word [edx]
mov bp, word [eax + 2]
mov dx, word [edx + 2]
sub dx, word [eax + 0xa]
mov si, word [eax + 4]
add bp, bx
mov cx, bx
sub cx, word [eax + 8]
mov ebx, dword [esp + 0x4c]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x24], edi
mov di, word [eax + 6]
mov word [ebx], bp
movsx ebp, cx
movsx ebx, si
add ebx, ebp
movsx ebp, word [esp + 0x50]
cmp ebx, ebp
jle 0x552e7c
mov esi, dword [esp + 0x50]
sub esi, ecx
mov ebp, dword [esp + 0x14]
cmp cx, bp
jge 0x552e91
mov ebx, ebp
sub ebx, ecx
mov dword [esp + 0x1c], ebx
mov ecx, ebp
sub esi, ebx
movsx ebp, dx
movsx ebx, di
add ebx, ebp
movsx ebp, word [esp + 0x10]
cmp ebx, ebp
jle 0x552ea8
mov edi, dword [esp + 0x10]
sub edi, edx
mov ebp, dword [esp + 0x18]
cmp dx, bp
jge 0x552ebb
mov ebx, ebp
sub ebx, edx
mov edx, ebp
sub edi, ebx
jmp 0x552ebf
mov ebx, dword [esp + 0x24]
test si, si
jle 0x552eea
test di, di
jle 0x552eea
push edi
push esi
mov esi, dword [esp + 0x24]
push ebx
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 0x552da0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x34
ret