Function at 0x7d1480
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x2c
mov ebp, dword [esp + 0x4c]
mov esi, dword [esp + 0x48]
cmp esi, 0x24
ja 0x7d14fd
cmp esi, 1
je 0x7d14fd
mov ebx, dword [esp + 0x40]
mov dword [esp + 4], ebx
jmp 0x7d14b1
inc ebx
movzx eax, byte [ebx]
movzx ecx, al
lea edx, [ecx - 9]
cmp edx, 5
jb 0x7d14b0
cmp ecx, 0x20
je 0x7d14b0
cmp ecx, 0x2b
mov edx, esi
je 0x7d14d0
cmp ecx, 0x2d
jne 0x7d1513
inc ebx
cmp al, 0x2b
sete byte [esp + 3]
test edx, edx
jle 0x7d151c
cmp edx, 0x10
jne 0x7d1534
cmp byte [ebx], 0x30
jne 0x7d14f6
movzx eax, byte [ebx + 1]
and al, 0xdf
xor ecx, ecx
cmp al, 0x58
sete cl
lea ebx, [ebx + ecx*2]
mov ecx, 0x10
jmp 0x7d1536
xor edi, edi
test ebp, ebp
je 0x7d16ec
mov dword [ebp], 0x16
jmp 0x7d16ec
mov byte [esp + 3], 1
test edx, edx
jg 0x7d14dc
xor eax, eax
xor ecx, ecx
cmp byte [ebx], 0x30
setne al
sete cl
add ebx, ecx
lea ecx, [eax*2 + 8]
jmp 0x7d1536
mov ecx, edx
movzx eax, byte [esp + 3]
mov esi, 0x80000000
mov dword [esp + 0x1c], eax
sub esi, eax
mov dword [esp + 0x10], 0
mov eax, esi
xor edx, edx
div ecx
mov dword [esp + 0x24], eax
mov dword [esp + 0xc], esi
not esi
mov dword [esp + 0x20], esi
xor esi, esi
mov dword [esp + 8], 0
mov edx, ecx
mov dword [esp + 0x28], ecx
inc ebx
jmp 0x7d15a2
mov esi, ecx
mov dword [esp + 8], 0
mov ebp, dword [esp + 0x4c]
test ebp, ebp
je 0x7d1686
mov dword [ebp], 0x22
mov dword [esp + 4], ebx
inc ebx
mov edi, esi
movsx eax, byte [ebx - 1]
lea esi, [eax - 0x30]
cmp esi, 0xa
jb 0x7d15ce
mov ecx, eax
and ecx, 0xffffffdf
add ecx, 0xffffffbf
cmp ecx, 0x19
ja 0x7d16ba
mov ecx, eax
not ecx
or ecx, 0xffffffdf
lea esi, [eax + ecx]
add esi, 0xffffffca
cmp esi, edx
jge 0x7d16ba
mov eax, edi
mov ecx, dword [esp + 0xc]
xor eax, ecx
mov ebp, dword [esp + 8]
or eax, ebp
je 0x7d1580
mov dword [esp + 0x18], ebx
mov eax, edi
mov ecx, edx
mul edx
cmp dword [esp + 0x24], edi
mov edi, 0
sbb edi, ebp
setae bl
jae 0x7d1610
mov dword [esp + 4], 0
mov eax, dword [esp + 0xc]
mov edx, eax
jmp 0x7d161d
imul ebp, ecx
add edx, ebp
mov dword [esp + 4], edx
mov edx, dword [esp + 0xc]
mov dword [esp + 0x14], eax
mov edi, esi
sar edi, 0x1f
mov eax, edi
mov ecx, 0xffffffff
and eax, ecx
mov ecx, esi
and ecx, dword [esp + 0x20]
mov ebp, esi
not ebp
and ebp, edx
sub ebp, ecx
mov ecx, 0
sbb ecx, eax
mov eax, dword [esp + 0x14]
add esi, eax
mov edx, dword [esp + 4]
adc edi, edx
mov dword [esp + 8], edi
cmp ebp, eax
sbb ecx, edx
setae al
mov ecx, dword [esp + 0xc]
jae 0x7d166b
mov dword [esp + 8], 0
mov esi, ecx
and bl, al
mov ebp, dword [esp + 0x4c]
test ebp, ebp
mov edx, dword [esp + 0x28]
je 0x7d16a1
test bl, bl
jne 0x7d16a1
mov ebx, dword [esp + 0x18]
jmp 0x7d1596
mov dword [esp + 0x10], 0x22
mov dword [esp + 4], ebx
mov esi, ecx
mov dword [esp + 8], 0
jmp 0x7d1572
test bl, bl
jne 0x7d16ad
mov dword [esp + 0x10], 0x22
mov ebx, dword [esp + 0x18]
mov dword [esp + 4], ebx
jmp 0x7d1572
mov eax, dword [esp + 0x44]
test eax, eax
je 0x7d16c8
mov ecx, dword [esp + 4]
mov dword [eax], ecx
test ebp, ebp
mov eax, dword [esp + 0x10]
je 0x7d16d3
mov eax, dword [ebp]
cmp eax, 0x22
jne 0x7d16e3
mov edi, 0x80000000
sub edi, dword [esp + 0x1c]
jmp 0x7d16ec
cmp byte [esp + 3], 0
jne 0x7d16ec
neg edi
mov eax, edi
add esp, 0x2c
pop esi
pop edi
pop ebx
pop ebp
ret