Function at 0x4014b6
Capabilities:
Encrypt data using blowfish
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x64
cmp dword [ebp + 0xc], 7
jle 0x4014c9
cmp dword [ebp + 0xc], 0x38
jle 0x4014d3
mov eax, 1
jmp 0x401878
cmp dword [ebp + 0x10], 0
je 0x4014e9
cmp dword [ebp + 0x10], 0x10
je 0x4014e9
mov eax, 1
jmp 0x401878
mov dword [ebp - 0x10], 0
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x14], eax
jmp 0x401569
mov eax, dword [ebp - 0x14]
shl eax, 8
mov ecx, eax
mov eax, dword [ebp - 0xc]
lea edx, [eax + 1]
mov dword [ebp - 0xc], edx
mov edx, dword [ebp + 8]
add eax, edx
movzx eax, byte [eax]
movzx eax, al
or eax, ecx
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0xc]
and eax, 3
test eax, eax
jne 0x401569
mov eax, dword [ebp - 0x10]
lea edx, [eax + 1]
mov dword [ebp - 0x10], edx
mov edx, dword [ebp - 0x14]
mov ecx, edx
shr ecx, 0x18
mov edx, dword [ebp - 0x14]
shl edx, 0x18
or ecx, edx
mov edx, dword [ebp - 0x14]
shr edx, 8
and edx, 0xff00
or ecx, edx
mov edx, dword [ebp - 0x14]
shl edx, 8
and edx, 0xff0000
or edx, ecx
mov dword [ebp + eax*4 - 0x4c], edx
mov dword [ebp - 0x14], 0
mov eax, dword [ebp + 0xc]
cmp dword [ebp - 0xc], eax
jb 0x4014fe
mov eax, dword [ebp + 0xc]
and eax, 3
test eax, eax
je 0x4015c0
mov eax, dword [ebp + 0xc]
not eax
and eax, 3
shl eax, 3
mov ecx, eax
shl dword [ebp - 0x14], cl
mov eax, dword [ebp - 0x14]
shr eax, 0x18
mov edx, eax
mov eax, dword [ebp - 0x14]
shl eax, 0x18
or edx, eax
mov eax, dword [ebp - 0x14]
shr eax, 8
and eax, 0xff00
or edx, eax
mov eax, dword [ebp - 0x14]
shl eax, 8
and eax, 0xff0000
or edx, eax
mov eax, dword [ebp - 0x10]
mov dword [ebp + eax*4 - 0x4c], edx
add dword [ebp - 0x10], 1
mov dword [ebp - 0xc], 0
jmp 0x4015f9
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax*4 + 0x407080]
mov eax, dword [ebp - 0xc]
mov edx, 0
div dword [ebp - 0x10]
mov eax, edx
mov eax, dword [ebp + eax*4 - 0x4c]
xor ecx, eax
mov eax, dword [ebp + 0x14]
mov edx, dword [ebp - 0xc]
add edx, 0x400
mov dword [eax + edx*4], ecx
add dword [ebp - 0xc], 1
cmp dword [ebp - 0xc], 0x11
jbe 0x4015c9
mov dword [ebp - 0xc], 0
jmp 0x401649
mov dword [ebp - 0x10], 0
jmp 0x40163c
mov eax, dword [ebp - 0xc]
shl eax, 8
mov edx, eax
mov eax, dword [ebp - 0x10]
add eax, edx
mov edx, dword [eax*4 + 0x4070e0]
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp - 0xc]
mov ebx, ecx
shl ebx, 8
mov ecx, dword [ebp - 0x10]
add ecx, ebx
mov dword [eax + ecx*4], edx
add dword [ebp - 0x10], 1
cmp dword [ebp - 0x10], 0xff
jbe 0x401611
add dword [ebp - 0xc], 1
cmp dword [ebp - 0xc], 3
jbe 0x401608
mov dword [esp + 8], 8
mov dword [esp + 4], 0
lea eax, [ebp - 0x54]
mov dword [esp], eax
call sym._memset
mov dword [ebp - 0xc], 0
jmp 0x401737
mov eax, dword [ebp + 0x14]
mov dword [esp + 8], eax
lea eax, [ebp - 0x54]
mov dword [esp + 4], eax
lea eax, [ebp - 0x54]
mov dword [esp], eax
call dbg.blowfish_ecb_encrypt
lea eax, [ebp - 0x54]
add eax, 3
movzx eax, byte [eax]
movzx eax, al
shl eax, 0x18
mov edx, eax
lea eax, [ebp - 0x54]
add eax, 2
movzx eax, byte [eax]
movzx eax, al
shl eax, 0x10
or edx, eax
lea eax, [ebp - 0x54]
add eax, 1
movzx eax, byte [eax]
movzx eax, al
shl eax, 8
or edx, eax
movzx eax, byte [ebp - 0x54]
movzx eax, al
mov ecx, edx
or ecx, eax
mov eax, dword [ebp + 0x14]
mov edx, dword [ebp - 0xc]
add edx, 0x400
mov dword [eax + edx*4], ecx
mov eax, dword [ebp - 0xc]
lea edx, [eax + 1]
lea eax, [ebp - 0x54]
add eax, 4
add eax, 3
movzx eax, byte [eax]
movzx eax, al
shl eax, 0x18
mov ecx, eax
lea eax, [ebp - 0x54]
add eax, 4
add eax, 2
movzx eax, byte [eax]
movzx eax, al
shl eax, 0x10
or ecx, eax
lea eax, [ebp - 0x54]
add eax, 4
add eax, 1
movzx eax, byte [eax]
movzx eax, al
shl eax, 8
or ecx, eax
movzx eax, byte [ebp - 0x50]
movzx eax, al
or ecx, eax
mov eax, dword [ebp + 0x14]
add edx, 0x400
mov dword [eax + edx*4], ecx
add dword [ebp - 0xc], 2
cmp dword [ebp - 0xc], 0x11
jbe 0x401676
mov dword [ebp - 0xc], 0
jmp 0x401833
mov dword [ebp - 0x10], 0
jmp 0x401822
mov eax, dword [ebp + 0x14]
mov dword [esp + 8], eax
lea eax, [ebp - 0x54]
mov dword [esp + 4], eax
lea eax, [ebp - 0x54]
mov dword [esp], eax
call dbg.blowfish_ecb_encrypt
lea eax, [ebp - 0x54]
add eax, 3
movzx eax, byte [eax]
movzx eax, al
shl eax, 0x18
mov edx, eax
lea eax, [ebp - 0x54]
add eax, 2
movzx eax, byte [eax]
movzx eax, al
shl eax, 0x10
or edx, eax
lea eax, [ebp - 0x54]
add eax, 1
movzx eax, byte [eax]
movzx eax, al
shl eax, 8
or edx, eax
movzx eax, byte [ebp - 0x54]
movzx eax, al
mov ecx, edx
or ecx, eax
mov eax, dword [ebp + 0x14]
mov edx, dword [ebp - 0xc]
mov ebx, edx
shl ebx, 8
mov edx, dword [ebp - 0x10]
add edx, ebx
mov dword [eax + edx*4], ecx
mov eax, dword [ebp - 0x10]
lea ebx, [eax + 1]
lea eax, [ebp - 0x54]
add eax, 4
add eax, 3
movzx eax, byte [eax]
movzx eax, al
shl eax, 0x18
mov edx, eax
lea eax, [ebp - 0x54]
add eax, 4
add eax, 2
movzx eax, byte [eax]
movzx eax, al
shl eax, 0x10
or edx, eax
lea eax, [ebp - 0x54]
add eax, 4
add eax, 1
movzx eax, byte [eax]
movzx eax, al
shl eax, 8
or edx, eax
movzx eax, byte [ebp - 0x50]
movzx eax, al
mov ecx, edx
or ecx, eax
mov eax, dword [ebp + 0x14]
mov edx, dword [ebp - 0xc]
shl edx, 8
add edx, ebx
mov dword [eax + edx*4], ecx
add dword [ebp - 0x10], 2
cmp dword [ebp - 0x10], 0xff
jbe 0x401759
add dword [ebp - 0xc], 1
cmp dword [ebp - 0xc], 3
jbe 0x40174d
mov dword [esp + 8], 8
mov dword [esp + 4], 0
lea eax, [ebp - 0x54]
mov dword [esp], eax
call sym._memset
mov dword [esp + 8], 0x38
mov dword [esp + 4], 0
lea eax, [ebp - 0x4c]
mov dword [esp], eax
call sym._memset
mov eax, 0
add esp, 0x64
pop ebx
pop ebp
ret