Function at 0x54ba00
Capabilities:
Encrypt data using blowfish

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
mov eax, dword [0x6a1da0]
xor eax, ebp
mov dword [ebp - 0xc], eax
push esi
mov dword [ebp - 0x68], ecx
mov eax, dword [ebp - 0x68]
mov eax, dword [eax + 8]
cdq
and edx, 7
add eax, edx
sar eax, 3
mov dword [ebp - 0x54], eax
push 0x40
push 0
lea ecx, [ebp - 0x50]
push ecx
call fcn.005b3370
add esp, 0xc
mov ecx, dword [ebp - 0x68]
add ecx, 0x18
call fcn.00402dd0
cmp eax, 0x40
jbe 0x54ba71
mov ecx, dword [ebp - 0x68]
add ecx, 0x18
call fcn.004b5840
test eax, eax
je 0x54ba6f
push 0x40
mov ecx, dword [ebp - 0x68]
add ecx, 0x18
call fcn.004b5840
push eax
lea edx, [ebp - 0x50]
push edx
call fcn.005b3400
add esp, 0xc
jmp 0x54baa4
mov ecx, dword [ebp - 0x68]
add ecx, 0x18
call fcn.004b5840
test eax, eax
je 0x54baa4
mov ecx, dword [ebp - 0x68]
add ecx, 0x18
call fcn.00402dd0
push eax
mov ecx, dword [ebp - 0x68]
add ecx, 0x18
call fcn.004b5840
push eax
lea eax, [ebp - 0x50]
push eax
call fcn.005b3400
add esp, 0xc
mov dword [ebp - 4], 0
jmp 0x54bab6
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
cmp dword [ebp - 4], 0x12
jge 0x54bad3
mov edx, dword [ebp - 0x68]
mov eax, dword [edx]
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 4]
mov edx, dword [edx*4 + 0x69f720]
mov dword [eax + ecx*4], edx
jmp 0x54baad
mov dword [ebp - 4], 0
jmp 0x54bae5
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 4
jge 0x54bb2c
mov dword [ebp - 0x64], 0
jmp 0x54bafd
mov ecx, dword [ebp - 0x64]
add ecx, 1
mov dword [ebp - 0x64], ecx
cmp dword [ebp - 0x64], 0x100
jge 0x54bb2a
mov edx, dword [ebp - 4]
shl edx, 0xa
mov eax, dword [ebp - 4]
shl eax, 0xa
mov ecx, dword [ebp - 0x68]
add eax, dword [ecx + 4]
mov ecx, dword [ebp - 0x64]
mov esi, dword [ebp - 0x64]
mov edx, dword [edx + esi*4 + 0x69f768]
mov dword [eax + ecx*4], edx
jmp 0x54baf4
jmp 0x54badc
mov dword [ebp - 0x64], 0
mov dword [ebp - 4], 0
jmp 0x54bb45
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0x12
jge 0x54bc12
mov dword [ebp - 8], 0
mov ecx, dword [ebp - 0x64]
movzx edx, byte [ebp + ecx - 0x50]
and edx, 0xff
shl edx, 0x18
mov eax, dword [ebp - 8]
and eax, 0xffffff
or eax, edx
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x64]
add eax, 1
cdq
idiv dword [ebp - 0x54]
movzx ecx, byte [ebp + edx - 0x50]
and ecx, 0xff
shl ecx, 0x10
mov edx, dword [ebp - 8]
and edx, 0xff00ffff
or edx, ecx
mov dword [ebp - 8], edx
mov eax, dword [ebp - 0x64]
add eax, 2
cdq
idiv dword [ebp - 0x54]
movzx eax, byte [ebp + edx - 0x50]
and eax, 0xff
shl eax, 8
mov ecx, dword [ebp - 8]
and ecx, 0xffff00ff
or ecx, eax
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 0x64]
add eax, 3
cdq
idiv dword [ebp - 0x54]
movzx edx, byte [ebp + edx - 0x50]
and edx, 0xff
mov eax, dword [ebp - 8]
and eax, 0xffffff00
or eax, edx
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
mov dword [ebp - 0x60], ecx
mov edx, dword [ebp - 0x68]
mov eax, dword [edx]
mov ecx, dword [ebp - 4]
mov edx, dword [eax + ecx*4]
xor edx, dword [ebp - 0x60]
mov eax, dword [ebp - 0x68]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov dword [ecx + eax*4], edx
mov eax, dword [ebp - 0x64]
add eax, 4
cdq
idiv dword [ebp - 0x54]
mov dword [ebp - 0x64], edx
jmp 0x54bb3c
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x58], 0
mov dword [ebp - 4], 0
jmp 0x54bc32
mov ecx, dword [ebp - 4]
add ecx, 2
mov dword [ebp - 4], ecx
cmp dword [ebp - 4], 0x12
jge 0x54bc67
lea edx, [ebp - 0x58]
push edx
lea eax, [ebp - 0x5c]
push eax
mov ecx, dword [ebp - 0x68]
call fcn.0054ac20
mov ecx, dword [ebp - 0x68]
mov edx, dword [ecx]
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x5c]
mov dword [edx + eax*4], ecx
mov edx, dword [ebp - 0x68]
mov eax, dword [edx]
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 0x58]
mov dword [eax + ecx*4 + 4], edx
jmp 0x54bc29
mov dword [ebp - 4], 0
jmp 0x54bc79
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 4
jge 0x54bcd9
mov dword [ebp - 0x64], 0
jmp 0x54bc91
mov ecx, dword [ebp - 0x64]
add ecx, 2
mov dword [ebp - 0x64], ecx
cmp dword [ebp - 0x64], 0x100
jge 0x54bcd7
lea edx, [ebp - 0x58]
push edx
lea eax, [ebp - 0x5c]
push eax
mov ecx, dword [ebp - 0x68]
call fcn.0054ac20
mov ecx, dword [ebp - 4]
shl ecx, 0xa
mov edx, dword [ebp - 0x68]
add ecx, dword [edx + 4]
mov eax, dword [ebp - 0x64]
mov edx, dword [ebp - 0x5c]
mov dword [ecx + eax*4], edx
mov eax, dword [ebp - 4]
shl eax, 0xa
mov ecx, dword [ebp - 0x68]
add eax, dword [ecx + 4]
mov edx, dword [ebp - 0x64]
mov ecx, dword [ebp - 0x58]
mov dword [eax + edx*4 + 4], ecx
jmp 0x54bc88
jmp 0x54bc70
pop esi
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.005af2c3
mov esp, ebp
pop ebp
ret