Function at 0x405442
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov al, byte [0x7bde7b]
and eax, 0xff
test eax, eax
je 0x405462
mov dword [esp], str.cdm:_2_n
call fcn.004247e5
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
mov eax, dword [sym.imp.msvcrt.dll__stricmp]
call eax
test eax, eax
jne 0x405481
mov al, 1
jmp 0x405680
mov al, byte [0x7bde7b]
and eax, 0xff
test eax, eax
je 0x40549b
mov dword [esp], str.cdm:_3_n
call fcn.004247e5
mov dword [esp + 8], 1
mov eax, dword [ebp + 8]
mov dword [esp + 4], eax
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call fcn.00435dad
xor eax, 1
test al, al
je 0x4054c3
mov al, 0
jmp 0x405680
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], 1
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
mov eax, dword [ebp - 0xc]
mov al, byte [eax]
cmp al, 0x2e
jne 0x4054ea
inc dword [ebp - 0xc]
mov al, byte [0x7bde7b]
and eax, 0xff
test eax, eax
je 0x405504
mov dword [esp], str.cdm:_4_n
call fcn.004247e5
mov dword [ebp - 0x1c], 0
jmp 0x405561
mov eax, dword [ebp - 0xc]
mov al, byte [eax]
movsx eax, al
test eax, eax
je 0x405520
cmp eax, 0x2e
je 0x405529
jmp 0x40555b
mov dword [ebp - 0x1c], 1
jmp 0x40555e
cmp dword [ebp - 0x14], 0
jne 0x405536
mov al, 0
jmp 0x405680
mov eax, dword [ebp - 0xc]
inc eax
mov al, byte [eax]
test al, al
jne 0x405549
mov dword [ebp - 0x1c], 1
jmp 0x40555e
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 0
inc dword [ebp - 0x10]
jmp 0x40555e
inc dword [ebp - 0x14]
inc dword [ebp - 0xc]
cmp dword [ebp - 0x1c], 0
je 0x40550d
mov al, byte [0x7bde7b]
and eax, 0xff
test eax, eax
je 0x405581
mov dword [esp], str.cdm:_5_n
call fcn.004247e5
cmp dword [ebp - 0x10], 1
jg 0x40558e
mov al, 0
jmp 0x405680
mov al, byte [0x7bde7b]
and eax, 0xff
test eax, eax
je 0x4055a8
mov dword [esp], str.cdm:_6_n
call fcn.004247e5
cmp dword [ebp - 0x10], 2
jne 0x405605
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
jmp 0x4055ef
mov eax, dword [ebp - 0x20]
mov eax, dword [eax*4 + 0x6ca020]
mov dword [esp + 8], 1
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.00435dad
test al, al
je 0x4055ec
mov dword [ebp - 0x24], 1
jmp 0x4055f5
inc dword [ebp - 0x20]
cmp dword [ebp - 0x20], 6
jbe 0x4055be
cmp dword [ebp - 0x24], 0
jne 0x405605
cmp dword [ebp - 0x18], 3
jg 0x405605
mov al, 0
jmp 0x405680
mov al, byte [0x7bde7b]
and eax, 0xff
test eax, eax
je 0x40561f
mov dword [esp], str.cdm:_7_n
call fcn.004247e5
mov eax, dword [ebp + 8]
mov al, byte [eax]
cmp al, 0x2e
je 0x405664
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sub.msvcrt.dll_strlen
mov dword [ebp - 0x28], eax
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call sub.msvcrt.dll_strlen
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
cmp eax, dword [ebp - 0x28]
jle 0x405664
mov eax, dword [ebp - 0x2c]
sub eax, dword [ebp - 0x28]
lea edx, [eax - 1]
mov eax, dword [ebp + 0xc]
add eax, edx
mov al, byte [eax]
cmp al, 0x2e
je 0x405664
mov al, 0
jmp 0x405680
mov al, byte [0x7bde7b]
and eax, 0xff
test eax, eax
je 0x40567e
mov dword [esp], str.cdm:_8_n
call fcn.004247e5
mov al, 1
leave
ret