Function at 0x557090
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x5573e4
sub esp, 0x44
mov eax, dword [esp + 0x48]
test byte [eax], al
mov ecx, dword [esp + 0x58]
movzx edx, byte [esp + 0x5c]
mov ebx, dword [esp + 0x4c]
mov ebp, dword [esp + 0x50]
mov esi, ecx
mov edi, eax
mov eax, 0xff
mov dword [esp + 0x2c], eax
xor ecx, ecx
mov dword [esp + 0x28], ecx
mov eax, edi
xor esi, esi
mov dword [esp + 0x20], esi
mov esi, dword [esp + 0x58]
mov dword [esp + 0x24], esi
mov ecx, esi
jmp 0x557102
mov dword [esp + 0x28], esi
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], ecx
mov esi, dword [esp + 0x58]
mov edi, dword [esp + 0x48]
mov ecx, edx
movzx edx, byte [esp + 0x5c]
cmp ebp, ecx
jle 0x5573c8
movzx edi, byte [ebx + ecx]
mov dword [esp + 0x38], edi
lea esi, [ecx + 1]
and edi, 0xc0
test edi, edi
je 0x557173
cmp edi, 0xc0
jne 0x5572df
test dl, dl
je 0x5572bf
cmp ebp, esi
jle 0x55729f
movzx esi, byte [ecx + ebx + 1]
mov edi, dword [esp + 0x20]
test edi, edi
jne 0x55714d
add ecx, 2
jmp 0x557151
mov ecx, dword [esp + 0x24]
inc edi
cmp edi, 0xa
jg 0x55727f
mov edx, dword [esp + 0x38]
xor edx, 0xc0
shl edx, 8
or edx, esi
mov esi, dword [esp + 0x28]
jmp 0x5570e7
mov edi, dword [esp + 0x38]
test edi, edi
je 0x55731f
lea edx, [ecx + edi + 1]
cmp ebp, edx
jl 0x5572ff
mov dword [esp + 0x30], edx
mov ebp, dword [esp + 0x28]
lea edx, [ebp + edi]
mov edi, dword [esp + 0x54]
sub edi, ecx
lea ecx, [edi - 1]
neg ecx
sar ecx, 0x1f
and ecx, esi
add ecx, ebx
mov esi, dword [esp + 0x2c]
cmp esi, edx
jae 0x5571ed
mov dword [esp + 0x40], ecx
mov dword [esp], eax
mov dword [esp + 4], edx
mov dword [esp + 8], esi
mov eax, dword [esp + 0x38]
mov dword [esp + 0xc], eax
lea ecx, [0x63efa0]
mov dword [esp + 0x10], ecx
call fcn.00447550
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x28]
mov esi, ecx
mov ecx, dword [esp + 0x40]
mov dword [esp + 0x3c], eax
mov dword [esp + 0x28], edx
mov dword [esp + 0x2c], esi
lea ebx, [eax + ebp]
mov dword [esp], ebx
mov dword [esp + 4], ecx
mov ecx, dword [esp + 0x38]
mov dword [esp + 8], ecx
call fcn.0045f7b0
mov eax, dword [esp + 0x28]
inc eax
mov ecx, dword [esp + 0x2c]
cmp ecx, eax
jb 0x557229
mov ecx, eax
mov eax, dword [esp + 0x3c]
mov esi, dword [esp + 0x2c]
jmp 0x55725b
mov edx, dword [esp + 0x3c]
mov dword [esp], edx
mov dword [esp + 4], eax
mov dword [esp + 8], ecx
mov dword [esp + 0xc], 1
lea eax, [0x63efa0]
mov dword [esp + 0x10], eax
call fcn.00447550
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov esi, dword [esp + 0x1c]
mov byte [ecx + eax - 1], 0x2e
mov ebx, dword [esp + 0x4c]
mov ebp, dword [esp + 0x50]
mov edx, dword [esp + 0x30]
mov dword [esp + 0x2c], esi
mov edi, dword [esp + 0x20]
mov esi, ecx
mov ecx, dword [esp + 0x24]
jmp 0x5570e7
mov eax, dword [0xe73398]
mov ecx, dword [0xe7339c]
mov edx, dword [esp + 0x58]
mov dword [esp + 0x60], edx
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], ecx
add esp, 0x44
ret
mov eax, dword [0xe73340]
mov ecx, dword [0xe73344]
mov edx, dword [esp + 0x58]
mov dword [esp + 0x60], edx
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], ecx
add esp, 0x44
ret
mov eax, dword [0xe73338]
mov ecx, dword [0xe7333c]
mov edx, dword [esp + 0x58]
mov dword [esp + 0x60], edx
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], ecx
add esp, 0x44
ret
mov eax, dword [0xe73360]
mov ecx, dword [0xe73364]
mov edx, dword [esp + 0x58]
mov dword [esp + 0x60], edx
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], ecx
add esp, 0x44
ret
mov eax, dword [0xe73330]
mov ecx, dword [0xe73334]
mov edx, dword [esp + 0x58]
mov dword [esp + 0x60], edx
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], ecx
add esp, 0x44
ret
mov ecx, dword [esp + 0x28]
test ecx, ecx
jne 0x557372
mov ecx, dword [esp + 0x2c]
cmp ecx, 1
jb 0x557337
mov ecx, 1
jmp 0x55736d
mov dword [esp + 0x34], esi
mov dword [esp], eax
mov dword [esp + 4], 1
mov dword [esp + 8], ecx
mov dword [esp + 0xc], 1
lea eax, [0x63efa0]
mov dword [esp + 0x10], eax
call fcn.00447550
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov esi, dword [esp + 0x34]
mov byte [ecx + eax - 1], 0x2e
cmp ecx, 0xff
jg 0x5573a8
mov eax, dword [esp + 0x48]
mov byte [eax + 0xff], cl
mov eax, dword [esp + 0x20]
test eax, eax
je 0x557390
mov esi, dword [esp + 0x24]
mov dword [esp + 0x60], esi
mov dword [esp + 0x64], 0
mov dword [esp + 0x68], 0
add esp, 0x44
ret
mov eax, dword [0xe73330]
mov ecx, dword [0xe73334]
mov edx, dword [esp + 0x58]
mov dword [esp + 0x60], edx
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], ecx
add esp, 0x44
ret
mov eax, dword [0xe73328]
mov ecx, dword [0xe7332c]
mov dword [esp + 0x60], esi
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], ecx
add esp, 0x44
ret
call fcn.0045dbb0
jmp fcn.00557090