Function at 0x10050692
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1007ab1e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
sub esp, 0x94
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
movzx eax, byte [ebp + 0x14]
test eax, eax
je 0x1005081f
lea eax, [ebp + 0x10]
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp + 0x28]
mov dword [ebp - 0xa0], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x74], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x5c]
movzx eax, byte [eax]
test eax, eax
je 0x10050715
mov eax, dword [ebp - 0x74]
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x8c]
mov dword [ebp - 0x7c], eax
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x7c]
mov ecx, dword [ebp - 0x40]
mov ecx, dword [ecx]
mov dword [eax], ecx
jmp 0x1005081a
mov eax, dword [ebp - 0xa0]
mov dword [ebp - 0x64], eax
mov eax, dword [ebp - 0x64]
mov dword [ebp - 0x84], eax
mov eax, dword [ebp - 0x84]
movzx eax, byte [eax]
test eax, eax
je 0x1005081a
mov dword [ebp - 0x28], 0x286a
mov dword [ebp - 0x6c], 0x1000c978
cmp dword [ebp - 0x28], 0x2b8d
jle 0x100507c4
and dword [ebp - 0x1c], 0
jmp 0x1005075c
mov eax, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0x7315
jge 0x100507c4
and dword [ebp - 0x20], 0
jmp 0x10050772
mov eax, dword [ebp - 0x20]
inc eax
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0x2462
jge 0x100507c2
and dword [ebp - 0x18], 0
jmp 0x10050788
mov eax, dword [ebp - 0x18]
inc eax
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0xbf2
jge 0x100507c0
mov eax, dword [ebp - 0x20]
imul eax, dword [ebp - 0x18]
xor eax, dword [ebp - 0x1c]
cdq
mov dword [ebp - 0x9c], eax
mov dword [ebp - 0x98], edx
push dword [ebp - 0x98]
push dword [ebp - 0x9c]
mov ecx, 0x10622758
call fcn.1001ac77
jmp 0x10050781
jmp 0x1005076b
jmp 0x10050755
push 0x7d00
push 0
push 0x1d57
push 1
call fcn.10043a35
add esp, 0x10
and dword [ebp - 4], 0
cmp dword [ebp - 0x28], 0x2651
jge 0x100507f4
mov edx, dword [ebp - 0x6c]
mov ecx, 0x10622758
call fcn.1001d971
jmp 0x10050810
or dword [ebp - 4], 0xffffffff
jmp 0x1005081a
jmp 0x10050953
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x80], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0x50], eax
lea eax, [ebp + 0x2c]
mov dword [ebp - 0x94], eax
mov eax, dword [ebp - 0x94]
movzx eax, byte [eax]
test eax, eax
je 0x10050923
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 0x58]
mov dword [ebp - 0x78], eax
mov eax, dword [ebp - 0x60]
mov dword [ebp - 0x70], eax
mov eax, dword [ebp - 0x68]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0xa4], eax
mov eax, dword [ebp - 0x14]
cmp dword [eax], 0
je 0x100508ce
mov eax, dword [ebp - 0x14]
cmp dword [eax], 0
jne 0x1005089e
mov eax, dword [ebp - 0x14]
cmp dword [eax], 0
jne 0x1005089e
and dword [ebp - 0x30], 0
jmp 0x100508a5
mov dword [ebp - 0x30], 1
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
cmp eax, dword [ebp - 0x30]
jle 0x100508b8
mov dword [ebp - 0x38], 1
jmp 0x100508bc
and dword [ebp - 0x38], 0
cmp dword [ebp - 0x38], 0x3fa3
jl 0x100508ce
mov dword [ebp - 0x2c], 1
jmp 0x100508d2
and dword [ebp - 0x2c], 0
cmp dword [ebp - 0x2c], 0xffff44ef
jle 0x100508e4
mov dword [ebp - 0x34], 1
jmp 0x100508e8
and dword [ebp - 0x34], 0
cmp dword [ebp - 0x34], 1
jle 0x100508f7
mov dword [ebp - 0x3c], 1
jmp 0x100508fb
and dword [ebp - 0x3c], 0
cmp dword [ebp - 0x3c], 0x7b79f6a7
jle 0x1005090d
mov dword [ebp - 0x24], 1
jmp 0x10050911
and dword [ebp - 0x24], 0
mov eax, dword [ebp - 0x70]
mov ecx, dword [ebp - 0x24]
mov dword [eax], ecx
mov eax, dword [ebp - 0x78]
mov ecx, dword [ebp - 0x24]
mov dword [eax], ecx
jmp 0x10050953
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x88], eax
mov eax, dword [ebp - 0x88]
mov dword [ebp - 0x90], eax
mov eax, dword [ebp - 0x90]
movzx eax, byte [eax]
test eax, eax
je 0x10050953
push 0
push 0x5a28
call fcn.1004f14b
pop ecx
pop ecx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret