Function at 0x401510
Capabilities:
Encrypt data using blowfish

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
mov eax, dword [0x483b60]
xor eax, ebp
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x68], ecx
cmp dword [ebp + 8], 0
je 0x40152f
cmp dword [ebp + 0xc], 1
jae 0x401534
jmp 0x4016f3
cmp dword [ebp + 0xc], 0x38
jbe 0x401541
mov dword [ebp + 0xc], 0x38
lea eax, [ebp - 0x54]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0x54]
push eax
call fcn.00449ff0
add esp, 0xc
push 0x48
push 0x46b708
mov ecx, dword [ebp - 0x68]
push ecx
call fcn.00449ff0
add esp, 0xc
push 0x1000
push 0x46b750
mov edx, dword [ebp - 0x68]
add edx, 0x48
push edx
call fcn.00449ff0
add esp, 0xc
mov dword [ebp - 0x10], 0
mov dword [ebp - 4], 0
jmp 0x4015a7
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0x12
jae 0x40162c
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x60], 4
mov ecx, dword [ebp - 0x60]
mov edx, dword [ebp - 0x60]
sub edx, 1
mov dword [ebp - 0x60], edx
test ecx, ecx
je 0x401612
mov eax, dword [ebp - 8]
movzx ecx, byte [eax]
mov dword [ebp - 0x64], ecx
mov edx, dword [ebp - 0xc]
shl edx, 8
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 8]
movzx ecx, byte [eax]
or ecx, dword [ebp - 0xc]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 8]
add edx, 1
mov dword [ebp - 8], edx
mov eax, dword [ebp - 0x10]
add eax, 1
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
cmp ecx, dword [ebp + 0xc]
jne 0x401610
mov dword [ebp - 0x10], 0
lea edx, [ebp - 0x54]
mov dword [ebp - 8], edx
jmp 0x4015bb
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x68]
mov edx, dword [ecx + eax*4]
xor edx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x68]
mov dword [ecx + eax*4], edx
jmp 0x40159e
push 0
push 0
lea ecx, [ebp - 0x5c]
call fcn.00402720
mov dword [ebp - 4], 0
cmp dword [ebp - 4], 0x12
jae 0x40167d
lea edx, [ebp - 0x5c]
push edx
mov ecx, dword [ebp - 0x68]
call fcn.00401710
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x68]
mov edx, dword [ebp - 0x5c]
mov dword [ecx + eax*4], edx
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 0x68]
mov eax, dword [ebp - 0x58]
mov dword [edx + ecx*4], eax
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
jmp 0x40163f
mov dword [ebp - 0x14], 0
jmp 0x40168f
mov edx, dword [ebp - 0x14]
add edx, 1
mov dword [ebp - 0x14], edx
cmp dword [ebp - 0x14], 4
jae 0x4016f3
mov dword [ebp - 0x18], 0
cmp dword [ebp - 0x18], 0x100
jae 0x4016f1
lea eax, [ebp - 0x5c]
push eax
mov ecx, dword [ebp - 0x68]
call fcn.00401710
mov ecx, dword [ebp - 0x14]
shl ecx, 0xa
mov edx, dword [ebp - 0x68]
lea eax, [edx + ecx + 0x48]
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x5c]
mov dword [eax + ecx*4], edx
mov eax, dword [ebp - 0x18]
add eax, 1
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x14]
shl ecx, 0xa
mov edx, dword [ebp - 0x68]
lea eax, [edx + ecx + 0x48]
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x58]
mov dword [eax + ecx*4], edx
mov eax, dword [ebp - 0x18]
add eax, 1
mov dword [ebp - 0x18], eax
jmp 0x40169c
jmp 0x401686
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.0044a355
mov esp, ebp
pop ebp
ret 8