Function at 0x407410
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb8
mov eax, dword [0x475aa8]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x90], ecx
mov eax, dword [ebp - 0x90]
movzx ecx, byte [eax + 8]
test ecx, ecx
jne 0x407441
mov eax, 0x80008001
jmp 0x4076f1
mov dword [ebp - 0x98], 0
call fcn.0040b810
mov dword [ebp - 0xb8], eax
mov edx, dword [ebp + 8]
mov dword [ebp - 0xb4], edx
call fcn.0040b810
sub eax, dword [ebp - 0xb8]
mov dword [ebp - 0xac], eax
mov eax, dword [ebp - 0xac]
cmp eax, dword [ebp + 0xc]
ja 0x4076df
mov ecx, 0x84
sub ecx, dword [ebp - 0x98]
mov dword [ebp - 0xa8], ecx
lea edx, [ebp - 0x9c]
push edx
mov eax, dword [ebp + 0xc]
sub eax, dword [ebp - 0xac]
push eax
mov ecx, dword [ebp - 0xa8]
push ecx
mov edx, dword [ebp - 0x90]
mov eax, dword [edx + 4]
mov ecx, dword [ebp - 0x90]
mov edx, dword [eax]
mov ecx, dword [ecx + 4]
mov eax, dword [edx + 0x10]
call eax
mov byte [ebp - 0x91], al
movzx ecx, byte [ebp - 0x91]
test ecx, ecx
jne 0x4074dc
mov eax, 0x80008002
jmp 0x4076f1
mov edx, dword [ebp - 0x9c]
cmp edx, dword [ebp - 0xa8]
jbe 0x4074f6
mov eax, dword [ebp - 0xa8]
mov dword [ebp - 0x9c], eax
mov ecx, dword [ebp - 0x9c]
push ecx
lea edx, [ebp - 0x88]
push edx
mov eax, dword [ebp - 0x90]
mov ecx, dword [eax + 4]
mov edx, dword [ebp - 0x90]
mov eax, dword [ecx]
mov ecx, dword [edx + 4]
mov edx, dword [eax + 0x18]
call edx
mov dword [ebp - 0x9c], eax
mov dword [ebp - 0xa0], 0
jmp 0x40753e
mov eax, dword [ebp - 0xa0]
add eax, 1
mov dword [ebp - 0xa0], eax
mov ecx, dword [ebp - 0xa0]
cmp ecx, dword [ebp - 0x9c]
jae 0x4076da
mov edx, dword [ebp - 0xa0]
mov al, byte [ebp + edx - 0x88]
mov byte [ebp - 0x89], al
mov ecx, dword [ebp - 0x98]
mov dword [ebp - 0xb0], ecx
cmp dword [ebp - 0xb0], 0
je 0x407583
cmp dword [ebp - 0xb0], 1
je 0x4075b5
jmp 0x4075ef
movzx edx, byte [ebp - 0x89]
sar edx, 4
mov byte [ebp - 0x92], dl
movzx eax, byte [ebp - 0x92]
cmp eax, 0xa
jne 0x4075a1
jmp 0x4075b3
mov ecx, dword [ebp - 0x90]
mov byte [ecx + 0x20471], 0
jmp 0x40752f
jmp 0x4075ef
movzx edx, byte [ebp - 0x89]
sar edx, 4
mov byte [ebp - 0x93], dl
movzx eax, byte [ebp - 0x93]
cmp eax, 5
jne 0x4075d3
jmp 0x4075ef
mov dword [ebp - 0x98], 0
mov ecx, dword [ebp - 0x90]
mov byte [ecx + 0x20471], 0
jmp 0x40752f
mov edx, dword [ebp - 0xb4]
add edx, dword [ebp - 0x98]
mov al, byte [ebp - 0x89]
mov byte [edx], al
mov ecx, dword [ebp - 0x98]
add ecx, 1
mov dword [ebp - 0x98], ecx
cmp dword [ebp - 0x98], 0x84
jne 0x4076d5
mov byte [ebp - 0x8a], 0
mov edx, dword [ebp + 8]
movzx eax, byte [edx]
and eax, 0xf
mov ecx, dword [ebp + 8]
movzx edx, byte [ecx + 1]
shl edx, 4
or eax, edx
mov byte [ebp - 0x94], al
mov dword [ebp - 0xa4], 2
jmp 0x40765f
mov eax, dword [ebp - 0xa4]
add eax, 1
mov dword [ebp - 0xa4], eax
cmp dword [ebp - 0xa4], 0x84
jae 0x40768b
mov ecx, dword [ebp - 0xb4]
add ecx, dword [ebp - 0xa4]
movzx edx, byte [ecx]
movzx eax, byte [ebp - 0x8a]
xor eax, edx
mov byte [ebp - 0x8a], al
jmp 0x407650
movzx ecx, byte [ebp - 0x94]
movzx edx, byte [ebp - 0x8a]
cmp ecx, edx
jne 0x4076c1
mov eax, dword [ebp + 8]
movzx ecx, word [eax + 2]
and ecx, 0x8000
je 0x4076bd
mov edx, dword [ebp - 0x90]
mov byte [edx + 0x20471], 0
xor eax, eax
jmp 0x4076f1
xor eax, eax
jmp 0x4076f1
mov eax, dword [ebp - 0x90]
mov byte [eax + 0x20471], 0
mov eax, 0x80008000
jmp 0x4076f1
jmp 0x40752f
jmp 0x40745f
mov ecx, dword [ebp - 0x90]
mov byte [ecx + 0x20471], 0
mov eax, 0x80008002
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041de32
mov esp, ebp
pop ebp
ret 8