Function at 0x55a950
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 0x55a9c3
xor ecx, ecx
mov cx, word [eax + 2]
cmp cx, si
jle 0x55a98e
mov esi, ecx
mov dword [esp + 0x14], esi
xor ecx, ecx
mov cx, word [eax + 6]
cmp cx, 0x7fff
jge 0x55a9a1
mov edx, ecx
mov dword [esp + 0x50], edx
xor ecx, ecx
mov cx, word [eax]
cmp cx, 0x8000
jle 0x55a9b3
mov ebx, ecx
mov dword [esp + 0x18], ebx
movsx eax, word [eax + 4]
cmp ax, 0x7fff
jge 0x55a9c3
mov edi, eax
mov dword [esp + 0x10], edi
test ebp, ebp
je 0x55aa0b
xor eax, eax
mov ax, word [ebp + 2]
cmp ax, si
jle 0x55a9d8
mov esi, eax
mov dword [esp + 0x14], esi
xor eax, eax
mov ax, word [ebp + 6]
cmp ax, dx
jge 0x55a9e9
mov edx, eax
mov dword [esp + 0x50], edx
xor eax, eax
mov ax, word [ebp]
cmp ax, bx
jle 0x55a9fa
mov ebx, eax
mov dword [esp + 0x18], ebx
xor eax, eax
mov ax, word [ebp + 4]
cmp ax, di
jge 0x55aa0b
mov edi, eax
mov dword [esp + 0x10], edi
cmp si, dx
jge 0x55abba
cmp bx, di
jge 0x55abba
mov eax, dword [0x67f624]
mov dx, word [0x67f62e]
mov ebx, dword [0x67f62c]
mov ecx, dword [esp + 0x58]
push 0x67f630
push eax
lea esi, [esp + 0x30]
call fcn.0055a420
mov ax, word [esp + 0x64]
add esp, 8
cmp ax, word [esp + 0x60]
mov word [esp + 0x34], ax
jge 0x55abba
lea ebx, [ebx]
cmp ax, word [0x67f662]
jl 0x55aa81
cmp ax, word [0x67f664]
jge 0x55aa81
mov eax, dword [esp + 0x54]
xor eax, 0xffffff
mov dword [esp + 0x20], eax
jmp 0x55aa89
mov ecx, dword [esp + 0x54]
mov dword [esp + 0x20], ecx
lea edi, [esp + 0x28]
call fcn.0055a4d0
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 0x55abaa
cmp edx, 0x100
jne 0x55aacb
mov edx, dword [eax + 4]
and ecx, 0xff
lea eax, [edx + ecx*2]
jmp 0x55aacd
xor eax, eax
mov ax, word [eax]
cmp ax, 0xffff
je 0x55abaa
mov ecx, dword [esi + 0x80]
movsx eax, ax
lea eax, [eax + eax*4]
lea eax, [ecx + eax*4]
cmp eax, ebx
je 0x55abaa
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 0x55ab3c
mov esi, dword [esp + 0x50]
sub esi, ecx
mov ebp, dword [esp + 0x14]
cmp cx, bp
jge 0x55ab51
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 0x55ab68
mov ebx, dword [esp + 0x10]
sub ebx, edx
mov ebp, dword [esp + 0x18]
cmp dx, bp
jge 0x55ab7b
mov edi, ebp
sub edi, edx
mov edx, ebp
sub ebx, edi
jmp 0x55ab7f
mov edi, dword [esp + 0x24]
test si, si
jle 0x55abaa
test bx, bx
jle 0x55abaa
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 0x55aa60
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x34
ret