Function at 0x557460
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 0x5574d3
xor ecx, ecx
mov cx, word [eax + 2]
cmp cx, si
jle 0x55749e
mov esi, ecx
mov dword [esp + 0x14], esi
xor ecx, ecx
mov cx, word [eax + 6]
cmp cx, 0x7fff
jge 0x5574b1
mov edx, ecx
mov dword [esp + 0x50], edx
xor ecx, ecx
mov cx, word [eax]
cmp cx, 0x8000
jle 0x5574c3
mov ebx, ecx
mov dword [esp + 0x18], ebx
movsx eax, word [eax + 4]
cmp ax, 0x7fff
jge 0x5574d3
mov edi, eax
mov dword [esp + 0x10], edi
test ebp, ebp
je 0x55751b
xor eax, eax
mov ax, word [ebp + 2]
cmp ax, si
jle 0x5574e8
mov esi, eax
mov dword [esp + 0x14], esi
xor eax, eax
mov ax, word [ebp + 6]
cmp ax, dx
jge 0x5574f9
mov edx, eax
mov dword [esp + 0x50], edx
xor eax, eax
mov ax, word [ebp]
cmp ax, bx
jle 0x55750a
mov ebx, eax
mov dword [esp + 0x18], ebx
xor eax, eax
mov ax, word [ebp + 4]
cmp ax, di
jge 0x55751b
mov edi, eax
mov dword [esp + 0x10], edi
cmp si, dx
jge 0x5576ca
cmp bx, di
jge 0x5576ca
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 0x5576ca
lea ebx, [ebx]
cmp ax, word [0x6e4692]
jl 0x557591
cmp ax, word [0x6e4694]
jge 0x557591
mov eax, dword [esp + 0x54]
xor eax, 0xffffff
mov dword [esp + 0x20], eax
jmp 0x557599
mov ecx, dword [esp + 0x54]
mov dword [esp + 0x20], ecx
lea edi, [esp + 0x28]
call fcn.00556fe0
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 0x5576ba
cmp edx, 0x100
jne 0x5575db
mov edx, dword [eax + 4]
and ecx, 0xff
lea eax, [edx + ecx*2]
jmp 0x5575dd
xor eax, eax
mov ax, word [eax]
cmp ax, 0xffff
je 0x5576ba
mov ecx, dword [esi + 0x80]
movsx eax, ax
lea eax, [eax + eax*4]
lea eax, [ecx + eax*4]
cmp eax, ebx
je 0x5576ba
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 0x55764c
mov esi, dword [esp + 0x50]
sub esi, ecx
mov ebp, dword [esp + 0x14]
cmp cx, bp
jge 0x557661
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 0x557678
mov ebx, dword [esp + 0x10]
sub ebx, edx
mov ebp, dword [esp + 0x18]
cmp dx, bp
jge 0x55768b
mov edi, ebp
sub edi, edx
mov edx, ebp
sub ebx, edi
jmp 0x55768f
mov edi, dword [esp + 0x24]
test si, si
jle 0x5576ba
test bx, bx
jle 0x5576ba
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 0x557570
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x34
ret