Function at 0x45301c
Capabilities:
Encrypt data using salsa20 or chacha

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2c
push ebx
mov eax, edx
mov ebx, ecx
push esi
mov esi, eax
mov dword [esp + 0xc], eax
push edi
mov ecx, dword [ebx]
xor edi, edi
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], edi
lea edx, [esi + 1]
mov dword [esp + 0x20], edi
mov al, byte [esi]
inc esi
test al, al
jne 0x453045
sub esi, edx
mov edx, dword [ebp + 0xc]
test edx, edx
je 0x453057
mov dword [edx], edi
mov eax, dword [ebx + 0x20]
and eax, 0x10000
or eax, edi
jne 0x453080
test edx, edx
je 0x453430
push str.not_authorized
call fcn.0040e6c3
mov ebx, dword [ebp + 0xc]
pop ecx
mov dword [ebx], eax
jmp 0x453430
cmp dword [ebp + 8], edi
mov eax, str.sqlite3_extension_init
mov dword [esp + 0x2c], 1
cmovne eax, dword [ebp + 8]
mov dword [esp + 0x24], eax
cmp esi, 0x104
ja 0x4533e3
mov eax, esi
or eax, edi
je 0x4533e3
push dword [esp + 0x10]
push ecx
call dword [ecx + 0x28]
pop ecx
pop ecx
mov ecx, 0x639eec
mov dword [esp + 0x14], eax
mov dword [esp + 0x28], ecx
test eax, eax
jne 0x45315c
push dword [ecx]
push dword [esp + 0x14]
push str._s._s
call fcn.0040e6c3
mov edx, eax
add esp, 0xc
mov dword [esp + 0x34], edx
test edx, edx
je 0x45338c
mov ecx, dword [esp + 0x28]
mov ecx, dword [ecx]
lea eax, [ecx + 1]
mov dword [esp + 0x30], eax
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4530fb
sub ecx, dword [esp + 0x30]
xor eax, eax
add ecx, esi
adc eax, edi
add ecx, 1
adc eax, edi
cmp eax, edi
ja 0x453132
jb 0x45311f
cmp ecx, 0x104
ja 0x453132
mov eax, dword [esp + 0x1c]
push edx
push eax
call dword [eax + 0x28]
mov edx, dword [esp + 0x3c]
pop ecx
pop ecx
mov dword [esp + 0x14], eax
push edx
call fcn.0040c86d
mov eax, dword [esp + 0x18]
pop ecx
mov ecx, dword [esp + 0x28]
add ecx, 4
mov dword [esp + 0x28], ecx
cmp ecx, str.expand_32_byte_k
jl 0x4530c5
test eax, eax
je 0x4533e0
push dword [esp + 0x24]
push eax
mov eax, dword [esp + 0x24]
push eax
call dword [eax + 0x30]
add esp, 0xc
mov dword [esp + 0x28], eax
test eax, eax
jne 0x453304
cmp dword [ebp + 8], edi
jne 0x45328b
mov ecx, dword [esp + 0x10]
call fcn.0040f46f
mov dword [esp + 0x34], eax
add eax, 0x1e
cdq
push edx
push eax
call fcn.0040c801
mov dword [esp + 0x28], eax
pop ecx
pop ecx
test eax, eax
jne 0x4531b0
mov dword [esp + 0x2c], 7
jmp 0x453357
mov ecx, dword [esp + 0x10]
mov dword [eax], 0x696c7173
mov dword [eax + 4], 0x5f336574
mov eax, dword [esp + 0x34]
sub eax, 1
mov dword [esp + 0x28], eax
js 0x4531e4
mov dl, byte [eax + ecx]
cmp dl, 0x2f
je 0x4531e0
cmp dl, 0x5c
je 0x4531e0
sub eax, 1
jns 0x4531ce
mov dword [esp + 0x28], eax
push 3
inc ecx
mov dword [esp + 0x28], 8
add eax, ecx
push 0x6366f4
push eax
call fcn.0040f7f7
add esp, 0xc
neg eax
sbb eax, eax
and eax, 0xfffffffd
add eax, 4
add eax, dword [esp + 0x28]
add eax, dword [esp + 0x10]
mov dword [esp + 0x28], eax
movsx ecx, byte [eax]
test ecx, ecx
je 0x453254
mov edx, dword [esp + 0x20]
push 8
pop edi
cmp ecx, 0x2e
je 0x45324e
movzx eax, cl
test byte [eax + 0x63a188], 2
je 0x45323e
mov al, byte [ecx + 0x63ad08]
mov byte [edi + edx], al
inc edi
mov eax, dword [esp + 0x28]
inc eax
mov dword [esp + 0x28], eax
movsx ecx, byte [eax]
test ecx, ecx
jne 0x453223
mov dword [esp + 0x24], edi
xor edi, edi
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
mov eax, dword [str._init]
push ecx
push dword [esp + 0x18]
mov dword [edx + ecx], eax
mov ax, word [0x6366fc]
mov word [edx + ecx + 4], ax
mov eax, dword [esp + 0x24]
push eax
mov dword [esp + 0x30], ecx
call dword [eax + 0x30]
add esp, 0xc
mov dword [esp + 0x28], eax
test eax, eax
jne 0x453304
mov ebx, dword [ebp + 0xc]
test ebx, ebx
je 0x4532e9
mov ecx, dword [esp + 0x24]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x453299
sub ecx, edx
lea eax, [ecx + 0x12c]
add esi, eax
adc edi, edi
push edi
push esi
call fcn.0040c801
mov dword [esp + 0x20], eax
mov dword [ebx], eax
pop ecx
pop ecx
test eax, eax
je 0x4532e9
push dword [esp + 0x10]
push dword [esp + 0x28]
push str.no_entry_point___s__in_shared_library___s_
push eax
push esi
call fcn.0040e73a
add esp, 0x14
lea eax, [esi - 1]
push dword [esp + 0x18]
push eax
mov eax, dword [esp + 0x24]
push eax
call dword [eax + 0x2c]
add esp, 0xc
mov eax, dword [esp + 0x1c]
push dword [esp + 0x14]
push eax
call dword [eax + 0x34]
mov edx, dword [esp + 0x28]
push edx
call fcn.0040c86d
jmp 0x45342d
mov edx, dword [esp + 0x20]
push edx
call fcn.0040c86d
lea eax, [esp + 0x1c]
mov dword [esp], fcn.0042cde5
push eax
push ebx
call dword [esp + 0x34]
add esp, 0xc
test eax, eax
je 0x45336e
cmp eax, 0x100
jne 0x453334
xor eax, eax
jmp 0x453433
mov ebx, dword [ebp + 0xc]
test ebx, ebx
je 0x45334d
push dword [esp + 0x18]
push str.error_during_initialization:__s
call fcn.0040e6c3
pop ecx
pop ecx
mov dword [ebx], eax
push dword [esp + 0x18]
call fcn.0040c86d
pop ecx
mov eax, dword [esp + 0x1c]
push dword [esp + 0x14]
push eax
call dword [eax + 0x34]
mov eax, dword [esp + 0x34]
pop ecx
pop ecx
jmp 0x453433
mov eax, dword [ebx + 0xd0]
mov ecx, ebx
push edi
lea eax, [eax*4 + 4]
push eax
call fcn.0040cb5f
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x453394
push 7
pop eax
jmp 0x453433
mov eax, dword [ebx + 0xd0]
test eax, eax
jle 0x4533b1
shl eax, 2
push eax
push dword [ebx + 0xd4]
push esi
call fcn.005cadb0
add esp, 0xc
mov edx, dword [ebx + 0xd4]
test edx, edx
je 0x4533c2
mov ecx, ebx
call fcn.0040c8db
mov eax, dword [ebx + 0xd0]
mov ecx, dword [esp + 0x14]
mov dword [ebx + 0xd4], esi
mov dword [esi + eax*4], ecx
inc dword [ebx + 0xd0]
jmp 0x45332d
mov edx, dword [ebp + 0xc]
test edx, edx
je 0x453430
add esi, 0x12c
adc edi, edi
push edi
push esi
call fcn.0040c801
mov ebx, dword [ebp + 0xc]
mov dword [esp + 0x20], eax
pop ecx
pop ecx
mov dword [ebx], eax
test eax, eax
je 0x453430
push dword [esp + 0x10]
push 0x104
push str.unable_to_open_shared_library___.s_
push eax
push esi
call fcn.0040e73a
add esp, 0x14
lea eax, [esi - 1]
push dword [esp + 0x18]
push eax
mov eax, dword [esp + 0x24]
push eax
call dword [eax + 0x2c]
add esp, 0xc
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret