Function at 0x5574d9
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 0x18], ecx
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x1c]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x18]
mov eax, dword [eax + 0x2c]
sub eax, dword [ecx + 0x6c]
mov ecx, dword [ebp - 0x18]
sub eax, dword [ecx + 0x64]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x557523
mov eax, dword [ebp - 0x18]
cmp dword [eax + 0x64], 0
jne 0x557523
mov eax, dword [ebp - 0x18]
cmp dword [eax + 0x6c], 0
jne 0x557523
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0xc], eax
jmp 0x55763f
cmp dword [ebp - 0xc], 0xffffffff
jne 0x557535
mov eax, dword [ebp - 0xc]
dec eax
mov dword [ebp - 0xc], eax
jmp 0x55763f
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x1c]
mov ecx, dword [ebp - 0x10]
lea eax, [ecx + eax - 0x106]
mov ecx, dword [ebp - 0x18]
cmp dword [ecx + 0x64], eax
jb 0x55763f
push dword [ebp - 0x10]
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x28]
add eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x18]
push dword [eax + 0x28]
call fcn.0058e7b0
add esp, 0xc
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x68]
sub eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x18]
mov dword [ecx + 0x68], eax
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x64]
sub eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x18]
mov dword [ecx + 0x64], eax
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x54]
sub eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x18]
mov dword [ecx + 0x54], eax
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x44]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x38]
mov ecx, dword [ebp - 8]
lea eax, [eax + ecx*2]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
dec eax
dec eax
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
movzx eax, word [eax]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x14]
sub edx, dword [ebp - 0x10]
cmp eax, ecx
sbb eax, eax
not eax
and eax, edx
mov ecx, dword [ebp - 4]
mov word [ecx], ax
mov eax, dword [ebp - 8]
dec eax
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x5575b1
mov eax, dword [ebp - 0x10]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x30]
mov ecx, dword [ebp - 8]
lea eax, [eax + ecx*2]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
dec eax
dec eax
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
movzx eax, word [eax]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x14]
sub edx, dword [ebp - 0x10]
cmp eax, ecx
sbb eax, eax
not eax
and eax, edx
mov ecx, dword [ebp - 4]
mov word [ecx], ax
mov eax, dword [ebp - 8]
dec eax
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x5575fe
mov eax, dword [ebp - 0xc]
add eax, dword [ebp - 0x10]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 4]
call fcn.004ccbf8
test eax, eax
jne 0x557653
jmp 0x5576f1
push dword [ebp - 0xc]
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x28]
mov ecx, dword [ebp - 0x18]
add eax, dword [ecx + 0x64]
mov ecx, dword [ebp - 0x18]
add eax, dword [ecx + 0x6c]
push eax
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 4]
call fcn.00553a81
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x6c]
add eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x18]
mov dword [ecx + 0x6c], eax
mov eax, dword [ebp - 0x18]
cmp dword [eax + 0x6c], 3
jb 0x5576d2
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x28]
mov ecx, dword [ebp - 0x18]
mov ecx, dword [ecx + 0x64]
movzx eax, byte [eax + ecx]
mov ecx, dword [ebp - 0x18]
mov dword [ecx + 0x40], eax
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x18]
mov eax, dword [eax + 0x40]
mov ecx, dword [ecx + 0x50]
shl eax, cl
mov ecx, dword [ebp - 0x18]
mov ecx, dword [ecx + 0x64]
mov edx, dword [ebp - 0x18]
mov edx, dword [edx + 0x28]
movzx ecx, byte [edx + ecx + 1]
xor eax, ecx
mov ecx, dword [ebp - 0x18]
and eax, dword [ecx + 0x4c]
mov ecx, dword [ebp - 0x18]
mov dword [ecx + 0x40], eax
mov eax, dword [ebp - 0x18]
cmp dword [eax + 0x6c], 0x106
jae 0x5576f1
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 4]
call fcn.004ccbf8
test eax, eax
jne 0x5574eb
leave
ret