Function at 0x417758
Capabilities:
Encrypt data using blowfish

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov ebx, ecx
mov byte [ebp - 5], dl
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
lea edi, [ebp - 0xc]
mov byte [ebp - 6], 0
test ebx, ebx
je 0x417789
push edi
mov esi, ebx
mov edi, 0x41c880
mov ecx, 0x422
rep movsd dword es:[edi], dword [esi]
pop edi
jmp 0x41779c
push edi
mov esi, 0x41a3cc
mov edi, 0x41c880
mov ecx, 0x422
rep movsd dword es:[edi], dword [esi]
pop edi
mov edx, eax
add dl, 0xfe
sub dl, 0x1f
jae 0x4177b9
xor edx, edx
mov dl, al
mov ecx, edx
and edx, 1
add ecx, edx
mov dword [0x41d908], ecx
jmp 0x4177c3
mov dword [0x41d908], 0x10
mov eax, dword [0x41d908]
add eax, 2
mov esi, eax
shl esi, 2
dec esi
test esi, esi
jl 0x41781c
inc esi
xor ebx, ebx
xor eax, eax
mov al, byte [ebp - 5]
push eax
mov eax, ebx
pop edx
mov ecx, edx
cdq
idiv ecx
mov eax, dword [ebp - 4]
mov al, byte [eax + edx]
mov edx, ebx
and edx, 0x80000003
jns 0x4177fb
dec edx
or edx, 0xfffffffc
inc edx
mov ecx, 3
sub ecx, edx
mov edx, ebx
test edx, edx
jns 0x41780b
add edx, 3
sar edx, 2
lea edx, [edx*4 + 0x41c880]
xor byte [edx + ecx], al
inc ebx
dec esi
jne 0x4177d8
xor eax, eax
mov dword [edi], eax
xor eax, eax
mov dword [ebp - 0x10], eax
mov esi, dword [0x41d908]
add esi, 2
sar esi, 1
jns 0x417835
adc esi, 0
test esi, esi
jle 0x417858
mov ebx, 0x41c880
mov edx, edi
lea eax, [ebp - 0x10]
call fcn.00417670
mov eax, dword [edi]
mov dword [ebx], eax
mov eax, dword [ebp - 0x10]
mov dword [ebx + 4], eax
add ebx, 8
dec esi
jne 0x41783e
mov ebx, 0x80
mov esi, 0x41c908
mov edx, edi
lea eax, [ebp - 0x10]
call fcn.00417670
mov eax, dword [edi]
mov dword [esi], eax
mov eax, dword [ebp - 0x10]
mov dword [esi + 4], eax
add esi, 8
dec ebx
jne 0x417862
mov ebx, 0x80
mov esi, 0x41cd08
mov edx, edi
lea eax, [ebp - 0x10]
call fcn.00417670
mov eax, dword [edi]
mov dword [esi], eax
mov eax, dword [ebp - 0x10]
mov dword [esi + 4], eax
add esi, 8
dec ebx
jne 0x417886
mov ebx, 0x80
mov esi, 0x41d108
mov edx, edi
lea eax, [ebp - 0x10]
call fcn.00417670
mov eax, dword [edi]
mov dword [esi], eax
mov eax, dword [ebp - 0x10]
mov dword [esi + 4], eax
add esi, 8
dec ebx
jne 0x4178aa
mov ebx, 0x80
mov esi, 0x41d508
mov edx, edi
lea eax, [ebp - 0x10]
call fcn.00417670
mov eax, dword [edi]
mov dword [esi], eax
mov eax, dword [ebp - 0x10]
mov dword [esi + 4], eax
add esi, 8
dec ebx
jne 0x4178ce
mov ebx, 1
mov esi, 0x41c908
lea eax, [ebx + 1]
cmp eax, 0x100
jg 0x417918
lea edx, [eax*4 + 0x41c904]
mov ecx, dword [esi]
cmp ecx, dword [edx]
je 0x4179d4
inc eax
add edx, 4
cmp eax, 0x101
jne 0x417903
inc ebx
add esi, 4
cmp ebx, 0x101
jne 0x4178f2
mov ebx, 1
mov esi, 0x41cd08
lea eax, [ebx + 1]
cmp eax, 0x100
jg 0x417954
lea edx, [eax*4 + 0x41cd04]
mov ecx, dword [esi]
cmp ecx, dword [edx]
je 0x4179d4
inc eax
add edx, 4
cmp eax, 0x101
jne 0x41793f
inc ebx
add esi, 4
cmp ebx, 0x101
jne 0x41792e
mov ebx, 1
mov esi, 0x41d108
lea eax, [ebx + 1]
cmp eax, 0x100
jg 0x41798c
lea edx, [eax*4 + 0x41d104]
mov ecx, dword [esi]
cmp ecx, dword [edx]
je 0x4179d4
inc eax
add edx, 4
cmp eax, 0x101
jne 0x41797b
inc ebx
add esi, 4
cmp ebx, 0x101
jne 0x41796a
mov ebx, 1
mov esi, 0x41d508
lea eax, [ebx + 1]
cmp eax, 0x100
jg 0x4179c4
lea edx, [eax*4 + 0x41d504]
mov ecx, dword [esi]
cmp ecx, dword [edx]
je 0x4179d4
inc eax
add edx, 4
cmp eax, 0x101
jne 0x4179b3
inc ebx
add esi, 4
cmp ebx, 0x101
jne 0x4179a2
mov byte [ebp - 6], 1
mov al, byte [ebp - 6]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4