Function at 0x40d8b2
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, edx
cmp ecx, 0x14
ja case.default.0x40d8c1
jmp dword [ecx*4 + 0x40dc46]
push dword [ebp + 8]
mov ecx, dword [0x521818]
push esi
push 0x4a
call fcn.0041c148
test eax, eax
jne case.default.0x40d8c1
movzx edx, word [0x517a90]
mov ecx, 0x517a92
jmp 0x40dc2f
push dword [ebp + 8]
mov ecx, dword [0x521818]
push esi
push 0x4b
call fcn.0041c148
test eax, eax
jne case.default.0x40d8c1
movzx edx, word [0x517a98]
mov ecx, 0x517a9a
jmp 0x40dc2f
push dword [ebp + 8]
mov ecx, dword [0x521818]
push esi
push 0x4c
call fcn.0041c148
test eax, eax
jne case.default.0x40d8c1
movzx edx, word [0x517aa8]
mov ecx, 0x517aaa
jmp 0x40dc2f
push dword [ebp + 8]
mov ecx, dword [0x521818]
push esi
push 0x4d
call fcn.0041c148
test eax, eax
jne case.default.0x40d8c1
movzx edx, word [0x517ab6]
mov ecx, 0x517ab8
jmp 0x40dc2f
push dword [ebp + 8]
mov ecx, dword [0x521818]
push esi
push 0x4e
call fcn.0041c148
test eax, eax
jne case.default.0x40d8c1
movzx edx, word [0x517ac2]
mov ecx, 0x517ac4
jmp 0x40dc2f
push dword [ebp + 8]
mov ecx, dword [0x521818]
push esi
push 0x4f
call fcn.0041c148
test eax, eax
jne case.default.0x40d8c1
movzx edx, word [0x517ad6]
mov ecx, 0x517ad8
jmp 0x40dc2f
push dword [ebp + 8]
mov ecx, dword [0x521818]
push esi
push 0x50
call fcn.0041c148
test eax, eax
jne case.default.0x40d8c1
movzx edx, word [0x517ae2]
mov ecx, 0x517ae4
jmp 0x40dc2f
push dword [ebp + 8]
mov ecx, dword [0x521818]
push esi
push 0x51
call fcn.0041c148
test eax, eax
jne case.default.0x40d8c1
movzx edx, word [0x517af4]
mov ecx, 0x517af6
jmp 0x40dc2f
push dword [ebp + 8]
mov ecx, dword [0x521818]
push esi
push 0x52
call fcn.0041c148
test eax, eax
jne case.default.0x40d8c1
movzx edx, word [0x517b0c]
mov ecx, 0x517b0e
jmp 0x40dc2f
push dword [ebp + 8]
mov ecx, dword [0x521818]
push esi
push 0x3e
call fcn.0041c148
test eax, eax
jne case.default.0x40d8c1
movzx edx, word [0x517804]
mov ecx, 0x517806
jmp 0x40dc2f
push dword [ebp + 8]
mov ecx, dword [0x521818]
push esi
push 0x53
call fcn.0041c148
test eax, eax
jne case.default.0x40d8c1
movzx edx, word [0x517b16]
mov ecx, 0x517b18
jmp 0x40dc2f
push dword [ebp + 8]
mov ecx, dword [0x521818]
push esi
push 0x54
call fcn.0041c148
test eax, eax
jne case.default.0x40d8c1
movzx edx, word [0x517b34]
mov ecx, 0x517b36
jmp 0x40dc2f
push 0xddfca082
mov edx, 0x7a3a971
mov ecx, 0x62ab0582
call fcn.004014a6
pop ecx
sub esi, eax
movzx ecx, word [eax]
mov word [esi + eax], cx
lea eax, [eax + 2]
test cx, cx
jne 0x40dad7
jmp case.default.0x40d8c1
push dword [ebp + 8]
mov ecx, dword [0x521818]
push esi
push 0x56
call fcn.0041c148
test eax, eax
jne case.default.0x40d8c1
movzx edx, word [0x517b48]
mov ecx, 0x517b4a
jmp 0x40dc2f
push dword [ebp + 8]
mov ecx, dword [0x521818]
push esi
push 0x57
call fcn.0041c148
test eax, eax
jne case.default.0x40d8c1
movzx edx, word [0x517b52]
mov ecx, 0x517b54
jmp 0x40dc2f
push dword [ebp + 8]
mov ecx, dword [0x521818]
push esi
push 0x58
call fcn.0041c148
test eax, eax
jne case.default.0x40d8c1
movzx edx, word [0x517b5a]
mov ecx, 0x517b5c
jmp 0x40dc2f
push dword [ebp + 8]
mov ecx, dword [0x521818]
push esi
push 0x59
call fcn.0041c148
test eax, eax
jne case.default.0x40d8c1
movzx edx, word [0x517b64]
mov ecx, 0x517b66
jmp 0x40dc2f
push 0xeeb39e71
mov edx, 0x34ec9782
mov ecx, 0x51e43b7f
call fcn.004014a6
pop ecx
sub esi, eax
movzx ecx, word [eax]
mov word [esi + eax], cx
lea eax, [eax + 2]
test cx, cx
jne 0x40dbaa
jmp case.default.0x40d8c1
push 0x86e3438e
mov edx, 0x5cbc4a7d
mov ecx, 0x39b4e69a
call fcn.004014a6
pop ecx
sub esi, eax
movzx ecx, word [eax]
mov word [esi + eax], cx
lea eax, [eax + 2]
test cx, cx
jne 0x40dbd5
jmp case.default.0x40d8c1
push 0x5e9e008
mov edx, 0xdfb6e9fc
mov ecx, 0xbabe45ed
call fcn.004014a6
pop ecx
sub esi, eax
movzx ecx, word [eax]
mov word [esi + eax], cx
lea eax, [eax + 2]
test cx, cx
jne 0x40dbfd
jmp case.default.0x40d8c1
push dword [ebp + 8]
mov ecx, dword [0x521818]
push esi
push 0x64
call fcn.0041c148
test eax, eax
jne case.default.0x40d8c1
movzx edx, word [0x517d46]
mov ecx, 0x517d48
push dword [ebp + 8]
xor edx, 0xc7c7
push esi
call fcn.00415bfb
pop ecx
pop ecx
pop esi
pop ebp
ret