Function at 0x401490
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x460478
push 0x418ab0
mov eax, dword fs:[0]
push eax
add esp, 0xffffffd0
push ebx
push esi
push edi
mov eax, dword [0x46800c]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov dword [ebp - 0x20], 0
cmp dword [ebp + 0x10], 0
je 0x4014d9
mov eax, dword [ebp + 0x10]
mov dword [eax], 0
mov ecx, dword [ebp + 8]
push ecx
call fcn.00401270
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x4014f2
xor eax, eax
jmp 0x4016cc
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x1c]
mov dword [ebp - 0x24], edx
mov eax, dword [ebp - 0x24]
cmp dword [eax], 0x40
jb 0x401513
mov ecx, dword [ebp - 0x24]
cmp dword [ecx + 4], 0x727444
je 0x401534
push 0xbf
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [ebp - 0x34], 0
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x34]
jmp 0x4016cc
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x24]
add eax, dword [edx + 8]
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0x24]
add edx, dword [ecx + 0xc]
mov dword [ebp - 0x2c], edx
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x20]
cmp ecx, dword [ebp - 0x2c]
jae 0x40167d
mov edx, dword [ebp - 0x20]
mov dword [ebp - 0x30], edx
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp + 0xc]
mov edx, dword [eax + 8]
cmp edx, dword [ecx]
jne 0x40166d
mov eax, dword [ebp - 0x30]
movzx ecx, word [eax + 0xc]
mov edx, dword [ebp + 0xc]
movzx eax, word [edx + 4]
cmp ecx, eax
jne 0x40166d
mov ecx, dword [ebp - 0x30]
movzx edx, word [ecx + 0xe]
mov eax, dword [ebp + 0xc]
movzx ecx, word [eax + 6]
cmp edx, ecx
jne 0x40166d
mov edx, dword [ebp - 0x30]
movzx eax, byte [edx + 0x10]
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx + 8]
cmp eax, edx
jne 0x40166d
mov eax, dword [ebp - 0x30]
movzx ecx, byte [eax + 0x11]
mov edx, dword [ebp + 0xc]
movzx eax, byte [edx + 9]
cmp ecx, eax
jne 0x40166d
mov ecx, dword [ebp - 0x30]
movzx edx, byte [ecx + 0x12]
mov eax, dword [ebp + 0xc]
movzx ecx, byte [eax + 0xa]
cmp edx, ecx
jne 0x40166d
mov edx, dword [ebp - 0x30]
movzx eax, byte [edx + 0x13]
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx + 0xb]
cmp eax, edx
jne 0x40166d
mov eax, dword [ebp - 0x30]
movzx ecx, byte [eax + 0x14]
mov edx, dword [ebp + 0xc]
movzx eax, byte [edx + 0xc]
cmp ecx, eax
jne 0x40166d
mov ecx, dword [ebp - 0x30]
movzx edx, byte [ecx + 0x15]
mov eax, dword [ebp + 0xc]
movzx ecx, byte [eax + 0xd]
cmp edx, ecx
jne 0x40166d
mov edx, dword [ebp - 0x30]
movzx eax, byte [edx + 0x16]
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx + 0xe]
cmp eax, edx
jne 0x40166d
mov eax, dword [ebp - 0x30]
movzx ecx, byte [eax + 0x17]
mov edx, dword [ebp + 0xc]
movzx eax, byte [edx + 0xf]
cmp ecx, eax
jne 0x40166d
cmp dword [ebp + 0x10], 0
je 0x40166d
mov ecx, dword [ebp - 0x30]
mov edx, dword [ecx]
sub edx, 0x18
mov eax, dword [ebp + 0x10]
mov dword [eax], edx
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [ebp - 0x30]
add ecx, 0x18
mov dword [ebp - 0x38], ecx
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x38]
jmp 0x4016cc
mov edx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x30]
add eax, dword [edx]
mov dword [ebp - 0x20], eax
jmp 0x401552
push 6
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [ebp - 0x3c], 0
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x3c]
jmp 0x4016cc
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc