Function at 0x510769ac
Capabilities:
Encrypt data using blowfish

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
push esi
push edi
mov dword [ebp - 0xc], ecx
mov byte [ebp - 5], dl
mov dword [ebp - 4], eax
mov byte [ebp - 0xd], 0
cmp dword [ebp - 0xc], 0
je 0x510769da
mov eax, dword [ebp - 0xc]
mov esi, eax
mov edi, 0x5108f0fc
mov ecx, 0x422
rep movsd dword es:[edi], dword [esi]
jmp 0x510769eb
mov esi, 0x51087d30
mov edi, 0x5108f0fc
mov ecx, 0x422
rep movsd dword es:[edi], dword [esi]
mov al, byte [ebp + 8]
add al, 0xfe
sub al, 0x1f
jae 0x51076a0a
xor eax, eax
mov al, byte [ebp + 8]
xor edx, edx
mov dl, byte [ebp + 8]
and edx, 1
add eax, edx
mov dword [0x51090184], eax
jmp 0x51076a14
mov dword [0x51090184], 0x10
mov eax, dword [0x51090184]
add eax, 2
shl eax, 2
dec eax
test eax, eax
jl 0x51076a7a
inc eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x14], 0
xor eax, eax
mov al, byte [ebp - 5]
push eax
mov eax, dword [ebp - 0x14]
pop edx
mov ecx, edx
cdq
idiv ecx
mov eax, dword [ebp - 4]
mov al, byte [eax + edx]
mov edx, dword [ebp - 0x14]
and edx, 0x80000003
jns 0x51076a54
dec edx
or edx, 0xfffffffc
inc edx
mov ecx, 3
sub ecx, edx
mov edx, dword [ebp - 0x14]
test edx, edx
jns 0x51076a65
add edx, 3
sar edx, 2
lea edx, [edx*4 + 0x5108f0fc]
xor byte [edx + ecx], al
inc dword [ebp - 0x14]
dec dword [ebp - 0x24]
jne 0x51076a2f
xor eax, eax
mov dword [ebp - 0x1c], eax
xor eax, eax
mov dword [ebp - 0x20], eax
mov eax, dword [0x51090184]
add eax, 2
sar eax, 1
jns 0x51076a93
adc eax, 0
test eax, eax
jle 0x51076ace
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x14], 1
lea edx, [ebp - 0x1c]
lea eax, [ebp - 0x20]
call fcn.510768c8
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x1c]
mov dword [eax*8 + 0x5108f0f4], edx
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x20]
mov dword [eax*8 + 0x5108f0f8], edx
inc dword [ebp - 0x14]
dec dword [ebp - 0x24]
jne 0x51076aa1
mov dword [ebp - 0x14], 1
lea edx, [ebp - 0x1c]
lea eax, [ebp - 0x20]
call fcn.510768c8
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x1c]
mov dword [eax*8 + 0x5108f17c], edx
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x20]
mov dword [eax*8 + 0x5108f180], edx
inc dword [ebp - 0x14]
cmp dword [ebp - 0x14], 0x81
jne 0x51076ad5
mov dword [ebp - 0x14], 1
lea edx, [ebp - 0x1c]
lea eax, [ebp - 0x20]
call fcn.510768c8
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x1c]
mov dword [eax*8 + 0x5108f57c], edx
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x20]
mov dword [eax*8 + 0x5108f580], edx
inc dword [ebp - 0x14]
cmp dword [ebp - 0x14], 0x81
jne 0x51076b0d
mov dword [ebp - 0x14], 1
lea edx, [ebp - 0x1c]
lea eax, [ebp - 0x20]
call fcn.510768c8
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x1c]
mov dword [eax*8 + 0x5108f97c], edx
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x20]
mov dword [eax*8 + 0x5108f980], edx
inc dword [ebp - 0x14]
cmp dword [ebp - 0x14], 0x81
jne 0x51076b45
mov dword [ebp - 0x14], 1
lea edx, [ebp - 0x1c]
lea eax, [ebp - 0x20]
call fcn.510768c8
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x1c]
mov dword [eax*8 + 0x5108fd7c], edx
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x20]
mov dword [eax*8 + 0x5108fd80], edx
inc dword [ebp - 0x14]
cmp dword [ebp - 0x14], 0x81
jne 0x51076b7d
mov dword [ebp - 0x14], 1
mov eax, dword [ebp - 0x14]
inc eax
cmp eax, 0x100
jg 0x51076be9
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax*4 + 0x5108f180]
mov edx, dword [ebp - 0x18]
cmp eax, dword [edx*4 + 0x5108f180]
je 0x51076cc6
inc dword [ebp - 0x18]
cmp dword [ebp - 0x18], 0x101
jne 0x51076bc3
inc dword [ebp - 0x14]
cmp dword [ebp - 0x14], 0x101
jne 0x51076bb5
mov dword [ebp - 0x14], 1
mov eax, dword [ebp - 0x14]
inc eax
cmp eax, 0x100
jg 0x51076c30
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax*4 + 0x5108f580]
mov edx, dword [ebp - 0x18]
cmp eax, dword [edx*4 + 0x5108f580]
je 0x51076cc6
inc dword [ebp - 0x18]
cmp dword [ebp - 0x18], 0x101
jne 0x51076c0a
inc dword [ebp - 0x14]
cmp dword [ebp - 0x14], 0x101
jne 0x51076bfc
mov dword [ebp - 0x14], 1
mov eax, dword [ebp - 0x14]
inc eax
cmp eax, 0x100
jg 0x51076c73
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax*4 + 0x5108f980]
mov edx, dword [ebp - 0x18]
cmp eax, dword [edx*4 + 0x5108f980]
je 0x51076cc6
inc dword [ebp - 0x18]
cmp dword [ebp - 0x18], 0x101
jne 0x51076c51
inc dword [ebp - 0x14]
cmp dword [ebp - 0x14], 0x101
jne 0x51076c43
mov dword [ebp - 0x14], 1
mov eax, dword [ebp - 0x14]
inc eax
cmp eax, 0x100
jg 0x51076cb6
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax*4 + 0x5108fd80]
mov edx, dword [ebp - 0x18]
cmp eax, dword [edx*4 + 0x5108fd80]
je 0x51076cc6
inc dword [ebp - 0x18]
cmp dword [ebp - 0x18], 0x101
jne 0x51076c94
inc dword [ebp - 0x14]
cmp dword [ebp - 0x14], 0x101
jne 0x51076c86
mov byte [ebp - 0xd], 1
mov al, byte [ebp - 0xd]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4