Function at 0x5c7f40
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 0x14], ecx
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0x1c]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x14]
mov ecx, dword [edx + 0x2c]
sub ecx, dword [eax + 0x6c]
mov edx, dword [ebp - 0x14]
sub ecx, dword [edx + 0x64]
mov dword [ebp - 0xc], ecx
jne 0x5c7f86
mov eax, dword [ebp - 0x14]
cmp dword [eax + 0x64], 0
jne 0x5c7f86
mov ecx, dword [ebp - 0x14]
cmp dword [ecx + 0x6c], 0
jne 0x5c7f86
mov edx, dword [ebp - 0x10]
mov dword [ebp - 0xc], edx
jmp 0x5c80a2
cmp dword [ebp - 0xc], 0xffffffff
jne 0x5c7f9a
mov eax, dword [ebp - 0xc]
sub eax, 1
mov dword [ebp - 0xc], eax
jmp 0x5c80a2
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx + 0x1c]
mov eax, dword [ebp - 0x10]
lea ecx, [eax + edx - 0x106]
mov edx, dword [ebp - 0x14]
cmp dword [edx + 0x64], ecx
jb 0x5c80a2
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx + 0x28]
add edx, dword [ebp - 0x10]
push edx
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0x28]
push ecx
call fcn.005f4c50
add esp, 0xc
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + 0x68]
sub eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x14]
mov dword [ecx + 0x68], eax
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + 0x64]
sub eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x14]
mov dword [ecx + 0x64], eax
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + 0x54]
sub eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x14]
mov dword [ecx + 0x54], eax
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + 0x44]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx + 0x38]
mov eax, dword [ebp - 8]
lea ecx, [edx + eax*2]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
sub edx, 2
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
movzx ecx, word [eax]
sub ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 4]
movzx eax, word [edx]
sub eax, dword [ebp - 0x10]
not eax
movsx edx, ax
sar edx, 0x10
and ecx, edx
mov eax, dword [ebp - 4]
mov word [eax], cx
mov ecx, dword [ebp - 8]
sub ecx, 1
mov dword [ebp - 8], ecx
jne 0x5c8018
mov edx, dword [ebp - 0x10]
mov dword [ebp - 8], edx
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0x30]
mov edx, dword [ebp - 8]
lea eax, [ecx + edx*2]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
sub ecx, 2
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
movzx eax, word [edx]
sub eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 4]
movzx edx, word [ecx]
sub edx, dword [ebp - 0x10]
not edx
movsx ecx, dx
sar ecx, 0x10
and eax, ecx
mov edx, dword [ebp - 4]
mov word [edx], ax
mov eax, dword [ebp - 8]
sub eax, 1
mov dword [ebp - 8], eax
jne 0x5c8063
mov ecx, dword [ebp - 0xc]
add ecx, dword [ebp - 0x10]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0x14]
mov ecx, dword [edx + 4]
call fcn.005588f0
test eax, eax
jne 0x5c80b6
jmp 0x5c8155
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx + 0x28]
mov eax, dword [ebp - 0x14]
add edx, dword [eax + 0x64]
mov ecx, dword [ebp - 0x14]
add edx, dword [ecx + 0x6c]
push edx
mov edx, dword [ebp - 0x14]
mov ecx, dword [edx + 4]
call fcn.005bf840
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0x6c]
add ecx, dword [ebp - 8]
mov edx, dword [ebp - 0x14]
mov dword [edx + 0x6c], ecx
mov eax, dword [ebp - 0x14]
cmp dword [eax + 0x6c], 3
jb 0x5c8136
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx + 0x28]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0x64]
movzx edx, byte [edx + ecx]
mov eax, dword [ebp - 0x14]
mov dword [eax + 0x40], edx
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x14]
mov eax, dword [ecx + 0x40]
mov ecx, dword [edx + 0x50]
shl eax, cl
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx + 0x64]
mov ecx, dword [ebp - 0x14]
mov ecx, dword [ecx + 0x28]
movzx edx, byte [ecx + edx + 1]
xor eax, edx
mov ecx, dword [ebp - 0x14]
and eax, dword [ecx + 0x4c]
mov edx, dword [ebp - 0x14]
mov dword [edx + 0x40], eax
mov eax, dword [ebp - 0x14]
cmp dword [eax + 0x6c], 0x106
jae 0x5c8155
mov ecx, dword [ebp - 0x14]
mov ecx, dword [ecx + 4]
call fcn.005588f0
test eax, eax
jne 0x5c7f52
mov esp, ebp
pop ebp
ret