Function at 0x40b77c
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 0x40b7ad
push edi
mov esi, ebx
mov edi, 0x4107a8
mov ecx, 0x422
rep movsd dword es:[edi], dword [esi]
pop edi
jmp 0x40b7c0
push edi
mov esi, 0x40e2cc
mov edi, 0x4107a8
mov ecx, 0x422
rep movsd dword es:[edi], dword [esi]
pop edi
mov edx, eax
add dl, 0xfe
sub dl, 0x1f
jae 0x40b7dd
xor edx, edx
mov dl, al
mov ecx, edx
and edx, 1
add ecx, edx
mov dword [0x411830], ecx
jmp 0x40b7e7
mov dword [0x411830], 0x10
mov eax, dword [0x411830]
add eax, 2
mov esi, eax
shl esi, 2
dec esi
test esi, esi
jl 0x40b840
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 0x40b81f
dec edx
or edx, 0xfffffffc
inc edx
mov ecx, 3
sub ecx, edx
mov edx, ebx
test edx, edx
jns 0x40b82f
add edx, 3
sar edx, 2
lea edx, [edx*4 + 0x4107a8]
xor byte [edx + ecx], al
inc ebx
dec esi
jne 0x40b7fc
xor eax, eax
mov dword [edi], eax
xor eax, eax
mov dword [ebp - 0x10], eax
mov esi, dword [0x411830]
add esi, 2
sar esi, 1
jns 0x40b859
adc esi, 0
test esi, esi
jle 0x40b87c
mov ebx, 0x4107a8
mov edx, edi
lea eax, [ebp - 0x10]
call fcn.0040b694
mov eax, dword [edi]
mov dword [ebx], eax
mov eax, dword [ebp - 0x10]
mov dword [ebx + 4], eax
add ebx, 8
dec esi
jne 0x40b862
mov ebx, 0x80
mov esi, 0x410830
mov edx, edi
lea eax, [ebp - 0x10]
call fcn.0040b694
mov eax, dword [edi]
mov dword [esi], eax
mov eax, dword [ebp - 0x10]
mov dword [esi + 4], eax
add esi, 8
dec ebx
jne 0x40b886
mov ebx, 0x80
mov esi, 0x410c30
mov edx, edi
lea eax, [ebp - 0x10]
call fcn.0040b694
mov eax, dword [edi]
mov dword [esi], eax
mov eax, dword [ebp - 0x10]
mov dword [esi + 4], eax
add esi, 8
dec ebx
jne 0x40b8aa
mov ebx, 0x80
mov esi, 0x411030
mov edx, edi
lea eax, [ebp - 0x10]
call fcn.0040b694
mov eax, dword [edi]
mov dword [esi], eax
mov eax, dword [ebp - 0x10]
mov dword [esi + 4], eax
add esi, 8
dec ebx
jne 0x40b8ce
mov ebx, 0x80
mov esi, 0x411430
mov edx, edi
lea eax, [ebp - 0x10]
call fcn.0040b694
mov eax, dword [edi]
mov dword [esi], eax
mov eax, dword [ebp - 0x10]
mov dword [esi + 4], eax
add esi, 8
dec ebx
jne 0x40b8f2
mov ebx, 1
mov esi, 0x410830
lea eax, [ebx + 1]
cmp eax, 0x100
jg 0x40b93c
lea edx, [eax*4 + 0x41082c]
mov ecx, dword [esi]
cmp ecx, dword [edx]
je 0x40b9f8
inc eax
add edx, 4
cmp eax, 0x101
jne 0x40b927
inc ebx
add esi, 4
cmp ebx, 0x101
jne 0x40b916
mov ebx, 1
mov esi, 0x410c30
lea eax, [ebx + 1]
cmp eax, 0x100
jg 0x40b978
lea edx, [eax*4 + 0x410c2c]
mov ecx, dword [esi]
cmp ecx, dword [edx]
je 0x40b9f8
inc eax
add edx, 4
cmp eax, 0x101
jne 0x40b963
inc ebx
add esi, 4
cmp ebx, 0x101
jne 0x40b952
mov ebx, 1
mov esi, 0x411030
lea eax, [ebx + 1]
cmp eax, 0x100
jg 0x40b9b0
lea edx, [eax*4 + 0x41102c]
mov ecx, dword [esi]
cmp ecx, dword [edx]
je 0x40b9f8
inc eax
add edx, 4
cmp eax, 0x101
jne 0x40b99f
inc ebx
add esi, 4
cmp ebx, 0x101
jne 0x40b98e
mov ebx, 1
mov esi, 0x411430
lea eax, [ebx + 1]
cmp eax, 0x100
jg 0x40b9e8
lea edx, [eax*4 + 0x41142c]
mov ecx, dword [esi]
cmp ecx, dword [edx]
je 0x40b9f8
inc eax
add edx, 4
cmp eax, 0x101
jne 0x40b9d7
inc ebx
add esi, 4
cmp ebx, 0x101
jne 0x40b9c6
mov byte [ebp - 6], 1
mov al, byte [ebp - 6]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4