Function at 0x5576e0
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 0x557753
xor ecx, ecx
mov cx, word [eax + 2]
cmp cx, si
jle 0x55771e
mov esi, ecx
mov dword [esp + 0x14], esi
xor ecx, ecx
mov cx, word [eax + 6]
cmp cx, 0x7fff
jge 0x557731
mov edx, ecx
mov dword [esp + 0x50], edx
xor ecx, ecx
mov cx, word [eax]
cmp cx, 0x8000
jle 0x557743
mov ebx, ecx
mov dword [esp + 0x18], ebx
movsx eax, word [eax + 4]
cmp ax, 0x7fff
jge 0x557753
mov edi, eax
mov dword [esp + 0x10], edi
test ebp, ebp
je 0x55779b
xor eax, eax
mov ax, word [ebp + 2]
cmp ax, si
jle 0x557768
mov esi, eax
mov dword [esp + 0x14], esi
xor eax, eax
mov ax, word [ebp + 6]
cmp ax, dx
jge 0x557779
mov edx, eax
mov dword [esp + 0x50], edx
xor eax, eax
mov ax, word [ebp]
cmp ax, bx
jle 0x55778a
mov ebx, eax
mov dword [esp + 0x18], ebx
xor eax, eax
mov ax, word [ebp + 4]
cmp ax, di
jge 0x55779b
mov edi, eax
mov dword [esp + 0x10], edi
cmp si, dx
jge 0x55794a
cmp bx, di
jge 0x55794a
mov eax, dword [0x6e4654]
mov dx, word [0x6e465e]
mov ebx, dword [0x6e465c]
mov ecx, dword [esp + 0x58]
push 0x6e4660
push eax
lea esi, [esp + 0x30]
call fcn.00556f30
mov ax, word [esp + 0x64]
add esp, 8
cmp ax, word [esp + 0x60]
mov word [esp + 0x34], ax
jge 0x55794a
lea ebx, [ebx]
cmp ax, word [0x6e4692]
jl 0x557811
cmp ax, word [0x6e4694]
jge 0x557811
mov eax, dword [esp + 0x54]
xor eax, 0xffffff
mov dword [esp + 0x20], eax
jmp 0x557819
mov ecx, dword [esp + 0x54]
mov dword [esp + 0x20], ecx
lea eax, [esp + 0x28]
call fcn.00557340
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 0x55793a
cmp edx, 0x100
jne 0x55785b
mov edx, dword [eax + 4]
and ecx, 0xff
lea eax, [edx + ecx*2]
jmp 0x55785d
xor eax, eax
mov ax, word [eax]
cmp ax, 0xffff
je 0x55793a
mov ecx, dword [esi + 0x80]
movsx eax, ax
lea eax, [eax + eax*4]
lea eax, [ecx + eax*4]
cmp eax, edi
je 0x55793a
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 0x5578cc
mov esi, dword [esp + 0x50]
sub esi, ecx
mov ebp, dword [esp + 0x14]
cmp cx, bp
jge 0x5578e1
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 0x5578f8
mov edi, dword [esp + 0x10]
sub edi, edx
mov ebp, dword [esp + 0x18]
cmp dx, bp
jge 0x55790b
mov ebx, ebp
sub ebx, edx
mov edx, ebp
sub edi, ebx
jmp 0x55790f
mov ebx, dword [esp + 0x24]
test si, si
jle 0x55793a
test di, di
jle 0x55793a
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 0x5577f0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x34
ret