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

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x2c
mov ebx, dword [esp + 0x40]
mov edi, ebx
mov esi, 0x60bb80
mov edx, 0x1048
test bl, 1
jne 0x541bc8
test edi, 2
jne 0x541be5
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
test dl, 2
je 0x541a03
mov cx, word [esi]
mov word [edi], cx
mov ecx, 2
and edx, 1
je 0x541a0e
mov dl, byte [esi + ecx]
mov byte [edi + ecx], dl
mov ecx, dword [esp + 0x44]
cmp ecx, 0x48
jle 0x541a1c
mov ecx, 0x48
add ecx, dword [esp + 0x48]
mov edi, dword [esp + 0x48]
xor edx, edx
lea esi, [esi]
lea edi, [edi]
mov al, byte [edi]
and eax, 0xff
mov ebp, eax
inc edi
cmp ecx, edi
ja 0x541a42
mov edi, dword [esp + 0x48]
mov esi, ebp
shl esi, 8
mov al, byte [edi]
and eax, 0xff
mov ebp, eax
or ebp, esi
lea esi, [edi + 1]
cmp ecx, esi
ja 0x541a5d
mov esi, dword [esp + 0x48]
mov edi, ebp
shl edi, 8
mov al, byte [esi]
and eax, 0xff
mov ebp, eax
or ebp, edi
inc esi
cmp ecx, esi
ja 0x541a76
mov esi, dword [esp + 0x48]
shl ebp, 8
lea edi, [esi + 1]
cmp ecx, edi
ja 0x541a84
mov edi, dword [esp + 0x48]
mov al, byte [esi]
and eax, 0xff
mov esi, eax
or esi, ebp
xor dword [ebx + edx*4], esi
inc edx
cmp edx, 0x12
jne 0x541a30
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 4], ebx
lea edi, [esp + 0x18]
mov dword [esp], edi
call fcn.00542000
mov eax, dword [esp + 0x18]
mov dword [ebx], eax
mov eax, dword [esp + 0x1c]
mov dword [ebx + 4], eax
mov dword [esp + 4], ebx
mov dword [esp], edi
call fcn.00542000
mov eax, dword [esp + 0x18]
mov dword [ebx + 8], eax
mov eax, dword [esp + 0x1c]
mov dword [ebx + 0xc], eax
mov dword [esp + 4], ebx
mov dword [esp], edi
call fcn.00542000
mov eax, dword [esp + 0x18]
mov dword [ebx + 0x10], eax
mov eax, dword [esp + 0x1c]
mov dword [ebx + 0x14], eax
mov dword [esp + 4], ebx
mov dword [esp], edi
call fcn.00542000
mov eax, dword [esp + 0x18]
mov dword [ebx + 0x18], eax
mov eax, dword [esp + 0x1c]
mov dword [ebx + 0x1c], eax
mov dword [esp + 4], ebx
mov dword [esp], edi
call fcn.00542000
mov eax, dword [esp + 0x18]
mov dword [ebx + 0x20], eax
mov eax, dword [esp + 0x1c]
mov dword [ebx + 0x24], eax
mov dword [esp + 4], ebx
mov dword [esp], edi
call fcn.00542000
mov eax, dword [esp + 0x18]
mov dword [ebx + 0x28], eax
mov eax, dword [esp + 0x1c]
mov dword [ebx + 0x2c], eax
mov dword [esp + 4], ebx
mov dword [esp], edi
call fcn.00542000
mov eax, dword [esp + 0x18]
mov dword [ebx + 0x30], eax
mov eax, dword [esp + 0x1c]
mov dword [ebx + 0x34], eax
mov dword [esp + 4], ebx
mov dword [esp], edi
call fcn.00542000
mov eax, dword [esp + 0x18]
mov dword [ebx + 0x38], eax
mov eax, dword [esp + 0x1c]
mov dword [ebx + 0x3c], eax
mov dword [esp + 4], ebx
mov dword [esp], edi
call fcn.00542000
mov eax, dword [esp + 0x18]
mov dword [ebx + 0x40], eax
mov eax, dword [esp + 0x1c]
mov dword [ebx + 0x44], eax
lea esi, [ebx + 0x48]
lea ebp, [ebx + 0x1048]
nop
mov dword [esp + 4], ebx
mov dword [esp], edi
call fcn.00542000
mov eax, dword [esp + 0x18]
mov dword [esi], eax
mov eax, dword [esp + 0x1c]
mov dword [esi + 4], eax
add esi, 8
cmp esi, ebp
jne 0x541ba0
add esp, 0x2c
pop ebx
pop esi
pop edi
pop ebp
ret
mov al, byte [0x60bb80]
mov byte [ebx], al
lea edi, [ebx + 1]
mov esi, 0x60bb81
mov dl, 0x47
test edi, 2
je 0x5419ec
mov cx, word [esi]
mov word [edi], cx
add edi, 2
add esi, 2
sub edx, 2
jmp 0x5419ec