Function at 0x100290a0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, edx
push ebx
push esi
mov ebx, ecx
mov dword [ebp - 4], eax
mov esi, dword [eax + 4]
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 8], esi
push edi
test esi, esi
jns 0x100290e1
cmp dword [eax], 0
jg 0x100290e1
mov edx, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
add edx, ecx
push dword [ebp + 8]
call fcn.10024280
add esp, 4
mov dword [ebx], edx
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 0x10]
lea edx, [ebp - 0x38]
mov eax, dword [ebp + 0x14]
add eax, ecx
mov dword [ebp - 0x44], ecx
push edx
mov edx, eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
call fcn.10011820
mov edx, dword ds:[ebp - 0x44]
add esp, 4
xor ebx, ebx
mov dword [ebp - 0x3c], eax
mov byte [ebp - 0x34], 0
cmp edx, dword [ebp - 0x40]
je 0x100291e9
nop dword [eax]
mov dword [ebp - 0x18], ebx
cmp ebx, esi
jne 0x1002913f
test esi, esi
jns 0x100291e9
mov edi, dword [ebp - 0x38]
cmp edi, 0x25fd
jae 0x1002916f
mov eax, 1
mov ecx, 0x10222a30
cmp edi, dword [ecx]
jb 0x100291b0
add ecx, 4
xor eax, 3
cmp ecx, 0x10222d58
jne 0x10029154
mov eax, 1
jmp 0x100291b0
mov eax, 0x10222a30
mov edx, 0xca
nop dword [eax]
mov esi, edx
shr esi, 1
cmp edi, dword [eax + esi*4]
lea ecx, [eax + esi*4]
jae 0x10029190
mov edx, esi
jmp 0x1002919a
lea eax, [ecx + 4]
or ecx, 0xffffffff
sub ecx, esi
add edx, ecx
test edx, edx
jg 0x10029180
mov esi, dword [ebp - 8]
sub eax, 0x10222a30
mov edx, dword [ebp - 0x44]
sar eax, 2
and eax, 1
inc eax
mov ecx, 0x7fffffff
sub ecx, eax
cmp ecx, ebx
jl 0x10029255
add ebx, eax
cmp ebx, esi
jle 0x100291cd
test esi, esi
jns 0x10029250
lea ecx, [ebp - 0x44]
call fcn.1002db40
mov edx, dword ds:[ebp - 0x44]
cmp edx, dword [ebp - 0x40]
jne 0x10029130
mov dword [ebp - 0xc], edx
mov eax, dword [ebp + 0x10]
xor esi, esi
mov ecx, dword [ebp + 8]
xor edi, edi
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x18], 1
mov dword [ebp - 8], esi
mov al, byte [eax + 9]
test al, al
movzx edx, al
cmove edx, dword [ebp - 0x18]
mov dword [ebp - 0x18], edx
mov edx, dword [ebp - 4]
mov edx, dword [edx]
cmp ebx, edx
jge 0x10029266
mov eax, dword [ebp - 0x18]
movzx eax, al
sub eax, 1
je 0x100292d3
sub eax, 1
je 0x10029262
sub eax, 1
jne 0x10029266
mov eax, edx
sub eax, ebx
cdq
sub eax, edx
mov edi, eax
mov eax, dword [ebp - 4]
sar edi, 1
mov esi, dword [eax]
sub esi, edi
sub esi, ebx
mov dword [ebp - 8], esi
jmp 0x10029269
mov ebx, dword [ebp - 0x18]
jmp 0x100291e9
test esi, esi
jns 0x100291e9
mov ebx, 0x7fffffff
jmp 0x100291ec
mov edi, edx
sub edi, ebx
mov eax, dword [ebp - 4]
lea ebx, [eax + 0xf]
movzx eax, byte [eax + 0xe]
mov dword [ebp - 4], eax
test edi, edi
jle 0x10029297
lea esi, [eax + ebx]
nop word [eax + eax]
push ecx
mov edx, esi
mov ecx, ebx
call fcn.10024280
dec edi
add esp, 4
mov ecx, edx
test edi, edi
jg 0x10029280
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov eax, dword [ebp - 0x24]
mov edx, dword [ebp - 0xc]
sub edx, eax
push ecx
add edx, eax
mov ecx, eax
call fcn.10024280
add esp, 4
test esi, esi
jle 0x100292c7
add edi, ebx
push edx
mov edx, edi
mov ecx, ebx
call fcn.10024280
dec esi
add esp, 4
test esi, esi
jg 0x100292b5
mov eax, dword [ebp - 0x2c]
pop edi
pop esi
pop ebx
mov dword [eax], edx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 4]
mov esi, edx
sub esi, ebx
movzx edi, byte [eax + 0xe]
lea ebx, [eax + 0xf]
jmp 0x1002929a