Function at 0x45f3c5
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x24
mov eax, dword [ebp + 8]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], 0x20
call fcn.0045c97e
mov dword [0xa508d8], eax
fld qword [ebp - 0x10]
fstp qword [esp + 8]
mov dword [esp + 4], str.__.15E
mov dword [esp], 0xa1d6a0
call sub.msvcrt.dll_sprintf
mov dword [0xa508dc], eax
mov eax, dword [0xa508dc]
cmp eax, 0x16
jne 0x45f448
mov dword [esp + 8], 2
mov dword [esp + 4], 0xa1d6b4
mov dword [esp], 0xa1d6b5
call sub.msvcrt.dll_memmove
mov byte [0xa1d6b4], 0x30
mov dword [0xa508dc], 0x17
movzx eax, byte [0xa1d6b1]
cmp al, 0x39
jne 0x45f4a9
fld qword [ebp - 0x10]
fstp qword [esp + 8]
mov dword [esp + 4], str.__.14E
mov dword [esp], 0xa1d6c0
call sub.msvcrt.dll_sprintf
mov eax, dword [0xa1d6c0]
mov dword [0xa1d6a0], eax
mov eax, dword [0xa1d6c4]
mov dword [0xa1d6a4], eax
mov eax, dword [0xa1d6c8]
mov dword [0xa1d6a8], eax
mov eax, dword [0xa1d6cc]
mov dword [0xa1d6ac], eax
movzx eax, byte [0xa1d6d0]
mov byte [0xa1d6b0], al
mov byte [0xa1d6b1], 0x30
mov byte [0xa1d6b2], 0x44
mov dword [0xa508e0], 0x10
mov dword [0xa508e4], 0x11
jmp 0x45f502
mov eax, dword [0xa508e4]
movzx eax, byte [eax + 0xa1d6a0]
cmp al, 0x30
jne 0x45f4e5
mov eax, dword [0xa508e0]
sub eax, 1
mov dword [0xa508e0], eax
jmp 0x45f4f5
mov eax, dword [0xa508e4]
movzx eax, byte [eax + 0xa1d6a0]
cmp al, 0x2e
jne 0x45f512
mov eax, dword [0xa508e4]
sub eax, 1
mov dword [0xa508e4], eax
mov eax, dword [0xa508e4]
test eax, eax
setg al
test al, al
jne 0x45f4c6
jmp 0x45f513
nop
mov eax, dword [0xa508e0]
test eax, eax
jne 0x45f549
mov eax, dword [0xa508d8]
mov dword [eax + 4], 2
mov eax, dword [0xa508d8]
mov eax, dword [eax]
mov byte [eax], 0x20
mov eax, dword [0xa508d8]
mov eax, dword [eax]
add eax, 1
mov byte [eax], 0x30
mov eax, dword [0xa508d8]
jmp 0x45f834
movzx eax, byte [0xa1d6b4]
movzx eax, al
imul eax, eax, 0x64
lea ecx, [eax - 0x12c0]
movzx eax, byte [0xa1d6b5]
movzx edx, al
mov eax, edx
shl eax, 2
add eax, edx
add eax, eax
sub eax, 0x1e0
lea edx, [ecx + eax]
movzx eax, byte [0xa1d6b6]
movzx eax, al
sub eax, 0x30
add eax, edx
mov dword [0xa508e8], eax
movzx eax, byte [0xa1d6b3]
cmp al, 0x2d
jne 0x45f5a2
mov eax, dword [0xa508e8]
neg eax
mov dword [0xa508e8], eax
mov eax, dword [0xa508e8]
cmp eax, 0xf
jg 0x45f5c6
mov edx, dword [0xa508e8]
mov eax, dword [0xa508e0]
mov ecx, edx
sub ecx, eax
mov eax, ecx
cmp eax, 0xffffffef
jge 0x45f735
mov dword [0xa508ec], 0
mov eax, dword [0xa508e0]
add eax, 2
mov dword [0xa508f0], eax
mov eax, dword [0xa508e0]
cmp eax, 1
jne 0x45f5f4
mov eax, dword [0xa508f0]
sub eax, 1
mov dword [0xa508f0], eax
mov dword [0xa508e4], 0
jmp 0x45f636
mov eax, dword [0xa508d8]
mov edx, dword [eax]
mov eax, dword [0xa508ec]
add edx, eax
mov eax, dword [0xa508e4]
movzx eax, byte [eax + 0xa1d6a0]
mov byte [edx], al
mov eax, dword [0xa508ec]
add eax, 1
mov dword [0xa508ec], eax
mov eax, dword [0xa508e4]
add eax, 1
mov dword [0xa508e4], eax
mov edx, dword [0xa508e4]
mov eax, dword [0xa508f0]
cmp edx, eax
setl al
test al, al
jne 0x45f600
mov dword [0xa508e4], 0x12
jmp 0x45f68c
mov eax, dword [0xa508d8]
mov edx, dword [eax]
mov eax, dword [0xa508ec]
add edx, eax
mov eax, dword [0xa508e4]
movzx eax, byte [eax + 0xa1d6a0]
mov byte [edx], al
mov eax, dword [0xa508ec]
add eax, 1
mov dword [0xa508ec], eax
mov eax, dword [0xa508e4]
add eax, 1
mov dword [0xa508e4], eax
mov eax, dword [0xa508e4]
cmp eax, 0x13
setle al
test al, al
jne 0x45f656
mov eax, dword [0xa508e8]
mov edx, eax
sar edx, 0x1f
xor eax, edx
sub eax, edx
mov dword [0xa508e8], eax
mov dword [0xa508f0], 0x15
mov eax, dword [0xa508e8]
cmp eax, 0x63
jle 0x45f6cc
mov dword [0xa508f0], 0x14
mov eax, dword [0xa508f0]
mov dword [0xa508e4], eax
jmp 0x45f70e
mov eax, dword [0xa508d8]
mov edx, dword [eax]
mov eax, dword [0xa508ec]
add edx, eax
mov eax, dword [0xa508e4]
movzx eax, byte [eax + 0xa1d6a0]
mov byte [edx], al
mov eax, dword [0xa508ec]
add eax, 1
mov dword [0xa508ec], eax
mov eax, dword [0xa508e4]
add eax, 1
mov dword [0xa508e4], eax
mov eax, dword [0xa508e4]
cmp eax, 0x16
setle al
test al, al
jne 0x45f6d8
mov eax, dword [0xa508d8]
mov edx, dword [0xa508ec]
mov dword [eax + 4], edx
mov eax, dword [0xa508d8]
jmp 0x45f834
nop
mov edx, dword [0xa508e8]
mov eax, dword [0xa508e0]
mov ecx, edx
sub ecx, eax
mov eax, ecx
not eax
mov dword [0xa508e4], eax
mov eax, dword [0xa508e4]
test eax, eax
jns 0x45f761
mov dword [0xa508e4], 0
mov byte [0xa1d690], 0x25
mov byte [0xa1d691], 0x20
mov byte [0xa1d692], 0x2e
mov eax, dword [0xa508e4]
cmp eax, 9
jle 0x45f796
mov byte [0xa1d693], 0x31
mov eax, dword [0xa508e4]
add eax, 0x26
mov byte [0xa1d694], al
jmp 0x45f7aa
mov byte [0xa1d693], 0x30
mov eax, dword [0xa508e4]
add eax, 0x30
mov byte [0xa1d694], al
mov byte [0xa1d695], 0x66
mov byte [0xa1d696], 0
mov ebx, dword [0xa508d8]
mov eax, dword [0xa508d8]
mov eax, dword [eax]
fld qword [ebp - 0x10]
fstp qword [esp + 8]
mov dword [esp + 4], 0xa1d690
mov dword [esp], eax
call sub.msvcrt.dll_sprintf
mov dword [ebx + 4], eax
mov eax, dword [0xa508d8]
mov eax, dword [eax]
add eax, 1
movzx eax, byte [eax]
cmp al, 0x30
jne 0x45f82f
mov eax, dword [0xa508d8]
mov eax, dword [eax + 4]
sub eax, 2
mov edx, dword [0xa508d8]
mov edx, dword [edx]
lea ecx, [edx + 2]
mov edx, dword [0xa508d8]
mov edx, dword [edx]
add edx, 1
mov dword [esp + 8], eax
mov dword [esp + 4], ecx
mov dword [esp], edx
call sub.msvcrt.dll_memmove
mov eax, dword [0xa508d8]
mov edx, dword [eax + 4]
sub edx, 1
mov dword [eax + 4], edx
mov eax, dword [0xa508d8]
add esp, 0x24
pop ebx
pop ebp
ret